Add all the files generated by autoconf.
[cloog-ppl.git] / configure
blobb95719eb2caf16809c15675707bd738e588a7481
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
578 case X$ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
583 esac
585 echo=${ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $echo works!
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<EOF
606 exit 0
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
619 echo_test_string=`eval $cmd` &&
620 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
621 then
622 break
624 done
627 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
631 else
632 # The Solaris, AIX, and Digital Unix default echo programs unquote
633 # backslashes. This makes it impossible to quote backslashes using
634 # echo "$something" | sed 's/\\/\\\\/g'
636 # So, first we look for a working echo in the user's PATH.
638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639 for dir in $PATH /usr/ucb; do
640 IFS="$lt_save_ifs"
641 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 echo="$dir/echo"
646 break
648 done
649 IFS="$lt_save_ifs"
651 if test "X$echo" = Xecho; then
652 # We didn't find a better echo, so look for alternatives.
653 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 # This shell has a builtin print -r that does the trick.
657 echo='print -r'
658 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659 test "X$CONFIG_SHELL" != X/bin/ksh; then
660 # If we have ksh, try running configure again with it.
661 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662 export ORIGINAL_CONFIG_SHELL
663 CONFIG_SHELL=/bin/ksh
664 export CONFIG_SHELL
665 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
666 else
667 # Try using printf.
668 echo='printf %s\n'
669 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671 test "X$echo_testing_string" = "X$echo_test_string"; then
672 # Cool, printf works
674 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675 test "X$echo_testing_string" = 'X\t' &&
676 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677 test "X$echo_testing_string" = "X$echo_test_string"; then
678 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679 export CONFIG_SHELL
680 SHELL="$CONFIG_SHELL"
681 export SHELL
682 echo="$CONFIG_SHELL $0 --fallback-echo"
683 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684 test "X$echo_testing_string" = 'X\t' &&
685 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686 test "X$echo_testing_string" = "X$echo_test_string"; then
687 echo="$CONFIG_SHELL $0 --fallback-echo"
688 else
689 # maybe with a smaller string...
690 prev=:
692 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
694 then
695 break
697 prev="$cmd"
698 done
700 if test "$prev" != 'sed 50q "$0"'; then
701 echo_test_string=`eval $prev`
702 export echo_test_string
703 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704 else
705 # Oops. We lost completely, so just stick with echo.
706 echo=echo
714 # Copy echo and quote the copy suitably for passing to libtool from
715 # the Makefile, instead of quoting the original, which is used later.
716 ECHO=$echo
717 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
724 tagnames=${tagnames+${tagnames},}CXX
726 tagnames=${tagnames+${tagnames},}F77
728 exec 7<&0 </dev/null 6>&1
730 # Name of the host.
731 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732 # so uname gets run too.
733 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736 # Initializations.
738 ac_default_prefix=/usr/local
739 ac_clean_files=
740 ac_config_libobj_dir=.
741 LIBOBJS=
742 cross_compiling=no
743 subdirs=
744 MFLAGS=
745 MAKEFLAGS=
746 SHELL=${CONFIG_SHELL-/bin/sh}
748 # Identity of this package.
749 PACKAGE_NAME=
750 PACKAGE_TARNAME=
751 PACKAGE_VERSION=
752 PACKAGE_STRING=
753 PACKAGE_BUGREPORT=
755 ac_unique_file="source/cloog.c"
756 # Factoring default headers for most tests.
757 ac_includes_default="\
758 #include <stdio.h>
759 #ifdef HAVE_SYS_TYPES_H
760 # include <sys/types.h>
761 #endif
762 #ifdef HAVE_SYS_STAT_H
763 # include <sys/stat.h>
764 #endif
765 #ifdef STDC_HEADERS
766 # include <stdlib.h>
767 # include <stddef.h>
768 #else
769 # ifdef HAVE_STDLIB_H
770 # include <stdlib.h>
771 # endif
772 #endif
773 #ifdef HAVE_STRING_H
774 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
775 # include <memory.h>
776 # endif
777 # include <string.h>
778 #endif
779 #ifdef HAVE_STRINGS_H
780 # include <strings.h>
781 #endif
782 #ifdef HAVE_INTTYPES_H
783 # include <inttypes.h>
784 #endif
785 #ifdef HAVE_STDINT_H
786 # include <stdint.h>
787 #endif
788 #ifdef HAVE_UNISTD_H
789 # include <unistd.h>
790 #endif"
792 ac_subst_vars='LTLIBOBJS
793 LIBOBJS
794 BITS
795 INSTALL
796 SHEXT
797 target
798 PPL_LIBS
799 PPL_LDFLAGS
800 PPL_CPPFLAGS
801 POLYHEDRAL_BACKEND
802 GIT_INDEX
803 POLYLIB_LIBS
804 POLYLIB_LDFLAGS
805 POLYLIB_CPPFLAGS
806 cl_cv_polylib
807 LIBTOOL
808 ac_ct_F77
809 FFLAGS
811 CXXCPP
812 am__fastdepCXX_FALSE
813 am__fastdepCXX_TRUE
814 CXXDEPMODE
815 ac_ct_CXX
816 CXXFLAGS
819 NMEDIT
820 DSYMUTIL
821 RANLIB
823 ECHO
824 EGREP
825 GREP
827 host_os
828 host_vendor
829 host_cpu
830 host
831 build_os
832 build_vendor
833 build_cpu
834 build
836 LN_S
837 am__fastdepCC_FALSE
838 am__fastdepCC_TRUE
839 CCDEPMODE
840 AMDEPBACKSLASH
841 AMDEP_FALSE
842 AMDEP_TRUE
843 am__quote
844 am__include
845 DEPDIR
846 OBJEXT
847 EXEEXT
848 ac_ct_CC
849 CPPFLAGS
850 LDFLAGS
851 CFLAGS
853 CLOOG_VERSION_BETA
854 CLOOG_VERSION_REVISION
855 CLOOG_VERSION_MINOR
856 CLOOG_VERSION_MAJOR
857 am__leading_dot
858 SET_MAKE
860 INSTALL_STRIP_PROGRAM
861 STRIP
862 install_sh
863 AMTAR
864 MAKEINFO
865 AUTOHEADER
866 AUTOMAKE
867 AUTOCONF
868 ACLOCAL
869 VERSION
870 PACKAGE
871 CYGPATH_W
872 INSTALL_DATA
873 INSTALL_SCRIPT
874 INSTALL_PROGRAM
875 target_alias
876 host_alias
877 build_alias
878 LIBS
879 ECHO_T
880 ECHO_N
881 ECHO_C
882 DEFS
883 mandir
884 localedir
885 libdir
886 psdir
887 pdfdir
888 dvidir
889 htmldir
890 infodir
891 docdir
892 oldincludedir
893 includedir
894 localstatedir
895 sharedstatedir
896 sysconfdir
897 datadir
898 datarootdir
899 libexecdir
900 sbindir
901 bindir
902 program_transform_name
903 prefix
904 exec_prefix
905 PACKAGE_BUGREPORT
906 PACKAGE_STRING
907 PACKAGE_VERSION
908 PACKAGE_TARNAME
909 PACKAGE_NAME
910 PATH_SEPARATOR
911 SHELL'
912 ac_subst_files=''
913 ac_user_opts='
914 enable_option_checking
915 enable_dependency_tracking
916 enable_shared
917 enable_static
918 enable_fast_install
919 with_gnu_ld
920 enable_libtool_lock
921 with_pic
922 with_tags
923 with_ppl
924 with_polylib_prefix
925 with_polylib_exec_prefix
926 with_polylib_builddir
927 with_bits
928 with_gmp
929 with_gmp_include
930 with_gmp_library
932 ac_precious_vars='build_alias
933 host_alias
934 target_alias
936 CFLAGS
937 LDFLAGS
938 LIBS
939 CPPFLAGS
942 CXXFLAGS
944 CXXCPP
946 FFLAGS'
949 # Initialize some variables set by options.
950 ac_init_help=
951 ac_init_version=false
952 ac_unrecognized_opts=
953 ac_unrecognized_sep=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
956 cache_file=/dev/null
957 exec_prefix=NONE
958 no_create=
959 no_recursion=
960 prefix=NONE
961 program_prefix=NONE
962 program_suffix=NONE
963 program_transform_name=s,x,x,
964 silent=
965 site=
966 srcdir=
967 verbose=
968 x_includes=NONE
969 x_libraries=NONE
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1004 ac_prev=
1005 continue
1008 case $ac_option in
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *) ac_optarg=yes ;;
1011 esac
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1017 ac_dashdash=yes ;;
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1039 -datadir | --datadir | --datadi | --datad)
1040 ac_prev=datadir ;;
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1061 "enable_$ac_useropt"
1062 "*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval enable_$ac_useropt=no ;;
1068 -docdir | --docdir | --docdi | --doc | --do)
1069 ac_prev=docdir ;;
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074 ac_prev=dvidir ;;
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
1078 -enable-* | --enable-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1083 { (exit 1); exit 1; }; }
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_$ac_useropt"
1089 "*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval enable_$ac_useropt=\$ac_optarg ;;
1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097 | --exec | --exe | --ex)
1098 ac_prev=exec_prefix ;;
1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101 | --exec=* | --exe=* | --ex=*)
1102 exec_prefix=$ac_optarg ;;
1104 -gas | --gas | --ga | --g)
1105 # Obsolete; use --with-gas.
1106 with_gas=yes ;;
1108 -help | --help | --hel | --he | -h)
1109 ac_init_help=long ;;
1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111 ac_init_help=recursive ;;
1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113 ac_init_help=short ;;
1115 -host | --host | --hos | --ho)
1116 ac_prev=host_alias ;;
1117 -host=* | --host=* | --hos=* | --ho=*)
1118 host_alias=$ac_optarg ;;
1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121 ac_prev=htmldir ;;
1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123 | --ht=*)
1124 htmldir=$ac_optarg ;;
1126 -includedir | --includedir | --includedi | --included | --include \
1127 | --includ | --inclu | --incl | --inc)
1128 ac_prev=includedir ;;
1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130 | --includ=* | --inclu=* | --incl=* | --inc=*)
1131 includedir=$ac_optarg ;;
1133 -infodir | --infodir | --infodi | --infod | --info | --inf)
1134 ac_prev=infodir ;;
1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136 infodir=$ac_optarg ;;
1138 -libdir | --libdir | --libdi | --libd)
1139 ac_prev=libdir ;;
1140 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141 libdir=$ac_optarg ;;
1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144 | --libexe | --libex | --libe)
1145 ac_prev=libexecdir ;;
1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147 | --libexe=* | --libex=* | --libe=*)
1148 libexecdir=$ac_optarg ;;
1150 -localedir | --localedir | --localedi | --localed | --locale)
1151 ac_prev=localedir ;;
1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153 localedir=$ac_optarg ;;
1155 -localstatedir | --localstatedir | --localstatedi | --localstated \
1156 | --localstate | --localstat | --localsta | --localst | --locals)
1157 ac_prev=localstatedir ;;
1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160 localstatedir=$ac_optarg ;;
1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163 ac_prev=mandir ;;
1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165 mandir=$ac_optarg ;;
1167 -nfp | --nfp | --nf)
1168 # Obsolete; use --without-fp.
1169 with_fp=no ;;
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n)
1173 no_create=yes ;;
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 no_recursion=yes ;;
1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181 | --oldin | --oldi | --old | --ol | --o)
1182 ac_prev=oldincludedir ;;
1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186 oldincludedir=$ac_optarg ;;
1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189 ac_prev=prefix ;;
1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191 prefix=$ac_optarg ;;
1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194 | --program-pre | --program-pr | --program-p)
1195 ac_prev=program_prefix ;;
1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198 program_prefix=$ac_optarg ;;
1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201 | --program-suf | --program-su | --program-s)
1202 ac_prev=program_suffix ;;
1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205 program_suffix=$ac_optarg ;;
1207 -program-transform-name | --program-transform-name \
1208 | --program-transform-nam | --program-transform-na \
1209 | --program-transform-n | --program-transform- \
1210 | --program-transform | --program-transfor \
1211 | --program-transfo | --program-transf \
1212 | --program-trans | --program-tran \
1213 | --progr-tra | --program-tr | --program-t)
1214 ac_prev=program_transform_name ;;
1215 -program-transform-name=* | --program-transform-name=* \
1216 | --program-transform-nam=* | --program-transform-na=* \
1217 | --program-transform-n=* | --program-transform-=* \
1218 | --program-transform=* | --program-transfor=* \
1219 | --program-transfo=* | --program-transf=* \
1220 | --program-trans=* | --program-tran=* \
1221 | --progr-tra=* | --program-tr=* | --program-t=*)
1222 program_transform_name=$ac_optarg ;;
1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225 ac_prev=pdfdir ;;
1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227 pdfdir=$ac_optarg ;;
1229 -psdir | --psdir | --psdi | --psd | --ps)
1230 ac_prev=psdir ;;
1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 psdir=$ac_optarg ;;
1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1236 silent=yes ;;
1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 ac_prev=sbindir ;;
1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 | --sbi=* | --sb=*)
1242 sbindir=$ac_optarg ;;
1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246 | --sharedst | --shareds | --shared | --share | --shar \
1247 | --sha | --sh)
1248 ac_prev=sharedstatedir ;;
1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 | --sha=* | --sh=*)
1253 sharedstatedir=$ac_optarg ;;
1255 -site | --site | --sit)
1256 ac_prev=site ;;
1257 -site=* | --site=* | --sit=*)
1258 site=$ac_optarg ;;
1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 ac_prev=srcdir ;;
1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263 srcdir=$ac_optarg ;;
1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266 | --syscon | --sysco | --sysc | --sys | --sy)
1267 ac_prev=sysconfdir ;;
1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270 sysconfdir=$ac_optarg ;;
1272 -target | --target | --targe | --targ | --tar | --ta | --t)
1273 ac_prev=target_alias ;;
1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275 target_alias=$ac_optarg ;;
1277 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 verbose=yes ;;
1280 -version | --version | --versio | --versi | --vers | -V)
1281 ac_init_version=: ;;
1283 -with-* | --with-*)
1284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1288 { (exit 1); exit 1; }; }
1289 ac_useropt_orig=$ac_useropt
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1293 "with_$ac_useropt"
1294 "*) ;;
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1296 ac_unrecognized_sep=', ';;
1297 esac
1298 eval with_$ac_useropt=\$ac_optarg ;;
1300 -without-* | --without-*)
1301 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1305 { (exit 1); exit 1; }; }
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1310 "with_$ac_useropt"
1311 "*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval with_$ac_useropt=no ;;
1317 --x)
1318 # Obsolete; use --with-x.
1319 with_x=yes ;;
1321 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322 | --x-incl | --x-inc | --x-in | --x-i)
1323 ac_prev=x_includes ;;
1324 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326 x_includes=$ac_optarg ;;
1328 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330 ac_prev=x_libraries ;;
1331 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333 x_libraries=$ac_optarg ;;
1335 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1336 Try \`$0 --help' for more information." >&2
1337 { (exit 1); exit 1; }; }
1340 *=*)
1341 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1342 # Reject names that are not valid shell variable names.
1343 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1344 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1345 { (exit 1); exit 1; }; }
1346 eval $ac_envvar=\$ac_optarg
1347 export $ac_envvar ;;
1350 # FIXME: should be removed in autoconf 3.0.
1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1357 esac
1358 done
1360 if test -n "$ac_prev"; then
1361 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1363 { (exit 1); exit 1; }; }
1366 if test -n "$ac_unrecognized_opts"; then
1367 case $enable_option_checking in
1368 no) ;;
1369 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1370 { (exit 1); exit 1; }; } ;;
1371 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1372 esac
1375 # Check all directory arguments for consistency.
1376 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1377 datadir sysconfdir sharedstatedir localstatedir includedir \
1378 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1379 libdir localedir mandir
1381 eval ac_val=\$$ac_var
1382 # Remove trailing slashes.
1383 case $ac_val in
1384 */ )
1385 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1386 eval $ac_var=\$ac_val;;
1387 esac
1388 # Be sure to have absolute directory names.
1389 case $ac_val in
1390 [\\/$]* | ?:[\\/]* ) continue;;
1391 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1392 esac
1393 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1394 { (exit 1); exit 1; }; }
1395 done
1397 # There might be people who depend on the old broken behavior: `$host'
1398 # used to hold the argument of --host etc.
1399 # FIXME: To remove some day.
1400 build=$build_alias
1401 host=$host_alias
1402 target=$target_alias
1404 # FIXME: To remove some day.
1405 if test "x$host_alias" != x; then
1406 if test "x$build_alias" = x; then
1407 cross_compiling=maybe
1408 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1409 If a cross compiler is detected then cross compile mode will be used." >&2
1410 elif test "x$build_alias" != "x$host_alias"; then
1411 cross_compiling=yes
1415 ac_tool_prefix=
1416 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1418 test "$silent" = yes && exec 6>/dev/null
1421 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1422 ac_ls_di=`ls -di .` &&
1423 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1424 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1425 { (exit 1); exit 1; }; }
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1428 { (exit 1); exit 1; }; }
1431 # Find the source files, if location was not specified.
1432 if test -z "$srcdir"; then
1433 ac_srcdir_defaulted=yes
1434 # Try the directory containing this script, then the parent directory.
1435 ac_confdir=`$as_dirname -- "$as_myself" ||
1436 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1437 X"$as_myself" : 'X\(//\)[^/]' \| \
1438 X"$as_myself" : 'X\(//\)$' \| \
1439 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1440 $as_echo X"$as_myself" |
1441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 s//\1/
1445 /^X\(\/\/\)[^/].*/{
1446 s//\1/
1449 /^X\(\/\/\)$/{
1450 s//\1/
1453 /^X\(\/\).*/{
1454 s//\1/
1457 s/.*/./; q'`
1458 srcdir=$ac_confdir
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 srcdir=..
1462 else
1463 ac_srcdir_defaulted=no
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1466 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1467 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1468 { (exit 1); exit 1; }; }
1470 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1471 ac_abs_confdir=`(
1472 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1473 { (exit 1); exit 1; }; }
1474 pwd)`
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1477 srcdir=.
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1482 case $srcdir in
1483 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484 esac
1485 for ac_var in $ac_precious_vars; do
1486 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_${ac_var}_value=\$${ac_var}
1488 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490 done
1493 # Report the --help message.
1495 if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1498 cat <<_ACEOF
1499 \`configure' configures this package to adapt to many kinds of systems.
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE. See below for descriptions of some of the useful variables.
1506 Defaults for the options are specified in brackets.
1508 Configuration:
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1519 Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
1521 [$ac_default_prefix]
1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1523 [PREFIX]
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1530 For better control, use the options below.
1532 Fine tuning of the installation directories:
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --libdir=DIR object code libraries [EPREFIX/lib]
1540 --includedir=DIR C header files [PREFIX/include]
1541 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1542 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1543 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1544 --infodir=DIR info documentation [DATAROOTDIR/info]
1545 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1546 --mandir=DIR man documentation [DATAROOTDIR/man]
1547 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1548 --htmldir=DIR html documentation [DOCDIR]
1549 --dvidir=DIR dvi documentation [DOCDIR]
1550 --pdfdir=DIR pdf documentation [DOCDIR]
1551 --psdir=DIR ps documentation [DOCDIR]
1552 _ACEOF
1554 cat <<\_ACEOF
1556 Program names:
1557 --program-prefix=PREFIX prepend PREFIX to installed program names
1558 --program-suffix=SUFFIX append SUFFIX to installed program names
1559 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1561 System types:
1562 --build=BUILD configure for building on BUILD [guessed]
1563 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1564 _ACEOF
1567 if test -n "$ac_init_help"; then
1569 cat <<\_ACEOF
1571 Optional Features:
1572 --disable-option-checking ignore unrecognized --enable/--with options
1573 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1574 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1575 --disable-dependency-tracking Speeds up one-time builds
1576 --enable-dependency-tracking Do not reject slow dependency extractors
1577 --enable-shared[=PKGS] build shared libraries [default=yes]
1578 --enable-static[=PKGS] build static libraries [default=yes]
1579 --enable-fast-install[=PKGS]
1580 optimize for fast installation [default=yes]
1581 --disable-libtool-lock avoid locking (might break parallel builds)
1583 Optional Packages:
1584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1586 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1587 --with-pic try to use only PIC/non-PIC objects [default=use
1588 both]
1589 --with-tags[=TAGS] include additional configurations [automatic]
1590 --with-ppl=DIR Prefix of Parma Polyhedral Library installation
1591 --with-polylib-prefix=DIR
1592 Prefix of PolyLib installation
1593 --with-polylib-exec-prefix=DIR
1594 Exec prefix of PolyLib installation
1595 --with-polylib-builddir=DIR
1596 Location of PolyLib builddir
1597 --with-bits=32|64|gmp PolyLib library type to use
1598 --with-gmp=DIR DIR where the gmp package is installed
1599 --with-gmp-include=DIR DIR where gmp.h is installed
1600 --with-gmp-library=DIR DIR where the gmp library is installed
1602 Some influential environment variables:
1603 CC C compiler command
1604 CFLAGS C compiler flags
1605 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1606 nonstandard directory <lib dir>
1607 LIBS libraries to pass to the linker, e.g. -l<library>
1608 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1609 you have headers in a nonstandard directory <include dir>
1610 CPP C preprocessor
1611 CXX C++ compiler command
1612 CXXFLAGS C++ compiler flags
1613 CXXCPP C++ preprocessor
1614 F77 Fortran 77 compiler command
1615 FFLAGS Fortran 77 compiler flags
1617 Use these variables to override the choices made by `configure' or to help
1618 it to find libraries and programs with nonstandard names/locations.
1620 _ACEOF
1621 ac_status=$?
1624 if test "$ac_init_help" = "recursive"; then
1625 # If there are subdirs, report their specific --help.
1626 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1627 test -d "$ac_dir" ||
1628 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1629 continue
1630 ac_builddir=.
1632 case "$ac_dir" in
1633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1636 # A ".." for each directory in $ac_dir_suffix.
1637 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1638 case $ac_top_builddir_sub in
1639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1641 esac ;;
1642 esac
1643 ac_abs_top_builddir=$ac_pwd
1644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1645 # for backward compatibility:
1646 ac_top_builddir=$ac_top_build_prefix
1648 case $srcdir in
1649 .) # We are building in place.
1650 ac_srcdir=.
1651 ac_top_srcdir=$ac_top_builddir_sub
1652 ac_abs_top_srcdir=$ac_pwd ;;
1653 [\\/]* | ?:[\\/]* ) # Absolute name.
1654 ac_srcdir=$srcdir$ac_dir_suffix;
1655 ac_top_srcdir=$srcdir
1656 ac_abs_top_srcdir=$srcdir ;;
1657 *) # Relative name.
1658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1659 ac_top_srcdir=$ac_top_build_prefix$srcdir
1660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1661 esac
1662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1664 cd "$ac_dir" || { ac_status=$?; continue; }
1665 # Check for guested configure.
1666 if test -f "$ac_srcdir/configure.gnu"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1669 elif test -f "$ac_srcdir/configure"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure" --help=recursive
1672 else
1673 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1674 fi || ac_status=$?
1675 cd "$ac_pwd" || { ac_status=$?; break; }
1676 done
1679 test -n "$ac_init_help" && exit $ac_status
1680 if $ac_init_version; then
1681 cat <<\_ACEOF
1682 configure
1683 generated by GNU Autoconf 2.63
1685 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1686 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1687 This configure script is free software; the Free Software Foundation
1688 gives unlimited permission to copy, distribute and modify it.
1689 _ACEOF
1690 exit
1692 cat >config.log <<_ACEOF
1693 This file contains any messages produced by compilers while
1694 running configure, to aid debugging if configure makes a mistake.
1696 It was created by $as_me, which was
1697 generated by GNU Autoconf 2.63. Invocation command line was
1699 $ $0 $@
1701 _ACEOF
1702 exec 5>>config.log
1704 cat <<_ASUNAME
1705 ## --------- ##
1706 ## Platform. ##
1707 ## --------- ##
1709 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1710 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1711 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1712 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1713 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1715 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1716 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1718 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1719 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1720 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1721 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1722 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1723 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1724 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1726 _ASUNAME
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 for as_dir in $PATH
1731 IFS=$as_save_IFS
1732 test -z "$as_dir" && as_dir=.
1733 $as_echo "PATH: $as_dir"
1734 done
1735 IFS=$as_save_IFS
1737 } >&5
1739 cat >&5 <<_ACEOF
1742 ## ----------- ##
1743 ## Core tests. ##
1744 ## ----------- ##
1746 _ACEOF
1749 # Keep a trace of the command line.
1750 # Strip out --no-create and --no-recursion so they do not pile up.
1751 # Strip out --silent because we don't want to record it for future runs.
1752 # Also quote any args containing shell meta-characters.
1753 # Make two passes to allow for proper duplicate-argument suppression.
1754 ac_configure_args=
1755 ac_configure_args0=
1756 ac_configure_args1=
1757 ac_must_keep_next=false
1758 for ac_pass in 1 2
1760 for ac_arg
1762 case $ac_arg in
1763 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1764 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1765 | -silent | --silent | --silen | --sile | --sil)
1766 continue ;;
1767 *\'*)
1768 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1769 esac
1770 case $ac_pass in
1771 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1773 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1774 if test $ac_must_keep_next = true; then
1775 ac_must_keep_next=false # Got value, back to normal.
1776 else
1777 case $ac_arg in
1778 *=* | --config-cache | -C | -disable-* | --disable-* \
1779 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1780 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1781 | -with-* | --with-* | -without-* | --without-* | --x)
1782 case "$ac_configure_args0 " in
1783 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1784 esac
1786 -* ) ac_must_keep_next=true ;;
1787 esac
1789 ac_configure_args="$ac_configure_args '$ac_arg'"
1791 esac
1792 done
1793 done
1794 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1795 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1797 # When interrupted or exit'd, cleanup temporary files, and complete
1798 # config.log. We remove comments because anyway the quotes in there
1799 # would cause problems or look ugly.
1800 # WARNING: Use '\'' to represent an apostrophe within the trap.
1801 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1802 trap 'exit_status=$?
1803 # Save into config.log some information that might help in debugging.
1805 echo
1807 cat <<\_ASBOX
1808 ## ---------------- ##
1809 ## Cache variables. ##
1810 ## ---------------- ##
1811 _ASBOX
1812 echo
1813 # The following way of writing the cache mishandles newlines in values,
1815 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1816 eval ac_val=\$$ac_var
1817 case $ac_val in #(
1818 *${as_nl}*)
1819 case $ac_var in #(
1820 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1821 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1822 esac
1823 case $ac_var in #(
1824 _ | IFS | as_nl) ;; #(
1825 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1826 *) $as_unset $ac_var ;;
1827 esac ;;
1828 esac
1829 done
1830 (set) 2>&1 |
1831 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1832 *${as_nl}ac_space=\ *)
1833 sed -n \
1834 "s/'\''/'\''\\\\'\'''\''/g;
1835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1836 ;; #(
1838 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1840 esac |
1841 sort
1843 echo
1845 cat <<\_ASBOX
1846 ## ----------------- ##
1847 ## Output variables. ##
1848 ## ----------------- ##
1849 _ASBOX
1850 echo
1851 for ac_var in $ac_subst_vars
1853 eval ac_val=\$$ac_var
1854 case $ac_val in
1855 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856 esac
1857 $as_echo "$ac_var='\''$ac_val'\''"
1858 done | sort
1859 echo
1861 if test -n "$ac_subst_files"; then
1862 cat <<\_ASBOX
1863 ## ------------------- ##
1864 ## File substitutions. ##
1865 ## ------------------- ##
1866 _ASBOX
1867 echo
1868 for ac_var in $ac_subst_files
1870 eval ac_val=\$$ac_var
1871 case $ac_val in
1872 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1873 esac
1874 $as_echo "$ac_var='\''$ac_val'\''"
1875 done | sort
1876 echo
1879 if test -s confdefs.h; then
1880 cat <<\_ASBOX
1881 ## ----------- ##
1882 ## confdefs.h. ##
1883 ## ----------- ##
1884 _ASBOX
1885 echo
1886 cat confdefs.h
1887 echo
1889 test "$ac_signal" != 0 &&
1890 $as_echo "$as_me: caught signal $ac_signal"
1891 $as_echo "$as_me: exit $exit_status"
1892 } >&5
1893 rm -f core *.core core.conftest.* &&
1894 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1895 exit $exit_status
1897 for ac_signal in 1 2 13 15; do
1898 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1899 done
1900 ac_signal=0
1902 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1903 rm -f -r conftest* confdefs.h
1905 # Predefined preprocessor variables.
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_NAME "$PACKAGE_NAME"
1909 _ACEOF
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1914 _ACEOF
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1919 _ACEOF
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_STRING "$PACKAGE_STRING"
1924 _ACEOF
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1929 _ACEOF
1932 # Let the site file select an alternate cache file if it wants to.
1933 # Prefer an explicitly selected file to automatically selected ones.
1934 ac_site_file1=NONE
1935 ac_site_file2=NONE
1936 if test -n "$CONFIG_SITE"; then
1937 ac_site_file1=$CONFIG_SITE
1938 elif test "x$prefix" != xNONE; then
1939 ac_site_file1=$prefix/share/config.site
1940 ac_site_file2=$prefix/etc/config.site
1941 else
1942 ac_site_file1=$ac_default_prefix/share/config.site
1943 ac_site_file2=$ac_default_prefix/etc/config.site
1945 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1947 test "x$ac_site_file" = xNONE && continue
1948 if test -r "$ac_site_file"; then
1949 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1950 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1951 sed 's/^/| /' "$ac_site_file" >&5
1952 . "$ac_site_file"
1954 done
1956 if test -r "$cache_file"; then
1957 # Some versions of bash will fail to source /dev/null (special
1958 # files actually), so we avoid doing that.
1959 if test -f "$cache_file"; then
1960 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1961 $as_echo "$as_me: loading cache $cache_file" >&6;}
1962 case $cache_file in
1963 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964 *) . "./$cache_file";;
1965 esac
1967 else
1968 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1969 $as_echo "$as_me: creating cache $cache_file" >&6;}
1970 >$cache_file
1973 # Check that the precious variables saved in the cache have kept the same
1974 # value.
1975 ac_cache_corrupted=false
1976 for ac_var in $ac_precious_vars; do
1977 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1978 eval ac_new_set=\$ac_env_${ac_var}_set
1979 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1980 eval ac_new_val=\$ac_env_${ac_var}_value
1981 case $ac_old_set,$ac_new_set in
1982 set,)
1983 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1985 ac_cache_corrupted=: ;;
1986 ,set)
1987 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1989 ac_cache_corrupted=: ;;
1990 ,);;
1992 if test "x$ac_old_val" != "x$ac_new_val"; then
1993 # differences in whitespace do not lead to failure.
1994 ac_old_val_w=`echo x $ac_old_val`
1995 ac_new_val_w=`echo x $ac_new_val`
1996 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1997 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1998 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1999 ac_cache_corrupted=:
2000 else
2001 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2002 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2003 eval $ac_var=\$ac_old_val
2005 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2006 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2007 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2008 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2009 fi;;
2010 esac
2011 # Pass precious variables to config.status.
2012 if test "$ac_new_set" = set; then
2013 case $ac_new_val in
2014 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2015 *) ac_arg=$ac_var=$ac_new_val ;;
2016 esac
2017 case " $ac_configure_args " in
2018 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2019 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2020 esac
2022 done
2023 if $ac_cache_corrupted; then
2024 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2026 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2027 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2028 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2029 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2030 { (exit 1); exit 1; }; }
2049 ac_ext=c
2050 ac_cpp='$CPP $CPPFLAGS'
2051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2056 ac_aux_dir=
2057 for ac_dir in autoconf "$srcdir"/autoconf; do
2058 if test -f "$ac_dir/install-sh"; then
2059 ac_aux_dir=$ac_dir
2060 ac_install_sh="$ac_aux_dir/install-sh -c"
2061 break
2062 elif test -f "$ac_dir/install.sh"; then
2063 ac_aux_dir=$ac_dir
2064 ac_install_sh="$ac_aux_dir/install.sh -c"
2065 break
2066 elif test -f "$ac_dir/shtool"; then
2067 ac_aux_dir=$ac_dir
2068 ac_install_sh="$ac_aux_dir/shtool install -c"
2069 break
2071 done
2072 if test -z "$ac_aux_dir"; then
2073 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2074 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2075 { (exit 1); exit 1; }; }
2078 # These three variables are undocumented and unsupported,
2079 # and are intended to be withdrawn in a future Autoconf release.
2080 # They can cause serious problems if a builder's source tree is in a directory
2081 # whose full name contains unusual characters.
2082 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2083 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2084 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088 am__api_version="1.7"
2089 # Find a good install program. We prefer a C program (faster),
2090 # so one script is as good as another. But avoid the broken or
2091 # incompatible versions:
2092 # SysV /etc/install, /usr/sbin/install
2093 # SunOS /usr/etc/install
2094 # IRIX /sbin/install
2095 # AIX /bin/install
2096 # AmigaOS /C/install, which installs bootblocks on floppy discs
2097 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2098 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2099 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2100 # OS/2's system install, which has a completely different semantic
2101 # ./install, which can be erroneously created by make from ./install.sh.
2102 # Reject install programs that cannot install multiple files.
2103 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2104 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2105 if test -z "$INSTALL"; then
2106 if test "${ac_cv_path_install+set}" = set; then
2107 $as_echo_n "(cached) " >&6
2108 else
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2112 IFS=$as_save_IFS
2113 test -z "$as_dir" && as_dir=.
2114 # Account for people who put trailing slashes in PATH elements.
2115 case $as_dir/ in
2116 ./ | .// | /cC/* | \
2117 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2118 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2119 /usr/ucb/* ) ;;
2121 # OSF1 and SCO ODT 3.0 have their own names for install.
2122 # Don't use installbsd from OSF since it installs stuff as root
2123 # by default.
2124 for ac_prog in ginstall scoinst install; do
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2127 if test $ac_prog = install &&
2128 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2129 # AIX install. It has an incompatible calling convention.
2131 elif test $ac_prog = install &&
2132 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2133 # program-specific install script used by HP pwplus--don't use.
2135 else
2136 rm -rf conftest.one conftest.two conftest.dir
2137 echo one > conftest.one
2138 echo two > conftest.two
2139 mkdir conftest.dir
2140 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2141 test -s conftest.one && test -s conftest.two &&
2142 test -s conftest.dir/conftest.one &&
2143 test -s conftest.dir/conftest.two
2144 then
2145 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2146 break 3
2150 done
2151 done
2153 esac
2155 done
2156 IFS=$as_save_IFS
2158 rm -rf conftest.one conftest.two conftest.dir
2161 if test "${ac_cv_path_install+set}" = set; then
2162 INSTALL=$ac_cv_path_install
2163 else
2164 # As a last resort, use the slow shell script. Don't cache a
2165 # value for INSTALL within a source directory, because that will
2166 # break other packages using the cache if that directory is
2167 # removed, or if the value is a relative name.
2168 INSTALL=$ac_install_sh
2171 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2172 $as_echo "$INSTALL" >&6; }
2174 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2175 # It thinks the first close brace ends the variable substitution.
2176 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2178 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2180 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2182 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2183 $as_echo_n "checking whether build environment is sane... " >&6; }
2184 # Just in case
2185 sleep 1
2186 echo timestamp > conftest.file
2187 # Do `set' in a subshell so we don't clobber the current shell's
2188 # arguments. Must try -L first in case configure is actually a
2189 # symlink; some systems play weird games with the mod time of symlinks
2190 # (eg FreeBSD returns the mod time of the symlink's containing
2191 # directory).
2192 if (
2193 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2194 if test "$*" = "X"; then
2195 # -L didn't work.
2196 set X `ls -t $srcdir/configure conftest.file`
2198 rm -f conftest.file
2199 if test "$*" != "X $srcdir/configure conftest.file" \
2200 && test "$*" != "X conftest.file $srcdir/configure"; then
2202 # If neither matched, then we have a broken ls. This can happen
2203 # if, for instance, CONFIG_SHELL is bash and it inherits a
2204 # broken ls alias from the environment. This has actually
2205 # happened. Such a system could not be considered "sane".
2206 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2207 alias in your environment" >&5
2208 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2209 alias in your environment" >&2;}
2210 { (exit 1); exit 1; }; }
2213 test "$2" = conftest.file
2215 then
2216 # Ok.
2218 else
2219 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2220 Check your system clock" >&5
2221 $as_echo "$as_me: error: newly created file is older than distributed files!
2222 Check your system clock" >&2;}
2223 { (exit 1); exit 1; }; }
2225 { $as_echo "$as_me:$LINENO: result: yes" >&5
2226 $as_echo "yes" >&6; }
2227 test "$program_prefix" != NONE &&
2228 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2229 # Use a double $ so make ignores it.
2230 test "$program_suffix" != NONE &&
2231 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2232 # Double any \ or $.
2233 # By default was `s,x,x', remove it if useless.
2234 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2235 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2238 # expand $ac_aux_dir to an absolute path
2239 am_aux_dir=`cd $ac_aux_dir && pwd`
2241 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2242 # Use eval to expand $SHELL
2243 if eval "$MISSING --run true"; then
2244 am_missing_run="$MISSING --run "
2245 else
2246 am_missing_run=
2247 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2248 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2251 for ac_prog in gawk mawk nawk awk
2253 # Extract the first word of "$ac_prog", so it can be a program name with args.
2254 set dummy $ac_prog; ac_word=$2
2255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2256 $as_echo_n "checking for $ac_word... " >&6; }
2257 if test "${ac_cv_prog_AWK+set}" = set; then
2258 $as_echo_n "(cached) " >&6
2259 else
2260 if test -n "$AWK"; then
2261 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2262 else
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270 ac_cv_prog_AWK="$ac_prog"
2271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 break 2
2274 done
2275 done
2276 IFS=$as_save_IFS
2280 AWK=$ac_cv_prog_AWK
2281 if test -n "$AWK"; then
2282 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2283 $as_echo "$AWK" >&6; }
2284 else
2285 { $as_echo "$as_me:$LINENO: result: no" >&5
2286 $as_echo "no" >&6; }
2290 test -n "$AWK" && break
2291 done
2293 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2294 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2295 set x ${MAKE-make}
2296 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2297 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2298 $as_echo_n "(cached) " >&6
2299 else
2300 cat >conftest.make <<\_ACEOF
2301 SHELL = /bin/sh
2302 all:
2303 @echo '@@@%%%=$(MAKE)=@@@%%%'
2304 _ACEOF
2305 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2306 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2307 *@@@%%%=?*=@@@%%%*)
2308 eval ac_cv_prog_make_${ac_make}_set=yes;;
2310 eval ac_cv_prog_make_${ac_make}_set=no;;
2311 esac
2312 rm -f conftest.make
2314 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2315 { $as_echo "$as_me:$LINENO: result: yes" >&5
2316 $as_echo "yes" >&6; }
2317 SET_MAKE=
2318 else
2319 { $as_echo "$as_me:$LINENO: result: no" >&5
2320 $as_echo "no" >&6; }
2321 SET_MAKE="MAKE=${MAKE-make}"
2324 rm -rf .tst 2>/dev/null
2325 mkdir .tst 2>/dev/null
2326 if test -d .tst; then
2327 am__leading_dot=.
2328 else
2329 am__leading_dot=_
2331 rmdir .tst 2>/dev/null
2333 # test to see if srcdir already configured
2334 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2335 test -f $srcdir/config.status; then
2336 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2337 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2338 { (exit 1); exit 1; }; }
2341 # test whether we have cygpath
2342 if test -z "$CYGPATH_W"; then
2343 if (cygpath --version) >/dev/null 2>/dev/null; then
2344 CYGPATH_W='cygpath -w'
2345 else
2346 CYGPATH_W=echo
2351 # Define the identity of the package.
2352 PACKAGE=cloog
2353 VERSION=0.15
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE "$PACKAGE"
2358 _ACEOF
2361 cat >>confdefs.h <<_ACEOF
2362 #define VERSION "$VERSION"
2363 _ACEOF
2365 # Some tools Automake needs.
2367 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2370 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2373 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2376 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2379 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2382 AMTAR=${AMTAR-"${am_missing_run}tar"}
2384 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2386 # Installed binaries are usually stripped using `strip' when the user
2387 # run `make install-strip'. However `strip' might not be the right
2388 # tool to use in cross-compilation environments, therefore Automake
2389 # will honor the `STRIP' environment variable to overrule this program.
2390 if test "$cross_compiling" != no; then
2391 if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2393 set dummy ${ac_tool_prefix}strip; ac_word=$2
2394 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 $as_echo_n "checking for $ac_word... " >&6; }
2396 if test "${ac_cv_prog_STRIP+set}" = set; then
2397 $as_echo_n "(cached) " >&6
2398 else
2399 if test -n "$STRIP"; then
2400 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 break 2
2413 done
2414 done
2415 IFS=$as_save_IFS
2419 STRIP=$ac_cv_prog_STRIP
2420 if test -n "$STRIP"; then
2421 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2422 $as_echo "$STRIP" >&6; }
2423 else
2424 { $as_echo "$as_me:$LINENO: result: no" >&5
2425 $as_echo "no" >&6; }
2430 if test -z "$ac_cv_prog_STRIP"; then
2431 ac_ct_STRIP=$STRIP
2432 # Extract the first word of "strip", so it can be a program name with args.
2433 set dummy strip; ac_word=$2
2434 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 $as_echo_n "checking for $ac_word... " >&6; }
2436 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2437 $as_echo_n "(cached) " >&6
2438 else
2439 if test -n "$ac_ct_STRIP"; then
2440 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_ac_ct_STRIP="strip"
2450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2453 done
2454 done
2455 IFS=$as_save_IFS
2459 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2460 if test -n "$ac_ct_STRIP"; then
2461 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2462 $as_echo "$ac_ct_STRIP" >&6; }
2463 else
2464 { $as_echo "$as_me:$LINENO: result: no" >&5
2465 $as_echo "no" >&6; }
2468 if test "x$ac_ct_STRIP" = x; then
2469 STRIP=":"
2470 else
2471 case $cross_compiling:$ac_tool_warned in
2472 yes:)
2473 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2475 ac_tool_warned=yes ;;
2476 esac
2477 STRIP=$ac_ct_STRIP
2479 else
2480 STRIP="$ac_cv_prog_STRIP"
2484 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2486 # We need awk for the "check" target. The system "awk" is bad on
2487 # some platforms.
2491 ac_config_headers="$ac_config_headers include/cloog/cloog-config.h"
2494 BITS="64"
2498 # Version number machinery.
2499 if test -n "`expr $VERSION : '\([0-9]*\)\.[0-9]*\.[0-9]*'`"
2500 then
2501 CLOOG_VERSION_MAJOR=`expr $VERSION : '\([0-9]*\)\.[0-9]*\.[0-9]*'`
2502 CLOOG_VERSION_MINOR=`expr $VERSION : '[0-9]*\.\([0-9]*\)\.[0-9]*'`
2503 CLOOG_VERSION_REVISION=`expr $VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
2504 CLOOG_VERSION_BETA=`expr $VERSION : '[0-9]*\.[0-9]*\.[0-9]*pre\([0-9]*\)'`
2505 else
2506 CLOOG_VERSION_MAJOR=`expr $VERSION : '\([0-9]*\)\.[0-9]*'`
2507 CLOOG_VERSION_MINOR=`expr $VERSION : '[0-9]*\.\([0-9]*\)'`
2508 CLOOG_VERSION_REVISION=0
2509 CLOOG_VERSION_BETA=`expr $VERSION : '[0-9]*\.[0-9]*pre\([0-9]*\)'`
2511 if test -z "$CLOOG_VERSION_BETA"
2512 then
2513 CLOOG_VERSION_BETA=0
2522 ac_ext=c
2523 ac_cpp='$CPP $CPPFLAGS'
2524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2527 if test -n "$ac_tool_prefix"; then
2528 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2529 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 $as_echo_n "checking for $ac_word... " >&6; }
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533 $as_echo_n "(cached) " >&6
2534 else
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2537 else
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2546 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 break 2
2549 done
2550 done
2551 IFS=$as_save_IFS
2555 CC=$ac_cv_prog_CC
2556 if test -n "$CC"; then
2557 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2558 $as_echo "$CC" >&6; }
2559 else
2560 { $as_echo "$as_me:$LINENO: result: no" >&5
2561 $as_echo "no" >&6; }
2566 if test -z "$ac_cv_prog_CC"; then
2567 ac_ct_CC=$CC
2568 # Extract the first word of "gcc", so it can be a program name with args.
2569 set dummy gcc; ac_word=$2
2570 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2571 $as_echo_n "checking for $ac_word... " >&6; }
2572 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2573 $as_echo_n "(cached) " >&6
2574 else
2575 if test -n "$ac_ct_CC"; then
2576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 ac_cv_prog_ac_ct_CC="gcc"
2586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2589 done
2590 done
2591 IFS=$as_save_IFS
2595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2596 if test -n "$ac_ct_CC"; then
2597 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2598 $as_echo "$ac_ct_CC" >&6; }
2599 else
2600 { $as_echo "$as_me:$LINENO: result: no" >&5
2601 $as_echo "no" >&6; }
2604 if test "x$ac_ct_CC" = x; then
2605 CC=""
2606 else
2607 case $cross_compiling:$ac_tool_warned in
2608 yes:)
2609 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2611 ac_tool_warned=yes ;;
2612 esac
2613 CC=$ac_ct_CC
2615 else
2616 CC="$ac_cv_prog_CC"
2619 if test -z "$CC"; then
2620 if test -n "$ac_tool_prefix"; then
2621 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2622 set dummy ${ac_tool_prefix}cc; ac_word=$2
2623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if test "${ac_cv_prog_CC+set}" = set; then
2626 $as_echo_n "(cached) " >&6
2627 else
2628 if test -n "$CC"; then
2629 ac_cv_prog_CC="$CC" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_CC="${ac_tool_prefix}cc"
2639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2642 done
2643 done
2644 IFS=$as_save_IFS
2648 CC=$ac_cv_prog_CC
2649 if test -n "$CC"; then
2650 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2651 $as_echo "$CC" >&6; }
2652 else
2653 { $as_echo "$as_me:$LINENO: result: no" >&5
2654 $as_echo "no" >&6; }
2660 if test -z "$CC"; then
2661 # Extract the first word of "cc", so it can be a program name with args.
2662 set dummy cc; ac_word=$2
2663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if test "${ac_cv_prog_CC+set}" = set; then
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2670 else
2671 ac_prog_rejected=no
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2680 ac_prog_rejected=yes
2681 continue
2683 ac_cv_prog_CC="cc"
2684 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 break 2
2687 done
2688 done
2689 IFS=$as_save_IFS
2691 if test $ac_prog_rejected = yes; then
2692 # We found a bogon in the path, so make sure we never use it.
2693 set dummy $ac_cv_prog_CC
2694 shift
2695 if test $# != 0; then
2696 # We chose a different compiler from the bogus one.
2697 # However, it has the same basename, so the bogon will be chosen
2698 # first if we set CC to just the basename; use the full file name.
2699 shift
2700 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2705 CC=$ac_cv_prog_CC
2706 if test -n "$CC"; then
2707 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2708 $as_echo "$CC" >&6; }
2709 else
2710 { $as_echo "$as_me:$LINENO: result: no" >&5
2711 $as_echo "no" >&6; }
2716 if test -z "$CC"; then
2717 if test -n "$ac_tool_prefix"; then
2718 for ac_prog in cl.exe
2720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2721 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 $as_echo_n "(cached) " >&6
2726 else
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2741 done
2742 done
2743 IFS=$as_save_IFS
2747 CC=$ac_cv_prog_CC
2748 if test -n "$CC"; then
2749 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2750 $as_echo "$CC" >&6; }
2751 else
2752 { $as_echo "$as_me:$LINENO: result: no" >&5
2753 $as_echo "no" >&6; }
2757 test -n "$CC" && break
2758 done
2760 if test -z "$CC"; then
2761 ac_ct_CC=$CC
2762 for ac_prog in cl.exe
2764 # Extract the first word of "$ac_prog", so it can be a program name with args.
2765 set dummy $ac_prog; ac_word=$2
2766 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test -n "$ac_ct_CC"; then
2772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_ac_ct_CC="$ac_prog"
2782 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2785 done
2786 done
2787 IFS=$as_save_IFS
2791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2792 if test -n "$ac_ct_CC"; then
2793 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2794 $as_echo "$ac_ct_CC" >&6; }
2795 else
2796 { $as_echo "$as_me:$LINENO: result: no" >&5
2797 $as_echo "no" >&6; }
2801 test -n "$ac_ct_CC" && break
2802 done
2804 if test "x$ac_ct_CC" = x; then
2805 CC=""
2806 else
2807 case $cross_compiling:$ac_tool_warned in
2808 yes:)
2809 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2811 ac_tool_warned=yes ;;
2812 esac
2813 CC=$ac_ct_CC
2820 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2822 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2823 See \`config.log' for more details." >&5
2824 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2825 See \`config.log' for more details." >&2;}
2826 { (exit 1); exit 1; }; }; }
2828 # Provide some information about the compiler.
2829 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2830 set X $ac_compile
2831 ac_compiler=$2
2832 { (ac_try="$ac_compiler --version >&5"
2833 case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836 esac
2837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2838 $as_echo "$ac_try_echo") >&5
2839 (eval "$ac_compiler --version >&5") 2>&5
2840 ac_status=$?
2841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }
2843 { (ac_try="$ac_compiler -v >&5"
2844 case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847 esac
2848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2849 $as_echo "$ac_try_echo") >&5
2850 (eval "$ac_compiler -v >&5") 2>&5
2851 ac_status=$?
2852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }
2854 { (ac_try="$ac_compiler -V >&5"
2855 case "(($ac_try" in
2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2858 esac
2859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2860 $as_echo "$ac_try_echo") >&5
2861 (eval "$ac_compiler -V >&5") 2>&5
2862 ac_status=$?
2863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }
2866 cat >conftest.$ac_ext <<_ACEOF
2867 /* confdefs.h. */
2868 _ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2874 main ()
2878 return 0;
2880 _ACEOF
2881 ac_clean_files_save=$ac_clean_files
2882 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2883 # Try to create an executable without -o first, disregard a.out.
2884 # It will help us diagnose broken compilers, and finding out an intuition
2885 # of exeext.
2886 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2887 $as_echo_n "checking for C compiler default output file name... " >&6; }
2888 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2890 # The possible output files:
2891 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2893 ac_rmfiles=
2894 for ac_file in $ac_files
2896 case $ac_file in
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2898 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2899 esac
2900 done
2901 rm -f $ac_rmfiles
2903 if { (ac_try="$ac_link_default"
2904 case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907 esac
2908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2909 $as_echo "$ac_try_echo") >&5
2910 (eval "$ac_link_default") 2>&5
2911 ac_status=$?
2912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; then
2914 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2915 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2916 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2917 # so that the user can short-circuit this test for compilers unknown to
2918 # Autoconf.
2919 for ac_file in $ac_files ''
2921 test -f "$ac_file" || continue
2922 case $ac_file in
2923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2925 [ab].out )
2926 # We found the default executable, but exeext='' is most
2927 # certainly right.
2928 break;;
2929 *.* )
2930 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2931 then :; else
2932 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2934 # We set ac_cv_exeext here because the later test for it is not
2935 # safe: cross compilers may not add the suffix if given an `-o'
2936 # argument, so we may need to know it at that point already.
2937 # Even if this section looks crufty: it has the advantage of
2938 # actually working.
2939 break;;
2941 break;;
2942 esac
2943 done
2944 test "$ac_cv_exeext" = no && ac_cv_exeext=
2946 else
2947 ac_file=''
2950 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2951 $as_echo "$ac_file" >&6; }
2952 if test -z "$ac_file"; then
2953 $as_echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2956 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2959 See \`config.log' for more details." >&5
2960 $as_echo "$as_me: error: C compiler cannot create executables
2961 See \`config.log' for more details." >&2;}
2962 { (exit 77); exit 77; }; }; }
2965 ac_exeext=$ac_cv_exeext
2967 # Check that the compiler produces executables we can run. If not, either
2968 # the compiler is broken, or we cross compile.
2969 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2970 $as_echo_n "checking whether the C compiler works... " >&6; }
2971 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2972 # If not cross compiling, check that we can run a simple program.
2973 if test "$cross_compiling" != yes; then
2974 if { ac_try='./$ac_file'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978 esac
2979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2980 $as_echo "$ac_try_echo") >&5
2981 (eval "$ac_try") 2>&5
2982 ac_status=$?
2983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2985 cross_compiling=no
2986 else
2987 if test "$cross_compiling" = maybe; then
2988 cross_compiling=yes
2989 else
2990 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2993 If you meant to cross compile, use \`--host'.
2994 See \`config.log' for more details." >&5
2995 $as_echo "$as_me: error: cannot run C compiled programs.
2996 If you meant to cross compile, use \`--host'.
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }; }
3002 { $as_echo "$as_me:$LINENO: result: yes" >&5
3003 $as_echo "yes" >&6; }
3005 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3006 ac_clean_files=$ac_clean_files_save
3007 # Check that the compiler produces executables we can run. If not, either
3008 # the compiler is broken, or we cross compile.
3009 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3010 $as_echo_n "checking whether we are cross compiling... " >&6; }
3011 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3012 $as_echo "$cross_compiling" >&6; }
3014 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3015 $as_echo_n "checking for suffix of executables... " >&6; }
3016 if { (ac_try="$ac_link"
3017 case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020 esac
3021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3022 $as_echo "$ac_try_echo") >&5
3023 (eval "$ac_link") 2>&5
3024 ac_status=$?
3025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; then
3027 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3028 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3029 # work properly (i.e., refer to `conftest.exe'), while it won't with
3030 # `rm'.
3031 for ac_file in conftest.exe conftest conftest.*; do
3032 test -f "$ac_file" || continue
3033 case $ac_file in
3034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3035 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3036 break;;
3037 * ) break;;
3038 esac
3039 done
3040 else
3041 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3044 See \`config.log' for more details." >&5
3045 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3046 See \`config.log' for more details." >&2;}
3047 { (exit 1); exit 1; }; }; }
3050 rm -f conftest$ac_cv_exeext
3051 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3052 $as_echo "$ac_cv_exeext" >&6; }
3054 rm -f conftest.$ac_ext
3055 EXEEXT=$ac_cv_exeext
3056 ac_exeext=$EXEEXT
3057 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3058 $as_echo_n "checking for suffix of object files... " >&6; }
3059 if test "${ac_cv_objext+set}" = set; then
3060 $as_echo_n "(cached) " >&6
3061 else
3062 cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h. */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3070 main ()
3074 return 0;
3076 _ACEOF
3077 rm -f conftest.o conftest.obj
3078 if { (ac_try="$ac_compile"
3079 case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082 esac
3083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3084 $as_echo "$ac_try_echo") >&5
3085 (eval "$ac_compile") 2>&5
3086 ac_status=$?
3087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; then
3089 for ac_file in conftest.o conftest.obj conftest.*; do
3090 test -f "$ac_file" || continue;
3091 case $ac_file in
3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3093 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3094 break;;
3095 esac
3096 done
3097 else
3098 $as_echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3101 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3104 See \`config.log' for more details." >&5
3105 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3106 See \`config.log' for more details." >&2;}
3107 { (exit 1); exit 1; }; }; }
3110 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3112 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3113 $as_echo "$ac_cv_objext" >&6; }
3114 OBJEXT=$ac_cv_objext
3115 ac_objext=$OBJEXT
3116 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3117 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3118 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3119 $as_echo_n "(cached) " >&6
3120 else
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h. */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3129 main ()
3131 #ifndef __GNUC__
3132 choke me
3133 #endif
3136 return 0;
3138 _ACEOF
3139 rm -f conftest.$ac_objext
3140 if { (ac_try="$ac_compile"
3141 case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144 esac
3145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3146 $as_echo "$ac_try_echo") >&5
3147 (eval "$ac_compile") 2>conftest.er1
3148 ac_status=$?
3149 grep -v '^ *+' conftest.er1 >conftest.err
3150 rm -f conftest.er1
3151 cat conftest.err >&5
3152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } && {
3154 test -z "$ac_c_werror_flag" ||
3155 test ! -s conftest.err
3156 } && test -s conftest.$ac_objext; then
3157 ac_compiler_gnu=yes
3158 else
3159 $as_echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 ac_compiler_gnu=no
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3169 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3170 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3171 if test $ac_compiler_gnu = yes; then
3172 GCC=yes
3173 else
3174 GCC=
3176 ac_test_CFLAGS=${CFLAGS+set}
3177 ac_save_CFLAGS=$CFLAGS
3178 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3179 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3180 if test "${ac_cv_prog_cc_g+set}" = set; then
3181 $as_echo_n "(cached) " >&6
3182 else
3183 ac_save_c_werror_flag=$ac_c_werror_flag
3184 ac_c_werror_flag=yes
3185 ac_cv_prog_cc_g=no
3186 CFLAGS="-g"
3187 cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h. */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3195 main ()
3199 return 0;
3201 _ACEOF
3202 rm -f conftest.$ac_objext
3203 if { (ac_try="$ac_compile"
3204 case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3209 $as_echo "$ac_try_echo") >&5
3210 (eval "$ac_compile") 2>conftest.er1
3211 ac_status=$?
3212 grep -v '^ *+' conftest.er1 >conftest.err
3213 rm -f conftest.er1
3214 cat conftest.err >&5
3215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } && {
3217 test -z "$ac_c_werror_flag" ||
3218 test ! -s conftest.err
3219 } && test -s conftest.$ac_objext; then
3220 ac_cv_prog_cc_g=yes
3221 else
3222 $as_echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 CFLAGS=""
3226 cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h. */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3234 main ()
3238 return 0;
3240 _ACEOF
3241 rm -f conftest.$ac_objext
3242 if { (ac_try="$ac_compile"
3243 case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3248 $as_echo "$ac_try_echo") >&5
3249 (eval "$ac_compile") 2>conftest.er1
3250 ac_status=$?
3251 grep -v '^ *+' conftest.er1 >conftest.err
3252 rm -f conftest.er1
3253 cat conftest.err >&5
3254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } && {
3256 test -z "$ac_c_werror_flag" ||
3257 test ! -s conftest.err
3258 } && test -s conftest.$ac_objext; then
3260 else
3261 $as_echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 ac_c_werror_flag=$ac_save_c_werror_flag
3265 CFLAGS="-g"
3266 cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h. */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3274 main ()
3278 return 0;
3280 _ACEOF
3281 rm -f conftest.$ac_objext
3282 if { (ac_try="$ac_compile"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3288 $as_echo "$ac_try_echo") >&5
3289 (eval "$ac_compile") 2>conftest.er1
3290 ac_status=$?
3291 grep -v '^ *+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } && {
3296 test -z "$ac_c_werror_flag" ||
3297 test ! -s conftest.err
3298 } && test -s conftest.$ac_objext; then
3299 ac_cv_prog_cc_g=yes
3300 else
3301 $as_echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 ac_c_werror_flag=$ac_save_c_werror_flag
3316 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3317 $as_echo "$ac_cv_prog_cc_g" >&6; }
3318 if test "$ac_test_CFLAGS" = set; then
3319 CFLAGS=$ac_save_CFLAGS
3320 elif test $ac_cv_prog_cc_g = yes; then
3321 if test "$GCC" = yes; then
3322 CFLAGS="-g -O2"
3323 else
3324 CFLAGS="-g"
3326 else
3327 if test "$GCC" = yes; then
3328 CFLAGS="-O2"
3329 else
3330 CFLAGS=
3333 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3334 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3335 if test "${ac_cv_prog_cc_c89+set}" = set; then
3336 $as_echo_n "(cached) " >&6
3337 else
3338 ac_cv_prog_cc_c89=no
3339 ac_save_CC=$CC
3340 cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h. */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3346 #include <stdarg.h>
3347 #include <stdio.h>
3348 #include <sys/types.h>
3349 #include <sys/stat.h>
3350 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3351 struct buf { int x; };
3352 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3353 static char *e (p, i)
3354 char **p;
3355 int i;
3357 return p[i];
3359 static char *f (char * (*g) (char **, int), char **p, ...)
3361 char *s;
3362 va_list v;
3363 va_start (v,p);
3364 s = g (p, va_arg (v,int));
3365 va_end (v);
3366 return s;
3369 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3370 function prototypes and stuff, but not '\xHH' hex character constants.
3371 These don't provoke an error unfortunately, instead are silently treated
3372 as 'x'. The following induces an error, until -std is added to get
3373 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3374 array size at least. It's necessary to write '\x00'==0 to get something
3375 that's true only with -std. */
3376 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3378 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3379 inside strings and character constants. */
3380 #define FOO(x) 'x'
3381 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3383 int test (int i, double x);
3384 struct s1 {int (*f) (int a);};
3385 struct s2 {int (*f) (double a);};
3386 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3387 int argc;
3388 char **argv;
3390 main ()
3392 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3394 return 0;
3396 _ACEOF
3397 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3398 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3400 CC="$ac_save_CC $ac_arg"
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3403 case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408 $as_echo "$ac_try_echo") >&5
3409 (eval "$ac_compile") 2>conftest.er1
3410 ac_status=$?
3411 grep -v '^ *+' conftest.er1 >conftest.err
3412 rm -f conftest.er1
3413 cat conftest.err >&5
3414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } && {
3416 test -z "$ac_c_werror_flag" ||
3417 test ! -s conftest.err
3418 } && test -s conftest.$ac_objext; then
3419 ac_cv_prog_cc_c89=$ac_arg
3420 else
3421 $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3427 rm -f core conftest.err conftest.$ac_objext
3428 test "x$ac_cv_prog_cc_c89" != "xno" && break
3429 done
3430 rm -f conftest.$ac_ext
3431 CC=$ac_save_CC
3434 # AC_CACHE_VAL
3435 case "x$ac_cv_prog_cc_c89" in
3437 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3438 $as_echo "none needed" >&6; } ;;
3439 xno)
3440 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3441 $as_echo "unsupported" >&6; } ;;
3443 CC="$CC $ac_cv_prog_cc_c89"
3444 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3445 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3446 esac
3449 ac_ext=c
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454 DEPDIR="${am__leading_dot}deps"
3456 ac_config_commands="$ac_config_commands depfiles"
3459 am_make=${MAKE-make}
3460 cat > confinc << 'END'
3461 am__doit:
3462 @echo done
3463 .PHONY: am__doit
3465 # If we don't find an include directive, just comment out the code.
3466 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3467 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3468 am__include="#"
3469 am__quote=
3470 _am_result=none
3471 # First try GNU make style include.
3472 echo "include confinc" > confmf
3473 # We grep out `Entering directory' and `Leaving directory'
3474 # messages which can occur if `w' ends up in MAKEFLAGS.
3475 # In particular we don't look at `^make:' because GNU make might
3476 # be invoked under some other name (usually "gmake"), in which
3477 # case it prints its new name instead of `make'.
3478 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3479 am__include=include
3480 am__quote=
3481 _am_result=GNU
3483 # Now try BSD make style include.
3484 if test "$am__include" = "#"; then
3485 echo '.include "confinc"' > confmf
3486 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3487 am__include=.include
3488 am__quote="\""
3489 _am_result=BSD
3494 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3495 $as_echo "$_am_result" >&6; }
3496 rm -f confinc confmf
3498 # Check whether --enable-dependency-tracking was given.
3499 if test "${enable_dependency_tracking+set}" = set; then
3500 enableval=$enable_dependency_tracking;
3503 if test "x$enable_dependency_tracking" != xno; then
3504 am_depcomp="$ac_aux_dir/depcomp"
3505 AMDEPBACKSLASH='\'
3509 if test "x$enable_dependency_tracking" != xno; then
3510 AMDEP_TRUE=
3511 AMDEP_FALSE='#'
3512 else
3513 AMDEP_TRUE='#'
3514 AMDEP_FALSE=
3520 depcc="$CC" am_compiler_list=
3522 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3523 $as_echo_n "checking dependency style of $depcc... " >&6; }
3524 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3525 $as_echo_n "(cached) " >&6
3526 else
3527 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3528 # We make a subdir and do the tests there. Otherwise we can end up
3529 # making bogus files that we don't know about and never remove. For
3530 # instance it was reported that on HP-UX the gcc test will end up
3531 # making a dummy file named `D' -- because `-MD' means `put the output
3532 # in D'.
3533 mkdir conftest.dir
3534 # Copy depcomp to subdir because otherwise we won't find it if we're
3535 # using a relative directory.
3536 cp "$am_depcomp" conftest.dir
3537 cd conftest.dir
3538 # We will build objects and dependencies in a subdirectory because
3539 # it helps to detect inapplicable dependency modes. For instance
3540 # both Tru64's cc and ICC support -MD to output dependencies as a
3541 # side effect of compilation, but ICC will put the dependencies in
3542 # the current directory while Tru64 will put them in the object
3543 # directory.
3544 mkdir sub
3546 am_cv_CC_dependencies_compiler_type=none
3547 if test "$am_compiler_list" = ""; then
3548 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3550 for depmode in $am_compiler_list; do
3551 # Setup a source with many dependencies, because some compilers
3552 # like to wrap large dependency lists on column 80 (with \), and
3553 # we should not choose a depcomp mode which is confused by this.
3555 # We need to recreate these files for each test, as the compiler may
3556 # overwrite some of them when testing with obscure command lines.
3557 # This happens at least with the AIX C compiler.
3558 : > sub/conftest.c
3559 for i in 1 2 3 4 5 6; do
3560 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3561 : > sub/conftst$i.h
3562 done
3563 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3565 case $depmode in
3566 nosideeffect)
3567 # after this tag, mechanisms are not by side-effect, so they'll
3568 # only be used when explicitly requested
3569 if test "x$enable_dependency_tracking" = xyes; then
3570 continue
3571 else
3572 break
3575 none) break ;;
3576 esac
3577 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3578 # mode. It turns out that the SunPro C++ compiler does not properly
3579 # handle `-M -o', and we need to detect this.
3580 if depmode=$depmode \
3581 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3582 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3583 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3584 >/dev/null 2>conftest.err &&
3585 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3586 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3587 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3588 # icc doesn't choke on unknown options, it will just issue warnings
3589 # (even with -Werror). So we grep stderr for any message
3590 # that says an option was ignored.
3591 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3592 am_cv_CC_dependencies_compiler_type=$depmode
3593 break
3596 done
3598 cd ..
3599 rm -rf conftest.dir
3600 else
3601 am_cv_CC_dependencies_compiler_type=none
3605 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3606 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3607 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3612 test "x$enable_dependency_tracking" != xno \
3613 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3614 am__fastdepCC_TRUE=
3615 am__fastdepCC_FALSE='#'
3616 else
3617 am__fastdepCC_TRUE='#'
3618 am__fastdepCC_FALSE=
3622 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3623 $as_echo_n "checking whether ln -s works... " >&6; }
3624 LN_S=$as_ln_s
3625 if test "$LN_S" = "ln -s"; then
3626 { $as_echo "$as_me:$LINENO: result: yes" >&5
3627 $as_echo "yes" >&6; }
3628 else
3629 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3630 $as_echo "no, using $LN_S" >&6; }
3633 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3634 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3635 set x ${MAKE-make}
3636 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3637 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3638 $as_echo_n "(cached) " >&6
3639 else
3640 cat >conftest.make <<\_ACEOF
3641 SHELL = /bin/sh
3642 all:
3643 @echo '@@@%%%=$(MAKE)=@@@%%%'
3644 _ACEOF
3645 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3646 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3647 *@@@%%%=?*=@@@%%%*)
3648 eval ac_cv_prog_make_${ac_make}_set=yes;;
3650 eval ac_cv_prog_make_${ac_make}_set=no;;
3651 esac
3652 rm -f conftest.make
3654 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3655 { $as_echo "$as_me:$LINENO: result: yes" >&5
3656 $as_echo "yes" >&6; }
3657 SET_MAKE=
3658 else
3659 { $as_echo "$as_me:$LINENO: result: no" >&5
3660 $as_echo "no" >&6; }
3661 SET_MAKE="MAKE=${MAKE-make}"
3664 # Extract the first word of "cd", so it can be a program name with args.
3665 set dummy cd; ac_word=$2
3666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if test "${ac_cv_prog_CD+set}" = set; then
3669 $as_echo_n "(cached) " >&6
3670 else
3671 if test -n "$CD"; then
3672 ac_cv_prog_CD="$CD" # Let the user override the test.
3673 else
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_CD=""
3682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 break 2
3685 done
3686 done
3687 IFS=$as_save_IFS
3691 CD=$ac_cv_prog_CD
3692 if test -n "$CD"; then
3693 { $as_echo "$as_me:$LINENO: result: $CD" >&5
3694 $as_echo "$CD" >&6; }
3695 else
3696 { $as_echo "$as_me:$LINENO: result: no" >&5
3697 $as_echo "no" >&6; }
3701 # Find a good install program. We prefer a C program (faster),
3702 # so one script is as good as another. But avoid the broken or
3703 # incompatible versions:
3704 # SysV /etc/install, /usr/sbin/install
3705 # SunOS /usr/etc/install
3706 # IRIX /sbin/install
3707 # AIX /bin/install
3708 # AmigaOS /C/install, which installs bootblocks on floppy discs
3709 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3710 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3711 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3712 # OS/2's system install, which has a completely different semantic
3713 # ./install, which can be erroneously created by make from ./install.sh.
3714 # Reject install programs that cannot install multiple files.
3715 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3716 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3717 if test -z "$INSTALL"; then
3718 if test "${ac_cv_path_install+set}" = set; then
3719 $as_echo_n "(cached) " >&6
3720 else
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3724 IFS=$as_save_IFS
3725 test -z "$as_dir" && as_dir=.
3726 # Account for people who put trailing slashes in PATH elements.
3727 case $as_dir/ in
3728 ./ | .// | /cC/* | \
3729 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3730 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3731 /usr/ucb/* ) ;;
3733 # OSF1 and SCO ODT 3.0 have their own names for install.
3734 # Don't use installbsd from OSF since it installs stuff as root
3735 # by default.
3736 for ac_prog in ginstall scoinst install; do
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3739 if test $ac_prog = install &&
3740 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3741 # AIX install. It has an incompatible calling convention.
3743 elif test $ac_prog = install &&
3744 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3745 # program-specific install script used by HP pwplus--don't use.
3747 else
3748 rm -rf conftest.one conftest.two conftest.dir
3749 echo one > conftest.one
3750 echo two > conftest.two
3751 mkdir conftest.dir
3752 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3753 test -s conftest.one && test -s conftest.two &&
3754 test -s conftest.dir/conftest.one &&
3755 test -s conftest.dir/conftest.two
3756 then
3757 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3758 break 3
3762 done
3763 done
3765 esac
3767 done
3768 IFS=$as_save_IFS
3770 rm -rf conftest.one conftest.two conftest.dir
3773 if test "${ac_cv_path_install+set}" = set; then
3774 INSTALL=$ac_cv_path_install
3775 else
3776 # As a last resort, use the slow shell script. Don't cache a
3777 # value for INSTALL within a source directory, because that will
3778 # break other packages using the cache if that directory is
3779 # removed, or if the value is a relative name.
3780 INSTALL=$ac_install_sh
3783 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3784 $as_echo "$INSTALL" >&6; }
3786 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3787 # It thinks the first close brace ends the variable substitution.
3788 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3790 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3792 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3794 # Check whether --enable-shared was given.
3795 if test "${enable_shared+set}" = set; then
3796 enableval=$enable_shared; p=${PACKAGE-default}
3797 case $enableval in
3798 yes) enable_shared=yes ;;
3799 no) enable_shared=no ;;
3801 enable_shared=no
3802 # Look at the argument we got. We use all the common list separators.
3803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3804 for pkg in $enableval; do
3805 IFS="$lt_save_ifs"
3806 if test "X$pkg" = "X$p"; then
3807 enable_shared=yes
3809 done
3810 IFS="$lt_save_ifs"
3812 esac
3813 else
3814 enable_shared=yes
3818 # Check whether --enable-static was given.
3819 if test "${enable_static+set}" = set; then
3820 enableval=$enable_static; p=${PACKAGE-default}
3821 case $enableval in
3822 yes) enable_static=yes ;;
3823 no) enable_static=no ;;
3825 enable_static=no
3826 # Look at the argument we got. We use all the common list separators.
3827 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3828 for pkg in $enableval; do
3829 IFS="$lt_save_ifs"
3830 if test "X$pkg" = "X$p"; then
3831 enable_static=yes
3833 done
3834 IFS="$lt_save_ifs"
3836 esac
3837 else
3838 enable_static=yes
3842 # Check whether --enable-fast-install was given.
3843 if test "${enable_fast_install+set}" = set; then
3844 enableval=$enable_fast_install; p=${PACKAGE-default}
3845 case $enableval in
3846 yes) enable_fast_install=yes ;;
3847 no) enable_fast_install=no ;;
3849 enable_fast_install=no
3850 # Look at the argument we got. We use all the common list separators.
3851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3852 for pkg in $enableval; do
3853 IFS="$lt_save_ifs"
3854 if test "X$pkg" = "X$p"; then
3855 enable_fast_install=yes
3857 done
3858 IFS="$lt_save_ifs"
3860 esac
3861 else
3862 enable_fast_install=yes
3866 # Make sure we can run config.sub.
3867 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3868 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3869 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3870 { (exit 1); exit 1; }; }
3872 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3873 $as_echo_n "checking build system type... " >&6; }
3874 if test "${ac_cv_build+set}" = set; then
3875 $as_echo_n "(cached) " >&6
3876 else
3877 ac_build_alias=$build_alias
3878 test "x$ac_build_alias" = x &&
3879 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3880 test "x$ac_build_alias" = x &&
3881 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3882 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3883 { (exit 1); exit 1; }; }
3884 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3885 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3886 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3887 { (exit 1); exit 1; }; }
3890 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3891 $as_echo "$ac_cv_build" >&6; }
3892 case $ac_cv_build in
3893 *-*-*) ;;
3894 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3895 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3896 { (exit 1); exit 1; }; };;
3897 esac
3898 build=$ac_cv_build
3899 ac_save_IFS=$IFS; IFS='-'
3900 set x $ac_cv_build
3901 shift
3902 build_cpu=$1
3903 build_vendor=$2
3904 shift; shift
3905 # Remember, the first character of IFS is used to create $*,
3906 # except with old shells:
3907 build_os=$*
3908 IFS=$ac_save_IFS
3909 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3912 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3913 $as_echo_n "checking host system type... " >&6; }
3914 if test "${ac_cv_host+set}" = set; then
3915 $as_echo_n "(cached) " >&6
3916 else
3917 if test "x$host_alias" = x; then
3918 ac_cv_host=$ac_cv_build
3919 else
3920 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3921 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3922 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3923 { (exit 1); exit 1; }; }
3927 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3928 $as_echo "$ac_cv_host" >&6; }
3929 case $ac_cv_host in
3930 *-*-*) ;;
3931 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3932 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3933 { (exit 1); exit 1; }; };;
3934 esac
3935 host=$ac_cv_host
3936 ac_save_IFS=$IFS; IFS='-'
3937 set x $ac_cv_host
3938 shift
3939 host_cpu=$1
3940 host_vendor=$2
3941 shift; shift
3942 # Remember, the first character of IFS is used to create $*,
3943 # except with old shells:
3944 host_os=$*
3945 IFS=$ac_save_IFS
3946 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3949 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3950 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3951 if test "${lt_cv_path_SED+set}" = set; then
3952 $as_echo_n "(cached) " >&6
3953 else
3954 # Loop through the user's path and test for sed and gsed.
3955 # Then use that list of sed's as ones to test for truncation.
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for lt_ac_prog in sed gsed; do
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3964 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3966 done
3967 done
3968 done
3969 IFS=$as_save_IFS
3970 lt_ac_max=0
3971 lt_ac_count=0
3972 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3973 # along with /bin/sed that truncates output.
3974 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3975 test ! -f $lt_ac_sed && continue
3976 cat /dev/null > conftest.in
3977 lt_ac_count=0
3978 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3979 # Check for GNU sed and select it if it is found.
3980 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3981 lt_cv_path_SED=$lt_ac_sed
3982 break
3984 while true; do
3985 cat conftest.in conftest.in >conftest.tmp
3986 mv conftest.tmp conftest.in
3987 cp conftest.in conftest.nl
3988 echo >>conftest.nl
3989 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3990 cmp -s conftest.out conftest.nl || break
3991 # 10000 chars as input seems more than enough
3992 test $lt_ac_count -gt 10 && break
3993 lt_ac_count=`expr $lt_ac_count + 1`
3994 if test $lt_ac_count -gt $lt_ac_max; then
3995 lt_ac_max=$lt_ac_count
3996 lt_cv_path_SED=$lt_ac_sed
3998 done
3999 done
4003 SED=$lt_cv_path_SED
4005 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4006 $as_echo "$SED" >&6; }
4008 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4009 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4010 if test "${ac_cv_path_GREP+set}" = set; then
4011 $as_echo_n "(cached) " >&6
4012 else
4013 if test -z "$GREP"; then
4014 ac_path_GREP_found=false
4015 # Loop through the user's path and test for each of PROGNAME-LIST
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
4021 for ac_prog in grep ggrep; do
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4024 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4025 # Check for GNU ac_path_GREP and select it if it is found.
4026 # Check for GNU $ac_path_GREP
4027 case `"$ac_path_GREP" --version 2>&1` in
4028 *GNU*)
4029 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4031 ac_count=0
4032 $as_echo_n 0123456789 >"conftest.in"
4033 while :
4035 cat "conftest.in" "conftest.in" >"conftest.tmp"
4036 mv "conftest.tmp" "conftest.in"
4037 cp "conftest.in" "conftest.nl"
4038 $as_echo 'GREP' >> "conftest.nl"
4039 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4041 ac_count=`expr $ac_count + 1`
4042 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4043 # Best one so far, save it but keep looking for a better one
4044 ac_cv_path_GREP="$ac_path_GREP"
4045 ac_path_GREP_max=$ac_count
4047 # 10*(2^10) chars as input seems more than enough
4048 test $ac_count -gt 10 && break
4049 done
4050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4051 esac
4053 $ac_path_GREP_found && break 3
4054 done
4055 done
4056 done
4057 IFS=$as_save_IFS
4058 if test -z "$ac_cv_path_GREP"; then
4059 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4060 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4061 { (exit 1); exit 1; }; }
4063 else
4064 ac_cv_path_GREP=$GREP
4068 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4069 $as_echo "$ac_cv_path_GREP" >&6; }
4070 GREP="$ac_cv_path_GREP"
4073 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4074 $as_echo_n "checking for egrep... " >&6; }
4075 if test "${ac_cv_path_EGREP+set}" = set; then
4076 $as_echo_n "(cached) " >&6
4077 else
4078 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4079 then ac_cv_path_EGREP="$GREP -E"
4080 else
4081 if test -z "$EGREP"; then
4082 ac_path_EGREP_found=false
4083 # Loop through the user's path and test for each of PROGNAME-LIST
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4087 IFS=$as_save_IFS
4088 test -z "$as_dir" && as_dir=.
4089 for ac_prog in egrep; do
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4092 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4093 # Check for GNU ac_path_EGREP and select it if it is found.
4094 # Check for GNU $ac_path_EGREP
4095 case `"$ac_path_EGREP" --version 2>&1` in
4096 *GNU*)
4097 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4099 ac_count=0
4100 $as_echo_n 0123456789 >"conftest.in"
4101 while :
4103 cat "conftest.in" "conftest.in" >"conftest.tmp"
4104 mv "conftest.tmp" "conftest.in"
4105 cp "conftest.in" "conftest.nl"
4106 $as_echo 'EGREP' >> "conftest.nl"
4107 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4109 ac_count=`expr $ac_count + 1`
4110 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4111 # Best one so far, save it but keep looking for a better one
4112 ac_cv_path_EGREP="$ac_path_EGREP"
4113 ac_path_EGREP_max=$ac_count
4115 # 10*(2^10) chars as input seems more than enough
4116 test $ac_count -gt 10 && break
4117 done
4118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4119 esac
4121 $ac_path_EGREP_found && break 3
4122 done
4123 done
4124 done
4125 IFS=$as_save_IFS
4126 if test -z "$ac_cv_path_EGREP"; then
4127 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4128 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4129 { (exit 1); exit 1; }; }
4131 else
4132 ac_cv_path_EGREP=$EGREP
4137 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4138 $as_echo "$ac_cv_path_EGREP" >&6; }
4139 EGREP="$ac_cv_path_EGREP"
4143 # Check whether --with-gnu-ld was given.
4144 if test "${with_gnu_ld+set}" = set; then
4145 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4146 else
4147 with_gnu_ld=no
4150 ac_prog=ld
4151 if test "$GCC" = yes; then
4152 # Check if gcc -print-prog-name=ld gives a path.
4153 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4154 $as_echo_n "checking for ld used by $CC... " >&6; }
4155 case $host in
4156 *-*-mingw*)
4157 # gcc leaves a trailing carriage return which upsets mingw
4158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4161 esac
4162 case $ac_prog in
4163 # Accept absolute paths.
4164 [\\/]* | ?:[\\/]*)
4165 re_direlt='/[^/][^/]*/\.\./'
4166 # Canonicalize the pathname of ld
4167 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4168 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4169 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4170 done
4171 test -z "$LD" && LD="$ac_prog"
4174 # If it fails, then pretend we aren't using GCC.
4175 ac_prog=ld
4178 # If it is relative, then search for the first ld in PATH.
4179 with_gnu_ld=unknown
4181 esac
4182 elif test "$with_gnu_ld" = yes; then
4183 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4184 $as_echo_n "checking for GNU ld... " >&6; }
4185 else
4186 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4187 $as_echo_n "checking for non-GNU ld... " >&6; }
4189 if test "${lt_cv_path_LD+set}" = set; then
4190 $as_echo_n "(cached) " >&6
4191 else
4192 if test -z "$LD"; then
4193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4194 for ac_dir in $PATH; do
4195 IFS="$lt_save_ifs"
4196 test -z "$ac_dir" && ac_dir=.
4197 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4198 lt_cv_path_LD="$ac_dir/$ac_prog"
4199 # Check to see if the program is GNU ld. I'd rather use --version,
4200 # but apparently some variants of GNU ld only accept -v.
4201 # Break only if it was the GNU/non-GNU ld that we prefer.
4202 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4203 *GNU* | *'with BFD'*)
4204 test "$with_gnu_ld" != no && break
4207 test "$with_gnu_ld" != yes && break
4209 esac
4211 done
4212 IFS="$lt_save_ifs"
4213 else
4214 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4218 LD="$lt_cv_path_LD"
4219 if test -n "$LD"; then
4220 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4221 $as_echo "$LD" >&6; }
4222 else
4223 { $as_echo "$as_me:$LINENO: result: no" >&5
4224 $as_echo "no" >&6; }
4226 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4227 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4228 { (exit 1); exit 1; }; }
4229 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4230 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4231 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4232 $as_echo_n "(cached) " >&6
4233 else
4234 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4235 case `$LD -v 2>&1 </dev/null` in
4236 *GNU* | *'with BFD'*)
4237 lt_cv_prog_gnu_ld=yes
4240 lt_cv_prog_gnu_ld=no
4242 esac
4244 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4245 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4246 with_gnu_ld=$lt_cv_prog_gnu_ld
4249 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4250 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4251 if test "${lt_cv_ld_reload_flag+set}" = set; then
4252 $as_echo_n "(cached) " >&6
4253 else
4254 lt_cv_ld_reload_flag='-r'
4256 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4257 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4258 reload_flag=$lt_cv_ld_reload_flag
4259 case $reload_flag in
4260 "" | " "*) ;;
4261 *) reload_flag=" $reload_flag" ;;
4262 esac
4263 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4264 case $host_os in
4265 darwin*)
4266 if test "$GCC" = yes; then
4267 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4268 else
4269 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4272 esac
4274 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4275 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4276 if test "${lt_cv_path_NM+set}" = set; then
4277 $as_echo_n "(cached) " >&6
4278 else
4279 if test -n "$NM"; then
4280 # Let the user override the test.
4281 lt_cv_path_NM="$NM"
4282 else
4283 lt_nm_to_check="${ac_tool_prefix}nm"
4284 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4285 lt_nm_to_check="$lt_nm_to_check nm"
4287 for lt_tmp_nm in $lt_nm_to_check; do
4288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4289 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4290 IFS="$lt_save_ifs"
4291 test -z "$ac_dir" && ac_dir=.
4292 tmp_nm="$ac_dir/$lt_tmp_nm"
4293 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4294 # Check to see if the nm accepts a BSD-compat flag.
4295 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4296 # nm: unknown option "B" ignored
4297 # Tru64's nm complains that /dev/null is an invalid object file
4298 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4299 */dev/null* | *'Invalid file or object type'*)
4300 lt_cv_path_NM="$tmp_nm -B"
4301 break
4304 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4305 */dev/null*)
4306 lt_cv_path_NM="$tmp_nm -p"
4307 break
4310 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4311 continue # so that we can try to find one that supports BSD flags
4313 esac
4315 esac
4317 done
4318 IFS="$lt_save_ifs"
4319 done
4320 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4323 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4324 $as_echo "$lt_cv_path_NM" >&6; }
4325 NM="$lt_cv_path_NM"
4327 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4328 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4329 if test "${lt_cv_deplibs_check_method+set}" = set; then
4330 $as_echo_n "(cached) " >&6
4331 else
4332 lt_cv_file_magic_cmd='$MAGIC_CMD'
4333 lt_cv_file_magic_test_file=
4334 lt_cv_deplibs_check_method='unknown'
4335 # Need to set the preceding variable on all platforms that support
4336 # interlibrary dependencies.
4337 # 'none' -- dependencies not supported.
4338 # `unknown' -- same as none, but documents that we really don't know.
4339 # 'pass_all' -- all dependencies passed with no checks.
4340 # 'test_compile' -- check by making test program.
4341 # 'file_magic [[regex]]' -- check by looking for files in library path
4342 # which responds to the $file_magic_cmd with a given extended regex.
4343 # If you have `file' or equivalent on your system and you're not sure
4344 # whether `pass_all' will *always* work, you probably want this one.
4346 case $host_os in
4347 aix[4-9]*)
4348 lt_cv_deplibs_check_method=pass_all
4351 beos*)
4352 lt_cv_deplibs_check_method=pass_all
4355 bsdi[45]*)
4356 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4357 lt_cv_file_magic_cmd='/usr/bin/file -L'
4358 lt_cv_file_magic_test_file=/shlib/libc.so
4361 cygwin*)
4362 # func_win32_libid is a shell function defined in ltmain.sh
4363 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4364 lt_cv_file_magic_cmd='func_win32_libid'
4367 mingw* | pw32*)
4368 # Base MSYS/MinGW do not provide the 'file' command needed by
4369 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4370 # unless we find 'file', for example because we are cross-compiling.
4371 if ( file / ) >/dev/null 2>&1; then
4372 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4373 lt_cv_file_magic_cmd='func_win32_libid'
4374 else
4375 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4376 lt_cv_file_magic_cmd='$OBJDUMP -f'
4380 darwin* | rhapsody*)
4381 lt_cv_deplibs_check_method=pass_all
4384 freebsd* | dragonfly*)
4385 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4386 case $host_cpu in
4387 i*86 )
4388 # Not sure whether the presence of OpenBSD here was a mistake.
4389 # Let's accept both of them until this is cleared up.
4390 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4391 lt_cv_file_magic_cmd=/usr/bin/file
4392 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4394 esac
4395 else
4396 lt_cv_deplibs_check_method=pass_all
4400 gnu*)
4401 lt_cv_deplibs_check_method=pass_all
4404 hpux10.20* | hpux11*)
4405 lt_cv_file_magic_cmd=/usr/bin/file
4406 case $host_cpu in
4407 ia64*)
4408 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4409 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4411 hppa*64*)
4412 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]'
4413 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4416 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4417 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4419 esac
4422 interix[3-9]*)
4423 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4427 irix5* | irix6* | nonstopux*)
4428 case $LD in
4429 *-32|*"-32 ") libmagic=32-bit;;
4430 *-n32|*"-n32 ") libmagic=N32;;
4431 *-64|*"-64 ") libmagic=64-bit;;
4432 *) libmagic=never-match;;
4433 esac
4434 lt_cv_deplibs_check_method=pass_all
4437 # This must be Linux ELF.
4438 linux* | k*bsd*-gnu)
4439 lt_cv_deplibs_check_method=pass_all
4442 netbsd* | netbsdelf*-gnu)
4443 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4445 else
4446 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4450 newos6*)
4451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4452 lt_cv_file_magic_cmd=/usr/bin/file
4453 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4456 nto-qnx*)
4457 lt_cv_deplibs_check_method=unknown
4460 openbsd*)
4461 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4462 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4463 else
4464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4468 osf3* | osf4* | osf5*)
4469 lt_cv_deplibs_check_method=pass_all
4472 rdos*)
4473 lt_cv_deplibs_check_method=pass_all
4476 solaris*)
4477 lt_cv_deplibs_check_method=pass_all
4480 sysv4 | sysv4.3*)
4481 case $host_vendor in
4482 motorola)
4483 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]'
4484 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4486 ncr)
4487 lt_cv_deplibs_check_method=pass_all
4489 sequent)
4490 lt_cv_file_magic_cmd='/bin/file'
4491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4493 sni)
4494 lt_cv_file_magic_cmd='/bin/file'
4495 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4496 lt_cv_file_magic_test_file=/lib/libc.so
4498 siemens)
4499 lt_cv_deplibs_check_method=pass_all
4502 lt_cv_deplibs_check_method=pass_all
4504 esac
4507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4508 lt_cv_deplibs_check_method=pass_all
4510 esac
4513 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4514 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4515 file_magic_cmd=$lt_cv_file_magic_cmd
4516 deplibs_check_method=$lt_cv_deplibs_check_method
4517 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4522 # If no C compiler was specified, use CC.
4523 LTCC=${LTCC-"$CC"}
4525 # If no C compiler flags were specified, use CFLAGS.
4526 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4528 # Allow CC to be a program name with arguments.
4529 compiler=$CC
4532 # Check whether --enable-libtool-lock was given.
4533 if test "${enable_libtool_lock+set}" = set; then
4534 enableval=$enable_libtool_lock;
4537 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4539 # Some flags need to be propagated to the compiler or linker for good
4540 # libtool support.
4541 case $host in
4542 ia64-*-hpux*)
4543 # Find out which ABI we are using.
4544 echo 'int i;' > conftest.$ac_ext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546 (eval $ac_compile) 2>&5
4547 ac_status=$?
4548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; then
4550 case `/usr/bin/file conftest.$ac_objext` in
4551 *ELF-32*)
4552 HPUX_IA64_MODE="32"
4554 *ELF-64*)
4555 HPUX_IA64_MODE="64"
4557 esac
4559 rm -rf conftest*
4561 *-*-irix6*)
4562 # Find out which ABI we are using.
4563 echo '#line 4563 "configure"' > conftest.$ac_ext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>&5
4566 ac_status=$?
4567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; then
4569 if test "$lt_cv_prog_gnu_ld" = yes; then
4570 case `/usr/bin/file conftest.$ac_objext` in
4571 *32-bit*)
4572 LD="${LD-ld} -melf32bsmip"
4574 *N32*)
4575 LD="${LD-ld} -melf32bmipn32"
4577 *64-bit*)
4578 LD="${LD-ld} -melf64bmip"
4580 esac
4581 else
4582 case `/usr/bin/file conftest.$ac_objext` in
4583 *32-bit*)
4584 LD="${LD-ld} -32"
4586 *N32*)
4587 LD="${LD-ld} -n32"
4589 *64-bit*)
4590 LD="${LD-ld} -64"
4592 esac
4595 rm -rf conftest*
4598 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4599 s390*-*linux*|sparc*-*linux*)
4600 # Find out which ABI we are using.
4601 echo 'int i;' > conftest.$ac_ext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603 (eval $ac_compile) 2>&5
4604 ac_status=$?
4605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; then
4607 case `/usr/bin/file conftest.o` in
4608 *32-bit*)
4609 case $host in
4610 x86_64-*kfreebsd*-gnu)
4611 LD="${LD-ld} -m elf_i386_fbsd"
4613 x86_64-*linux*)
4614 LD="${LD-ld} -m elf_i386"
4616 ppc64-*linux*|powerpc64-*linux*)
4617 LD="${LD-ld} -m elf32ppclinux"
4619 s390x-*linux*)
4620 LD="${LD-ld} -m elf_s390"
4622 sparc64-*linux*)
4623 LD="${LD-ld} -m elf32_sparc"
4625 esac
4627 *64-bit*)
4628 case $host in
4629 x86_64-*kfreebsd*-gnu)
4630 LD="${LD-ld} -m elf_x86_64_fbsd"
4632 x86_64-*linux*)
4633 LD="${LD-ld} -m elf_x86_64"
4635 ppc*-*linux*|powerpc*-*linux*)
4636 LD="${LD-ld} -m elf64ppc"
4638 s390*-*linux*)
4639 LD="${LD-ld} -m elf64_s390"
4641 sparc*-*linux*)
4642 LD="${LD-ld} -m elf64_sparc"
4644 esac
4646 esac
4648 rm -rf conftest*
4651 *-*-sco3.2v5*)
4652 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4653 SAVE_CFLAGS="$CFLAGS"
4654 CFLAGS="$CFLAGS -belf"
4655 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4656 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4657 if test "${lt_cv_cc_needs_belf+set}" = set; then
4658 $as_echo_n "(cached) " >&6
4659 else
4660 ac_ext=c
4661 ac_cpp='$CPP $CPPFLAGS'
4662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4666 cat >conftest.$ac_ext <<_ACEOF
4667 /* confdefs.h. */
4668 _ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4674 main ()
4678 return 0;
4680 _ACEOF
4681 rm -f conftest.$ac_objext conftest$ac_exeext
4682 if { (ac_try="$ac_link"
4683 case "(($ac_try" in
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4686 esac
4687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4688 $as_echo "$ac_try_echo") >&5
4689 (eval "$ac_link") 2>conftest.er1
4690 ac_status=$?
4691 grep -v '^ *+' conftest.er1 >conftest.err
4692 rm -f conftest.er1
4693 cat conftest.err >&5
4694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } && {
4696 test -z "$ac_c_werror_flag" ||
4697 test ! -s conftest.err
4698 } && test -s conftest$ac_exeext && {
4699 test "$cross_compiling" = yes ||
4700 $as_test_x conftest$ac_exeext
4701 }; then
4702 lt_cv_cc_needs_belf=yes
4703 else
4704 $as_echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4707 lt_cv_cc_needs_belf=no
4710 rm -rf conftest.dSYM
4711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4712 conftest$ac_exeext conftest.$ac_ext
4713 ac_ext=c
4714 ac_cpp='$CPP $CPPFLAGS'
4715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4720 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4721 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4722 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4723 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4724 CFLAGS="$SAVE_CFLAGS"
4727 sparc*-*solaris*)
4728 # Find out which ABI we are using.
4729 echo 'int i;' > conftest.$ac_ext
4730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731 (eval $ac_compile) 2>&5
4732 ac_status=$?
4733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; then
4735 case `/usr/bin/file conftest.o` in
4736 *64-bit*)
4737 case $lt_cv_prog_gnu_ld in
4738 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4740 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4741 LD="${LD-ld} -64"
4744 esac
4746 esac
4748 rm -rf conftest*
4752 esac
4754 need_locks="$enable_libtool_lock"
4757 ac_ext=c
4758 ac_cpp='$CPP $CPPFLAGS'
4759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4762 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4763 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4764 # On Suns, sometimes $CPP names a directory.
4765 if test -n "$CPP" && test -d "$CPP"; then
4766 CPP=
4768 if test -z "$CPP"; then
4769 if test "${ac_cv_prog_CPP+set}" = set; then
4770 $as_echo_n "(cached) " >&6
4771 else
4772 # Double quotes because CPP needs to be expanded
4773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4775 ac_preproc_ok=false
4776 for ac_c_preproc_warn_flag in '' yes
4778 # Use a header file that comes with gcc, so configuring glibc
4779 # with a fresh cross-compiler works.
4780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4781 # <limits.h> exists even on freestanding compilers.
4782 # On the NeXT, cc -E runs the code through the compiler's parser,
4783 # not just through cpp. "Syntax error" is here to catch this case.
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #ifdef __STDC__
4791 # include <limits.h>
4792 #else
4793 # include <assert.h>
4794 #endif
4795 Syntax error
4796 _ACEOF
4797 if { (ac_try="$ac_cpp conftest.$ac_ext"
4798 case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4801 esac
4802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4803 $as_echo "$ac_try_echo") >&5
4804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4805 ac_status=$?
4806 grep -v '^ *+' conftest.er1 >conftest.err
4807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } >/dev/null && {
4811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4812 test ! -s conftest.err
4813 }; then
4815 else
4816 $as_echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4819 # Broken: fails on valid input.
4820 continue
4823 rm -f conftest.err conftest.$ac_ext
4825 # OK, works on sane cases. Now check whether nonexistent headers
4826 # can be detected and how.
4827 cat >conftest.$ac_ext <<_ACEOF
4828 /* confdefs.h. */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 #include <ac_nonexistent.h>
4834 _ACEOF
4835 if { (ac_try="$ac_cpp conftest.$ac_ext"
4836 case "(($ac_try" in
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4839 esac
4840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4841 $as_echo "$ac_try_echo") >&5
4842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4843 ac_status=$?
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
4847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } >/dev/null && {
4849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4850 test ! -s conftest.err
4851 }; then
4852 # Broken: success on invalid input.
4853 continue
4854 else
4855 $as_echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4858 # Passes both tests.
4859 ac_preproc_ok=:
4860 break
4863 rm -f conftest.err conftest.$ac_ext
4865 done
4866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4867 rm -f conftest.err conftest.$ac_ext
4868 if $ac_preproc_ok; then
4869 break
4872 done
4873 ac_cv_prog_CPP=$CPP
4876 CPP=$ac_cv_prog_CPP
4877 else
4878 ac_cv_prog_CPP=$CPP
4880 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4881 $as_echo "$CPP" >&6; }
4882 ac_preproc_ok=false
4883 for ac_c_preproc_warn_flag in '' yes
4885 # Use a header file that comes with gcc, so configuring glibc
4886 # with a fresh cross-compiler works.
4887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4888 # <limits.h> exists even on freestanding compilers.
4889 # On the NeXT, cc -E runs the code through the compiler's parser,
4890 # not just through cpp. "Syntax error" is here to catch this case.
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h. */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 #ifdef __STDC__
4898 # include <limits.h>
4899 #else
4900 # include <assert.h>
4901 #endif
4902 Syntax error
4903 _ACEOF
4904 if { (ac_try="$ac_cpp conftest.$ac_ext"
4905 case "(($ac_try" in
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4908 esac
4909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4910 $as_echo "$ac_try_echo") >&5
4911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4912 ac_status=$?
4913 grep -v '^ *+' conftest.er1 >conftest.err
4914 rm -f conftest.er1
4915 cat conftest.err >&5
4916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } >/dev/null && {
4918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4919 test ! -s conftest.err
4920 }; then
4922 else
4923 $as_echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.$ac_ext >&5
4926 # Broken: fails on valid input.
4927 continue
4930 rm -f conftest.err conftest.$ac_ext
4932 # OK, works on sane cases. Now check whether nonexistent headers
4933 # can be detected and how.
4934 cat >conftest.$ac_ext <<_ACEOF
4935 /* confdefs.h. */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4940 #include <ac_nonexistent.h>
4941 _ACEOF
4942 if { (ac_try="$ac_cpp conftest.$ac_ext"
4943 case "(($ac_try" in
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4946 esac
4947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4948 $as_echo "$ac_try_echo") >&5
4949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4950 ac_status=$?
4951 grep -v '^ *+' conftest.er1 >conftest.err
4952 rm -f conftest.er1
4953 cat conftest.err >&5
4954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } >/dev/null && {
4956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4957 test ! -s conftest.err
4958 }; then
4959 # Broken: success on invalid input.
4960 continue
4961 else
4962 $as_echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4965 # Passes both tests.
4966 ac_preproc_ok=:
4967 break
4970 rm -f conftest.err conftest.$ac_ext
4972 done
4973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4974 rm -f conftest.err conftest.$ac_ext
4975 if $ac_preproc_ok; then
4977 else
4978 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4980 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4981 See \`config.log' for more details." >&5
4982 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4983 See \`config.log' for more details." >&2;}
4984 { (exit 1); exit 1; }; }; }
4987 ac_ext=c
4988 ac_cpp='$CPP $CPPFLAGS'
4989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4994 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4995 $as_echo_n "checking for ANSI C header files... " >&6; }
4996 if test "${ac_cv_header_stdc+set}" = set; then
4997 $as_echo_n "(cached) " >&6
4998 else
4999 cat >conftest.$ac_ext <<_ACEOF
5000 /* confdefs.h. */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5005 #include <stdlib.h>
5006 #include <stdarg.h>
5007 #include <string.h>
5008 #include <float.h>
5011 main ()
5015 return 0;
5017 _ACEOF
5018 rm -f conftest.$ac_objext
5019 if { (ac_try="$ac_compile"
5020 case "(($ac_try" in
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5023 esac
5024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5025 $as_echo "$ac_try_echo") >&5
5026 (eval "$ac_compile") 2>conftest.er1
5027 ac_status=$?
5028 grep -v '^ *+' conftest.er1 >conftest.err
5029 rm -f conftest.er1
5030 cat conftest.err >&5
5031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } && {
5033 test -z "$ac_c_werror_flag" ||
5034 test ! -s conftest.err
5035 } && test -s conftest.$ac_objext; then
5036 ac_cv_header_stdc=yes
5037 else
5038 $as_echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5041 ac_cv_header_stdc=no
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046 if test $ac_cv_header_stdc = yes; then
5047 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5048 cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h. */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5054 #include <string.h>
5056 _ACEOF
5057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5058 $EGREP "memchr" >/dev/null 2>&1; then
5060 else
5061 ac_cv_header_stdc=no
5063 rm -f conftest*
5067 if test $ac_cv_header_stdc = yes; then
5068 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5069 cat >conftest.$ac_ext <<_ACEOF
5070 /* confdefs.h. */
5071 _ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5075 #include <stdlib.h>
5077 _ACEOF
5078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5079 $EGREP "free" >/dev/null 2>&1; then
5081 else
5082 ac_cv_header_stdc=no
5084 rm -f conftest*
5088 if test $ac_cv_header_stdc = yes; then
5089 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5090 if test "$cross_compiling" = yes; then
5092 else
5093 cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h. */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5099 #include <ctype.h>
5100 #include <stdlib.h>
5101 #if ((' ' & 0x0FF) == 0x020)
5102 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5103 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5104 #else
5105 # define ISLOWER(c) \
5106 (('a' <= (c) && (c) <= 'i') \
5107 || ('j' <= (c) && (c) <= 'r') \
5108 || ('s' <= (c) && (c) <= 'z'))
5109 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5110 #endif
5112 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5114 main ()
5116 int i;
5117 for (i = 0; i < 256; i++)
5118 if (XOR (islower (i), ISLOWER (i))
5119 || toupper (i) != TOUPPER (i))
5120 return 2;
5121 return 0;
5123 _ACEOF
5124 rm -f conftest$ac_exeext
5125 if { (ac_try="$ac_link"
5126 case "(($ac_try" in
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5129 esac
5130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5131 $as_echo "$ac_try_echo") >&5
5132 (eval "$ac_link") 2>&5
5133 ac_status=$?
5134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5136 { (case "(($ac_try" in
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5139 esac
5140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5141 $as_echo "$ac_try_echo") >&5
5142 (eval "$ac_try") 2>&5
5143 ac_status=$?
5144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5147 else
5148 $as_echo "$as_me: program exited with status $ac_status" >&5
5149 $as_echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5152 ( exit $ac_status )
5153 ac_cv_header_stdc=no
5155 rm -rf conftest.dSYM
5156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5162 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5163 $as_echo "$ac_cv_header_stdc" >&6; }
5164 if test $ac_cv_header_stdc = yes; then
5166 cat >>confdefs.h <<\_ACEOF
5167 #define STDC_HEADERS 1
5168 _ACEOF
5172 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5182 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5183 inttypes.h stdint.h unistd.h
5185 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5186 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5187 $as_echo_n "checking for $ac_header... " >&6; }
5188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5189 $as_echo_n "(cached) " >&6
5190 else
5191 cat >conftest.$ac_ext <<_ACEOF
5192 /* confdefs.h. */
5193 _ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h. */
5197 $ac_includes_default
5199 #include <$ac_header>
5200 _ACEOF
5201 rm -f conftest.$ac_objext
5202 if { (ac_try="$ac_compile"
5203 case "(($ac_try" in
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5206 esac
5207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5208 $as_echo "$ac_try_echo") >&5
5209 (eval "$ac_compile") 2>conftest.er1
5210 ac_status=$?
5211 grep -v '^ *+' conftest.er1 >conftest.err
5212 rm -f conftest.er1
5213 cat conftest.err >&5
5214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } && {
5216 test -z "$ac_c_werror_flag" ||
5217 test ! -s conftest.err
5218 } && test -s conftest.$ac_objext; then
5219 eval "$as_ac_Header=yes"
5220 else
5221 $as_echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5224 eval "$as_ac_Header=no"
5227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229 ac_res=`eval 'as_val=${'$as_ac_Header'}
5230 $as_echo "$as_val"'`
5231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5232 $as_echo "$ac_res" >&6; }
5233 as_val=`eval 'as_val=${'$as_ac_Header'}
5234 $as_echo "$as_val"'`
5235 if test "x$as_val" = x""yes; then
5236 cat >>confdefs.h <<_ACEOF
5237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5238 _ACEOF
5242 done
5246 for ac_header in dlfcn.h
5248 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5251 $as_echo_n "checking for $ac_header... " >&6; }
5252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5253 $as_echo_n "(cached) " >&6
5255 ac_res=`eval 'as_val=${'$as_ac_Header'}
5256 $as_echo "$as_val"'`
5257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5258 $as_echo "$ac_res" >&6; }
5259 else
5260 # Is the header compilable?
5261 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5262 $as_echo_n "checking $ac_header usability... " >&6; }
5263 cat >conftest.$ac_ext <<_ACEOF
5264 /* confdefs.h. */
5265 _ACEOF
5266 cat confdefs.h >>conftest.$ac_ext
5267 cat >>conftest.$ac_ext <<_ACEOF
5268 /* end confdefs.h. */
5269 $ac_includes_default
5270 #include <$ac_header>
5271 _ACEOF
5272 rm -f conftest.$ac_objext
5273 if { (ac_try="$ac_compile"
5274 case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5277 esac
5278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5279 $as_echo "$ac_try_echo") >&5
5280 (eval "$ac_compile") 2>conftest.er1
5281 ac_status=$?
5282 grep -v '^ *+' conftest.er1 >conftest.err
5283 rm -f conftest.er1
5284 cat conftest.err >&5
5285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } && {
5287 test -z "$ac_c_werror_flag" ||
5288 test ! -s conftest.err
5289 } && test -s conftest.$ac_objext; then
5290 ac_header_compiler=yes
5291 else
5292 $as_echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5295 ac_header_compiler=no
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5300 $as_echo "$ac_header_compiler" >&6; }
5302 # Is the header present?
5303 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5304 $as_echo_n "checking $ac_header presence... " >&6; }
5305 cat >conftest.$ac_ext <<_ACEOF
5306 /* confdefs.h. */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311 #include <$ac_header>
5312 _ACEOF
5313 if { (ac_try="$ac_cpp conftest.$ac_ext"
5314 case "(($ac_try" in
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5317 esac
5318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5319 $as_echo "$ac_try_echo") >&5
5320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5321 ac_status=$?
5322 grep -v '^ *+' conftest.er1 >conftest.err
5323 rm -f conftest.er1
5324 cat conftest.err >&5
5325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } >/dev/null && {
5327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5328 test ! -s conftest.err
5329 }; then
5330 ac_header_preproc=yes
5331 else
5332 $as_echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 ac_header_preproc=no
5338 rm -f conftest.err conftest.$ac_ext
5339 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5340 $as_echo "$ac_header_preproc" >&6; }
5342 # So? What about this header?
5343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5344 yes:no: )
5345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5346 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5348 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5349 ac_header_preproc=yes
5351 no:yes:* )
5352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5353 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5355 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5357 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5359 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5361 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5363 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5366 esac
5367 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5368 $as_echo_n "checking for $ac_header... " >&6; }
5369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5370 $as_echo_n "(cached) " >&6
5371 else
5372 eval "$as_ac_Header=\$ac_header_preproc"
5374 ac_res=`eval 'as_val=${'$as_ac_Header'}
5375 $as_echo "$as_val"'`
5376 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5377 $as_echo "$ac_res" >&6; }
5380 as_val=`eval 'as_val=${'$as_ac_Header'}
5381 $as_echo "$as_val"'`
5382 if test "x$as_val" = x""yes; then
5383 cat >>confdefs.h <<_ACEOF
5384 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5385 _ACEOF
5389 done
5391 ac_ext=cpp
5392 ac_cpp='$CXXCPP $CPPFLAGS'
5393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5396 if test -z "$CXX"; then
5397 if test -n "$CCC"; then
5398 CXX=$CCC
5399 else
5400 if test -n "$ac_tool_prefix"; then
5401 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if test "${ac_cv_prog_CXX+set}" = set; then
5408 $as_echo_n "(cached) " >&6
5409 else
5410 if test -n "$CXX"; then
5411 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5412 else
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5416 IFS=$as_save_IFS
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5420 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 break 2
5424 done
5425 done
5426 IFS=$as_save_IFS
5430 CXX=$ac_cv_prog_CXX
5431 if test -n "$CXX"; then
5432 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5433 $as_echo "$CXX" >&6; }
5434 else
5435 { $as_echo "$as_me:$LINENO: result: no" >&5
5436 $as_echo "no" >&6; }
5440 test -n "$CXX" && break
5441 done
5443 if test -z "$CXX"; then
5444 ac_ct_CXX=$CXX
5445 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5447 # Extract the first word of "$ac_prog", so it can be a program name with args.
5448 set dummy $ac_prog; ac_word=$2
5449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$ac_ct_CXX"; then
5455 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_ac_ct_CXX="$ac_prog"
5465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5468 done
5469 done
5470 IFS=$as_save_IFS
5474 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5475 if test -n "$ac_ct_CXX"; then
5476 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5477 $as_echo "$ac_ct_CXX" >&6; }
5478 else
5479 { $as_echo "$as_me:$LINENO: result: no" >&5
5480 $as_echo "no" >&6; }
5484 test -n "$ac_ct_CXX" && break
5485 done
5487 if test "x$ac_ct_CXX" = x; then
5488 CXX="g++"
5489 else
5490 case $cross_compiling:$ac_tool_warned in
5491 yes:)
5492 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5494 ac_tool_warned=yes ;;
5495 esac
5496 CXX=$ac_ct_CXX
5502 # Provide some information about the compiler.
5503 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5504 set X $ac_compile
5505 ac_compiler=$2
5506 { (ac_try="$ac_compiler --version >&5"
5507 case "(($ac_try" in
5508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509 *) ac_try_echo=$ac_try;;
5510 esac
5511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5512 $as_echo "$ac_try_echo") >&5
5513 (eval "$ac_compiler --version >&5") 2>&5
5514 ac_status=$?
5515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }
5517 { (ac_try="$ac_compiler -v >&5"
5518 case "(($ac_try" in
5519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520 *) ac_try_echo=$ac_try;;
5521 esac
5522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5523 $as_echo "$ac_try_echo") >&5
5524 (eval "$ac_compiler -v >&5") 2>&5
5525 ac_status=$?
5526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }
5528 { (ac_try="$ac_compiler -V >&5"
5529 case "(($ac_try" in
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5532 esac
5533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5534 $as_echo "$ac_try_echo") >&5
5535 (eval "$ac_compiler -V >&5") 2>&5
5536 ac_status=$?
5537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }
5540 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5541 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5542 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5543 $as_echo_n "(cached) " >&6
5544 else
5545 cat >conftest.$ac_ext <<_ACEOF
5546 /* confdefs.h. */
5547 _ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5553 main ()
5555 #ifndef __GNUC__
5556 choke me
5557 #endif
5560 return 0;
5562 _ACEOF
5563 rm -f conftest.$ac_objext
5564 if { (ac_try="$ac_compile"
5565 case "(($ac_try" in
5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567 *) ac_try_echo=$ac_try;;
5568 esac
5569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5570 $as_echo "$ac_try_echo") >&5
5571 (eval "$ac_compile") 2>conftest.er1
5572 ac_status=$?
5573 grep -v '^ *+' conftest.er1 >conftest.err
5574 rm -f conftest.er1
5575 cat conftest.err >&5
5576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } && {
5578 test -z "$ac_cxx_werror_flag" ||
5579 test ! -s conftest.err
5580 } && test -s conftest.$ac_objext; then
5581 ac_compiler_gnu=yes
5582 else
5583 $as_echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5586 ac_compiler_gnu=no
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5593 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5594 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5595 if test $ac_compiler_gnu = yes; then
5596 GXX=yes
5597 else
5598 GXX=
5600 ac_test_CXXFLAGS=${CXXFLAGS+set}
5601 ac_save_CXXFLAGS=$CXXFLAGS
5602 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5603 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5604 if test "${ac_cv_prog_cxx_g+set}" = set; then
5605 $as_echo_n "(cached) " >&6
5606 else
5607 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5608 ac_cxx_werror_flag=yes
5609 ac_cv_prog_cxx_g=no
5610 CXXFLAGS="-g"
5611 cat >conftest.$ac_ext <<_ACEOF
5612 /* confdefs.h. */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5619 main ()
5623 return 0;
5625 _ACEOF
5626 rm -f conftest.$ac_objext
5627 if { (ac_try="$ac_compile"
5628 case "(($ac_try" in
5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630 *) ac_try_echo=$ac_try;;
5631 esac
5632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5633 $as_echo "$ac_try_echo") >&5
5634 (eval "$ac_compile") 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } && {
5641 test -z "$ac_cxx_werror_flag" ||
5642 test ! -s conftest.err
5643 } && test -s conftest.$ac_objext; then
5644 ac_cv_prog_cxx_g=yes
5645 else
5646 $as_echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5649 CXXFLAGS=""
5650 cat >conftest.$ac_ext <<_ACEOF
5651 /* confdefs.h. */
5652 _ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5658 main ()
5662 return 0;
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (ac_try="$ac_compile"
5667 case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5672 $as_echo "$ac_try_echo") >&5
5673 (eval "$ac_compile") 2>conftest.er1
5674 ac_status=$?
5675 grep -v '^ *+' conftest.er1 >conftest.err
5676 rm -f conftest.er1
5677 cat conftest.err >&5
5678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } && {
5680 test -z "$ac_cxx_werror_flag" ||
5681 test ! -s conftest.err
5682 } && test -s conftest.$ac_objext; then
5684 else
5685 $as_echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5688 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5689 CXXFLAGS="-g"
5690 cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h. */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5698 main ()
5702 return 0;
5704 _ACEOF
5705 rm -f conftest.$ac_objext
5706 if { (ac_try="$ac_compile"
5707 case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710 esac
5711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5712 $as_echo "$ac_try_echo") >&5
5713 (eval "$ac_compile") 2>conftest.er1
5714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
5718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } && {
5720 test -z "$ac_cxx_werror_flag" ||
5721 test ! -s conftest.err
5722 } && test -s conftest.$ac_objext; then
5723 ac_cv_prog_cxx_g=yes
5724 else
5725 $as_echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5740 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5741 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5742 if test "$ac_test_CXXFLAGS" = set; then
5743 CXXFLAGS=$ac_save_CXXFLAGS
5744 elif test $ac_cv_prog_cxx_g = yes; then
5745 if test "$GXX" = yes; then
5746 CXXFLAGS="-g -O2"
5747 else
5748 CXXFLAGS="-g"
5750 else
5751 if test "$GXX" = yes; then
5752 CXXFLAGS="-O2"
5753 else
5754 CXXFLAGS=
5757 ac_ext=cpp
5758 ac_cpp='$CXXCPP $CPPFLAGS'
5759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5763 depcc="$CXX" am_compiler_list=
5765 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5766 $as_echo_n "checking dependency style of $depcc... " >&6; }
5767 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5768 $as_echo_n "(cached) " >&6
5769 else
5770 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5771 # We make a subdir and do the tests there. Otherwise we can end up
5772 # making bogus files that we don't know about and never remove. For
5773 # instance it was reported that on HP-UX the gcc test will end up
5774 # making a dummy file named `D' -- because `-MD' means `put the output
5775 # in D'.
5776 mkdir conftest.dir
5777 # Copy depcomp to subdir because otherwise we won't find it if we're
5778 # using a relative directory.
5779 cp "$am_depcomp" conftest.dir
5780 cd conftest.dir
5781 # We will build objects and dependencies in a subdirectory because
5782 # it helps to detect inapplicable dependency modes. For instance
5783 # both Tru64's cc and ICC support -MD to output dependencies as a
5784 # side effect of compilation, but ICC will put the dependencies in
5785 # the current directory while Tru64 will put them in the object
5786 # directory.
5787 mkdir sub
5789 am_cv_CXX_dependencies_compiler_type=none
5790 if test "$am_compiler_list" = ""; then
5791 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5793 for depmode in $am_compiler_list; do
5794 # Setup a source with many dependencies, because some compilers
5795 # like to wrap large dependency lists on column 80 (with \), and
5796 # we should not choose a depcomp mode which is confused by this.
5798 # We need to recreate these files for each test, as the compiler may
5799 # overwrite some of them when testing with obscure command lines.
5800 # This happens at least with the AIX C compiler.
5801 : > sub/conftest.c
5802 for i in 1 2 3 4 5 6; do
5803 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5804 : > sub/conftst$i.h
5805 done
5806 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5808 case $depmode in
5809 nosideeffect)
5810 # after this tag, mechanisms are not by side-effect, so they'll
5811 # only be used when explicitly requested
5812 if test "x$enable_dependency_tracking" = xyes; then
5813 continue
5814 else
5815 break
5818 none) break ;;
5819 esac
5820 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5821 # mode. It turns out that the SunPro C++ compiler does not properly
5822 # handle `-M -o', and we need to detect this.
5823 if depmode=$depmode \
5824 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5825 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5826 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5827 >/dev/null 2>conftest.err &&
5828 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5829 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5830 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5831 # icc doesn't choke on unknown options, it will just issue warnings
5832 # (even with -Werror). So we grep stderr for any message
5833 # that says an option was ignored.
5834 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5835 am_cv_CXX_dependencies_compiler_type=$depmode
5836 break
5839 done
5841 cd ..
5842 rm -rf conftest.dir
5843 else
5844 am_cv_CXX_dependencies_compiler_type=none
5848 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5849 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5850 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5855 test "x$enable_dependency_tracking" != xno \
5856 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5857 am__fastdepCXX_TRUE=
5858 am__fastdepCXX_FALSE='#'
5859 else
5860 am__fastdepCXX_TRUE='#'
5861 am__fastdepCXX_FALSE=
5867 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5868 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5869 (test "X$CXX" != "Xg++"))) ; then
5870 ac_ext=cpp
5871 ac_cpp='$CXXCPP $CPPFLAGS'
5872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5875 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5876 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5877 if test -z "$CXXCPP"; then
5878 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5879 $as_echo_n "(cached) " >&6
5880 else
5881 # Double quotes because CXXCPP needs to be expanded
5882 for CXXCPP in "$CXX -E" "/lib/cpp"
5884 ac_preproc_ok=false
5885 for ac_cxx_preproc_warn_flag in '' yes
5887 # Use a header file that comes with gcc, so configuring glibc
5888 # with a fresh cross-compiler works.
5889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5890 # <limits.h> exists even on freestanding compilers.
5891 # On the NeXT, cc -E runs the code through the compiler's parser,
5892 # not just through cpp. "Syntax error" is here to catch this case.
5893 cat >conftest.$ac_ext <<_ACEOF
5894 /* confdefs.h. */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 #ifdef __STDC__
5900 # include <limits.h>
5901 #else
5902 # include <assert.h>
5903 #endif
5904 Syntax error
5905 _ACEOF
5906 if { (ac_try="$ac_cpp conftest.$ac_ext"
5907 case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910 esac
5911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5912 $as_echo "$ac_try_echo") >&5
5913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } >/dev/null && {
5920 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5921 test ! -s conftest.err
5922 }; then
5924 else
5925 $as_echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5928 # Broken: fails on valid input.
5929 continue
5932 rm -f conftest.err conftest.$ac_ext
5934 # OK, works on sane cases. Now check whether nonexistent headers
5935 # can be detected and how.
5936 cat >conftest.$ac_ext <<_ACEOF
5937 /* confdefs.h. */
5938 _ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5942 #include <ac_nonexistent.h>
5943 _ACEOF
5944 if { (ac_try="$ac_cpp conftest.$ac_ext"
5945 case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948 esac
5949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5950 $as_echo "$ac_try_echo") >&5
5951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } >/dev/null && {
5958 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5959 test ! -s conftest.err
5960 }; then
5961 # Broken: success on invalid input.
5962 continue
5963 else
5964 $as_echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5967 # Passes both tests.
5968 ac_preproc_ok=:
5969 break
5972 rm -f conftest.err conftest.$ac_ext
5974 done
5975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5976 rm -f conftest.err conftest.$ac_ext
5977 if $ac_preproc_ok; then
5978 break
5981 done
5982 ac_cv_prog_CXXCPP=$CXXCPP
5985 CXXCPP=$ac_cv_prog_CXXCPP
5986 else
5987 ac_cv_prog_CXXCPP=$CXXCPP
5989 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5990 $as_echo "$CXXCPP" >&6; }
5991 ac_preproc_ok=false
5992 for ac_cxx_preproc_warn_flag in '' yes
5994 # Use a header file that comes with gcc, so configuring glibc
5995 # with a fresh cross-compiler works.
5996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5997 # <limits.h> exists even on freestanding compilers.
5998 # On the NeXT, cc -E runs the code through the compiler's parser,
5999 # not just through cpp. "Syntax error" is here to catch this case.
6000 cat >conftest.$ac_ext <<_ACEOF
6001 /* confdefs.h. */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6006 #ifdef __STDC__
6007 # include <limits.h>
6008 #else
6009 # include <assert.h>
6010 #endif
6011 Syntax error
6012 _ACEOF
6013 if { (ac_try="$ac_cpp conftest.$ac_ext"
6014 case "(($ac_try" in
6015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016 *) ac_try_echo=$ac_try;;
6017 esac
6018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6019 $as_echo "$ac_try_echo") >&5
6020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6021 ac_status=$?
6022 grep -v '^ *+' conftest.er1 >conftest.err
6023 rm -f conftest.er1
6024 cat conftest.err >&5
6025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } >/dev/null && {
6027 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6028 test ! -s conftest.err
6029 }; then
6031 else
6032 $as_echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6035 # Broken: fails on valid input.
6036 continue
6039 rm -f conftest.err conftest.$ac_ext
6041 # OK, works on sane cases. Now check whether nonexistent headers
6042 # can be detected and how.
6043 cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h. */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 #include <ac_nonexistent.h>
6050 _ACEOF
6051 if { (ac_try="$ac_cpp conftest.$ac_ext"
6052 case "(($ac_try" in
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6055 esac
6056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6057 $as_echo "$ac_try_echo") >&5
6058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } >/dev/null && {
6065 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6066 test ! -s conftest.err
6067 }; then
6068 # Broken: success on invalid input.
6069 continue
6070 else
6071 $as_echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6074 # Passes both tests.
6075 ac_preproc_ok=:
6076 break
6079 rm -f conftest.err conftest.$ac_ext
6081 done
6082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6083 rm -f conftest.err conftest.$ac_ext
6084 if $ac_preproc_ok; then
6086 else
6087 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6089 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6090 See \`config.log' for more details." >&5
6091 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6092 See \`config.log' for more details." >&2;}
6093 { (exit 1); exit 1; }; }; }
6096 ac_ext=cpp
6097 ac_cpp='$CXXCPP $CPPFLAGS'
6098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6105 ac_ext=f
6106 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6107 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6108 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6109 if test -n "$ac_tool_prefix"; then
6110 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
6112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6115 $as_echo_n "checking for $ac_word... " >&6; }
6116 if test "${ac_cv_prog_F77+set}" = set; then
6117 $as_echo_n "(cached) " >&6
6118 else
6119 if test -n "$F77"; then
6120 ac_cv_prog_F77="$F77" # Let the user override the test.
6121 else
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 for as_dir in $PATH
6125 IFS=$as_save_IFS
6126 test -z "$as_dir" && as_dir=.
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6129 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 break 2
6133 done
6134 done
6135 IFS=$as_save_IFS
6139 F77=$ac_cv_prog_F77
6140 if test -n "$F77"; then
6141 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6142 $as_echo "$F77" >&6; }
6143 else
6144 { $as_echo "$as_me:$LINENO: result: no" >&5
6145 $as_echo "no" >&6; }
6149 test -n "$F77" && break
6150 done
6152 if test -z "$F77"; then
6153 ac_ct_F77=$F77
6154 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
6156 # Extract the first word of "$ac_prog", so it can be a program name with args.
6157 set dummy $ac_prog; ac_word=$2
6158 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6159 $as_echo_n "checking for $ac_word... " >&6; }
6160 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6161 $as_echo_n "(cached) " >&6
6162 else
6163 if test -n "$ac_ct_F77"; then
6164 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6165 else
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 for as_dir in $PATH
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6173 ac_cv_prog_ac_ct_F77="$ac_prog"
6174 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 break 2
6177 done
6178 done
6179 IFS=$as_save_IFS
6183 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6184 if test -n "$ac_ct_F77"; then
6185 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6186 $as_echo "$ac_ct_F77" >&6; }
6187 else
6188 { $as_echo "$as_me:$LINENO: result: no" >&5
6189 $as_echo "no" >&6; }
6193 test -n "$ac_ct_F77" && break
6194 done
6196 if test "x$ac_ct_F77" = x; then
6197 F77=""
6198 else
6199 case $cross_compiling:$ac_tool_warned in
6200 yes:)
6201 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6203 ac_tool_warned=yes ;;
6204 esac
6205 F77=$ac_ct_F77
6210 # Provide some information about the compiler.
6211 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6212 set X $ac_compile
6213 ac_compiler=$2
6214 { (ac_try="$ac_compiler --version >&5"
6215 case "(($ac_try" in
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6218 esac
6219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6220 $as_echo "$ac_try_echo") >&5
6221 (eval "$ac_compiler --version >&5") 2>&5
6222 ac_status=$?
6223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }
6225 { (ac_try="$ac_compiler -v >&5"
6226 case "(($ac_try" in
6227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6229 esac
6230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6231 $as_echo "$ac_try_echo") >&5
6232 (eval "$ac_compiler -v >&5") 2>&5
6233 ac_status=$?
6234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }
6236 { (ac_try="$ac_compiler -V >&5"
6237 case "(($ac_try" in
6238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239 *) ac_try_echo=$ac_try;;
6240 esac
6241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6242 $as_echo "$ac_try_echo") >&5
6243 (eval "$ac_compiler -V >&5") 2>&5
6244 ac_status=$?
6245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }
6247 rm -f a.out
6249 # If we don't use `.F' as extension, the preprocessor is not run on the
6250 # input file. (Note that this only needs to work for GNU compilers.)
6251 ac_save_ext=$ac_ext
6252 ac_ext=F
6253 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6254 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6255 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6256 $as_echo_n "(cached) " >&6
6257 else
6258 cat >conftest.$ac_ext <<_ACEOF
6259 program main
6260 #ifndef __GNUC__
6261 choke me
6262 #endif
6265 _ACEOF
6266 rm -f conftest.$ac_objext
6267 if { (ac_try="$ac_compile"
6268 case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271 esac
6272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6273 $as_echo "$ac_try_echo") >&5
6274 (eval "$ac_compile") 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } && {
6281 test -z "$ac_f77_werror_flag" ||
6282 test ! -s conftest.err
6283 } && test -s conftest.$ac_objext; then
6284 ac_compiler_gnu=yes
6285 else
6286 $as_echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6289 ac_compiler_gnu=no
6292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6293 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6296 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6297 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6298 ac_ext=$ac_save_ext
6299 ac_test_FFLAGS=${FFLAGS+set}
6300 ac_save_FFLAGS=$FFLAGS
6301 FFLAGS=
6302 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6303 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6304 if test "${ac_cv_prog_f77_g+set}" = set; then
6305 $as_echo_n "(cached) " >&6
6306 else
6307 FFLAGS=-g
6308 cat >conftest.$ac_ext <<_ACEOF
6309 program main
6312 _ACEOF
6313 rm -f conftest.$ac_objext
6314 if { (ac_try="$ac_compile"
6315 case "(($ac_try" in
6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6318 esac
6319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6320 $as_echo "$ac_try_echo") >&5
6321 (eval "$ac_compile") 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } && {
6328 test -z "$ac_f77_werror_flag" ||
6329 test ! -s conftest.err
6330 } && test -s conftest.$ac_objext; then
6331 ac_cv_prog_f77_g=yes
6332 else
6333 $as_echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6336 ac_cv_prog_f77_g=no
6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6343 $as_echo "$ac_cv_prog_f77_g" >&6; }
6344 if test "$ac_test_FFLAGS" = set; then
6345 FFLAGS=$ac_save_FFLAGS
6346 elif test $ac_cv_prog_f77_g = yes; then
6347 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6348 FFLAGS="-g -O2"
6349 else
6350 FFLAGS="-g"
6352 else
6353 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6354 FFLAGS="-O2"
6355 else
6356 FFLAGS=
6360 if test $ac_compiler_gnu = yes; then
6361 G77=yes
6362 else
6363 G77=
6365 ac_ext=c
6366 ac_cpp='$CPP $CPPFLAGS'
6367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6373 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6374 # find the maximum length of command line arguments
6375 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6376 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6377 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6378 $as_echo_n "(cached) " >&6
6379 else
6381 teststring="ABCD"
6383 case $build_os in
6384 msdosdjgpp*)
6385 # On DJGPP, this test can blow up pretty badly due to problems in libc
6386 # (any single argument exceeding 2000 bytes causes a buffer overrun
6387 # during glob expansion). Even if it were fixed, the result of this
6388 # check would be larger than it should be.
6389 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6392 gnu*)
6393 # Under GNU Hurd, this test is not required because there is
6394 # no limit to the length of command line arguments.
6395 # Libtool will interpret -1 as no limit whatsoever
6396 lt_cv_sys_max_cmd_len=-1;
6399 cygwin* | mingw*)
6400 # On Win9x/ME, this test blows up -- it succeeds, but takes
6401 # about 5 minutes as the teststring grows exponentially.
6402 # Worse, since 9x/ME are not pre-emptively multitasking,
6403 # you end up with a "frozen" computer, even though with patience
6404 # the test eventually succeeds (with a max line length of 256k).
6405 # Instead, let's just punt: use the minimum linelength reported by
6406 # all of the supported platforms: 8192 (on NT/2K/XP).
6407 lt_cv_sys_max_cmd_len=8192;
6410 amigaos*)
6411 # On AmigaOS with pdksh, this test takes hours, literally.
6412 # So we just punt and use a minimum line length of 8192.
6413 lt_cv_sys_max_cmd_len=8192;
6416 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6417 # This has been around since 386BSD, at least. Likely further.
6418 if test -x /sbin/sysctl; then
6419 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6420 elif test -x /usr/sbin/sysctl; then
6421 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6422 else
6423 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6425 # And add a safety zone
6426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6430 interix*)
6431 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6432 lt_cv_sys_max_cmd_len=196608
6435 osf*)
6436 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6437 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6438 # nice to cause kernel panics so lets avoid the loop below.
6439 # First set a reasonable default.
6440 lt_cv_sys_max_cmd_len=16384
6442 if test -x /sbin/sysconfig; then
6443 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6444 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6445 esac
6448 sco3.2v5*)
6449 lt_cv_sys_max_cmd_len=102400
6451 sysv5* | sco5v6* | sysv4.2uw2*)
6452 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6453 if test -n "$kargmax"; then
6454 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6455 else
6456 lt_cv_sys_max_cmd_len=32768
6460 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6461 if test -n "$lt_cv_sys_max_cmd_len"; then
6462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6464 else
6465 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6466 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6467 = "XX$teststring") >/dev/null 2>&1 &&
6468 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6469 lt_cv_sys_max_cmd_len=$new_result &&
6470 test $i != 17 # 1/2 MB should be enough
6472 i=`expr $i + 1`
6473 teststring=$teststring$teststring
6474 done
6475 teststring=
6476 # Add a significant safety factor because C++ compilers can tack on massive
6477 # amounts of additional arguments before passing them to the linker.
6478 # It appears as though 1/2 is a usable value.
6479 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6482 esac
6486 if test -n $lt_cv_sys_max_cmd_len ; then
6487 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6488 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6489 else
6490 { $as_echo "$as_me:$LINENO: result: none" >&5
6491 $as_echo "none" >&6; }
6498 # Check for command to grab the raw symbol name followed by C symbol from nm.
6499 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6500 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6501 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6502 $as_echo_n "(cached) " >&6
6503 else
6505 # These are sane defaults that work on at least a few old systems.
6506 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6508 # Character class describing NM global symbol codes.
6509 symcode='[BCDEGRST]'
6511 # Regexp to match symbols that can be accessed directly from C.
6512 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6514 # Transform an extracted symbol line into a proper C declaration
6515 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6517 # Transform an extracted symbol line into symbol name and symbol address
6518 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'"
6520 # Define system-specific variables.
6521 case $host_os in
6522 aix*)
6523 symcode='[BCDT]'
6525 cygwin* | mingw* | pw32*)
6526 symcode='[ABCDGISTW]'
6528 hpux*) # Its linker distinguishes data from code symbols
6529 if test "$host_cpu" = ia64; then
6530 symcode='[ABCDEGRST]'
6532 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6533 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'"
6535 linux* | k*bsd*-gnu)
6536 if test "$host_cpu" = ia64; then
6537 symcode='[ABCDGIRSTW]'
6538 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6539 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'"
6542 irix* | nonstopux*)
6543 symcode='[BCDEGRST]'
6545 osf*)
6546 symcode='[BCDEGQRST]'
6548 solaris*)
6549 symcode='[BDRT]'
6551 sco3.2v5*)
6552 symcode='[DT]'
6554 sysv4.2uw2*)
6555 symcode='[DT]'
6557 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6558 symcode='[ABDT]'
6560 sysv4)
6561 symcode='[DFNSTU]'
6563 esac
6565 # Handle CRLF in mingw tool chain
6566 opt_cr=
6567 case $build_os in
6568 mingw*)
6569 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6571 esac
6573 # If we're using GNU nm, then use its standard symbol codes.
6574 case `$NM -V 2>&1` in
6575 *GNU* | *'with BFD'*)
6576 symcode='[ABCDGIRSTW]' ;;
6577 esac
6579 # Try without a prefix undercore, then with it.
6580 for ac_symprfx in "" "_"; do
6582 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6583 symxfrm="\\1 $ac_symprfx\\2 \\2"
6585 # Write the raw and C identifiers.
6586 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6588 # Check to see that the pipe works correctly.
6589 pipe_works=no
6591 rm -f conftest*
6592 cat > conftest.$ac_ext <<EOF
6593 #ifdef __cplusplus
6594 extern "C" {
6595 #endif
6596 char nm_test_var;
6597 void nm_test_func(){}
6598 #ifdef __cplusplus
6600 #endif
6601 int main(){nm_test_var='a';nm_test_func();return(0);}
6604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6605 (eval $ac_compile) 2>&5
6606 ac_status=$?
6607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; then
6609 # Now try to grab the symbols.
6610 nlist=conftest.nm
6611 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6612 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6613 ac_status=$?
6614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } && test -s "$nlist"; then
6616 # Try sorting and uniquifying the output.
6617 if sort "$nlist" | uniq > "$nlist"T; then
6618 mv -f "$nlist"T "$nlist"
6619 else
6620 rm -f "$nlist"T
6623 # Make sure that we snagged all the symbols we need.
6624 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6625 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6626 cat <<EOF > conftest.$ac_ext
6627 #ifdef __cplusplus
6628 extern "C" {
6629 #endif
6632 # Now generate the symbol file.
6633 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6635 cat <<EOF >> conftest.$ac_ext
6636 #if defined (__STDC__) && __STDC__
6637 # define lt_ptr_t void *
6638 #else
6639 # define lt_ptr_t char *
6640 # define const
6641 #endif
6643 /* The mapping between symbol names and symbols. */
6644 const struct {
6645 const char *name;
6646 lt_ptr_t address;
6648 lt_preloaded_symbols[] =
6651 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6652 cat <<\EOF >> conftest.$ac_ext
6653 {0, (lt_ptr_t) 0}
6656 #ifdef __cplusplus
6658 #endif
6660 # Now try linking the two files.
6661 mv conftest.$ac_objext conftstm.$ac_objext
6662 lt_save_LIBS="$LIBS"
6663 lt_save_CFLAGS="$CFLAGS"
6664 LIBS="conftstm.$ac_objext"
6665 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6667 (eval $ac_link) 2>&5
6668 ac_status=$?
6669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6671 pipe_works=yes
6673 LIBS="$lt_save_LIBS"
6674 CFLAGS="$lt_save_CFLAGS"
6675 else
6676 echo "cannot find nm_test_func in $nlist" >&5
6678 else
6679 echo "cannot find nm_test_var in $nlist" >&5
6681 else
6682 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6684 else
6685 echo "$progname: failed program was:" >&5
6686 cat conftest.$ac_ext >&5
6688 rm -rf conftest* conftst*
6690 # Do not use the global_symbol_pipe unless it works.
6691 if test "$pipe_works" = yes; then
6692 break
6693 else
6694 lt_cv_sys_global_symbol_pipe=
6696 done
6700 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6701 lt_cv_sys_global_symbol_to_cdecl=
6703 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6704 { $as_echo "$as_me:$LINENO: result: failed" >&5
6705 $as_echo "failed" >&6; }
6706 else
6707 { $as_echo "$as_me:$LINENO: result: ok" >&5
6708 $as_echo "ok" >&6; }
6711 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6712 $as_echo_n "checking for objdir... " >&6; }
6713 if test "${lt_cv_objdir+set}" = set; then
6714 $as_echo_n "(cached) " >&6
6715 else
6716 rm -f .libs 2>/dev/null
6717 mkdir .libs 2>/dev/null
6718 if test -d .libs; then
6719 lt_cv_objdir=.libs
6720 else
6721 # MS-DOS does not allow filenames that begin with a dot.
6722 lt_cv_objdir=_libs
6724 rmdir .libs 2>/dev/null
6726 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6727 $as_echo "$lt_cv_objdir" >&6; }
6728 objdir=$lt_cv_objdir
6734 case $host_os in
6735 aix3*)
6736 # AIX sometimes has problems with the GCC collect2 program. For some
6737 # reason, if we set the COLLECT_NAMES environment variable, the problems
6738 # vanish in a puff of smoke.
6739 if test "X${COLLECT_NAMES+set}" != Xset; then
6740 COLLECT_NAMES=
6741 export COLLECT_NAMES
6744 esac
6746 # Sed substitution that helps us do robust quoting. It backslashifies
6747 # metacharacters that are still active within double-quoted strings.
6748 Xsed='sed -e 1s/^X//'
6749 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6751 # Same as above, but do not quote variable references.
6752 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6754 # Sed substitution to delay expansion of an escaped shell variable in a
6755 # double_quote_subst'ed string.
6756 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6758 # Sed substitution to avoid accidental globbing in evaled expressions
6759 no_glob_subst='s/\*/\\\*/g'
6761 # Constants:
6762 rm="rm -f"
6764 # Global variables:
6765 default_ofile=libtool
6766 can_build_shared=yes
6768 # All known linkers require a `.a' archive for static linking (except MSVC,
6769 # which needs '.lib').
6770 libext=a
6771 ltmain="$ac_aux_dir/ltmain.sh"
6772 ofile="$default_ofile"
6773 with_gnu_ld="$lt_cv_prog_gnu_ld"
6775 if test -n "$ac_tool_prefix"; then
6776 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6777 set dummy ${ac_tool_prefix}ar; ac_word=$2
6778 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 $as_echo_n "checking for $ac_word... " >&6; }
6780 if test "${ac_cv_prog_AR+set}" = set; then
6781 $as_echo_n "(cached) " >&6
6782 else
6783 if test -n "$AR"; then
6784 ac_cv_prog_AR="$AR" # Let the user override the test.
6785 else
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793 ac_cv_prog_AR="${ac_tool_prefix}ar"
6794 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6797 done
6798 done
6799 IFS=$as_save_IFS
6803 AR=$ac_cv_prog_AR
6804 if test -n "$AR"; then
6805 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6806 $as_echo "$AR" >&6; }
6807 else
6808 { $as_echo "$as_me:$LINENO: result: no" >&5
6809 $as_echo "no" >&6; }
6814 if test -z "$ac_cv_prog_AR"; then
6815 ac_ct_AR=$AR
6816 # Extract the first word of "ar", so it can be a program name with args.
6817 set dummy ar; ac_word=$2
6818 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6821 $as_echo_n "(cached) " >&6
6822 else
6823 if test -n "$ac_ct_AR"; then
6824 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833 ac_cv_prog_ac_ct_AR="ar"
6834 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6837 done
6838 done
6839 IFS=$as_save_IFS
6843 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6844 if test -n "$ac_ct_AR"; then
6845 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6846 $as_echo "$ac_ct_AR" >&6; }
6847 else
6848 { $as_echo "$as_me:$LINENO: result: no" >&5
6849 $as_echo "no" >&6; }
6852 if test "x$ac_ct_AR" = x; then
6853 AR="false"
6854 else
6855 case $cross_compiling:$ac_tool_warned in
6856 yes:)
6857 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6859 ac_tool_warned=yes ;;
6860 esac
6861 AR=$ac_ct_AR
6863 else
6864 AR="$ac_cv_prog_AR"
6867 if test -n "$ac_tool_prefix"; then
6868 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6869 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6870 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6871 $as_echo_n "checking for $ac_word... " >&6; }
6872 if test "${ac_cv_prog_RANLIB+set}" = set; then
6873 $as_echo_n "(cached) " >&6
6874 else
6875 if test -n "$RANLIB"; then
6876 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6877 else
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6886 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 break 2
6889 done
6890 done
6891 IFS=$as_save_IFS
6895 RANLIB=$ac_cv_prog_RANLIB
6896 if test -n "$RANLIB"; then
6897 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6898 $as_echo "$RANLIB" >&6; }
6899 else
6900 { $as_echo "$as_me:$LINENO: result: no" >&5
6901 $as_echo "no" >&6; }
6906 if test -z "$ac_cv_prog_RANLIB"; then
6907 ac_ct_RANLIB=$RANLIB
6908 # Extract the first word of "ranlib", so it can be a program name with args.
6909 set dummy ranlib; ac_word=$2
6910 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6913 $as_echo_n "(cached) " >&6
6914 else
6915 if test -n "$ac_ct_RANLIB"; then
6916 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6917 else
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925 ac_cv_prog_ac_ct_RANLIB="ranlib"
6926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 break 2
6929 done
6930 done
6931 IFS=$as_save_IFS
6935 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6936 if test -n "$ac_ct_RANLIB"; then
6937 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6938 $as_echo "$ac_ct_RANLIB" >&6; }
6939 else
6940 { $as_echo "$as_me:$LINENO: result: no" >&5
6941 $as_echo "no" >&6; }
6944 if test "x$ac_ct_RANLIB" = x; then
6945 RANLIB=":"
6946 else
6947 case $cross_compiling:$ac_tool_warned in
6948 yes:)
6949 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6951 ac_tool_warned=yes ;;
6952 esac
6953 RANLIB=$ac_ct_RANLIB
6955 else
6956 RANLIB="$ac_cv_prog_RANLIB"
6959 if test -n "$ac_tool_prefix"; then
6960 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6961 set dummy ${ac_tool_prefix}strip; ac_word=$2
6962 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 $as_echo_n "checking for $ac_word... " >&6; }
6964 if test "${ac_cv_prog_STRIP+set}" = set; then
6965 $as_echo_n "(cached) " >&6
6966 else
6967 if test -n "$STRIP"; then
6968 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6969 else
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6977 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 break 2
6981 done
6982 done
6983 IFS=$as_save_IFS
6987 STRIP=$ac_cv_prog_STRIP
6988 if test -n "$STRIP"; then
6989 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6990 $as_echo "$STRIP" >&6; }
6991 else
6992 { $as_echo "$as_me:$LINENO: result: no" >&5
6993 $as_echo "no" >&6; }
6998 if test -z "$ac_cv_prog_STRIP"; then
6999 ac_ct_STRIP=$STRIP
7000 # Extract the first word of "strip", so it can be a program name with args.
7001 set dummy strip; ac_word=$2
7002 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7005 $as_echo_n "(cached) " >&6
7006 else
7007 if test -n "$ac_ct_STRIP"; then
7008 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7009 else
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_prog_ac_ct_STRIP="strip"
7018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7021 done
7022 done
7023 IFS=$as_save_IFS
7027 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7028 if test -n "$ac_ct_STRIP"; then
7029 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7030 $as_echo "$ac_ct_STRIP" >&6; }
7031 else
7032 { $as_echo "$as_me:$LINENO: result: no" >&5
7033 $as_echo "no" >&6; }
7036 if test "x$ac_ct_STRIP" = x; then
7037 STRIP=":"
7038 else
7039 case $cross_compiling:$ac_tool_warned in
7040 yes:)
7041 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7043 ac_tool_warned=yes ;;
7044 esac
7045 STRIP=$ac_ct_STRIP
7047 else
7048 STRIP="$ac_cv_prog_STRIP"
7052 old_CC="$CC"
7053 old_CFLAGS="$CFLAGS"
7055 # Set sane defaults for various variables
7056 test -z "$AR" && AR=ar
7057 test -z "$AR_FLAGS" && AR_FLAGS=cru
7058 test -z "$AS" && AS=as
7059 test -z "$CC" && CC=cc
7060 test -z "$LTCC" && LTCC=$CC
7061 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7062 test -z "$DLLTOOL" && DLLTOOL=dlltool
7063 test -z "$LD" && LD=ld
7064 test -z "$LN_S" && LN_S="ln -s"
7065 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7066 test -z "$NM" && NM=nm
7067 test -z "$SED" && SED=sed
7068 test -z "$OBJDUMP" && OBJDUMP=objdump
7069 test -z "$RANLIB" && RANLIB=:
7070 test -z "$STRIP" && STRIP=:
7071 test -z "$ac_objext" && ac_objext=o
7073 # Determine commands to create old-style static archives.
7074 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7075 old_postinstall_cmds='chmod 644 $oldlib'
7076 old_postuninstall_cmds=
7078 if test -n "$RANLIB"; then
7079 case $host_os in
7080 openbsd*)
7081 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7084 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7086 esac
7087 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7090 for cc_temp in $compiler""; do
7091 case $cc_temp in
7092 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7093 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7094 \-*) ;;
7095 *) break;;
7096 esac
7097 done
7098 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7101 # Only perform the check for file, if the check method requires it
7102 case $deplibs_check_method in
7103 file_magic*)
7104 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7105 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7106 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7107 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7108 $as_echo_n "(cached) " >&6
7109 else
7110 case $MAGIC_CMD in
7111 [\\/*] | ?:[\\/]*)
7112 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7115 lt_save_MAGIC_CMD="$MAGIC_CMD"
7116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7117 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7118 for ac_dir in $ac_dummy; do
7119 IFS="$lt_save_ifs"
7120 test -z "$ac_dir" && ac_dir=.
7121 if test -f $ac_dir/${ac_tool_prefix}file; then
7122 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7123 if test -n "$file_magic_test_file"; then
7124 case $deplibs_check_method in
7125 "file_magic "*)
7126 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7127 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7128 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7129 $EGREP "$file_magic_regex" > /dev/null; then
7131 else
7132 cat <<EOF 1>&2
7134 *** Warning: the command libtool uses to detect shared libraries,
7135 *** $file_magic_cmd, produces output that libtool cannot recognize.
7136 *** The result is that libtool may fail to recognize shared libraries
7137 *** as such. This will affect the creation of libtool libraries that
7138 *** depend on shared libraries, but programs linked with such libtool
7139 *** libraries will work regardless of this problem. Nevertheless, you
7140 *** may want to report the problem to your system manager and/or to
7141 *** bug-libtool@gnu.org
7144 fi ;;
7145 esac
7147 break
7149 done
7150 IFS="$lt_save_ifs"
7151 MAGIC_CMD="$lt_save_MAGIC_CMD"
7153 esac
7156 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7157 if test -n "$MAGIC_CMD"; then
7158 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7159 $as_echo "$MAGIC_CMD" >&6; }
7160 else
7161 { $as_echo "$as_me:$LINENO: result: no" >&5
7162 $as_echo "no" >&6; }
7165 if test -z "$lt_cv_path_MAGIC_CMD"; then
7166 if test -n "$ac_tool_prefix"; then
7167 { $as_echo "$as_me:$LINENO: checking for file" >&5
7168 $as_echo_n "checking for file... " >&6; }
7169 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7170 $as_echo_n "(cached) " >&6
7171 else
7172 case $MAGIC_CMD in
7173 [\\/*] | ?:[\\/]*)
7174 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7177 lt_save_MAGIC_CMD="$MAGIC_CMD"
7178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7179 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7180 for ac_dir in $ac_dummy; do
7181 IFS="$lt_save_ifs"
7182 test -z "$ac_dir" && ac_dir=.
7183 if test -f $ac_dir/file; then
7184 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7185 if test -n "$file_magic_test_file"; then
7186 case $deplibs_check_method in
7187 "file_magic "*)
7188 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7190 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7191 $EGREP "$file_magic_regex" > /dev/null; then
7193 else
7194 cat <<EOF 1>&2
7196 *** Warning: the command libtool uses to detect shared libraries,
7197 *** $file_magic_cmd, produces output that libtool cannot recognize.
7198 *** The result is that libtool may fail to recognize shared libraries
7199 *** as such. This will affect the creation of libtool libraries that
7200 *** depend on shared libraries, but programs linked with such libtool
7201 *** libraries will work regardless of this problem. Nevertheless, you
7202 *** may want to report the problem to your system manager and/or to
7203 *** bug-libtool@gnu.org
7206 fi ;;
7207 esac
7209 break
7211 done
7212 IFS="$lt_save_ifs"
7213 MAGIC_CMD="$lt_save_MAGIC_CMD"
7215 esac
7218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7219 if test -n "$MAGIC_CMD"; then
7220 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7221 $as_echo "$MAGIC_CMD" >&6; }
7222 else
7223 { $as_echo "$as_me:$LINENO: result: no" >&5
7224 $as_echo "no" >&6; }
7227 else
7228 MAGIC_CMD=:
7234 esac
7237 case $host_os in
7238 rhapsody* | darwin*)
7239 if test -n "$ac_tool_prefix"; then
7240 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7241 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7245 $as_echo_n "(cached) " >&6
7246 else
7247 if test -n "$DSYMUTIL"; then
7248 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7258 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7261 done
7262 done
7263 IFS=$as_save_IFS
7267 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7268 if test -n "$DSYMUTIL"; then
7269 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7270 $as_echo "$DSYMUTIL" >&6; }
7271 else
7272 { $as_echo "$as_me:$LINENO: result: no" >&5
7273 $as_echo "no" >&6; }
7278 if test -z "$ac_cv_prog_DSYMUTIL"; then
7279 ac_ct_DSYMUTIL=$DSYMUTIL
7280 # Extract the first word of "dsymutil", so it can be a program name with args.
7281 set dummy dsymutil; ac_word=$2
7282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7285 $as_echo_n "(cached) " >&6
7286 else
7287 if test -n "$ac_ct_DSYMUTIL"; then
7288 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7301 done
7302 done
7303 IFS=$as_save_IFS
7307 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7308 if test -n "$ac_ct_DSYMUTIL"; then
7309 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7310 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7311 else
7312 { $as_echo "$as_me:$LINENO: result: no" >&5
7313 $as_echo "no" >&6; }
7316 if test "x$ac_ct_DSYMUTIL" = x; then
7317 DSYMUTIL=":"
7318 else
7319 case $cross_compiling:$ac_tool_warned in
7320 yes:)
7321 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323 ac_tool_warned=yes ;;
7324 esac
7325 DSYMUTIL=$ac_ct_DSYMUTIL
7327 else
7328 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7331 if test -n "$ac_tool_prefix"; then
7332 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7333 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7337 $as_echo_n "(cached) " >&6
7338 else
7339 if test -n "$NMEDIT"; then
7340 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 break 2
7353 done
7354 done
7355 IFS=$as_save_IFS
7359 NMEDIT=$ac_cv_prog_NMEDIT
7360 if test -n "$NMEDIT"; then
7361 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7362 $as_echo "$NMEDIT" >&6; }
7363 else
7364 { $as_echo "$as_me:$LINENO: result: no" >&5
7365 $as_echo "no" >&6; }
7370 if test -z "$ac_cv_prog_NMEDIT"; then
7371 ac_ct_NMEDIT=$NMEDIT
7372 # Extract the first word of "nmedit", so it can be a program name with args.
7373 set dummy nmedit; ac_word=$2
7374 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7377 $as_echo_n "(cached) " >&6
7378 else
7379 if test -n "$ac_ct_NMEDIT"; then
7380 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 break 2
7393 done
7394 done
7395 IFS=$as_save_IFS
7399 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7400 if test -n "$ac_ct_NMEDIT"; then
7401 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7402 $as_echo "$ac_ct_NMEDIT" >&6; }
7403 else
7404 { $as_echo "$as_me:$LINENO: result: no" >&5
7405 $as_echo "no" >&6; }
7408 if test "x$ac_ct_NMEDIT" = x; then
7409 NMEDIT=":"
7410 else
7411 case $cross_compiling:$ac_tool_warned in
7412 yes:)
7413 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415 ac_tool_warned=yes ;;
7416 esac
7417 NMEDIT=$ac_ct_NMEDIT
7419 else
7420 NMEDIT="$ac_cv_prog_NMEDIT"
7424 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7425 $as_echo_n "checking for -single_module linker flag... " >&6; }
7426 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7427 $as_echo_n "(cached) " >&6
7428 else
7429 lt_cv_apple_cc_single_mod=no
7430 if test -z "${LT_MULTI_MODULE}"; then
7431 # By default we will add the -single_module flag. You can override
7432 # by either setting the environment variable LT_MULTI_MODULE
7433 # non-empty at configure time, or by adding -multi_module to the
7434 # link flags.
7435 echo "int foo(void){return 1;}" > conftest.c
7436 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7437 -dynamiclib ${wl}-single_module conftest.c
7438 if test -f libconftest.dylib; then
7439 lt_cv_apple_cc_single_mod=yes
7440 rm -rf libconftest.dylib*
7442 rm conftest.c
7445 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7446 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7447 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7448 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7449 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7450 $as_echo_n "(cached) " >&6
7451 else
7452 lt_cv_ld_exported_symbols_list=no
7453 save_LDFLAGS=$LDFLAGS
7454 echo "_main" > conftest.sym
7455 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7456 cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h. */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7464 main ()
7468 return 0;
7470 _ACEOF
7471 rm -f conftest.$ac_objext conftest$ac_exeext
7472 if { (ac_try="$ac_link"
7473 case "(($ac_try" in
7474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7475 *) ac_try_echo=$ac_try;;
7476 esac
7477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7478 $as_echo "$ac_try_echo") >&5
7479 (eval "$ac_link") 2>conftest.er1
7480 ac_status=$?
7481 grep -v '^ *+' conftest.er1 >conftest.err
7482 rm -f conftest.er1
7483 cat conftest.err >&5
7484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } && {
7486 test -z "$ac_c_werror_flag" ||
7487 test ! -s conftest.err
7488 } && test -s conftest$ac_exeext && {
7489 test "$cross_compiling" = yes ||
7490 $as_test_x conftest$ac_exeext
7491 }; then
7492 lt_cv_ld_exported_symbols_list=yes
7493 else
7494 $as_echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7497 lt_cv_ld_exported_symbols_list=no
7500 rm -rf conftest.dSYM
7501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7502 conftest$ac_exeext conftest.$ac_ext
7503 LDFLAGS="$save_LDFLAGS"
7506 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7507 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7508 case $host_os in
7509 rhapsody* | darwin1.[0123])
7510 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7511 darwin1.*)
7512 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7513 darwin*)
7514 # if running on 10.5 or later, the deployment target defaults
7515 # to the OS version, if on x86, and 10.4, the deployment
7516 # target defaults to 10.4. Don't you love it?
7517 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7518 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7519 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7520 10.[012]*)
7521 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7522 10.*)
7523 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7524 esac
7526 esac
7527 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7528 _lt_dar_single_mod='$single_module'
7530 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7531 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7532 else
7533 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7535 if test "$DSYMUTIL" != ":"; then
7536 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7537 else
7538 _lt_dsymutil=
7541 esac
7544 enable_dlopen=no
7545 enable_win32_dll=no
7547 # Check whether --enable-libtool-lock was given.
7548 if test "${enable_libtool_lock+set}" = set; then
7549 enableval=$enable_libtool_lock;
7552 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7555 # Check whether --with-pic was given.
7556 if test "${with_pic+set}" = set; then
7557 withval=$with_pic; pic_mode="$withval"
7558 else
7559 pic_mode=default
7562 test -z "$pic_mode" && pic_mode=default
7564 # Use C for the default configuration in the libtool script
7565 tagname=
7566 lt_save_CC="$CC"
7567 ac_ext=c
7568 ac_cpp='$CPP $CPPFLAGS'
7569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7574 # Source file extension for C test sources.
7575 ac_ext=c
7577 # Object file extension for compiled C test sources.
7578 objext=o
7579 objext=$objext
7581 # Code to be used in simple compile tests
7582 lt_simple_compile_test_code="int some_variable = 0;"
7584 # Code to be used in simple link tests
7585 lt_simple_link_test_code='int main(){return(0);}'
7588 # If no C compiler was specified, use CC.
7589 LTCC=${LTCC-"$CC"}
7591 # If no C compiler flags were specified, use CFLAGS.
7592 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7594 # Allow CC to be a program name with arguments.
7595 compiler=$CC
7598 # save warnings/boilerplate of simple test code
7599 ac_outfile=conftest.$ac_objext
7600 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7601 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7602 _lt_compiler_boilerplate=`cat conftest.err`
7603 $rm conftest*
7605 ac_outfile=conftest.$ac_objext
7606 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7607 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7608 _lt_linker_boilerplate=`cat conftest.err`
7609 $rm -r conftest*
7613 lt_prog_compiler_no_builtin_flag=
7615 if test "$GCC" = yes; then
7616 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7619 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7620 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7621 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7622 $as_echo_n "(cached) " >&6
7623 else
7624 lt_cv_prog_compiler_rtti_exceptions=no
7625 ac_outfile=conftest.$ac_objext
7626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7627 lt_compiler_flag="-fno-rtti -fno-exceptions"
7628 # Insert the option either (1) after the last *FLAGS variable, or
7629 # (2) before a word containing "conftest.", or (3) at the end.
7630 # Note that $ac_compile itself does not contain backslashes and begins
7631 # with a dollar sign (not a hyphen), so the echo should work correctly.
7632 # The option is referenced via a variable to avoid confusing sed.
7633 lt_compile=`echo "$ac_compile" | $SED \
7634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7636 -e 's:$: $lt_compiler_flag:'`
7637 (eval echo "\"\$as_me:7637: $lt_compile\"" >&5)
7638 (eval "$lt_compile" 2>conftest.err)
7639 ac_status=$?
7640 cat conftest.err >&5
7641 echo "$as_me:7641: \$? = $ac_status" >&5
7642 if (exit $ac_status) && test -s "$ac_outfile"; then
7643 # The compiler can only warn and ignore the option if not recognized
7644 # So say no if there are warnings other than the usual output.
7645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7647 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7648 lt_cv_prog_compiler_rtti_exceptions=yes
7651 $rm conftest*
7654 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7655 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7657 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7658 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7659 else
7665 lt_prog_compiler_wl=
7666 lt_prog_compiler_pic=
7667 lt_prog_compiler_static=
7669 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7670 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7672 if test "$GCC" = yes; then
7673 lt_prog_compiler_wl='-Wl,'
7674 lt_prog_compiler_static='-static'
7676 case $host_os in
7677 aix*)
7678 # All AIX code is PIC.
7679 if test "$host_cpu" = ia64; then
7680 # AIX 5 now supports IA64 processor
7681 lt_prog_compiler_static='-Bstatic'
7685 amigaos*)
7686 # FIXME: we need at least 68020 code to build shared libraries, but
7687 # adding the `-m68020' flag to GCC prevents building anything better,
7688 # like `-m68040'.
7689 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7692 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7693 # PIC is the default for these OSes.
7696 mingw* | cygwin* | pw32* | os2*)
7697 # This hack is so that the source file can tell whether it is being
7698 # built for inclusion in a dll (and should export symbols for example).
7699 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7700 # (--disable-auto-import) libraries
7701 lt_prog_compiler_pic='-DDLL_EXPORT'
7704 darwin* | rhapsody*)
7705 # PIC is the default on this platform
7706 # Common symbols not allowed in MH_DYLIB files
7707 lt_prog_compiler_pic='-fno-common'
7710 interix[3-9]*)
7711 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7712 # Instead, we relocate shared libraries at runtime.
7715 msdosdjgpp*)
7716 # Just because we use GCC doesn't mean we suddenly get shared libraries
7717 # on systems that don't support them.
7718 lt_prog_compiler_can_build_shared=no
7719 enable_shared=no
7722 sysv4*MP*)
7723 if test -d /usr/nec; then
7724 lt_prog_compiler_pic=-Kconform_pic
7728 hpux*)
7729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7730 # not for PA HP-UX.
7731 case $host_cpu in
7732 hppa*64*|ia64*)
7733 # +Z the default
7736 lt_prog_compiler_pic='-fPIC'
7738 esac
7742 lt_prog_compiler_pic='-fPIC'
7744 esac
7745 else
7746 # PORTME Check for flag to pass linker flags through the system compiler.
7747 case $host_os in
7748 aix*)
7749 lt_prog_compiler_wl='-Wl,'
7750 if test "$host_cpu" = ia64; then
7751 # AIX 5 now supports IA64 processor
7752 lt_prog_compiler_static='-Bstatic'
7753 else
7754 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7757 darwin*)
7758 # PIC is the default on this platform
7759 # Common symbols not allowed in MH_DYLIB files
7760 case $cc_basename in
7761 xlc*)
7762 lt_prog_compiler_pic='-qnocommon'
7763 lt_prog_compiler_wl='-Wl,'
7765 esac
7768 mingw* | cygwin* | pw32* | os2*)
7769 # This hack is so that the source file can tell whether it is being
7770 # built for inclusion in a dll (and should export symbols for example).
7771 lt_prog_compiler_pic='-DDLL_EXPORT'
7774 hpux9* | hpux10* | hpux11*)
7775 lt_prog_compiler_wl='-Wl,'
7776 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7777 # not for PA HP-UX.
7778 case $host_cpu in
7779 hppa*64*|ia64*)
7780 # +Z the default
7783 lt_prog_compiler_pic='+Z'
7785 esac
7786 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7787 lt_prog_compiler_static='${wl}-a ${wl}archive'
7790 irix5* | irix6* | nonstopux*)
7791 lt_prog_compiler_wl='-Wl,'
7792 # PIC (with -KPIC) is the default.
7793 lt_prog_compiler_static='-non_shared'
7796 newsos6)
7797 lt_prog_compiler_pic='-KPIC'
7798 lt_prog_compiler_static='-Bstatic'
7801 linux* | k*bsd*-gnu)
7802 case $cc_basename in
7803 icc* | ecc*)
7804 lt_prog_compiler_wl='-Wl,'
7805 lt_prog_compiler_pic='-KPIC'
7806 lt_prog_compiler_static='-static'
7808 pgcc* | pgf77* | pgf90* | pgf95*)
7809 # Portland Group compilers (*not* the Pentium gcc compiler,
7810 # which looks to be a dead project)
7811 lt_prog_compiler_wl='-Wl,'
7812 lt_prog_compiler_pic='-fpic'
7813 lt_prog_compiler_static='-Bstatic'
7815 ccc*)
7816 lt_prog_compiler_wl='-Wl,'
7817 # All Alpha code is PIC.
7818 lt_prog_compiler_static='-non_shared'
7821 case `$CC -V 2>&1 | sed 5q` in
7822 *Sun\ C*)
7823 # Sun C 5.9
7824 lt_prog_compiler_pic='-KPIC'
7825 lt_prog_compiler_static='-Bstatic'
7826 lt_prog_compiler_wl='-Wl,'
7828 *Sun\ F*)
7829 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7830 lt_prog_compiler_pic='-KPIC'
7831 lt_prog_compiler_static='-Bstatic'
7832 lt_prog_compiler_wl=''
7834 esac
7836 esac
7839 osf3* | osf4* | osf5*)
7840 lt_prog_compiler_wl='-Wl,'
7841 # All OSF/1 code is PIC.
7842 lt_prog_compiler_static='-non_shared'
7845 rdos*)
7846 lt_prog_compiler_static='-non_shared'
7849 solaris*)
7850 lt_prog_compiler_pic='-KPIC'
7851 lt_prog_compiler_static='-Bstatic'
7852 case $cc_basename in
7853 f77* | f90* | f95*)
7854 lt_prog_compiler_wl='-Qoption ld ';;
7856 lt_prog_compiler_wl='-Wl,';;
7857 esac
7860 sunos4*)
7861 lt_prog_compiler_wl='-Qoption ld '
7862 lt_prog_compiler_pic='-PIC'
7863 lt_prog_compiler_static='-Bstatic'
7866 sysv4 | sysv4.2uw2* | sysv4.3*)
7867 lt_prog_compiler_wl='-Wl,'
7868 lt_prog_compiler_pic='-KPIC'
7869 lt_prog_compiler_static='-Bstatic'
7872 sysv4*MP*)
7873 if test -d /usr/nec ;then
7874 lt_prog_compiler_pic='-Kconform_pic'
7875 lt_prog_compiler_static='-Bstatic'
7879 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7880 lt_prog_compiler_wl='-Wl,'
7881 lt_prog_compiler_pic='-KPIC'
7882 lt_prog_compiler_static='-Bstatic'
7885 unicos*)
7886 lt_prog_compiler_wl='-Wl,'
7887 lt_prog_compiler_can_build_shared=no
7890 uts4*)
7891 lt_prog_compiler_pic='-pic'
7892 lt_prog_compiler_static='-Bstatic'
7896 lt_prog_compiler_can_build_shared=no
7898 esac
7901 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7902 $as_echo "$lt_prog_compiler_pic" >&6; }
7905 # Check to make sure the PIC flag actually works.
7907 if test -n "$lt_prog_compiler_pic"; then
7909 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7910 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7911 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7912 $as_echo_n "(cached) " >&6
7913 else
7914 lt_cv_prog_compiler_pic_works=no
7915 ac_outfile=conftest.$ac_objext
7916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7917 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7918 # Insert the option either (1) after the last *FLAGS variable, or
7919 # (2) before a word containing "conftest.", or (3) at the end.
7920 # Note that $ac_compile itself does not contain backslashes and begins
7921 # with a dollar sign (not a hyphen), so the echo should work correctly.
7922 # The option is referenced via a variable to avoid confusing sed.
7923 lt_compile=`echo "$ac_compile" | $SED \
7924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7926 -e 's:$: $lt_compiler_flag:'`
7927 (eval echo "\"\$as_me:7927: $lt_compile\"" >&5)
7928 (eval "$lt_compile" 2>conftest.err)
7929 ac_status=$?
7930 cat conftest.err >&5
7931 echo "$as_me:7931: \$? = $ac_status" >&5
7932 if (exit $ac_status) && test -s "$ac_outfile"; then
7933 # The compiler can only warn and ignore the option if not recognized
7934 # So say no if there are warnings other than the usual output.
7935 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7937 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7938 lt_cv_prog_compiler_pic_works=yes
7941 $rm conftest*
7944 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7945 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7947 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7948 case $lt_prog_compiler_pic in
7949 "" | " "*) ;;
7950 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7951 esac
7952 else
7953 lt_prog_compiler_pic=
7954 lt_prog_compiler_can_build_shared=no
7958 case $host_os in
7959 # For platforms which do not support PIC, -DPIC is meaningless:
7960 *djgpp*)
7961 lt_prog_compiler_pic=
7964 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7966 esac
7969 # Check to make sure the static flag actually works.
7971 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7972 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7973 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7974 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7975 $as_echo_n "(cached) " >&6
7976 else
7977 lt_cv_prog_compiler_static_works=no
7978 save_LDFLAGS="$LDFLAGS"
7979 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7980 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7981 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7982 # The linker can only warn and ignore the option if not recognized
7983 # So say no if there are warnings
7984 if test -s conftest.err; then
7985 # Append any errors to the config.log.
7986 cat conftest.err 1>&5
7987 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7989 if diff conftest.exp conftest.er2 >/dev/null; then
7990 lt_cv_prog_compiler_static_works=yes
7992 else
7993 lt_cv_prog_compiler_static_works=yes
7996 $rm -r conftest*
7997 LDFLAGS="$save_LDFLAGS"
8000 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8001 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8003 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8005 else
8006 lt_prog_compiler_static=
8010 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8011 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8012 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8013 $as_echo_n "(cached) " >&6
8014 else
8015 lt_cv_prog_compiler_c_o=no
8016 $rm -r conftest 2>/dev/null
8017 mkdir conftest
8018 cd conftest
8019 mkdir out
8020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8022 lt_compiler_flag="-o out/conftest2.$ac_objext"
8023 # Insert the option either (1) after the last *FLAGS variable, or
8024 # (2) before a word containing "conftest.", or (3) at the end.
8025 # Note that $ac_compile itself does not contain backslashes and begins
8026 # with a dollar sign (not a hyphen), so the echo should work correctly.
8027 lt_compile=`echo "$ac_compile" | $SED \
8028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8030 -e 's:$: $lt_compiler_flag:'`
8031 (eval echo "\"\$as_me:8031: $lt_compile\"" >&5)
8032 (eval "$lt_compile" 2>out/conftest.err)
8033 ac_status=$?
8034 cat out/conftest.err >&5
8035 echo "$as_me:8035: \$? = $ac_status" >&5
8036 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8037 then
8038 # The compiler can only warn and ignore the option if not recognized
8039 # So say no if there are warnings
8040 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8041 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8042 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8043 lt_cv_prog_compiler_c_o=yes
8046 chmod u+w . 2>&5
8047 $rm conftest*
8048 # SGI C++ compiler will create directory out/ii_files/ for
8049 # template instantiation
8050 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8051 $rm out/* && rmdir out
8052 cd ..
8053 rmdir conftest
8054 $rm conftest*
8057 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8058 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8061 hard_links="nottested"
8062 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8063 # do not overwrite the value of need_locks provided by the user
8064 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8065 $as_echo_n "checking if we can lock with hard links... " >&6; }
8066 hard_links=yes
8067 $rm conftest*
8068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8069 touch conftest.a
8070 ln conftest.a conftest.b 2>&5 || hard_links=no
8071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8072 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8073 $as_echo "$hard_links" >&6; }
8074 if test "$hard_links" = no; then
8075 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8076 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8077 need_locks=warn
8079 else
8080 need_locks=no
8083 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8084 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8086 runpath_var=
8087 allow_undefined_flag=
8088 enable_shared_with_static_runtimes=no
8089 archive_cmds=
8090 archive_expsym_cmds=
8091 old_archive_From_new_cmds=
8092 old_archive_from_expsyms_cmds=
8093 export_dynamic_flag_spec=
8094 whole_archive_flag_spec=
8095 thread_safe_flag_spec=
8096 hardcode_libdir_flag_spec=
8097 hardcode_libdir_flag_spec_ld=
8098 hardcode_libdir_separator=
8099 hardcode_direct=no
8100 hardcode_minus_L=no
8101 hardcode_shlibpath_var=unsupported
8102 link_all_deplibs=unknown
8103 hardcode_automatic=no
8104 module_cmds=
8105 module_expsym_cmds=
8106 always_export_symbols=no
8107 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8108 # include_expsyms should be a list of space-separated symbols to be *always*
8109 # included in the symbol list
8110 include_expsyms=
8111 # exclude_expsyms can be an extended regexp of symbols to exclude
8112 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8113 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8114 # as well as any symbol that contains `d'.
8115 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8116 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8117 # platforms (ab)use it in PIC code, but their linkers get confused if
8118 # the symbol is explicitly referenced. Since portable code cannot
8119 # rely on this symbol name, it's probably fine to never include it in
8120 # preloaded symbol tables.
8121 # Exclude shared library initialization/finalization symbols.
8122 extract_expsyms_cmds=
8123 # Just being paranoid about ensuring that cc_basename is set.
8124 for cc_temp in $compiler""; do
8125 case $cc_temp in
8126 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8127 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8128 \-*) ;;
8129 *) break;;
8130 esac
8131 done
8132 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8134 case $host_os in
8135 cygwin* | mingw* | pw32*)
8136 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8137 # When not using gcc, we currently assume that we are using
8138 # Microsoft Visual C++.
8139 if test "$GCC" != yes; then
8140 with_gnu_ld=no
8143 interix*)
8144 # we just hope/assume this is gcc and not c89 (= MSVC++)
8145 with_gnu_ld=yes
8147 openbsd*)
8148 with_gnu_ld=no
8150 esac
8152 ld_shlibs=yes
8153 if test "$with_gnu_ld" = yes; then
8154 # If archive_cmds runs LD, not CC, wlarc should be empty
8155 wlarc='${wl}'
8157 # Set some defaults for GNU ld with shared library support. These
8158 # are reset later if shared libraries are not supported. Putting them
8159 # here allows them to be overridden if necessary.
8160 runpath_var=LD_RUN_PATH
8161 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8162 export_dynamic_flag_spec='${wl}--export-dynamic'
8163 # ancient GNU ld didn't support --whole-archive et. al.
8164 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8165 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8166 else
8167 whole_archive_flag_spec=
8169 supports_anon_versioning=no
8170 case `$LD -v 2>/dev/null` in
8171 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8172 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8173 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8174 *\ 2.11.*) ;; # other 2.11 versions
8175 *) supports_anon_versioning=yes ;;
8176 esac
8178 # See if GNU ld supports shared libraries.
8179 case $host_os in
8180 aix[3-9]*)
8181 # On AIX/PPC, the GNU linker is very broken
8182 if test "$host_cpu" != ia64; then
8183 ld_shlibs=no
8184 cat <<EOF 1>&2
8186 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8187 *** to be unable to reliably create shared libraries on AIX.
8188 *** Therefore, libtool is disabling shared libraries support. If you
8189 *** really care for shared libraries, you may want to modify your PATH
8190 *** so that a non-GNU linker is found, and then restart.
8196 amigaos*)
8197 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)'
8198 hardcode_libdir_flag_spec='-L$libdir'
8199 hardcode_minus_L=yes
8201 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8202 # that the semantics of dynamic libraries on AmigaOS, at least up
8203 # to version 4, is to share data among multiple programs linked
8204 # with the same dynamic library. Since this doesn't match the
8205 # behavior of shared libraries on other platforms, we can't use
8206 # them.
8207 ld_shlibs=no
8210 beos*)
8211 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8212 allow_undefined_flag=unsupported
8213 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8214 # support --undefined. This deserves some investigation. FIXME
8215 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8216 else
8217 ld_shlibs=no
8221 cygwin* | mingw* | pw32*)
8222 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8223 # as there is no search path for DLLs.
8224 hardcode_libdir_flag_spec='-L$libdir'
8225 allow_undefined_flag=unsupported
8226 always_export_symbols=no
8227 enable_shared_with_static_runtimes=yes
8228 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8230 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8232 # If the export-symbols file already is a .def file (1st line
8233 # is EXPORTS), use it as is; otherwise, prepend...
8234 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8235 cp $export_symbols $output_objdir/$soname.def;
8236 else
8237 echo EXPORTS > $output_objdir/$soname.def;
8238 cat $export_symbols >> $output_objdir/$soname.def;
8240 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8241 else
8242 ld_shlibs=no
8246 interix[3-9]*)
8247 hardcode_direct=no
8248 hardcode_shlibpath_var=no
8249 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8250 export_dynamic_flag_spec='${wl}-E'
8251 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8252 # Instead, shared libraries are loaded at an image base (0x10000000 by
8253 # default) and relocated if they conflict, which is a slow very memory
8254 # consuming and fragmenting process. To avoid this, we pick a random,
8255 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8256 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8257 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8258 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'
8261 gnu* | linux* | k*bsd*-gnu)
8262 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8263 tmp_addflag=
8264 case $cc_basename,$host_cpu in
8265 pgcc*) # Portland Group C compiler
8266 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'
8267 tmp_addflag=' $pic_flag'
8269 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8270 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'
8271 tmp_addflag=' $pic_flag -Mnomain' ;;
8272 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8273 tmp_addflag=' -i_dynamic' ;;
8274 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8275 tmp_addflag=' -i_dynamic -nofor_main' ;;
8276 ifc* | ifort*) # Intel Fortran compiler
8277 tmp_addflag=' -nofor_main' ;;
8278 esac
8279 case `$CC -V 2>&1 | sed 5q` in
8280 *Sun\ C*) # Sun C 5.9
8281 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'
8282 tmp_sharedflag='-G' ;;
8283 *Sun\ F*) # Sun Fortran 8.3
8284 tmp_sharedflag='-G' ;;
8286 tmp_sharedflag='-shared' ;;
8287 esac
8288 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290 if test $supports_anon_versioning = yes; then
8291 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8292 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8293 $echo "local: *; };" >> $output_objdir/$libname.ver~
8294 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8296 link_all_deplibs=no
8297 else
8298 ld_shlibs=no
8302 netbsd* | netbsdelf*-gnu)
8303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8304 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8305 wlarc=
8306 else
8307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8312 solaris*)
8313 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8314 ld_shlibs=no
8315 cat <<EOF 1>&2
8317 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8318 *** create shared libraries on Solaris systems. Therefore, libtool
8319 *** is disabling shared libraries support. We urge you to upgrade GNU
8320 *** binutils to release 2.9.1 or newer. Another option is to modify
8321 *** your PATH or compiler configuration so that the native linker is
8322 *** used, and then restart.
8325 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8327 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8328 else
8329 ld_shlibs=no
8333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8334 case `$LD -v 2>&1` in
8335 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8336 ld_shlibs=no
8337 cat <<_LT_EOF 1>&2
8339 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8340 *** reliably create shared libraries on SCO systems. Therefore, libtool
8341 *** is disabling shared libraries support. We urge you to upgrade GNU
8342 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8343 *** your PATH or compiler configuration so that the native linker is
8344 *** used, and then restart.
8346 _LT_EOF
8349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8350 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8353 else
8354 ld_shlibs=no
8357 esac
8360 sunos4*)
8361 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8362 wlarc=
8363 hardcode_direct=yes
8364 hardcode_shlibpath_var=no
8368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8370 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8371 else
8372 ld_shlibs=no
8375 esac
8377 if test "$ld_shlibs" = no; then
8378 runpath_var=
8379 hardcode_libdir_flag_spec=
8380 export_dynamic_flag_spec=
8381 whole_archive_flag_spec=
8383 else
8384 # PORTME fill in a description of your system's linker (not GNU ld)
8385 case $host_os in
8386 aix3*)
8387 allow_undefined_flag=unsupported
8388 always_export_symbols=yes
8389 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'
8390 # Note: this linker hardcodes the directories in LIBPATH if there
8391 # are no directories specified by -L.
8392 hardcode_minus_L=yes
8393 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8394 # Neither direct hardcoding nor static linking is supported with a
8395 # broken collect2.
8396 hardcode_direct=unsupported
8400 aix[4-9]*)
8401 if test "$host_cpu" = ia64; then
8402 # On IA64, the linker does run time linking by default, so we don't
8403 # have to do anything special.
8404 aix_use_runtimelinking=no
8405 exp_sym_flag='-Bexport'
8406 no_entry_flag=""
8407 else
8408 # If we're using GNU nm, then we don't want the "-C" option.
8409 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8410 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8411 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'
8412 else
8413 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'
8415 aix_use_runtimelinking=no
8417 # Test if we are trying to use run time linking or normal
8418 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8419 # need to do runtime linking.
8420 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8421 for ld_flag in $LDFLAGS; do
8422 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8423 aix_use_runtimelinking=yes
8424 break
8426 done
8428 esac
8430 exp_sym_flag='-bexport'
8431 no_entry_flag='-bnoentry'
8434 # When large executables or shared objects are built, AIX ld can
8435 # have problems creating the table of contents. If linking a library
8436 # or program results in "error TOC overflow" add -mminimal-toc to
8437 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8438 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8440 archive_cmds=''
8441 hardcode_direct=yes
8442 hardcode_libdir_separator=':'
8443 link_all_deplibs=yes
8445 if test "$GCC" = yes; then
8446 case $host_os in aix4.[012]|aix4.[012].*)
8447 # We only want to do this on AIX 4.2 and lower, the check
8448 # below for broken collect2 doesn't work under 4.3+
8449 collect2name=`${CC} -print-prog-name=collect2`
8450 if test -f "$collect2name" && \
8451 strings "$collect2name" | grep resolve_lib_name >/dev/null
8452 then
8453 # We have reworked collect2
8455 else
8456 # We have old collect2
8457 hardcode_direct=unsupported
8458 # It fails to find uninstalled libraries when the uninstalled
8459 # path is not listed in the libpath. Setting hardcode_minus_L
8460 # to unsupported forces relinking
8461 hardcode_minus_L=yes
8462 hardcode_libdir_flag_spec='-L$libdir'
8463 hardcode_libdir_separator=
8466 esac
8467 shared_flag='-shared'
8468 if test "$aix_use_runtimelinking" = yes; then
8469 shared_flag="$shared_flag "'${wl}-G'
8471 else
8472 # not using gcc
8473 if test "$host_cpu" = ia64; then
8474 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8475 # chokes on -Wl,-G. The following line is correct:
8476 shared_flag='-G'
8477 else
8478 if test "$aix_use_runtimelinking" = yes; then
8479 shared_flag='${wl}-G'
8480 else
8481 shared_flag='${wl}-bM:SRE'
8486 # It seems that -bexpall does not export symbols beginning with
8487 # underscore (_), so it is better to generate a list of symbols to export.
8488 always_export_symbols=yes
8489 if test "$aix_use_runtimelinking" = yes; then
8490 # Warning - without using the other runtime loading flags (-brtl),
8491 # -berok will link without error, but may produce a broken library.
8492 allow_undefined_flag='-berok'
8493 # Determine the default libpath from the value encoded in an empty executable.
8494 cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h. */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8502 main ()
8506 return 0;
8508 _ACEOF
8509 rm -f conftest.$ac_objext conftest$ac_exeext
8510 if { (ac_try="$ac_link"
8511 case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8514 esac
8515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8516 $as_echo "$ac_try_echo") >&5
8517 (eval "$ac_link") 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_c_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest$ac_exeext && {
8527 test "$cross_compiling" = yes ||
8528 $as_test_x conftest$ac_exeext
8529 }; then
8531 lt_aix_libpath_sed='
8532 /Import File Strings/,/^$/ {
8533 /^0/ {
8534 s/^0 *\(.*\)$/\1/
8538 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8539 # Check for a 64-bit object if we didn't find anything.
8540 if test -z "$aix_libpath"; then
8541 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8543 else
8544 $as_echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8550 rm -rf conftest.dSYM
8551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8552 conftest$ac_exeext conftest.$ac_ext
8553 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8555 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8556 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"
8557 else
8558 if test "$host_cpu" = ia64; then
8559 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8560 allow_undefined_flag="-z nodefs"
8561 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"
8562 else
8563 # Determine the default libpath from the value encoded in an empty executable.
8564 cat >conftest.$ac_ext <<_ACEOF
8565 /* confdefs.h. */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8572 main ()
8576 return 0;
8578 _ACEOF
8579 rm -f conftest.$ac_objext conftest$ac_exeext
8580 if { (ac_try="$ac_link"
8581 case "(($ac_try" in
8582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583 *) ac_try_echo=$ac_try;;
8584 esac
8585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8586 $as_echo "$ac_try_echo") >&5
8587 (eval "$ac_link") 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } && {
8594 test -z "$ac_c_werror_flag" ||
8595 test ! -s conftest.err
8596 } && test -s conftest$ac_exeext && {
8597 test "$cross_compiling" = yes ||
8598 $as_test_x conftest$ac_exeext
8599 }; then
8601 lt_aix_libpath_sed='
8602 /Import File Strings/,/^$/ {
8603 /^0/ {
8604 s/^0 *\(.*\)$/\1/
8608 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8609 # Check for a 64-bit object if we didn't find anything.
8610 if test -z "$aix_libpath"; then
8611 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8613 else
8614 $as_echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8620 rm -rf conftest.dSYM
8621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8622 conftest$ac_exeext conftest.$ac_ext
8623 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8625 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8626 # Warning - without using the other run time loading flags,
8627 # -berok will link without error, but may produce a broken library.
8628 no_undefined_flag=' ${wl}-bernotok'
8629 allow_undefined_flag=' ${wl}-berok'
8630 # Exported symbols can be pulled into shared objects from archives
8631 whole_archive_flag_spec='$convenience'
8632 archive_cmds_need_lc=yes
8633 # This is similar to how AIX traditionally builds its shared libraries.
8634 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'
8639 amigaos*)
8640 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)'
8641 hardcode_libdir_flag_spec='-L$libdir'
8642 hardcode_minus_L=yes
8643 # see comment about different semantics on the GNU ld section
8644 ld_shlibs=no
8647 bsdi[45]*)
8648 export_dynamic_flag_spec=-rdynamic
8651 cygwin* | mingw* | pw32*)
8652 # When not using gcc, we currently assume that we are using
8653 # Microsoft Visual C++.
8654 # hardcode_libdir_flag_spec is actually meaningless, as there is
8655 # no search path for DLLs.
8656 hardcode_libdir_flag_spec=' '
8657 allow_undefined_flag=unsupported
8658 # Tell ltmain to make .lib files, not .a files.
8659 libext=lib
8660 # Tell ltmain to make .dll files, not .so files.
8661 shrext_cmds=".dll"
8662 # FIXME: Setting linknames here is a bad hack.
8663 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8664 # The linker will automatically build a .lib file if we build a DLL.
8665 old_archive_From_new_cmds='true'
8666 # FIXME: Should let the user specify the lib program.
8667 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8668 fix_srcfile_path='`cygpath -w "$srcfile"`'
8669 enable_shared_with_static_runtimes=yes
8672 darwin* | rhapsody*)
8673 case $host_os in
8674 rhapsody* | darwin1.[012])
8675 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8677 *) # Darwin 1.3 on
8678 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8679 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8680 else
8681 case ${MACOSX_DEPLOYMENT_TARGET} in
8682 10.[012])
8683 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8685 10.*)
8686 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8688 esac
8691 esac
8692 archive_cmds_need_lc=no
8693 hardcode_direct=no
8694 hardcode_automatic=yes
8695 hardcode_shlibpath_var=unsupported
8696 whole_archive_flag_spec=''
8697 link_all_deplibs=yes
8698 if test "$GCC" = yes ; then
8699 output_verbose_link_cmd='echo'
8700 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8701 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8702 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}"
8703 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}"
8704 else
8705 case $cc_basename in
8706 xlc*)
8707 output_verbose_link_cmd='echo'
8708 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8709 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8710 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8711 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}'
8712 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}'
8715 ld_shlibs=no
8717 esac
8721 dgux*)
8722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8723 hardcode_libdir_flag_spec='-L$libdir'
8724 hardcode_shlibpath_var=no
8727 freebsd1*)
8728 ld_shlibs=no
8731 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8732 # support. Future versions do this automatically, but an explicit c++rt0.o
8733 # does not break anything, and helps significantly (at the cost of a little
8734 # extra space).
8735 freebsd2.2*)
8736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8737 hardcode_libdir_flag_spec='-R$libdir'
8738 hardcode_direct=yes
8739 hardcode_shlibpath_var=no
8742 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8743 freebsd2*)
8744 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8745 hardcode_direct=yes
8746 hardcode_minus_L=yes
8747 hardcode_shlibpath_var=no
8750 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8751 freebsd* | dragonfly*)
8752 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8753 hardcode_libdir_flag_spec='-R$libdir'
8754 hardcode_direct=yes
8755 hardcode_shlibpath_var=no
8758 hpux9*)
8759 if test "$GCC" = yes; then
8760 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'
8761 else
8762 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'
8764 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8765 hardcode_libdir_separator=:
8766 hardcode_direct=yes
8768 # hardcode_minus_L: Not really in the search PATH,
8769 # but as the default location of the library.
8770 hardcode_minus_L=yes
8771 export_dynamic_flag_spec='${wl}-E'
8774 hpux10*)
8775 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8776 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8777 else
8778 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8780 if test "$with_gnu_ld" = no; then
8781 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8782 hardcode_libdir_separator=:
8784 hardcode_direct=yes
8785 export_dynamic_flag_spec='${wl}-E'
8787 # hardcode_minus_L: Not really in the search PATH,
8788 # but as the default location of the library.
8789 hardcode_minus_L=yes
8793 hpux11*)
8794 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8795 case $host_cpu in
8796 hppa*64*)
8797 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8799 ia64*)
8800 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8803 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8805 esac
8806 else
8807 case $host_cpu in
8808 hppa*64*)
8809 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8811 ia64*)
8812 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8815 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8817 esac
8819 if test "$with_gnu_ld" = no; then
8820 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8821 hardcode_libdir_separator=:
8823 case $host_cpu in
8824 hppa*64*|ia64*)
8825 hardcode_libdir_flag_spec_ld='+b $libdir'
8826 hardcode_direct=no
8827 hardcode_shlibpath_var=no
8830 hardcode_direct=yes
8831 export_dynamic_flag_spec='${wl}-E'
8833 # hardcode_minus_L: Not really in the search PATH,
8834 # but as the default location of the library.
8835 hardcode_minus_L=yes
8837 esac
8841 irix5* | irix6* | nonstopux*)
8842 if test "$GCC" = yes; then
8843 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'
8844 else
8845 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'
8846 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8849 hardcode_libdir_separator=:
8850 link_all_deplibs=yes
8853 netbsd* | netbsdelf*-gnu)
8854 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8855 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8856 else
8857 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8859 hardcode_libdir_flag_spec='-R$libdir'
8860 hardcode_direct=yes
8861 hardcode_shlibpath_var=no
8864 newsos6)
8865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8866 hardcode_direct=yes
8867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8868 hardcode_libdir_separator=:
8869 hardcode_shlibpath_var=no
8872 openbsd*)
8873 if test -f /usr/libexec/ld.so; then
8874 hardcode_direct=yes
8875 hardcode_shlibpath_var=no
8876 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8877 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8878 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8879 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8880 export_dynamic_flag_spec='${wl}-E'
8881 else
8882 case $host_os in
8883 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8884 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8885 hardcode_libdir_flag_spec='-R$libdir'
8888 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8891 esac
8893 else
8894 ld_shlibs=no
8898 os2*)
8899 hardcode_libdir_flag_spec='-L$libdir'
8900 hardcode_minus_L=yes
8901 allow_undefined_flag=unsupported
8902 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'
8903 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8906 osf3*)
8907 if test "$GCC" = yes; then
8908 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8909 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'
8910 else
8911 allow_undefined_flag=' -expect_unresolved \*'
8912 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'
8914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8915 hardcode_libdir_separator=:
8918 osf4* | osf5*) # as osf3* with the addition of -msym flag
8919 if test "$GCC" = yes; then
8920 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8921 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'
8922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8923 else
8924 allow_undefined_flag=' -expect_unresolved \*'
8925 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'
8926 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8927 $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'
8929 # Both c and cxx compiler support -rpath directly
8930 hardcode_libdir_flag_spec='-rpath $libdir'
8932 hardcode_libdir_separator=:
8935 solaris*)
8936 no_undefined_flag=' -z text'
8937 if test "$GCC" = yes; then
8938 wlarc='${wl}'
8939 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8940 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8941 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8942 else
8943 wlarc=''
8944 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8945 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8946 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8948 hardcode_libdir_flag_spec='-R$libdir'
8949 hardcode_shlibpath_var=no
8950 case $host_os in
8951 solaris2.[0-5] | solaris2.[0-5].*) ;;
8953 # The compiler driver will combine and reorder linker options,
8954 # but understands `-z linker_flag'. GCC discards it without `$wl',
8955 # but is careful enough not to reorder.
8956 # Supported since Solaris 2.6 (maybe 2.5.1?)
8957 if test "$GCC" = yes; then
8958 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8959 else
8960 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8963 esac
8964 link_all_deplibs=yes
8967 sunos4*)
8968 if test "x$host_vendor" = xsequent; then
8969 # Use $CC to link under sequent, because it throws in some extra .o
8970 # files that make .init and .fini sections work.
8971 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8972 else
8973 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8975 hardcode_libdir_flag_spec='-L$libdir'
8976 hardcode_direct=yes
8977 hardcode_minus_L=yes
8978 hardcode_shlibpath_var=no
8981 sysv4)
8982 case $host_vendor in
8983 sni)
8984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8985 hardcode_direct=yes # is this really true???
8987 siemens)
8988 ## LD is ld it makes a PLAMLIB
8989 ## CC just makes a GrossModule.
8990 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8991 reload_cmds='$CC -r -o $output$reload_objs'
8992 hardcode_direct=no
8994 motorola)
8995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8996 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8998 esac
8999 runpath_var='LD_RUN_PATH'
9000 hardcode_shlibpath_var=no
9003 sysv4.3*)
9004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9005 hardcode_shlibpath_var=no
9006 export_dynamic_flag_spec='-Bexport'
9009 sysv4*MP*)
9010 if test -d /usr/nec; then
9011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9012 hardcode_shlibpath_var=no
9013 runpath_var=LD_RUN_PATH
9014 hardcode_runpath_var=yes
9015 ld_shlibs=yes
9019 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9020 no_undefined_flag='${wl}-z,text'
9021 archive_cmds_need_lc=no
9022 hardcode_shlibpath_var=no
9023 runpath_var='LD_RUN_PATH'
9025 if test "$GCC" = yes; then
9026 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9027 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9028 else
9029 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9030 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9034 sysv5* | sco3.2v5* | sco5v6*)
9035 # Note: We can NOT use -z defs as we might desire, because we do not
9036 # link with -lc, and that would cause any symbols used from libc to
9037 # always be unresolved, which means just about no library would
9038 # ever link correctly. If we're not using GNU ld we use -z text
9039 # though, which does catch some bad symbols but isn't as heavy-handed
9040 # as -z defs.
9041 no_undefined_flag='${wl}-z,text'
9042 allow_undefined_flag='${wl}-z,nodefs'
9043 archive_cmds_need_lc=no
9044 hardcode_shlibpath_var=no
9045 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9046 hardcode_libdir_separator=':'
9047 link_all_deplibs=yes
9048 export_dynamic_flag_spec='${wl}-Bexport'
9049 runpath_var='LD_RUN_PATH'
9051 if test "$GCC" = yes; then
9052 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9053 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9054 else
9055 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9056 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9060 uts4*)
9061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9062 hardcode_libdir_flag_spec='-L$libdir'
9063 hardcode_shlibpath_var=no
9067 ld_shlibs=no
9069 esac
9072 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9073 $as_echo "$ld_shlibs" >&6; }
9074 test "$ld_shlibs" = no && can_build_shared=no
9077 # Do we need to explicitly link libc?
9079 case "x$archive_cmds_need_lc" in
9080 x|xyes)
9081 # Assume -lc should be added
9082 archive_cmds_need_lc=yes
9084 if test "$enable_shared" = yes && test "$GCC" = yes; then
9085 case $archive_cmds in
9086 *'~'*)
9087 # FIXME: we may have to deal with multi-command sequences.
9089 '$CC '*)
9090 # Test whether the compiler implicitly links with -lc since on some
9091 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9092 # to ld, don't add -lc before -lgcc.
9093 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9094 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9095 $rm conftest*
9096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099 (eval $ac_compile) 2>&5
9100 ac_status=$?
9101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } 2>conftest.err; then
9103 soname=conftest
9104 lib=conftest
9105 libobjs=conftest.$ac_objext
9106 deplibs=
9107 wl=$lt_prog_compiler_wl
9108 pic_flag=$lt_prog_compiler_pic
9109 compiler_flags=-v
9110 linker_flags=-v
9111 verstring=
9112 output_objdir=.
9113 libname=conftest
9114 lt_save_allow_undefined_flag=$allow_undefined_flag
9115 allow_undefined_flag=
9116 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9117 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9118 ac_status=$?
9119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }
9121 then
9122 archive_cmds_need_lc=no
9123 else
9124 archive_cmds_need_lc=yes
9126 allow_undefined_flag=$lt_save_allow_undefined_flag
9127 else
9128 cat conftest.err 1>&5
9130 $rm conftest*
9131 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9132 $as_echo "$archive_cmds_need_lc" >&6; }
9134 esac
9137 esac
9139 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9140 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9141 library_names_spec=
9142 libname_spec='lib$name'
9143 soname_spec=
9144 shrext_cmds=".so"
9145 postinstall_cmds=
9146 postuninstall_cmds=
9147 finish_cmds=
9148 finish_eval=
9149 shlibpath_var=
9150 shlibpath_overrides_runpath=unknown
9151 version_type=none
9152 dynamic_linker="$host_os ld.so"
9153 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9155 if test "$GCC" = yes; then
9156 case $host_os in
9157 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9158 *) lt_awk_arg="/^libraries:/" ;;
9159 esac
9160 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9161 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9162 # if the path contains ";" then we assume it to be the separator
9163 # otherwise default to the standard path separator (i.e. ":") - it is
9164 # assumed that no part of a normal pathname contains ";" but that should
9165 # okay in the real world where ";" in dirpaths is itself problematic.
9166 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9167 else
9168 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9170 # Ok, now we have the path, separated by spaces, we can step through it
9171 # and add multilib dir if necessary.
9172 lt_tmp_lt_search_path_spec=
9173 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9174 for lt_sys_path in $lt_search_path_spec; do
9175 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9176 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9177 else
9178 test -d "$lt_sys_path" && \
9179 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9181 done
9182 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9183 BEGIN {RS=" "; FS="/|\n";} {
9184 lt_foo="";
9185 lt_count=0;
9186 for (lt_i = NF; lt_i > 0; lt_i--) {
9187 if ($lt_i != "" && $lt_i != ".") {
9188 if ($lt_i == "..") {
9189 lt_count++;
9190 } else {
9191 if (lt_count == 0) {
9192 lt_foo="/" $lt_i lt_foo;
9193 } else {
9194 lt_count--;
9199 if (lt_foo != "") { lt_freq[lt_foo]++; }
9200 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9202 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9203 else
9204 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9206 need_lib_prefix=unknown
9207 hardcode_into_libs=no
9209 # when you set need_version to no, make sure it does not cause -set_version
9210 # flags to be left without arguments
9211 need_version=unknown
9213 case $host_os in
9214 aix3*)
9215 version_type=linux
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9217 shlibpath_var=LIBPATH
9219 # AIX 3 has no versioning support, so we append a major version to the name.
9220 soname_spec='${libname}${release}${shared_ext}$major'
9223 aix[4-9]*)
9224 version_type=linux
9225 need_lib_prefix=no
9226 need_version=no
9227 hardcode_into_libs=yes
9228 if test "$host_cpu" = ia64; then
9229 # AIX 5 supports IA64
9230 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 else
9233 # With GCC up to 2.95.x, collect2 would create an import file
9234 # for dependence libraries. The import file would start with
9235 # the line `#! .'. This would cause the generated library to
9236 # depend on `.', always an invalid library. This was fixed in
9237 # development snapshots of GCC prior to 3.0.
9238 case $host_os in
9239 aix4 | aix4.[01] | aix4.[01].*)
9240 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9241 echo ' yes '
9242 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9244 else
9245 can_build_shared=no
9248 esac
9249 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9250 # soname into executable. Probably we can add versioning support to
9251 # collect2, so additional links can be useful in future.
9252 if test "$aix_use_runtimelinking" = yes; then
9253 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9254 # instead of lib<name>.a to let people know that these are not
9255 # typical AIX shared libraries.
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9257 else
9258 # We preserve .a as extension for shared libraries through AIX4.2
9259 # and later when we are not doing run time linking.
9260 library_names_spec='${libname}${release}.a $libname.a'
9261 soname_spec='${libname}${release}${shared_ext}$major'
9263 shlibpath_var=LIBPATH
9267 amigaos*)
9268 library_names_spec='$libname.ixlibrary $libname.a'
9269 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9270 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'
9273 beos*)
9274 library_names_spec='${libname}${shared_ext}'
9275 dynamic_linker="$host_os ld.so"
9276 shlibpath_var=LIBRARY_PATH
9279 bsdi[45]*)
9280 version_type=linux
9281 need_version=no
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9285 shlibpath_var=LD_LIBRARY_PATH
9286 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9287 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9288 # the default ld.so.conf also contains /usr/contrib/lib and
9289 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9290 # libtool to hard-code these into programs
9293 cygwin* | mingw* | pw32*)
9294 version_type=windows
9295 shrext_cmds=".dll"
9296 need_version=no
9297 need_lib_prefix=no
9299 case $GCC,$host_os in
9300 yes,cygwin* | yes,mingw* | yes,pw32*)
9301 library_names_spec='$libname.dll.a'
9302 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9303 postinstall_cmds='base_file=`basename \${file}`~
9304 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9305 dldir=$destdir/`dirname \$dlpath`~
9306 test -d \$dldir || mkdir -p \$dldir~
9307 $install_prog $dir/$dlname \$dldir/$dlname~
9308 chmod a+x \$dldir/$dlname'
9309 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9310 dlpath=$dir/\$dldll~
9311 $rm \$dlpath'
9312 shlibpath_overrides_runpath=yes
9314 case $host_os in
9315 cygwin*)
9316 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9317 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9318 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9320 mingw*)
9321 # MinGW DLLs use traditional 'lib' prefix
9322 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9323 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9324 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9325 # It is most probably a Windows format PATH printed by
9326 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9327 # path with ; separators, and with drive letters. We can handle the
9328 # drive letters (cygwin fileutils understands them), so leave them,
9329 # especially as we might pass files found there to a mingw objdump,
9330 # which wouldn't understand a cygwinified path. Ahh.
9331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9332 else
9333 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9336 pw32*)
9337 # pw32 DLLs use 'pw' prefix rather than 'lib'
9338 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9340 esac
9344 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9346 esac
9347 dynamic_linker='Win32 ld.exe'
9348 # FIXME: first we should search . and the directory the executable is in
9349 shlibpath_var=PATH
9352 darwin* | rhapsody*)
9353 dynamic_linker="$host_os dyld"
9354 version_type=darwin
9355 need_lib_prefix=no
9356 need_version=no
9357 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9358 soname_spec='${libname}${release}${major}$shared_ext'
9359 shlibpath_overrides_runpath=yes
9360 shlibpath_var=DYLD_LIBRARY_PATH
9361 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9363 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9364 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9367 dgux*)
9368 version_type=linux
9369 need_lib_prefix=no
9370 need_version=no
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9372 soname_spec='${libname}${release}${shared_ext}$major'
9373 shlibpath_var=LD_LIBRARY_PATH
9376 freebsd1*)
9377 dynamic_linker=no
9380 freebsd* | dragonfly*)
9381 # DragonFly does not have aout. When/if they implement a new
9382 # versioning mechanism, adjust this.
9383 if test -x /usr/bin/objformat; then
9384 objformat=`/usr/bin/objformat`
9385 else
9386 case $host_os in
9387 freebsd[123]*) objformat=aout ;;
9388 *) objformat=elf ;;
9389 esac
9391 version_type=freebsd-$objformat
9392 case $version_type in
9393 freebsd-elf*)
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9395 need_version=no
9396 need_lib_prefix=no
9398 freebsd-*)
9399 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9400 need_version=yes
9402 esac
9403 shlibpath_var=LD_LIBRARY_PATH
9404 case $host_os in
9405 freebsd2*)
9406 shlibpath_overrides_runpath=yes
9408 freebsd3.[01]* | freebsdelf3.[01]*)
9409 shlibpath_overrides_runpath=yes
9410 hardcode_into_libs=yes
9412 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9413 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9414 shlibpath_overrides_runpath=no
9415 hardcode_into_libs=yes
9417 *) # from 4.6 on, and DragonFly
9418 shlibpath_overrides_runpath=yes
9419 hardcode_into_libs=yes
9421 esac
9424 gnu*)
9425 version_type=linux
9426 need_lib_prefix=no
9427 need_version=no
9428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9429 soname_spec='${libname}${release}${shared_ext}$major'
9430 shlibpath_var=LD_LIBRARY_PATH
9431 hardcode_into_libs=yes
9434 hpux9* | hpux10* | hpux11*)
9435 # Give a soname corresponding to the major version so that dld.sl refuses to
9436 # link against other versions.
9437 version_type=sunos
9438 need_lib_prefix=no
9439 need_version=no
9440 case $host_cpu in
9441 ia64*)
9442 shrext_cmds='.so'
9443 hardcode_into_libs=yes
9444 dynamic_linker="$host_os dld.so"
9445 shlibpath_var=LD_LIBRARY_PATH
9446 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9448 soname_spec='${libname}${release}${shared_ext}$major'
9449 if test "X$HPUX_IA64_MODE" = X32; then
9450 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9451 else
9452 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9454 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9456 hppa*64*)
9457 shrext_cmds='.sl'
9458 hardcode_into_libs=yes
9459 dynamic_linker="$host_os dld.sl"
9460 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463 soname_spec='${libname}${release}${shared_ext}$major'
9464 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9468 shrext_cmds='.sl'
9469 dynamic_linker="$host_os dld.sl"
9470 shlibpath_var=SHLIB_PATH
9471 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9473 soname_spec='${libname}${release}${shared_ext}$major'
9475 esac
9476 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9477 postinstall_cmds='chmod 555 $lib'
9480 interix[3-9]*)
9481 version_type=linux
9482 need_lib_prefix=no
9483 need_version=no
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9487 shlibpath_var=LD_LIBRARY_PATH
9488 shlibpath_overrides_runpath=no
9489 hardcode_into_libs=yes
9492 irix5* | irix6* | nonstopux*)
9493 case $host_os in
9494 nonstopux*) version_type=nonstopux ;;
9496 if test "$lt_cv_prog_gnu_ld" = yes; then
9497 version_type=linux
9498 else
9499 version_type=irix
9500 fi ;;
9501 esac
9502 need_lib_prefix=no
9503 need_version=no
9504 soname_spec='${libname}${release}${shared_ext}$major'
9505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9506 case $host_os in
9507 irix5* | nonstopux*)
9508 libsuff= shlibsuff=
9511 case $LD in # libtool.m4 will add one of these switches to LD
9512 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9513 libsuff= shlibsuff= libmagic=32-bit;;
9514 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9515 libsuff=32 shlibsuff=N32 libmagic=N32;;
9516 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9517 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9518 *) libsuff= shlibsuff= libmagic=never-match;;
9519 esac
9521 esac
9522 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9523 shlibpath_overrides_runpath=no
9524 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9525 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9526 hardcode_into_libs=yes
9529 # No shared lib support for Linux oldld, aout, or coff.
9530 linux*oldld* | linux*aout* | linux*coff*)
9531 dynamic_linker=no
9534 # This must be Linux ELF.
9535 linux* | k*bsd*-gnu)
9536 version_type=linux
9537 need_lib_prefix=no
9538 need_version=no
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540 soname_spec='${libname}${release}${shared_ext}$major'
9541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9542 shlibpath_var=LD_LIBRARY_PATH
9543 shlibpath_overrides_runpath=no
9544 # This implies no fast_install, which is unacceptable.
9545 # Some rework will be needed to allow for fast_install
9546 # before this can be enabled.
9547 hardcode_into_libs=yes
9549 # Append ld.so.conf contents to the search path
9550 if test -f /etc/ld.so.conf; then
9551 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' ' '`
9552 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9555 # We used to test for /lib/ld.so.1 and disable shared libraries on
9556 # powerpc, because MkLinux only supported shared libraries with the
9557 # GNU dynamic linker. Since this was broken with cross compilers,
9558 # most powerpc-linux boxes support dynamic linking these days and
9559 # people can always --disable-shared, the test was removed, and we
9560 # assume the GNU/Linux dynamic linker is in use.
9561 dynamic_linker='GNU/Linux ld.so'
9564 netbsdelf*-gnu)
9565 version_type=linux
9566 need_lib_prefix=no
9567 need_version=no
9568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9569 soname_spec='${libname}${release}${shared_ext}$major'
9570 shlibpath_var=LD_LIBRARY_PATH
9571 shlibpath_overrides_runpath=no
9572 hardcode_into_libs=yes
9573 dynamic_linker='NetBSD ld.elf_so'
9576 netbsd*)
9577 version_type=sunos
9578 need_lib_prefix=no
9579 need_version=no
9580 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9583 dynamic_linker='NetBSD (a.out) ld.so'
9584 else
9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9586 soname_spec='${libname}${release}${shared_ext}$major'
9587 dynamic_linker='NetBSD ld.elf_so'
9589 shlibpath_var=LD_LIBRARY_PATH
9590 shlibpath_overrides_runpath=yes
9591 hardcode_into_libs=yes
9594 newsos6)
9595 version_type=linux
9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597 shlibpath_var=LD_LIBRARY_PATH
9598 shlibpath_overrides_runpath=yes
9601 nto-qnx*)
9602 version_type=linux
9603 need_lib_prefix=no
9604 need_version=no
9605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9606 soname_spec='${libname}${release}${shared_ext}$major'
9607 shlibpath_var=LD_LIBRARY_PATH
9608 shlibpath_overrides_runpath=yes
9611 openbsd*)
9612 version_type=sunos
9613 sys_lib_dlsearch_path_spec="/usr/lib"
9614 need_lib_prefix=no
9615 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9616 case $host_os in
9617 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9618 *) need_version=no ;;
9619 esac
9620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9622 shlibpath_var=LD_LIBRARY_PATH
9623 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9624 case $host_os in
9625 openbsd2.[89] | openbsd2.[89].*)
9626 shlibpath_overrides_runpath=no
9629 shlibpath_overrides_runpath=yes
9631 esac
9632 else
9633 shlibpath_overrides_runpath=yes
9637 os2*)
9638 libname_spec='$name'
9639 shrext_cmds=".dll"
9640 need_lib_prefix=no
9641 library_names_spec='$libname${shared_ext} $libname.a'
9642 dynamic_linker='OS/2 ld.exe'
9643 shlibpath_var=LIBPATH
9646 osf3* | osf4* | osf5*)
9647 version_type=osf
9648 need_lib_prefix=no
9649 need_version=no
9650 soname_spec='${libname}${release}${shared_ext}$major'
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652 shlibpath_var=LD_LIBRARY_PATH
9653 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9654 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9657 rdos*)
9658 dynamic_linker=no
9661 solaris*)
9662 version_type=linux
9663 need_lib_prefix=no
9664 need_version=no
9665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666 soname_spec='${libname}${release}${shared_ext}$major'
9667 shlibpath_var=LD_LIBRARY_PATH
9668 shlibpath_overrides_runpath=yes
9669 hardcode_into_libs=yes
9670 # ldd complains unless libraries are executable
9671 postinstall_cmds='chmod +x $lib'
9674 sunos4*)
9675 version_type=sunos
9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9677 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9678 shlibpath_var=LD_LIBRARY_PATH
9679 shlibpath_overrides_runpath=yes
9680 if test "$with_gnu_ld" = yes; then
9681 need_lib_prefix=no
9683 need_version=yes
9686 sysv4 | sysv4.3*)
9687 version_type=linux
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9689 soname_spec='${libname}${release}${shared_ext}$major'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 case $host_vendor in
9692 sni)
9693 shlibpath_overrides_runpath=no
9694 need_lib_prefix=no
9695 export_dynamic_flag_spec='${wl}-Blargedynsym'
9696 runpath_var=LD_RUN_PATH
9698 siemens)
9699 need_lib_prefix=no
9701 motorola)
9702 need_lib_prefix=no
9703 need_version=no
9704 shlibpath_overrides_runpath=no
9705 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9707 esac
9710 sysv4*MP*)
9711 if test -d /usr/nec ;then
9712 version_type=linux
9713 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9714 soname_spec='$libname${shared_ext}.$major'
9715 shlibpath_var=LD_LIBRARY_PATH
9719 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9720 version_type=freebsd-elf
9721 need_lib_prefix=no
9722 need_version=no
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9724 soname_spec='${libname}${release}${shared_ext}$major'
9725 shlibpath_var=LD_LIBRARY_PATH
9726 hardcode_into_libs=yes
9727 if test "$with_gnu_ld" = yes; then
9728 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9729 shlibpath_overrides_runpath=no
9730 else
9731 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9732 shlibpath_overrides_runpath=yes
9733 case $host_os in
9734 sco3.2v5*)
9735 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9737 esac
9739 sys_lib_dlsearch_path_spec='/usr/lib'
9742 uts4*)
9743 version_type=linux
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745 soname_spec='${libname}${release}${shared_ext}$major'
9746 shlibpath_var=LD_LIBRARY_PATH
9750 dynamic_linker=no
9752 esac
9753 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9754 $as_echo "$dynamic_linker" >&6; }
9755 test "$dynamic_linker" = no && can_build_shared=no
9757 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9758 $as_echo_n "(cached) " >&6
9759 else
9760 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9763 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9764 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9765 $as_echo_n "(cached) " >&6
9766 else
9767 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9770 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9772 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9773 if test "$GCC" = yes; then
9774 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9777 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9778 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9779 hardcode_action=
9780 if test -n "$hardcode_libdir_flag_spec" || \
9781 test -n "$runpath_var" || \
9782 test "X$hardcode_automatic" = "Xyes" ; then
9784 # We can hardcode non-existant directories.
9785 if test "$hardcode_direct" != no &&
9786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9787 # have to relink, otherwise we might link with an installed library
9788 # when we should be linking with a yet-to-be-installed one
9789 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9790 test "$hardcode_minus_L" != no; then
9791 # Linking always hardcodes the temporary library directory.
9792 hardcode_action=relink
9793 else
9794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9795 hardcode_action=immediate
9797 else
9798 # We cannot hardcode anything, or else we can only hardcode existing
9799 # directories.
9800 hardcode_action=unsupported
9802 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9803 $as_echo "$hardcode_action" >&6; }
9805 if test "$hardcode_action" = relink; then
9806 # Fast installation is not supported
9807 enable_fast_install=no
9808 elif test "$shlibpath_overrides_runpath" = yes ||
9809 test "$enable_shared" = no; then
9810 # Fast installation is not necessary
9811 enable_fast_install=needless
9814 striplib=
9815 old_striplib=
9816 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9817 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9818 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9819 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9820 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9821 { $as_echo "$as_me:$LINENO: result: yes" >&5
9822 $as_echo "yes" >&6; }
9823 else
9824 # FIXME - insert some real tests, host_os isn't really good enough
9825 case $host_os in
9826 darwin*)
9827 if test -n "$STRIP" ; then
9828 striplib="$STRIP -x"
9829 old_striplib="$STRIP -S"
9830 { $as_echo "$as_me:$LINENO: result: yes" >&5
9831 $as_echo "yes" >&6; }
9832 else
9833 { $as_echo "$as_me:$LINENO: result: no" >&5
9834 $as_echo "no" >&6; }
9838 { $as_echo "$as_me:$LINENO: result: no" >&5
9839 $as_echo "no" >&6; }
9841 esac
9844 if test "x$enable_dlopen" != xyes; then
9845 enable_dlopen=unknown
9846 enable_dlopen_self=unknown
9847 enable_dlopen_self_static=unknown
9848 else
9849 lt_cv_dlopen=no
9850 lt_cv_dlopen_libs=
9852 case $host_os in
9853 beos*)
9854 lt_cv_dlopen="load_add_on"
9855 lt_cv_dlopen_libs=
9856 lt_cv_dlopen_self=yes
9859 mingw* | pw32*)
9860 lt_cv_dlopen="LoadLibrary"
9861 lt_cv_dlopen_libs=
9864 cygwin*)
9865 lt_cv_dlopen="dlopen"
9866 lt_cv_dlopen_libs=
9869 darwin*)
9870 # if libdl is installed we need to link against it
9871 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9872 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9873 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9874 $as_echo_n "(cached) " >&6
9875 else
9876 ac_check_lib_save_LIBS=$LIBS
9877 LIBS="-ldl $LIBS"
9878 cat >conftest.$ac_ext <<_ACEOF
9879 /* confdefs.h. */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h. */
9885 /* Override any GCC internal prototype to avoid an error.
9886 Use char because int might match the return type of a GCC
9887 builtin and then its argument prototype would still apply. */
9888 #ifdef __cplusplus
9889 extern "C"
9890 #endif
9891 char dlopen ();
9893 main ()
9895 return dlopen ();
9897 return 0;
9899 _ACEOF
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (ac_try="$ac_link"
9902 case "(($ac_try" in
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9905 esac
9906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9907 $as_echo "$ac_try_echo") >&5
9908 (eval "$ac_link") 2>conftest.er1
9909 ac_status=$?
9910 grep -v '^ *+' conftest.er1 >conftest.err
9911 rm -f conftest.er1
9912 cat conftest.err >&5
9913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } && {
9915 test -z "$ac_c_werror_flag" ||
9916 test ! -s conftest.err
9917 } && test -s conftest$ac_exeext && {
9918 test "$cross_compiling" = yes ||
9919 $as_test_x conftest$ac_exeext
9920 }; then
9921 ac_cv_lib_dl_dlopen=yes
9922 else
9923 $as_echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9926 ac_cv_lib_dl_dlopen=no
9929 rm -rf conftest.dSYM
9930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9931 conftest$ac_exeext conftest.$ac_ext
9932 LIBS=$ac_check_lib_save_LIBS
9934 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9935 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9936 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9937 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9938 else
9940 lt_cv_dlopen="dyld"
9941 lt_cv_dlopen_libs=
9942 lt_cv_dlopen_self=yes
9949 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9950 $as_echo_n "checking for shl_load... " >&6; }
9951 if test "${ac_cv_func_shl_load+set}" = set; then
9952 $as_echo_n "(cached) " >&6
9953 else
9954 cat >conftest.$ac_ext <<_ACEOF
9955 /* confdefs.h. */
9956 _ACEOF
9957 cat confdefs.h >>conftest.$ac_ext
9958 cat >>conftest.$ac_ext <<_ACEOF
9959 /* end confdefs.h. */
9960 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9962 #define shl_load innocuous_shl_load
9964 /* System header to define __stub macros and hopefully few prototypes,
9965 which can conflict with char shl_load (); below.
9966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9967 <limits.h> exists even on freestanding compilers. */
9969 #ifdef __STDC__
9970 # include <limits.h>
9971 #else
9972 # include <assert.h>
9973 #endif
9975 #undef shl_load
9977 /* Override any GCC internal prototype to avoid an error.
9978 Use char because int might match the return type of a GCC
9979 builtin and then its argument prototype would still apply. */
9980 #ifdef __cplusplus
9981 extern "C"
9982 #endif
9983 char shl_load ();
9984 /* The GNU C library defines this for functions which it implements
9985 to always fail with ENOSYS. Some functions are actually named
9986 something starting with __ and the normal name is an alias. */
9987 #if defined __stub_shl_load || defined __stub___shl_load
9988 choke me
9989 #endif
9992 main ()
9994 return shl_load ();
9996 return 0;
9998 _ACEOF
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (ac_try="$ac_link"
10001 case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004 esac
10005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10006 $as_echo "$ac_try_echo") >&5
10007 (eval "$ac_link") 2>conftest.er1
10008 ac_status=$?
10009 grep -v '^ *+' conftest.er1 >conftest.err
10010 rm -f conftest.er1
10011 cat conftest.err >&5
10012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } && {
10014 test -z "$ac_c_werror_flag" ||
10015 test ! -s conftest.err
10016 } && test -s conftest$ac_exeext && {
10017 test "$cross_compiling" = yes ||
10018 $as_test_x conftest$ac_exeext
10019 }; then
10020 ac_cv_func_shl_load=yes
10021 else
10022 $as_echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_cv_func_shl_load=no
10028 rm -rf conftest.dSYM
10029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10030 conftest$ac_exeext conftest.$ac_ext
10032 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10033 $as_echo "$ac_cv_func_shl_load" >&6; }
10034 if test "x$ac_cv_func_shl_load" = x""yes; then
10035 lt_cv_dlopen="shl_load"
10036 else
10037 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10038 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10039 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10040 $as_echo_n "(cached) " >&6
10041 else
10042 ac_check_lib_save_LIBS=$LIBS
10043 LIBS="-ldld $LIBS"
10044 cat >conftest.$ac_ext <<_ACEOF
10045 /* confdefs.h. */
10046 _ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10051 /* Override any GCC internal prototype to avoid an error.
10052 Use char because int might match the return type of a GCC
10053 builtin and then its argument prototype would still apply. */
10054 #ifdef __cplusplus
10055 extern "C"
10056 #endif
10057 char shl_load ();
10059 main ()
10061 return shl_load ();
10063 return 0;
10065 _ACEOF
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (ac_try="$ac_link"
10068 case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071 esac
10072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10073 $as_echo "$ac_try_echo") >&5
10074 (eval "$ac_link") 2>conftest.er1
10075 ac_status=$?
10076 grep -v '^ *+' conftest.er1 >conftest.err
10077 rm -f conftest.er1
10078 cat conftest.err >&5
10079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } && {
10081 test -z "$ac_c_werror_flag" ||
10082 test ! -s conftest.err
10083 } && test -s conftest$ac_exeext && {
10084 test "$cross_compiling" = yes ||
10085 $as_test_x conftest$ac_exeext
10086 }; then
10087 ac_cv_lib_dld_shl_load=yes
10088 else
10089 $as_echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10092 ac_cv_lib_dld_shl_load=no
10095 rm -rf conftest.dSYM
10096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10097 conftest$ac_exeext conftest.$ac_ext
10098 LIBS=$ac_check_lib_save_LIBS
10100 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10101 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10102 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10103 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10104 else
10105 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10106 $as_echo_n "checking for dlopen... " >&6; }
10107 if test "${ac_cv_func_dlopen+set}" = set; then
10108 $as_echo_n "(cached) " >&6
10109 else
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h. */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10118 #define dlopen innocuous_dlopen
10120 /* System header to define __stub macros and hopefully few prototypes,
10121 which can conflict with char dlopen (); below.
10122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10123 <limits.h> exists even on freestanding compilers. */
10125 #ifdef __STDC__
10126 # include <limits.h>
10127 #else
10128 # include <assert.h>
10129 #endif
10131 #undef dlopen
10133 /* Override any GCC internal prototype to avoid an error.
10134 Use char because int might match the return type of a GCC
10135 builtin and then its argument prototype would still apply. */
10136 #ifdef __cplusplus
10137 extern "C"
10138 #endif
10139 char dlopen ();
10140 /* The GNU C library defines this for functions which it implements
10141 to always fail with ENOSYS. Some functions are actually named
10142 something starting with __ and the normal name is an alias. */
10143 #if defined __stub_dlopen || defined __stub___dlopen
10144 choke me
10145 #endif
10148 main ()
10150 return dlopen ();
10152 return 0;
10154 _ACEOF
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (ac_try="$ac_link"
10157 case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10160 esac
10161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10162 $as_echo "$ac_try_echo") >&5
10163 (eval "$ac_link") 2>conftest.er1
10164 ac_status=$?
10165 grep -v '^ *+' conftest.er1 >conftest.err
10166 rm -f conftest.er1
10167 cat conftest.err >&5
10168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } && {
10170 test -z "$ac_c_werror_flag" ||
10171 test ! -s conftest.err
10172 } && test -s conftest$ac_exeext && {
10173 test "$cross_compiling" = yes ||
10174 $as_test_x conftest$ac_exeext
10175 }; then
10176 ac_cv_func_dlopen=yes
10177 else
10178 $as_echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10181 ac_cv_func_dlopen=no
10184 rm -rf conftest.dSYM
10185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10186 conftest$ac_exeext conftest.$ac_ext
10188 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10189 $as_echo "$ac_cv_func_dlopen" >&6; }
10190 if test "x$ac_cv_func_dlopen" = x""yes; then
10191 lt_cv_dlopen="dlopen"
10192 else
10193 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10194 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10195 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10196 $as_echo_n "(cached) " >&6
10197 else
10198 ac_check_lib_save_LIBS=$LIBS
10199 LIBS="-ldl $LIBS"
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h. */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10207 /* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
10210 #ifdef __cplusplus
10211 extern "C"
10212 #endif
10213 char dlopen ();
10215 main ()
10217 return dlopen ();
10219 return 0;
10221 _ACEOF
10222 rm -f conftest.$ac_objext conftest$ac_exeext
10223 if { (ac_try="$ac_link"
10224 case "(($ac_try" in
10225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226 *) ac_try_echo=$ac_try;;
10227 esac
10228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10229 $as_echo "$ac_try_echo") >&5
10230 (eval "$ac_link") 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } && {
10237 test -z "$ac_c_werror_flag" ||
10238 test ! -s conftest.err
10239 } && test -s conftest$ac_exeext && {
10240 test "$cross_compiling" = yes ||
10241 $as_test_x conftest$ac_exeext
10242 }; then
10243 ac_cv_lib_dl_dlopen=yes
10244 else
10245 $as_echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10248 ac_cv_lib_dl_dlopen=no
10251 rm -rf conftest.dSYM
10252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10253 conftest$ac_exeext conftest.$ac_ext
10254 LIBS=$ac_check_lib_save_LIBS
10256 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10257 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10258 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10260 else
10261 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10262 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10263 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10264 $as_echo_n "(cached) " >&6
10265 else
10266 ac_check_lib_save_LIBS=$LIBS
10267 LIBS="-lsvld $LIBS"
10268 cat >conftest.$ac_ext <<_ACEOF
10269 /* confdefs.h. */
10270 _ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10275 /* Override any GCC internal prototype to avoid an error.
10276 Use char because int might match the return type of a GCC
10277 builtin and then its argument prototype would still apply. */
10278 #ifdef __cplusplus
10279 extern "C"
10280 #endif
10281 char dlopen ();
10283 main ()
10285 return dlopen ();
10287 return 0;
10289 _ACEOF
10290 rm -f conftest.$ac_objext conftest$ac_exeext
10291 if { (ac_try="$ac_link"
10292 case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10295 esac
10296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10297 $as_echo "$ac_try_echo") >&5
10298 (eval "$ac_link") 2>conftest.er1
10299 ac_status=$?
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
10303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && {
10305 test -z "$ac_c_werror_flag" ||
10306 test ! -s conftest.err
10307 } && test -s conftest$ac_exeext && {
10308 test "$cross_compiling" = yes ||
10309 $as_test_x conftest$ac_exeext
10310 }; then
10311 ac_cv_lib_svld_dlopen=yes
10312 else
10313 $as_echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10316 ac_cv_lib_svld_dlopen=no
10319 rm -rf conftest.dSYM
10320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10321 conftest$ac_exeext conftest.$ac_ext
10322 LIBS=$ac_check_lib_save_LIBS
10324 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10325 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10326 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10327 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10328 else
10329 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10330 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10331 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10332 $as_echo_n "(cached) " >&6
10333 else
10334 ac_check_lib_save_LIBS=$LIBS
10335 LIBS="-ldld $LIBS"
10336 cat >conftest.$ac_ext <<_ACEOF
10337 /* confdefs.h. */
10338 _ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10343 /* Override any GCC internal prototype to avoid an error.
10344 Use char because int might match the return type of a GCC
10345 builtin and then its argument prototype would still apply. */
10346 #ifdef __cplusplus
10347 extern "C"
10348 #endif
10349 char dld_link ();
10351 main ()
10353 return dld_link ();
10355 return 0;
10357 _ACEOF
10358 rm -f conftest.$ac_objext conftest$ac_exeext
10359 if { (ac_try="$ac_link"
10360 case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363 esac
10364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10365 $as_echo "$ac_try_echo") >&5
10366 (eval "$ac_link") 2>conftest.er1
10367 ac_status=$?
10368 grep -v '^ *+' conftest.er1 >conftest.err
10369 rm -f conftest.er1
10370 cat conftest.err >&5
10371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } && {
10373 test -z "$ac_c_werror_flag" ||
10374 test ! -s conftest.err
10375 } && test -s conftest$ac_exeext && {
10376 test "$cross_compiling" = yes ||
10377 $as_test_x conftest$ac_exeext
10378 }; then
10379 ac_cv_lib_dld_dld_link=yes
10380 else
10381 $as_echo "$as_me: failed program was:" >&5
10382 sed 's/^/| /' conftest.$ac_ext >&5
10384 ac_cv_lib_dld_dld_link=no
10387 rm -rf conftest.dSYM
10388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10389 conftest$ac_exeext conftest.$ac_ext
10390 LIBS=$ac_check_lib_save_LIBS
10392 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10393 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10394 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10395 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10414 esac
10416 if test "x$lt_cv_dlopen" != xno; then
10417 enable_dlopen=yes
10418 else
10419 enable_dlopen=no
10422 case $lt_cv_dlopen in
10423 dlopen)
10424 save_CPPFLAGS="$CPPFLAGS"
10425 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10427 save_LDFLAGS="$LDFLAGS"
10428 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10430 save_LIBS="$LIBS"
10431 LIBS="$lt_cv_dlopen_libs $LIBS"
10433 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10434 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10435 if test "${lt_cv_dlopen_self+set}" = set; then
10436 $as_echo_n "(cached) " >&6
10437 else
10438 if test "$cross_compiling" = yes; then :
10439 lt_cv_dlopen_self=cross
10440 else
10441 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10442 lt_status=$lt_dlunknown
10443 cat > conftest.$ac_ext <<EOF
10444 #line 10444 "configure"
10445 #include "confdefs.h"
10447 #if HAVE_DLFCN_H
10448 #include <dlfcn.h>
10449 #endif
10451 #include <stdio.h>
10453 #ifdef RTLD_GLOBAL
10454 # define LT_DLGLOBAL RTLD_GLOBAL
10455 #else
10456 # ifdef DL_GLOBAL
10457 # define LT_DLGLOBAL DL_GLOBAL
10458 # else
10459 # define LT_DLGLOBAL 0
10460 # endif
10461 #endif
10463 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10464 find out it does not work in some platform. */
10465 #ifndef LT_DLLAZY_OR_NOW
10466 # ifdef RTLD_LAZY
10467 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10468 # else
10469 # ifdef DL_LAZY
10470 # define LT_DLLAZY_OR_NOW DL_LAZY
10471 # else
10472 # ifdef RTLD_NOW
10473 # define LT_DLLAZY_OR_NOW RTLD_NOW
10474 # else
10475 # ifdef DL_NOW
10476 # define LT_DLLAZY_OR_NOW DL_NOW
10477 # else
10478 # define LT_DLLAZY_OR_NOW 0
10479 # endif
10480 # endif
10481 # endif
10482 # endif
10483 #endif
10485 #ifdef __cplusplus
10486 extern "C" void exit (int);
10487 #endif
10489 void fnord() { int i=42;}
10490 int main ()
10492 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10493 int status = $lt_dlunknown;
10495 if (self)
10497 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10498 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10499 /* dlclose (self); */
10501 else
10502 puts (dlerror ());
10504 exit (status);
10507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10508 (eval $ac_link) 2>&5
10509 ac_status=$?
10510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10512 (./conftest; exit; ) >&5 2>/dev/null
10513 lt_status=$?
10514 case x$lt_status in
10515 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10516 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10517 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10518 esac
10519 else :
10520 # compilation failed
10521 lt_cv_dlopen_self=no
10524 rm -fr conftest*
10528 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10529 $as_echo "$lt_cv_dlopen_self" >&6; }
10531 if test "x$lt_cv_dlopen_self" = xyes; then
10532 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10533 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10534 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10535 if test "${lt_cv_dlopen_self_static+set}" = set; then
10536 $as_echo_n "(cached) " >&6
10537 else
10538 if test "$cross_compiling" = yes; then :
10539 lt_cv_dlopen_self_static=cross
10540 else
10541 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10542 lt_status=$lt_dlunknown
10543 cat > conftest.$ac_ext <<EOF
10544 #line 10544 "configure"
10545 #include "confdefs.h"
10547 #if HAVE_DLFCN_H
10548 #include <dlfcn.h>
10549 #endif
10551 #include <stdio.h>
10553 #ifdef RTLD_GLOBAL
10554 # define LT_DLGLOBAL RTLD_GLOBAL
10555 #else
10556 # ifdef DL_GLOBAL
10557 # define LT_DLGLOBAL DL_GLOBAL
10558 # else
10559 # define LT_DLGLOBAL 0
10560 # endif
10561 #endif
10563 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10564 find out it does not work in some platform. */
10565 #ifndef LT_DLLAZY_OR_NOW
10566 # ifdef RTLD_LAZY
10567 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10568 # else
10569 # ifdef DL_LAZY
10570 # define LT_DLLAZY_OR_NOW DL_LAZY
10571 # else
10572 # ifdef RTLD_NOW
10573 # define LT_DLLAZY_OR_NOW RTLD_NOW
10574 # else
10575 # ifdef DL_NOW
10576 # define LT_DLLAZY_OR_NOW DL_NOW
10577 # else
10578 # define LT_DLLAZY_OR_NOW 0
10579 # endif
10580 # endif
10581 # endif
10582 # endif
10583 #endif
10585 #ifdef __cplusplus
10586 extern "C" void exit (int);
10587 #endif
10589 void fnord() { int i=42;}
10590 int main ()
10592 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10593 int status = $lt_dlunknown;
10595 if (self)
10597 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10598 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10599 /* dlclose (self); */
10601 else
10602 puts (dlerror ());
10604 exit (status);
10607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10608 (eval $ac_link) 2>&5
10609 ac_status=$?
10610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10612 (./conftest; exit; ) >&5 2>/dev/null
10613 lt_status=$?
10614 case x$lt_status in
10615 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10616 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10617 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10618 esac
10619 else :
10620 # compilation failed
10621 lt_cv_dlopen_self_static=no
10624 rm -fr conftest*
10628 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10629 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10632 CPPFLAGS="$save_CPPFLAGS"
10633 LDFLAGS="$save_LDFLAGS"
10634 LIBS="$save_LIBS"
10636 esac
10638 case $lt_cv_dlopen_self in
10639 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10640 *) enable_dlopen_self=unknown ;;
10641 esac
10643 case $lt_cv_dlopen_self_static in
10644 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10645 *) enable_dlopen_self_static=unknown ;;
10646 esac
10650 # Report which library types will actually be built
10651 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10652 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10653 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10654 $as_echo "$can_build_shared" >&6; }
10656 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10657 $as_echo_n "checking whether to build shared libraries... " >&6; }
10658 test "$can_build_shared" = "no" && enable_shared=no
10660 # On AIX, shared libraries and static libraries use the same namespace, and
10661 # are all built from PIC.
10662 case $host_os in
10663 aix3*)
10664 test "$enable_shared" = yes && enable_static=no
10665 if test -n "$RANLIB"; then
10666 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10667 postinstall_cmds='$RANLIB $lib'
10671 aix[4-9]*)
10672 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10673 test "$enable_shared" = yes && enable_static=no
10676 esac
10677 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10678 $as_echo "$enable_shared" >&6; }
10680 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10681 $as_echo_n "checking whether to build static libraries... " >&6; }
10682 # Make sure either enable_shared or enable_static is yes.
10683 test "$enable_shared" = yes || enable_static=yes
10684 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10685 $as_echo "$enable_static" >&6; }
10687 # The else clause should only fire when bootstrapping the
10688 # libtool distribution, otherwise you forgot to ship ltmain.sh
10689 # with your package, and you will get complaints that there are
10690 # no rules to generate ltmain.sh.
10691 if test -f "$ltmain"; then
10692 # See if we are running on zsh, and set the options which allow our commands through
10693 # without removal of \ escapes.
10694 if test -n "${ZSH_VERSION+set}" ; then
10695 setopt NO_GLOB_SUBST
10697 # Now quote all the things that may contain metacharacters while being
10698 # careful not to overquote the AC_SUBSTed values. We take copies of the
10699 # variables and quote the copies for generation of the libtool script.
10700 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10701 SED SHELL STRIP \
10702 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10703 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10704 deplibs_check_method reload_flag reload_cmds need_locks \
10705 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10706 lt_cv_sys_global_symbol_to_c_name_address \
10707 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10708 old_postinstall_cmds old_postuninstall_cmds \
10709 compiler \
10710 CC \
10711 LD \
10712 lt_prog_compiler_wl \
10713 lt_prog_compiler_pic \
10714 lt_prog_compiler_static \
10715 lt_prog_compiler_no_builtin_flag \
10716 export_dynamic_flag_spec \
10717 thread_safe_flag_spec \
10718 whole_archive_flag_spec \
10719 enable_shared_with_static_runtimes \
10720 old_archive_cmds \
10721 old_archive_from_new_cmds \
10722 predep_objects \
10723 postdep_objects \
10724 predeps \
10725 postdeps \
10726 compiler_lib_search_path \
10727 compiler_lib_search_dirs \
10728 archive_cmds \
10729 archive_expsym_cmds \
10730 postinstall_cmds \
10731 postuninstall_cmds \
10732 old_archive_from_expsyms_cmds \
10733 allow_undefined_flag \
10734 no_undefined_flag \
10735 export_symbols_cmds \
10736 hardcode_libdir_flag_spec \
10737 hardcode_libdir_flag_spec_ld \
10738 hardcode_libdir_separator \
10739 hardcode_automatic \
10740 module_cmds \
10741 module_expsym_cmds \
10742 lt_cv_prog_compiler_c_o \
10743 fix_srcfile_path \
10744 exclude_expsyms \
10745 include_expsyms; do
10747 case $var in
10748 old_archive_cmds | \
10749 old_archive_from_new_cmds | \
10750 archive_cmds | \
10751 archive_expsym_cmds | \
10752 module_cmds | \
10753 module_expsym_cmds | \
10754 old_archive_from_expsyms_cmds | \
10755 export_symbols_cmds | \
10756 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10757 postinstall_cmds | postuninstall_cmds | \
10758 old_postinstall_cmds | old_postuninstall_cmds | \
10759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10760 # Double-quote double-evaled strings.
10761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10766 esac
10767 done
10769 case $lt_echo in
10770 *'\$0 --fallback-echo"')
10771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10773 esac
10775 cfgfile="${ofile}T"
10776 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10777 $rm -f "$cfgfile"
10778 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10779 $as_echo "$as_me: creating $ofile" >&6;}
10781 cat <<__EOF__ >> "$cfgfile"
10782 #! $SHELL
10784 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10785 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10786 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10788 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10789 # Free Software Foundation, Inc.
10791 # This file is part of GNU Libtool:
10792 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10794 # This program is free software; you can redistribute it and/or modify
10795 # it under the terms of the GNU General Public License as published by
10796 # the Free Software Foundation; either version 2 of the License, or
10797 # (at your option) any later version.
10799 # This program is distributed in the hope that it will be useful, but
10800 # WITHOUT ANY WARRANTY; without even the implied warranty of
10801 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10802 # General Public License for more details.
10804 # You should have received a copy of the GNU General Public License
10805 # along with this program; if not, write to the Free Software
10806 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10808 # As a special exception to the GNU General Public License, if you
10809 # distribute this file as part of a program that contains a
10810 # configuration script generated by Autoconf, you may include it under
10811 # the same distribution terms that you use for the rest of that program.
10813 # A sed program that does not truncate output.
10814 SED=$lt_SED
10816 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10817 Xsed="$SED -e 1s/^X//"
10819 # The HP-UX ksh and POSIX shell print the target directory to stdout
10820 # if CDPATH is set.
10821 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10823 # The names of the tagged configurations supported by this script.
10824 available_tags=
10826 # ### BEGIN LIBTOOL CONFIG
10828 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10830 # Shell to use when invoking shell scripts.
10831 SHELL=$lt_SHELL
10833 # Whether or not to build shared libraries.
10834 build_libtool_libs=$enable_shared
10836 # Whether or not to build static libraries.
10837 build_old_libs=$enable_static
10839 # Whether or not to add -lc for building shared libraries.
10840 build_libtool_need_lc=$archive_cmds_need_lc
10842 # Whether or not to disallow shared libs when runtime libs are static
10843 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10845 # Whether or not to optimize for fast installation.
10846 fast_install=$enable_fast_install
10848 # The host system.
10849 host_alias=$host_alias
10850 host=$host
10851 host_os=$host_os
10853 # The build system.
10854 build_alias=$build_alias
10855 build=$build
10856 build_os=$build_os
10858 # An echo program that does not interpret backslashes.
10859 echo=$lt_echo
10861 # The archiver.
10862 AR=$lt_AR
10863 AR_FLAGS=$lt_AR_FLAGS
10865 # A C compiler.
10866 LTCC=$lt_LTCC
10868 # LTCC compiler flags.
10869 LTCFLAGS=$lt_LTCFLAGS
10871 # A language-specific compiler.
10872 CC=$lt_compiler
10874 # Is the compiler the GNU C compiler?
10875 with_gcc=$GCC
10877 # An ERE matcher.
10878 EGREP=$lt_EGREP
10880 # The linker used to build libraries.
10881 LD=$lt_LD
10883 # Whether we need hard or soft links.
10884 LN_S=$lt_LN_S
10886 # A BSD-compatible nm program.
10887 NM=$lt_NM
10889 # A symbol stripping program
10890 STRIP=$lt_STRIP
10892 # Used to examine libraries when file_magic_cmd begins "file"
10893 MAGIC_CMD=$MAGIC_CMD
10895 # Used on cygwin: DLL creation program.
10896 DLLTOOL="$DLLTOOL"
10898 # Used on cygwin: object dumper.
10899 OBJDUMP="$OBJDUMP"
10901 # Used on cygwin: assembler.
10902 AS="$AS"
10904 # The name of the directory that contains temporary libtool files.
10905 objdir=$objdir
10907 # How to create reloadable object files.
10908 reload_flag=$lt_reload_flag
10909 reload_cmds=$lt_reload_cmds
10911 # How to pass a linker flag through the compiler.
10912 wl=$lt_lt_prog_compiler_wl
10914 # Object file suffix (normally "o").
10915 objext="$ac_objext"
10917 # Old archive suffix (normally "a").
10918 libext="$libext"
10920 # Shared library suffix (normally ".so").
10921 shrext_cmds='$shrext_cmds'
10923 # Executable file suffix (normally "").
10924 exeext="$exeext"
10926 # Additional compiler flags for building library objects.
10927 pic_flag=$lt_lt_prog_compiler_pic
10928 pic_mode=$pic_mode
10930 # What is the maximum length of a command?
10931 max_cmd_len=$lt_cv_sys_max_cmd_len
10933 # Does compiler simultaneously support -c and -o options?
10934 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10936 # Must we lock files when doing compilation?
10937 need_locks=$lt_need_locks
10939 # Do we need the lib prefix for modules?
10940 need_lib_prefix=$need_lib_prefix
10942 # Do we need a version for libraries?
10943 need_version=$need_version
10945 # Whether dlopen is supported.
10946 dlopen_support=$enable_dlopen
10948 # Whether dlopen of programs is supported.
10949 dlopen_self=$enable_dlopen_self
10951 # Whether dlopen of statically linked programs is supported.
10952 dlopen_self_static=$enable_dlopen_self_static
10954 # Compiler flag to prevent dynamic linking.
10955 link_static_flag=$lt_lt_prog_compiler_static
10957 # Compiler flag to turn off builtin functions.
10958 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10960 # Compiler flag to allow reflexive dlopens.
10961 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10963 # Compiler flag to generate shared objects directly from archives.
10964 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10966 # Compiler flag to generate thread-safe objects.
10967 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10969 # Library versioning type.
10970 version_type=$version_type
10972 # Format of library name prefix.
10973 libname_spec=$lt_libname_spec
10975 # List of archive names. First name is the real one, the rest are links.
10976 # The last name is the one that the linker finds with -lNAME.
10977 library_names_spec=$lt_library_names_spec
10979 # The coded name of the library, if different from the real name.
10980 soname_spec=$lt_soname_spec
10982 # Commands used to build and install an old-style archive.
10983 RANLIB=$lt_RANLIB
10984 old_archive_cmds=$lt_old_archive_cmds
10985 old_postinstall_cmds=$lt_old_postinstall_cmds
10986 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10988 # Create an old-style archive from a shared archive.
10989 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10991 # Create a temporary old-style archive to link instead of a shared archive.
10992 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10994 # Commands used to build and install a shared archive.
10995 archive_cmds=$lt_archive_cmds
10996 archive_expsym_cmds=$lt_archive_expsym_cmds
10997 postinstall_cmds=$lt_postinstall_cmds
10998 postuninstall_cmds=$lt_postuninstall_cmds
11000 # Commands used to build a loadable module (assumed same as above if empty)
11001 module_cmds=$lt_module_cmds
11002 module_expsym_cmds=$lt_module_expsym_cmds
11004 # Commands to strip libraries.
11005 old_striplib=$lt_old_striplib
11006 striplib=$lt_striplib
11008 # Dependencies to place before the objects being linked to create a
11009 # shared library.
11010 predep_objects=$lt_predep_objects
11012 # Dependencies to place after the objects being linked to create a
11013 # shared library.
11014 postdep_objects=$lt_postdep_objects
11016 # Dependencies to place before the objects being linked to create a
11017 # shared library.
11018 predeps=$lt_predeps
11020 # Dependencies to place after the objects being linked to create a
11021 # shared library.
11022 postdeps=$lt_postdeps
11024 # The directories searched by this compiler when creating a shared
11025 # library
11026 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11028 # The library search path used internally by the compiler when linking
11029 # a shared library.
11030 compiler_lib_search_path=$lt_compiler_lib_search_path
11032 # Method to check whether dependent libraries are shared objects.
11033 deplibs_check_method=$lt_deplibs_check_method
11035 # Command to use when deplibs_check_method == file_magic.
11036 file_magic_cmd=$lt_file_magic_cmd
11038 # Flag that allows shared libraries with undefined symbols to be built.
11039 allow_undefined_flag=$lt_allow_undefined_flag
11041 # Flag that forces no undefined symbols.
11042 no_undefined_flag=$lt_no_undefined_flag
11044 # Commands used to finish a libtool library installation in a directory.
11045 finish_cmds=$lt_finish_cmds
11047 # Same as above, but a single script fragment to be evaled but not shown.
11048 finish_eval=$lt_finish_eval
11050 # Take the output of nm and produce a listing of raw symbols and C names.
11051 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11053 # Transform the output of nm in a proper C declaration
11054 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11056 # Transform the output of nm in a C name address pair
11057 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11059 # This is the shared library runtime path variable.
11060 runpath_var=$runpath_var
11062 # This is the shared library path variable.
11063 shlibpath_var=$shlibpath_var
11065 # Is shlibpath searched before the hard-coded library search path?
11066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11068 # How to hardcode a shared library path into an executable.
11069 hardcode_action=$hardcode_action
11071 # Whether we should hardcode library paths into libraries.
11072 hardcode_into_libs=$hardcode_into_libs
11074 # Flag to hardcode \$libdir into a binary during linking.
11075 # This must work even if \$libdir does not exist.
11076 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11078 # If ld is used when linking, flag to hardcode \$libdir into
11079 # a binary during linking. This must work even if \$libdir does
11080 # not exist.
11081 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11083 # Whether we need a single -rpath flag with a separated argument.
11084 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11086 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11087 # resulting binary.
11088 hardcode_direct=$hardcode_direct
11090 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11091 # resulting binary.
11092 hardcode_minus_L=$hardcode_minus_L
11094 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11095 # the resulting binary.
11096 hardcode_shlibpath_var=$hardcode_shlibpath_var
11098 # Set to yes if building a shared library automatically hardcodes DIR into the library
11099 # and all subsequent libraries and executables linked against it.
11100 hardcode_automatic=$hardcode_automatic
11102 # Variables whose values should be saved in libtool wrapper scripts and
11103 # restored at relink time.
11104 variables_saved_for_relink="$variables_saved_for_relink"
11106 # Whether libtool must link a program against all its dependency libraries.
11107 link_all_deplibs=$link_all_deplibs
11109 # Compile-time system search path for libraries
11110 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11112 # Run-time system search path for libraries
11113 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11115 # Fix the shell variable \$srcfile for the compiler.
11116 fix_srcfile_path=$lt_fix_srcfile_path
11118 # Set to yes if exported symbols are required.
11119 always_export_symbols=$always_export_symbols
11121 # The commands to list exported symbols.
11122 export_symbols_cmds=$lt_export_symbols_cmds
11124 # The commands to extract the exported symbol list from a shared archive.
11125 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11127 # Symbols that should not be listed in the preloaded symbols.
11128 exclude_expsyms=$lt_exclude_expsyms
11130 # Symbols that must always be exported.
11131 include_expsyms=$lt_include_expsyms
11133 # ### END LIBTOOL CONFIG
11135 __EOF__
11138 case $host_os in
11139 aix3*)
11140 cat <<\EOF >> "$cfgfile"
11142 # AIX sometimes has problems with the GCC collect2 program. For some
11143 # reason, if we set the COLLECT_NAMES environment variable, the problems
11144 # vanish in a puff of smoke.
11145 if test "X${COLLECT_NAMES+set}" != Xset; then
11146 COLLECT_NAMES=
11147 export COLLECT_NAMES
11151 esac
11153 # We use sed instead of cat because bash on DJGPP gets confused if
11154 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11155 # text mode, it properly converts lines to CR/LF. This bash problem
11156 # is reportedly fixed, but why not run on old versions too?
11157 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11159 mv -f "$cfgfile" "$ofile" || \
11160 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11161 chmod +x "$ofile"
11163 else
11164 # If there is no Makefile yet, we rely on a make rule to execute
11165 # `config.status --recheck' to rerun these tests and create the
11166 # libtool script then.
11167 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11168 if test -f "$ltmain_in"; then
11169 test -f Makefile && make "$ltmain"
11174 ac_ext=c
11175 ac_cpp='$CPP $CPPFLAGS'
11176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11180 CC="$lt_save_CC"
11183 # Check whether --with-tags was given.
11184 if test "${with_tags+set}" = set; then
11185 withval=$with_tags; tagnames="$withval"
11189 if test -f "$ltmain" && test -n "$tagnames"; then
11190 if test ! -f "${ofile}"; then
11191 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11192 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11195 if test -z "$LTCC"; then
11196 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11197 if test -z "$LTCC"; then
11198 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11199 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11200 else
11201 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11202 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11205 if test -z "$LTCFLAGS"; then
11206 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11209 # Extract list of available tagged configurations in $ofile.
11210 # Note that this assumes the entire list is on one line.
11211 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11213 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11214 for tagname in $tagnames; do
11215 IFS="$lt_save_ifs"
11216 # Check whether tagname contains only valid characters
11217 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11218 "") ;;
11219 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11220 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11221 { (exit 1); exit 1; }; }
11223 esac
11225 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11226 then
11227 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11228 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11229 { (exit 1); exit 1; }; }
11232 # Update the list of available tags.
11233 if test -n "$tagname"; then
11234 echo appending configuration tag \"$tagname\" to $ofile
11236 case $tagname in
11237 CXX)
11238 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11239 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11240 (test "X$CXX" != "Xg++"))) ; then
11241 ac_ext=cpp
11242 ac_cpp='$CXXCPP $CPPFLAGS'
11243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11250 archive_cmds_need_lc_CXX=no
11251 allow_undefined_flag_CXX=
11252 always_export_symbols_CXX=no
11253 archive_expsym_cmds_CXX=
11254 export_dynamic_flag_spec_CXX=
11255 hardcode_direct_CXX=no
11256 hardcode_libdir_flag_spec_CXX=
11257 hardcode_libdir_flag_spec_ld_CXX=
11258 hardcode_libdir_separator_CXX=
11259 hardcode_minus_L_CXX=no
11260 hardcode_shlibpath_var_CXX=unsupported
11261 hardcode_automatic_CXX=no
11262 module_cmds_CXX=
11263 module_expsym_cmds_CXX=
11264 link_all_deplibs_CXX=unknown
11265 old_archive_cmds_CXX=$old_archive_cmds
11266 no_undefined_flag_CXX=
11267 whole_archive_flag_spec_CXX=
11268 enable_shared_with_static_runtimes_CXX=no
11270 # Dependencies to place before and after the object being linked:
11271 predep_objects_CXX=
11272 postdep_objects_CXX=
11273 predeps_CXX=
11274 postdeps_CXX=
11275 compiler_lib_search_path_CXX=
11276 compiler_lib_search_dirs_CXX=
11278 # Source file extension for C++ test sources.
11279 ac_ext=cpp
11281 # Object file extension for compiled C++ test sources.
11282 objext=o
11283 objext_CXX=$objext
11285 # Code to be used in simple compile tests
11286 lt_simple_compile_test_code="int some_variable = 0;"
11288 # Code to be used in simple link tests
11289 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11291 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11293 # If no C compiler was specified, use CC.
11294 LTCC=${LTCC-"$CC"}
11296 # If no C compiler flags were specified, use CFLAGS.
11297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11299 # Allow CC to be a program name with arguments.
11300 compiler=$CC
11303 # save warnings/boilerplate of simple test code
11304 ac_outfile=conftest.$ac_objext
11305 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11307 _lt_compiler_boilerplate=`cat conftest.err`
11308 $rm conftest*
11310 ac_outfile=conftest.$ac_objext
11311 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11313 _lt_linker_boilerplate=`cat conftest.err`
11314 $rm -r conftest*
11317 # Allow CC to be a program name with arguments.
11318 lt_save_CC=$CC
11319 lt_save_LD=$LD
11320 lt_save_GCC=$GCC
11321 GCC=$GXX
11322 lt_save_with_gnu_ld=$with_gnu_ld
11323 lt_save_path_LD=$lt_cv_path_LD
11324 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11325 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11326 else
11327 $as_unset lt_cv_prog_gnu_ld
11329 if test -n "${lt_cv_path_LDCXX+set}"; then
11330 lt_cv_path_LD=$lt_cv_path_LDCXX
11331 else
11332 $as_unset lt_cv_path_LD
11334 test -z "${LDCXX+set}" || LD=$LDCXX
11335 CC=${CXX-"c++"}
11336 compiler=$CC
11337 compiler_CXX=$CC
11338 for cc_temp in $compiler""; do
11339 case $cc_temp in
11340 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11341 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11342 \-*) ;;
11343 *) break;;
11344 esac
11345 done
11346 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11349 # We don't want -fno-exception wen compiling C++ code, so set the
11350 # no_builtin_flag separately
11351 if test "$GXX" = yes; then
11352 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11353 else
11354 lt_prog_compiler_no_builtin_flag_CXX=
11357 if test "$GXX" = yes; then
11358 # Set up default GNU C++ configuration
11361 # Check whether --with-gnu-ld was given.
11362 if test "${with_gnu_ld+set}" = set; then
11363 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11364 else
11365 with_gnu_ld=no
11368 ac_prog=ld
11369 if test "$GCC" = yes; then
11370 # Check if gcc -print-prog-name=ld gives a path.
11371 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11372 $as_echo_n "checking for ld used by $CC... " >&6; }
11373 case $host in
11374 *-*-mingw*)
11375 # gcc leaves a trailing carriage return which upsets mingw
11376 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11378 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11379 esac
11380 case $ac_prog in
11381 # Accept absolute paths.
11382 [\\/]* | ?:[\\/]*)
11383 re_direlt='/[^/][^/]*/\.\./'
11384 # Canonicalize the pathname of ld
11385 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11386 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11387 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11388 done
11389 test -z "$LD" && LD="$ac_prog"
11392 # If it fails, then pretend we aren't using GCC.
11393 ac_prog=ld
11396 # If it is relative, then search for the first ld in PATH.
11397 with_gnu_ld=unknown
11399 esac
11400 elif test "$with_gnu_ld" = yes; then
11401 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11402 $as_echo_n "checking for GNU ld... " >&6; }
11403 else
11404 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11405 $as_echo_n "checking for non-GNU ld... " >&6; }
11407 if test "${lt_cv_path_LD+set}" = set; then
11408 $as_echo_n "(cached) " >&6
11409 else
11410 if test -z "$LD"; then
11411 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11412 for ac_dir in $PATH; do
11413 IFS="$lt_save_ifs"
11414 test -z "$ac_dir" && ac_dir=.
11415 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11416 lt_cv_path_LD="$ac_dir/$ac_prog"
11417 # Check to see if the program is GNU ld. I'd rather use --version,
11418 # but apparently some variants of GNU ld only accept -v.
11419 # Break only if it was the GNU/non-GNU ld that we prefer.
11420 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11421 *GNU* | *'with BFD'*)
11422 test "$with_gnu_ld" != no && break
11425 test "$with_gnu_ld" != yes && break
11427 esac
11429 done
11430 IFS="$lt_save_ifs"
11431 else
11432 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11436 LD="$lt_cv_path_LD"
11437 if test -n "$LD"; then
11438 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11439 $as_echo "$LD" >&6; }
11440 else
11441 { $as_echo "$as_me:$LINENO: result: no" >&5
11442 $as_echo "no" >&6; }
11444 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11445 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11446 { (exit 1); exit 1; }; }
11447 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11448 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11449 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11450 $as_echo_n "(cached) " >&6
11451 else
11452 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11453 case `$LD -v 2>&1 </dev/null` in
11454 *GNU* | *'with BFD'*)
11455 lt_cv_prog_gnu_ld=yes
11458 lt_cv_prog_gnu_ld=no
11460 esac
11462 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11463 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11464 with_gnu_ld=$lt_cv_prog_gnu_ld
11468 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11469 # archiving commands below assume that GNU ld is being used.
11470 if test "$with_gnu_ld" = yes; then
11471 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11472 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'
11474 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11475 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11477 # If archive_cmds runs LD, not CC, wlarc should be empty
11478 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11479 # investigate it a little bit more. (MM)
11480 wlarc='${wl}'
11482 # ancient GNU ld didn't support --whole-archive et. al.
11483 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11484 grep 'no-whole-archive' > /dev/null; then
11485 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11486 else
11487 whole_archive_flag_spec_CXX=
11489 else
11490 with_gnu_ld=no
11491 wlarc=
11493 # A generic and very simple default shared library creation
11494 # command for GNU C++ for the case where it uses the native
11495 # linker, instead of GNU ld. If possible, this setting should
11496 # overridden to take advantage of the native linker features on
11497 # the platform it is being used on.
11498 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11501 # Commands to make compiler produce verbose output that lists
11502 # what "hidden" libraries, object files and flags are used when
11503 # linking a shared library.
11504 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11506 else
11507 GXX=no
11508 with_gnu_ld=no
11509 wlarc=
11512 # PORTME: fill in a description of your system's C++ link characteristics
11513 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11514 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11515 ld_shlibs_CXX=yes
11516 case $host_os in
11517 aix3*)
11518 # FIXME: insert proper C++ library support
11519 ld_shlibs_CXX=no
11521 aix[4-9]*)
11522 if test "$host_cpu" = ia64; then
11523 # On IA64, the linker does run time linking by default, so we don't
11524 # have to do anything special.
11525 aix_use_runtimelinking=no
11526 exp_sym_flag='-Bexport'
11527 no_entry_flag=""
11528 else
11529 aix_use_runtimelinking=no
11531 # Test if we are trying to use run time linking or normal
11532 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11533 # need to do runtime linking.
11534 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11535 for ld_flag in $LDFLAGS; do
11536 case $ld_flag in
11537 *-brtl*)
11538 aix_use_runtimelinking=yes
11539 break
11541 esac
11542 done
11544 esac
11546 exp_sym_flag='-bexport'
11547 no_entry_flag='-bnoentry'
11550 # When large executables or shared objects are built, AIX ld can
11551 # have problems creating the table of contents. If linking a library
11552 # or program results in "error TOC overflow" add -mminimal-toc to
11553 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11554 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11556 archive_cmds_CXX=''
11557 hardcode_direct_CXX=yes
11558 hardcode_libdir_separator_CXX=':'
11559 link_all_deplibs_CXX=yes
11561 if test "$GXX" = yes; then
11562 case $host_os in aix4.[012]|aix4.[012].*)
11563 # We only want to do this on AIX 4.2 and lower, the check
11564 # below for broken collect2 doesn't work under 4.3+
11565 collect2name=`${CC} -print-prog-name=collect2`
11566 if test -f "$collect2name" && \
11567 strings "$collect2name" | grep resolve_lib_name >/dev/null
11568 then
11569 # We have reworked collect2
11571 else
11572 # We have old collect2
11573 hardcode_direct_CXX=unsupported
11574 # It fails to find uninstalled libraries when the uninstalled
11575 # path is not listed in the libpath. Setting hardcode_minus_L
11576 # to unsupported forces relinking
11577 hardcode_minus_L_CXX=yes
11578 hardcode_libdir_flag_spec_CXX='-L$libdir'
11579 hardcode_libdir_separator_CXX=
11582 esac
11583 shared_flag='-shared'
11584 if test "$aix_use_runtimelinking" = yes; then
11585 shared_flag="$shared_flag "'${wl}-G'
11587 else
11588 # not using gcc
11589 if test "$host_cpu" = ia64; then
11590 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11591 # chokes on -Wl,-G. The following line is correct:
11592 shared_flag='-G'
11593 else
11594 if test "$aix_use_runtimelinking" = yes; then
11595 shared_flag='${wl}-G'
11596 else
11597 shared_flag='${wl}-bM:SRE'
11602 # It seems that -bexpall does not export symbols beginning with
11603 # underscore (_), so it is better to generate a list of symbols to export.
11604 always_export_symbols_CXX=yes
11605 if test "$aix_use_runtimelinking" = yes; then
11606 # Warning - without using the other runtime loading flags (-brtl),
11607 # -berok will link without error, but may produce a broken library.
11608 allow_undefined_flag_CXX='-berok'
11609 # Determine the default libpath from the value encoded in an empty executable.
11610 cat >conftest.$ac_ext <<_ACEOF
11611 /* confdefs.h. */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h. */
11618 main ()
11622 return 0;
11624 _ACEOF
11625 rm -f conftest.$ac_objext conftest$ac_exeext
11626 if { (ac_try="$ac_link"
11627 case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11630 esac
11631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11632 $as_echo "$ac_try_echo") >&5
11633 (eval "$ac_link") 2>conftest.er1
11634 ac_status=$?
11635 grep -v '^ *+' conftest.er1 >conftest.err
11636 rm -f conftest.er1
11637 cat conftest.err >&5
11638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); } && {
11640 test -z "$ac_cxx_werror_flag" ||
11641 test ! -s conftest.err
11642 } && test -s conftest$ac_exeext && {
11643 test "$cross_compiling" = yes ||
11644 $as_test_x conftest$ac_exeext
11645 }; then
11647 lt_aix_libpath_sed='
11648 /Import File Strings/,/^$/ {
11649 /^0/ {
11650 s/^0 *\(.*\)$/\1/
11654 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11655 # Check for a 64-bit object if we didn't find anything.
11656 if test -z "$aix_libpath"; then
11657 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11659 else
11660 $as_echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11666 rm -rf conftest.dSYM
11667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11668 conftest$ac_exeext conftest.$ac_ext
11669 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11671 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11673 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"
11674 else
11675 if test "$host_cpu" = ia64; then
11676 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11677 allow_undefined_flag_CXX="-z nodefs"
11678 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"
11679 else
11680 # Determine the default libpath from the value encoded in an empty executable.
11681 cat >conftest.$ac_ext <<_ACEOF
11682 /* confdefs.h. */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11689 main ()
11693 return 0;
11695 _ACEOF
11696 rm -f conftest.$ac_objext conftest$ac_exeext
11697 if { (ac_try="$ac_link"
11698 case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11701 esac
11702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11703 $as_echo "$ac_try_echo") >&5
11704 (eval "$ac_link") 2>conftest.er1
11705 ac_status=$?
11706 grep -v '^ *+' conftest.er1 >conftest.err
11707 rm -f conftest.er1
11708 cat conftest.err >&5
11709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } && {
11711 test -z "$ac_cxx_werror_flag" ||
11712 test ! -s conftest.err
11713 } && test -s conftest$ac_exeext && {
11714 test "$cross_compiling" = yes ||
11715 $as_test_x conftest$ac_exeext
11716 }; then
11718 lt_aix_libpath_sed='
11719 /Import File Strings/,/^$/ {
11720 /^0/ {
11721 s/^0 *\(.*\)$/\1/
11725 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11726 # Check for a 64-bit object if we didn't find anything.
11727 if test -z "$aix_libpath"; then
11728 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11730 else
11731 $as_echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11737 rm -rf conftest.dSYM
11738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11739 conftest$ac_exeext conftest.$ac_ext
11740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11742 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11743 # Warning - without using the other run time loading flags,
11744 # -berok will link without error, but may produce a broken library.
11745 no_undefined_flag_CXX=' ${wl}-bernotok'
11746 allow_undefined_flag_CXX=' ${wl}-berok'
11747 # Exported symbols can be pulled into shared objects from archives
11748 whole_archive_flag_spec_CXX='$convenience'
11749 archive_cmds_need_lc_CXX=yes
11750 # This is similar to how AIX traditionally builds its shared libraries.
11751 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'
11756 beos*)
11757 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11758 allow_undefined_flag_CXX=unsupported
11759 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11760 # support --undefined. This deserves some investigation. FIXME
11761 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11762 else
11763 ld_shlibs_CXX=no
11767 chorus*)
11768 case $cc_basename in
11770 # FIXME: insert proper C++ library support
11771 ld_shlibs_CXX=no
11773 esac
11776 cygwin* | mingw* | pw32*)
11777 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11778 # as there is no search path for DLLs.
11779 hardcode_libdir_flag_spec_CXX='-L$libdir'
11780 allow_undefined_flag_CXX=unsupported
11781 always_export_symbols_CXX=no
11782 enable_shared_with_static_runtimes_CXX=yes
11784 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11785 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'
11786 # If the export-symbols file already is a .def file (1st line
11787 # is EXPORTS), use it as is; otherwise, prepend...
11788 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11789 cp $export_symbols $output_objdir/$soname.def;
11790 else
11791 echo EXPORTS > $output_objdir/$soname.def;
11792 cat $export_symbols >> $output_objdir/$soname.def;
11794 $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'
11795 else
11796 ld_shlibs_CXX=no
11799 darwin* | rhapsody*)
11800 archive_cmds_need_lc_CXX=no
11801 hardcode_direct_CXX=no
11802 hardcode_automatic_CXX=yes
11803 hardcode_shlibpath_var_CXX=unsupported
11804 whole_archive_flag_spec_CXX=''
11805 link_all_deplibs_CXX=yes
11806 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11807 if test "$GXX" = yes ; then
11808 output_verbose_link_cmd='echo'
11809 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}"
11810 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11811 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}"
11812 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}"
11813 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11814 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}"
11815 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}"
11817 else
11818 case $cc_basename in
11819 xlc*)
11820 output_verbose_link_cmd='echo'
11821 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'
11822 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11823 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11824 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}'
11825 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}'
11828 ld_shlibs_CXX=no
11830 esac
11834 dgux*)
11835 case $cc_basename in
11836 ec++*)
11837 # FIXME: insert proper C++ library support
11838 ld_shlibs_CXX=no
11840 ghcx*)
11841 # Green Hills C++ Compiler
11842 # FIXME: insert proper C++ library support
11843 ld_shlibs_CXX=no
11846 # FIXME: insert proper C++ library support
11847 ld_shlibs_CXX=no
11849 esac
11851 freebsd[12]*)
11852 # C++ shared libraries reported to be fairly broken before switch to ELF
11853 ld_shlibs_CXX=no
11855 freebsd-elf*)
11856 archive_cmds_need_lc_CXX=no
11858 freebsd* | dragonfly*)
11859 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11860 # conventions
11861 ld_shlibs_CXX=yes
11863 gnu*)
11865 hpux9*)
11866 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11867 hardcode_libdir_separator_CXX=:
11868 export_dynamic_flag_spec_CXX='${wl}-E'
11869 hardcode_direct_CXX=yes
11870 hardcode_minus_L_CXX=yes # Not in the search PATH,
11871 # but as the default
11872 # location of the library.
11874 case $cc_basename in
11875 CC*)
11876 # FIXME: insert proper C++ library support
11877 ld_shlibs_CXX=no
11879 aCC*)
11880 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'
11881 # Commands to make compiler produce verbose output that lists
11882 # what "hidden" libraries, object files and flags are used when
11883 # linking a shared library.
11885 # There doesn't appear to be a way to prevent this compiler from
11886 # explicitly linking system object files so we need to strip them
11887 # from the output so that they don't get included in the library
11888 # dependencies.
11889 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'
11892 if test "$GXX" = yes; then
11893 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'
11894 else
11895 # FIXME: insert proper C++ library support
11896 ld_shlibs_CXX=no
11899 esac
11901 hpux10*|hpux11*)
11902 if test $with_gnu_ld = no; then
11903 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11904 hardcode_libdir_separator_CXX=:
11906 case $host_cpu in
11907 hppa*64*|ia64*) ;;
11909 export_dynamic_flag_spec_CXX='${wl}-E'
11911 esac
11913 case $host_cpu in
11914 hppa*64*|ia64*)
11915 hardcode_direct_CXX=no
11916 hardcode_shlibpath_var_CXX=no
11919 hardcode_direct_CXX=yes
11920 hardcode_minus_L_CXX=yes # Not in the search PATH,
11921 # but as the default
11922 # location of the library.
11924 esac
11926 case $cc_basename in
11927 CC*)
11928 # FIXME: insert proper C++ library support
11929 ld_shlibs_CXX=no
11931 aCC*)
11932 case $host_cpu in
11933 hppa*64*)
11934 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11936 ia64*)
11937 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11940 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11942 esac
11943 # Commands to make compiler produce verbose output that lists
11944 # what "hidden" libraries, object files and flags are used when
11945 # linking a shared library.
11947 # There doesn't appear to be a way to prevent this compiler from
11948 # explicitly linking system object files so we need to strip them
11949 # from the output so that they don't get included in the library
11950 # dependencies.
11951 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'
11954 if test "$GXX" = yes; then
11955 if test $with_gnu_ld = no; then
11956 case $host_cpu in
11957 hppa*64*)
11958 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11960 ia64*)
11961 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11964 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'
11966 esac
11968 else
11969 # FIXME: insert proper C++ library support
11970 ld_shlibs_CXX=no
11973 esac
11975 interix[3-9]*)
11976 hardcode_direct_CXX=no
11977 hardcode_shlibpath_var_CXX=no
11978 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11979 export_dynamic_flag_spec_CXX='${wl}-E'
11980 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11981 # Instead, shared libraries are loaded at an image base (0x10000000 by
11982 # default) and relocated if they conflict, which is a slow very memory
11983 # consuming and fragmenting process. To avoid this, we pick a random,
11984 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11985 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11986 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'
11987 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'
11989 irix5* | irix6*)
11990 case $cc_basename in
11991 CC*)
11992 # SGI C++
11993 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'
11995 # Archives containing C++ object files must be created using
11996 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11997 # necessary to make sure instantiated templates are included
11998 # in the archive.
11999 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12002 if test "$GXX" = yes; then
12003 if test "$with_gnu_ld" = no; then
12004 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'
12005 else
12006 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'
12009 link_all_deplibs_CXX=yes
12011 esac
12012 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12013 hardcode_libdir_separator_CXX=:
12015 linux* | k*bsd*-gnu)
12016 case $cc_basename in
12017 KCC*)
12018 # Kuck and Associates, Inc. (KAI) C++ Compiler
12020 # KCC will only create a shared library if the output file
12021 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12022 # to its proper name (with version) after linking.
12023 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'
12024 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'
12025 # Commands to make compiler produce verbose output that lists
12026 # what "hidden" libraries, object files and flags are used when
12027 # linking a shared library.
12029 # There doesn't appear to be a way to prevent this compiler from
12030 # explicitly linking system object files so we need to strip them
12031 # from the output so that they don't get included in the library
12032 # dependencies.
12033 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'
12035 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12036 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12038 # Archives containing C++ object files must be created using
12039 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12040 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12042 icpc*)
12043 # Intel C++
12044 with_gnu_ld=yes
12045 # version 8.0 and above of icpc choke on multiply defined symbols
12046 # if we add $predep_objects and $postdep_objects, however 7.1 and
12047 # earlier do not add the objects themselves.
12048 case `$CC -V 2>&1` in
12049 *"Version 7."*)
12050 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12051 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'
12053 *) # Version 8.0 or newer
12054 tmp_idyn=
12055 case $host_cpu in
12056 ia64*) tmp_idyn=' -i_dynamic';;
12057 esac
12058 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12059 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'
12061 esac
12062 archive_cmds_need_lc_CXX=no
12063 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12064 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12065 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12067 pgCC* | pgcpp*)
12068 # Portland Group C++ compiler
12069 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12070 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'
12072 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12073 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12074 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'
12076 cxx*)
12077 # Compaq C++
12078 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12079 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'
12081 runpath_var=LD_RUN_PATH
12082 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12083 hardcode_libdir_separator_CXX=:
12085 # Commands to make compiler produce verbose output that lists
12086 # what "hidden" libraries, object files and flags are used when
12087 # linking a shared library.
12089 # There doesn't appear to be a way to prevent this compiler from
12090 # explicitly linking system object files so we need to strip them
12091 # from the output so that they don't get included in the library
12092 # dependencies.
12093 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'
12096 case `$CC -V 2>&1 | sed 5q` in
12097 *Sun\ C*)
12098 # Sun C++ 5.9
12099 no_undefined_flag_CXX=' -zdefs'
12100 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12101 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'
12102 hardcode_libdir_flag_spec_CXX='-R$libdir'
12103 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'
12105 # Not sure whether something based on
12106 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12107 # would be better.
12108 output_verbose_link_cmd='echo'
12110 # Archives containing C++ object files must be created using
12111 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12112 # necessary to make sure instantiated templates are included
12113 # in the archive.
12114 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12116 esac
12118 esac
12120 lynxos*)
12121 # FIXME: insert proper C++ library support
12122 ld_shlibs_CXX=no
12124 m88k*)
12125 # FIXME: insert proper C++ library support
12126 ld_shlibs_CXX=no
12128 mvs*)
12129 case $cc_basename in
12130 cxx*)
12131 # FIXME: insert proper C++ library support
12132 ld_shlibs_CXX=no
12135 # FIXME: insert proper C++ library support
12136 ld_shlibs_CXX=no
12138 esac
12140 netbsd* | netbsdelf*-gnu)
12141 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12142 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12143 wlarc=
12144 hardcode_libdir_flag_spec_CXX='-R$libdir'
12145 hardcode_direct_CXX=yes
12146 hardcode_shlibpath_var_CXX=no
12148 # Workaround some broken pre-1.5 toolchains
12149 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12151 openbsd2*)
12152 # C++ shared libraries are fairly broken
12153 ld_shlibs_CXX=no
12155 openbsd*)
12156 if test -f /usr/libexec/ld.so; then
12157 hardcode_direct_CXX=yes
12158 hardcode_shlibpath_var_CXX=no
12159 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12160 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12161 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12162 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12163 export_dynamic_flag_spec_CXX='${wl}-E'
12164 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12166 output_verbose_link_cmd='echo'
12167 else
12168 ld_shlibs_CXX=no
12171 osf3*)
12172 case $cc_basename in
12173 KCC*)
12174 # Kuck and Associates, Inc. (KAI) C++ Compiler
12176 # KCC will only create a shared library if the output file
12177 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12178 # to its proper name (with version) after linking.
12179 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'
12181 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12182 hardcode_libdir_separator_CXX=:
12184 # Archives containing C++ object files must be created using
12185 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12186 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12189 RCC*)
12190 # Rational C++ 2.4.1
12191 # FIXME: insert proper C++ library support
12192 ld_shlibs_CXX=no
12194 cxx*)
12195 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12196 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'
12198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12199 hardcode_libdir_separator_CXX=:
12201 # Commands to make compiler produce verbose output that lists
12202 # what "hidden" libraries, object files and flags are used when
12203 # linking a shared library.
12205 # There doesn't appear to be a way to prevent this compiler from
12206 # explicitly linking system object files so we need to strip them
12207 # from the output so that they don't get included in the library
12208 # dependencies.
12209 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'
12212 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12213 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12214 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'
12216 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12217 hardcode_libdir_separator_CXX=:
12219 # Commands to make compiler produce verbose output that lists
12220 # what "hidden" libraries, object files and flags are used when
12221 # linking a shared library.
12222 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12224 else
12225 # FIXME: insert proper C++ library support
12226 ld_shlibs_CXX=no
12229 esac
12231 osf4* | osf5*)
12232 case $cc_basename in
12233 KCC*)
12234 # Kuck and Associates, Inc. (KAI) C++ Compiler
12236 # KCC will only create a shared library if the output file
12237 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12238 # to its proper name (with version) after linking.
12239 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'
12241 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12242 hardcode_libdir_separator_CXX=:
12244 # Archives containing C++ object files must be created using
12245 # the KAI C++ compiler.
12246 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12248 RCC*)
12249 # Rational C++ 2.4.1
12250 # FIXME: insert proper C++ library support
12251 ld_shlibs_CXX=no
12253 cxx*)
12254 allow_undefined_flag_CXX=' -expect_unresolved \*'
12255 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'
12256 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12257 echo "-hidden">> $lib.exp~
12258 $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~
12259 $rm $lib.exp'
12261 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12262 hardcode_libdir_separator_CXX=:
12264 # Commands to make compiler produce verbose output that lists
12265 # what "hidden" libraries, object files and flags are used when
12266 # linking a shared library.
12268 # There doesn't appear to be a way to prevent this compiler from
12269 # explicitly linking system object files so we need to strip them
12270 # from the output so that they don't get included in the library
12271 # dependencies.
12272 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'
12275 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12276 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12277 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'
12279 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12280 hardcode_libdir_separator_CXX=:
12282 # Commands to make compiler produce verbose output that lists
12283 # what "hidden" libraries, object files and flags are used when
12284 # linking a shared library.
12285 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12287 else
12288 # FIXME: insert proper C++ library support
12289 ld_shlibs_CXX=no
12292 esac
12294 psos*)
12295 # FIXME: insert proper C++ library support
12296 ld_shlibs_CXX=no
12298 sunos4*)
12299 case $cc_basename in
12300 CC*)
12301 # Sun C++ 4.x
12302 # FIXME: insert proper C++ library support
12303 ld_shlibs_CXX=no
12305 lcc*)
12306 # Lucid
12307 # FIXME: insert proper C++ library support
12308 ld_shlibs_CXX=no
12311 # FIXME: insert proper C++ library support
12312 ld_shlibs_CXX=no
12314 esac
12316 solaris*)
12317 case $cc_basename in
12318 CC*)
12319 # Sun C++ 4.2, 5.x and Centerline C++
12320 archive_cmds_need_lc_CXX=yes
12321 no_undefined_flag_CXX=' -zdefs'
12322 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12323 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12324 $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'
12326 hardcode_libdir_flag_spec_CXX='-R$libdir'
12327 hardcode_shlibpath_var_CXX=no
12328 case $host_os in
12329 solaris2.[0-5] | solaris2.[0-5].*) ;;
12331 # The compiler driver will combine and reorder linker options,
12332 # but understands `-z linker_flag'.
12333 # Supported since Solaris 2.6 (maybe 2.5.1?)
12334 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12336 esac
12337 link_all_deplibs_CXX=yes
12339 output_verbose_link_cmd='echo'
12341 # Archives containing C++ object files must be created using
12342 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12343 # necessary to make sure instantiated templates are included
12344 # in the archive.
12345 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12347 gcx*)
12348 # Green Hills C++ Compiler
12349 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12351 # The C++ compiler must be used to create the archive.
12352 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12355 # GNU C++ compiler with Solaris linker
12356 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12357 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12358 if $CC --version | grep -v '^2\.7' > /dev/null; then
12359 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12360 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12361 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12363 # Commands to make compiler produce verbose output that lists
12364 # what "hidden" libraries, object files and flags are used when
12365 # linking a shared library.
12366 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12367 else
12368 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12369 # platform.
12370 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12371 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12372 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12374 # Commands to make compiler produce verbose output that lists
12375 # what "hidden" libraries, object files and flags are used when
12376 # linking a shared library.
12377 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12380 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12381 case $host_os in
12382 solaris2.[0-5] | solaris2.[0-5].*) ;;
12384 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12386 esac
12389 esac
12391 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12392 no_undefined_flag_CXX='${wl}-z,text'
12393 archive_cmds_need_lc_CXX=no
12394 hardcode_shlibpath_var_CXX=no
12395 runpath_var='LD_RUN_PATH'
12397 case $cc_basename in
12398 CC*)
12399 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12400 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12403 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12404 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12406 esac
12408 sysv5* | sco3.2v5* | sco5v6*)
12409 # Note: We can NOT use -z defs as we might desire, because we do not
12410 # link with -lc, and that would cause any symbols used from libc to
12411 # always be unresolved, which means just about no library would
12412 # ever link correctly. If we're not using GNU ld we use -z text
12413 # though, which does catch some bad symbols but isn't as heavy-handed
12414 # as -z defs.
12415 # For security reasons, it is highly recommended that you always
12416 # use absolute paths for naming shared libraries, and exclude the
12417 # DT_RUNPATH tag from executables and libraries. But doing so
12418 # requires that you compile everything twice, which is a pain.
12419 # So that behaviour is only enabled if SCOABSPATH is set to a
12420 # non-empty value in the environment. Most likely only useful for
12421 # creating official distributions of packages.
12422 # This is a hack until libtool officially supports absolute path
12423 # names for shared libraries.
12424 no_undefined_flag_CXX='${wl}-z,text'
12425 allow_undefined_flag_CXX='${wl}-z,nodefs'
12426 archive_cmds_need_lc_CXX=no
12427 hardcode_shlibpath_var_CXX=no
12428 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12429 hardcode_libdir_separator_CXX=':'
12430 link_all_deplibs_CXX=yes
12431 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12432 runpath_var='LD_RUN_PATH'
12434 case $cc_basename in
12435 CC*)
12436 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12437 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12440 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12441 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12443 esac
12445 tandem*)
12446 case $cc_basename in
12447 NCC*)
12448 # NonStop-UX NCC 3.20
12449 # FIXME: insert proper C++ library support
12450 ld_shlibs_CXX=no
12453 # FIXME: insert proper C++ library support
12454 ld_shlibs_CXX=no
12456 esac
12458 vxworks*)
12459 # FIXME: insert proper C++ library support
12460 ld_shlibs_CXX=no
12463 # FIXME: insert proper C++ library support
12464 ld_shlibs_CXX=no
12466 esac
12467 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12468 $as_echo "$ld_shlibs_CXX" >&6; }
12469 test "$ld_shlibs_CXX" = no && can_build_shared=no
12471 GCC_CXX="$GXX"
12472 LD_CXX="$LD"
12474 cat > conftest.$ac_ext <<EOF
12475 class Foo
12477 public:
12478 Foo (void) { a = 0; }
12479 private:
12480 int a;
12484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>&5
12486 ac_status=$?
12487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; then
12489 # Parse the compiler output and extract the necessary
12490 # objects, libraries and library flags.
12492 # Sentinel used to keep track of whether or not we are before
12493 # the conftest object file.
12494 pre_test_object_deps_done=no
12496 # The `*' in the case matches for architectures that use `case' in
12497 # $output_verbose_cmd can trigger glob expansion during the loop
12498 # eval without this substitution.
12499 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12501 for p in `eval $output_verbose_link_cmd`; do
12502 case $p in
12504 -L* | -R* | -l*)
12505 # Some compilers place space between "-{L,R}" and the path.
12506 # Remove the space.
12507 if test $p = "-L" \
12508 || test $p = "-R"; then
12509 prev=$p
12510 continue
12511 else
12512 prev=
12515 if test "$pre_test_object_deps_done" = no; then
12516 case $p in
12517 -L* | -R*)
12518 # Internal compiler library paths should come after those
12519 # provided the user. The postdeps already come after the
12520 # user supplied libs so there is no need to process them.
12521 if test -z "$compiler_lib_search_path_CXX"; then
12522 compiler_lib_search_path_CXX="${prev}${p}"
12523 else
12524 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12527 # The "-l" case would never come before the object being
12528 # linked, so don't bother handling this case.
12529 esac
12530 else
12531 if test -z "$postdeps_CXX"; then
12532 postdeps_CXX="${prev}${p}"
12533 else
12534 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12539 *.$objext)
12540 # This assumes that the test object file only shows up
12541 # once in the compiler output.
12542 if test "$p" = "conftest.$objext"; then
12543 pre_test_object_deps_done=yes
12544 continue
12547 if test "$pre_test_object_deps_done" = no; then
12548 if test -z "$predep_objects_CXX"; then
12549 predep_objects_CXX="$p"
12550 else
12551 predep_objects_CXX="$predep_objects_CXX $p"
12553 else
12554 if test -z "$postdep_objects_CXX"; then
12555 postdep_objects_CXX="$p"
12556 else
12557 postdep_objects_CXX="$postdep_objects_CXX $p"
12562 *) ;; # Ignore the rest.
12564 esac
12565 done
12567 # Clean up.
12568 rm -f a.out a.exe
12569 else
12570 echo "libtool.m4: error: problem compiling CXX test program"
12573 $rm -f confest.$objext
12575 compiler_lib_search_dirs_CXX=
12576 if test -n "$compiler_lib_search_path_CXX"; then
12577 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12580 # PORTME: override above test on systems where it is broken
12581 case $host_os in
12582 interix[3-9]*)
12583 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12584 # hack all around it, let's just trust "g++" to DTRT.
12585 predep_objects_CXX=
12586 postdep_objects_CXX=
12587 postdeps_CXX=
12590 linux*)
12591 case `$CC -V 2>&1 | sed 5q` in
12592 *Sun\ C*)
12593 # Sun C++ 5.9
12595 # The more standards-conforming stlport4 library is
12596 # incompatible with the Cstd library. Avoid specifying
12597 # it if it's in CXXFLAGS. Ignore libCrun as
12598 # -library=stlport4 depends on it.
12599 case " $CXX $CXXFLAGS " in
12600 *" -library=stlport4 "*)
12601 solaris_use_stlport4=yes
12603 esac
12604 if test "$solaris_use_stlport4" != yes; then
12605 postdeps_CXX='-library=Cstd -library=Crun'
12608 esac
12611 solaris*)
12612 case $cc_basename in
12613 CC*)
12614 # The more standards-conforming stlport4 library is
12615 # incompatible with the Cstd library. Avoid specifying
12616 # it if it's in CXXFLAGS. Ignore libCrun as
12617 # -library=stlport4 depends on it.
12618 case " $CXX $CXXFLAGS " in
12619 *" -library=stlport4 "*)
12620 solaris_use_stlport4=yes
12622 esac
12624 # Adding this requires a known-good setup of shared libraries for
12625 # Sun compiler versions before 5.6, else PIC objects from an old
12626 # archive will be linked into the output, leading to subtle bugs.
12627 if test "$solaris_use_stlport4" != yes; then
12628 postdeps_CXX='-library=Cstd -library=Crun'
12631 esac
12633 esac
12635 case " $postdeps_CXX " in
12636 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12637 esac
12639 lt_prog_compiler_wl_CXX=
12640 lt_prog_compiler_pic_CXX=
12641 lt_prog_compiler_static_CXX=
12643 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12644 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12646 # C++ specific cases for pic, static, wl, etc.
12647 if test "$GXX" = yes; then
12648 lt_prog_compiler_wl_CXX='-Wl,'
12649 lt_prog_compiler_static_CXX='-static'
12651 case $host_os in
12652 aix*)
12653 # All AIX code is PIC.
12654 if test "$host_cpu" = ia64; then
12655 # AIX 5 now supports IA64 processor
12656 lt_prog_compiler_static_CXX='-Bstatic'
12659 amigaos*)
12660 # FIXME: we need at least 68020 code to build shared libraries, but
12661 # adding the `-m68020' flag to GCC prevents building anything better,
12662 # like `-m68040'.
12663 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12665 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12666 # PIC is the default for these OSes.
12668 mingw* | cygwin* | os2* | pw32*)
12669 # This hack is so that the source file can tell whether it is being
12670 # built for inclusion in a dll (and should export symbols for example).
12671 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12672 # (--disable-auto-import) libraries
12673 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12675 darwin* | rhapsody*)
12676 # PIC is the default on this platform
12677 # Common symbols not allowed in MH_DYLIB files
12678 lt_prog_compiler_pic_CXX='-fno-common'
12680 *djgpp*)
12681 # DJGPP does not support shared libraries at all
12682 lt_prog_compiler_pic_CXX=
12684 interix[3-9]*)
12685 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12686 # Instead, we relocate shared libraries at runtime.
12688 sysv4*MP*)
12689 if test -d /usr/nec; then
12690 lt_prog_compiler_pic_CXX=-Kconform_pic
12693 hpux*)
12694 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12695 # not for PA HP-UX.
12696 case $host_cpu in
12697 hppa*64*|ia64*)
12700 lt_prog_compiler_pic_CXX='-fPIC'
12702 esac
12705 lt_prog_compiler_pic_CXX='-fPIC'
12707 esac
12708 else
12709 case $host_os in
12710 aix[4-9]*)
12711 # All AIX code is PIC.
12712 if test "$host_cpu" = ia64; then
12713 # AIX 5 now supports IA64 processor
12714 lt_prog_compiler_static_CXX='-Bstatic'
12715 else
12716 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12719 chorus*)
12720 case $cc_basename in
12721 cxch68*)
12722 # Green Hills C++ Compiler
12723 # _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"
12725 esac
12727 darwin*)
12728 # PIC is the default on this platform
12729 # Common symbols not allowed in MH_DYLIB files
12730 case $cc_basename in
12731 xlc*)
12732 lt_prog_compiler_pic_CXX='-qnocommon'
12733 lt_prog_compiler_wl_CXX='-Wl,'
12735 esac
12737 dgux*)
12738 case $cc_basename in
12739 ec++*)
12740 lt_prog_compiler_pic_CXX='-KPIC'
12742 ghcx*)
12743 # Green Hills C++ Compiler
12744 lt_prog_compiler_pic_CXX='-pic'
12748 esac
12750 freebsd* | dragonfly*)
12751 # FreeBSD uses GNU C++
12753 hpux9* | hpux10* | hpux11*)
12754 case $cc_basename in
12755 CC*)
12756 lt_prog_compiler_wl_CXX='-Wl,'
12757 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12758 if test "$host_cpu" != ia64; then
12759 lt_prog_compiler_pic_CXX='+Z'
12762 aCC*)
12763 lt_prog_compiler_wl_CXX='-Wl,'
12764 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12765 case $host_cpu in
12766 hppa*64*|ia64*)
12767 # +Z the default
12770 lt_prog_compiler_pic_CXX='+Z'
12772 esac
12776 esac
12778 interix*)
12779 # This is c89, which is MS Visual C++ (no shared libs)
12780 # Anyone wants to do a port?
12782 irix5* | irix6* | nonstopux*)
12783 case $cc_basename in
12784 CC*)
12785 lt_prog_compiler_wl_CXX='-Wl,'
12786 lt_prog_compiler_static_CXX='-non_shared'
12787 # CC pic flag -KPIC is the default.
12791 esac
12793 linux* | k*bsd*-gnu)
12794 case $cc_basename in
12795 KCC*)
12796 # KAI C++ Compiler
12797 lt_prog_compiler_wl_CXX='--backend -Wl,'
12798 lt_prog_compiler_pic_CXX='-fPIC'
12800 icpc* | ecpc*)
12801 # Intel C++
12802 lt_prog_compiler_wl_CXX='-Wl,'
12803 lt_prog_compiler_pic_CXX='-KPIC'
12804 lt_prog_compiler_static_CXX='-static'
12806 pgCC* | pgcpp*)
12807 # Portland Group C++ compiler.
12808 lt_prog_compiler_wl_CXX='-Wl,'
12809 lt_prog_compiler_pic_CXX='-fpic'
12810 lt_prog_compiler_static_CXX='-Bstatic'
12812 cxx*)
12813 # Compaq C++
12814 # Make sure the PIC flag is empty. It appears that all Alpha
12815 # Linux and Compaq Tru64 Unix objects are PIC.
12816 lt_prog_compiler_pic_CXX=
12817 lt_prog_compiler_static_CXX='-non_shared'
12820 case `$CC -V 2>&1 | sed 5q` in
12821 *Sun\ C*)
12822 # Sun C++ 5.9
12823 lt_prog_compiler_pic_CXX='-KPIC'
12824 lt_prog_compiler_static_CXX='-Bstatic'
12825 lt_prog_compiler_wl_CXX='-Qoption ld '
12827 esac
12829 esac
12831 lynxos*)
12833 m88k*)
12835 mvs*)
12836 case $cc_basename in
12837 cxx*)
12838 lt_prog_compiler_pic_CXX='-W c,exportall'
12842 esac
12844 netbsd* | netbsdelf*-gnu)
12846 osf3* | osf4* | osf5*)
12847 case $cc_basename in
12848 KCC*)
12849 lt_prog_compiler_wl_CXX='--backend -Wl,'
12851 RCC*)
12852 # Rational C++ 2.4.1
12853 lt_prog_compiler_pic_CXX='-pic'
12855 cxx*)
12856 # Digital/Compaq C++
12857 lt_prog_compiler_wl_CXX='-Wl,'
12858 # Make sure the PIC flag is empty. It appears that all Alpha
12859 # Linux and Compaq Tru64 Unix objects are PIC.
12860 lt_prog_compiler_pic_CXX=
12861 lt_prog_compiler_static_CXX='-non_shared'
12865 esac
12867 psos*)
12869 solaris*)
12870 case $cc_basename in
12871 CC*)
12872 # Sun C++ 4.2, 5.x and Centerline C++
12873 lt_prog_compiler_pic_CXX='-KPIC'
12874 lt_prog_compiler_static_CXX='-Bstatic'
12875 lt_prog_compiler_wl_CXX='-Qoption ld '
12877 gcx*)
12878 # Green Hills C++ Compiler
12879 lt_prog_compiler_pic_CXX='-PIC'
12883 esac
12885 sunos4*)
12886 case $cc_basename in
12887 CC*)
12888 # Sun C++ 4.x
12889 lt_prog_compiler_pic_CXX='-pic'
12890 lt_prog_compiler_static_CXX='-Bstatic'
12892 lcc*)
12893 # Lucid
12894 lt_prog_compiler_pic_CXX='-pic'
12898 esac
12900 tandem*)
12901 case $cc_basename in
12902 NCC*)
12903 # NonStop-UX NCC 3.20
12904 lt_prog_compiler_pic_CXX='-KPIC'
12908 esac
12910 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12911 case $cc_basename in
12912 CC*)
12913 lt_prog_compiler_wl_CXX='-Wl,'
12914 lt_prog_compiler_pic_CXX='-KPIC'
12915 lt_prog_compiler_static_CXX='-Bstatic'
12917 esac
12919 vxworks*)
12922 lt_prog_compiler_can_build_shared_CXX=no
12924 esac
12927 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12928 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12931 # Check to make sure the PIC flag actually works.
12933 if test -n "$lt_prog_compiler_pic_CXX"; then
12935 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12936 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12937 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12938 $as_echo_n "(cached) " >&6
12939 else
12940 lt_cv_prog_compiler_pic_works_CXX=no
12941 ac_outfile=conftest.$ac_objext
12942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12943 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12944 # Insert the option either (1) after the last *FLAGS variable, or
12945 # (2) before a word containing "conftest.", or (3) at the end.
12946 # Note that $ac_compile itself does not contain backslashes and begins
12947 # with a dollar sign (not a hyphen), so the echo should work correctly.
12948 # The option is referenced via a variable to avoid confusing sed.
12949 lt_compile=`echo "$ac_compile" | $SED \
12950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12952 -e 's:$: $lt_compiler_flag:'`
12953 (eval echo "\"\$as_me:12953: $lt_compile\"" >&5)
12954 (eval "$lt_compile" 2>conftest.err)
12955 ac_status=$?
12956 cat conftest.err >&5
12957 echo "$as_me:12957: \$? = $ac_status" >&5
12958 if (exit $ac_status) && test -s "$ac_outfile"; then
12959 # The compiler can only warn and ignore the option if not recognized
12960 # So say no if there are warnings other than the usual output.
12961 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12964 lt_cv_prog_compiler_pic_works_CXX=yes
12967 $rm conftest*
12970 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12971 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12973 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12974 case $lt_prog_compiler_pic_CXX in
12975 "" | " "*) ;;
12976 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12977 esac
12978 else
12979 lt_prog_compiler_pic_CXX=
12980 lt_prog_compiler_can_build_shared_CXX=no
12984 case $host_os in
12985 # For platforms which do not support PIC, -DPIC is meaningless:
12986 *djgpp*)
12987 lt_prog_compiler_pic_CXX=
12990 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12992 esac
12995 # Check to make sure the static flag actually works.
12997 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12998 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12999 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13000 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13001 $as_echo_n "(cached) " >&6
13002 else
13003 lt_cv_prog_compiler_static_works_CXX=no
13004 save_LDFLAGS="$LDFLAGS"
13005 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13006 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13008 # The linker can only warn and ignore the option if not recognized
13009 # So say no if there are warnings
13010 if test -s conftest.err; then
13011 # Append any errors to the config.log.
13012 cat conftest.err 1>&5
13013 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13015 if diff conftest.exp conftest.er2 >/dev/null; then
13016 lt_cv_prog_compiler_static_works_CXX=yes
13018 else
13019 lt_cv_prog_compiler_static_works_CXX=yes
13022 $rm -r conftest*
13023 LDFLAGS="$save_LDFLAGS"
13026 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13027 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13029 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13031 else
13032 lt_prog_compiler_static_CXX=
13036 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13037 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13038 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13039 $as_echo_n "(cached) " >&6
13040 else
13041 lt_cv_prog_compiler_c_o_CXX=no
13042 $rm -r conftest 2>/dev/null
13043 mkdir conftest
13044 cd conftest
13045 mkdir out
13046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13048 lt_compiler_flag="-o out/conftest2.$ac_objext"
13049 # Insert the option either (1) after the last *FLAGS variable, or
13050 # (2) before a word containing "conftest.", or (3) at the end.
13051 # Note that $ac_compile itself does not contain backslashes and begins
13052 # with a dollar sign (not a hyphen), so the echo should work correctly.
13053 lt_compile=`echo "$ac_compile" | $SED \
13054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13056 -e 's:$: $lt_compiler_flag:'`
13057 (eval echo "\"\$as_me:13057: $lt_compile\"" >&5)
13058 (eval "$lt_compile" 2>out/conftest.err)
13059 ac_status=$?
13060 cat out/conftest.err >&5
13061 echo "$as_me:13061: \$? = $ac_status" >&5
13062 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13063 then
13064 # The compiler can only warn and ignore the option if not recognized
13065 # So say no if there are warnings
13066 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13067 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13068 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13069 lt_cv_prog_compiler_c_o_CXX=yes
13072 chmod u+w . 2>&5
13073 $rm conftest*
13074 # SGI C++ compiler will create directory out/ii_files/ for
13075 # template instantiation
13076 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13077 $rm out/* && rmdir out
13078 cd ..
13079 rmdir conftest
13080 $rm conftest*
13083 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13084 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13087 hard_links="nottested"
13088 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13089 # do not overwrite the value of need_locks provided by the user
13090 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13091 $as_echo_n "checking if we can lock with hard links... " >&6; }
13092 hard_links=yes
13093 $rm conftest*
13094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13095 touch conftest.a
13096 ln conftest.a conftest.b 2>&5 || hard_links=no
13097 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13098 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13099 $as_echo "$hard_links" >&6; }
13100 if test "$hard_links" = no; then
13101 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13102 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13103 need_locks=warn
13105 else
13106 need_locks=no
13109 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13110 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13112 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13113 case $host_os in
13114 aix[4-9]*)
13115 # If we're using GNU nm, then we don't want the "-C" option.
13116 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13117 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13118 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'
13119 else
13120 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'
13123 pw32*)
13124 export_symbols_cmds_CXX="$ltdll_cmds"
13126 cygwin* | mingw*)
13127 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'
13129 linux* | k*bsd*-gnu)
13130 link_all_deplibs_CXX=no
13133 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13135 esac
13136 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13138 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13139 $as_echo "$ld_shlibs_CXX" >&6; }
13140 test "$ld_shlibs_CXX" = no && can_build_shared=no
13143 # Do we need to explicitly link libc?
13145 case "x$archive_cmds_need_lc_CXX" in
13146 x|xyes)
13147 # Assume -lc should be added
13148 archive_cmds_need_lc_CXX=yes
13150 if test "$enable_shared" = yes && test "$GCC" = yes; then
13151 case $archive_cmds_CXX in
13152 *'~'*)
13153 # FIXME: we may have to deal with multi-command sequences.
13155 '$CC '*)
13156 # Test whether the compiler implicitly links with -lc since on some
13157 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13158 # to ld, don't add -lc before -lgcc.
13159 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13160 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13161 $rm conftest*
13162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13165 (eval $ac_compile) 2>&5
13166 ac_status=$?
13167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } 2>conftest.err; then
13169 soname=conftest
13170 lib=conftest
13171 libobjs=conftest.$ac_objext
13172 deplibs=
13173 wl=$lt_prog_compiler_wl_CXX
13174 pic_flag=$lt_prog_compiler_pic_CXX
13175 compiler_flags=-v
13176 linker_flags=-v
13177 verstring=
13178 output_objdir=.
13179 libname=conftest
13180 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13181 allow_undefined_flag_CXX=
13182 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13183 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13184 ac_status=$?
13185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }
13187 then
13188 archive_cmds_need_lc_CXX=no
13189 else
13190 archive_cmds_need_lc_CXX=yes
13192 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13193 else
13194 cat conftest.err 1>&5
13196 $rm conftest*
13197 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13198 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13200 esac
13203 esac
13205 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13206 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13207 library_names_spec=
13208 libname_spec='lib$name'
13209 soname_spec=
13210 shrext_cmds=".so"
13211 postinstall_cmds=
13212 postuninstall_cmds=
13213 finish_cmds=
13214 finish_eval=
13215 shlibpath_var=
13216 shlibpath_overrides_runpath=unknown
13217 version_type=none
13218 dynamic_linker="$host_os ld.so"
13219 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13221 need_lib_prefix=unknown
13222 hardcode_into_libs=no
13224 # when you set need_version to no, make sure it does not cause -set_version
13225 # flags to be left without arguments
13226 need_version=unknown
13228 case $host_os in
13229 aix3*)
13230 version_type=linux
13231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13232 shlibpath_var=LIBPATH
13234 # AIX 3 has no versioning support, so we append a major version to the name.
13235 soname_spec='${libname}${release}${shared_ext}$major'
13238 aix[4-9]*)
13239 version_type=linux
13240 need_lib_prefix=no
13241 need_version=no
13242 hardcode_into_libs=yes
13243 if test "$host_cpu" = ia64; then
13244 # AIX 5 supports IA64
13245 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13246 shlibpath_var=LD_LIBRARY_PATH
13247 else
13248 # With GCC up to 2.95.x, collect2 would create an import file
13249 # for dependence libraries. The import file would start with
13250 # the line `#! .'. This would cause the generated library to
13251 # depend on `.', always an invalid library. This was fixed in
13252 # development snapshots of GCC prior to 3.0.
13253 case $host_os in
13254 aix4 | aix4.[01] | aix4.[01].*)
13255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13256 echo ' yes '
13257 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13259 else
13260 can_build_shared=no
13263 esac
13264 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13265 # soname into executable. Probably we can add versioning support to
13266 # collect2, so additional links can be useful in future.
13267 if test "$aix_use_runtimelinking" = yes; then
13268 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13269 # instead of lib<name>.a to let people know that these are not
13270 # typical AIX shared libraries.
13271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13272 else
13273 # We preserve .a as extension for shared libraries through AIX4.2
13274 # and later when we are not doing run time linking.
13275 library_names_spec='${libname}${release}.a $libname.a'
13276 soname_spec='${libname}${release}${shared_ext}$major'
13278 shlibpath_var=LIBPATH
13282 amigaos*)
13283 library_names_spec='$libname.ixlibrary $libname.a'
13284 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13285 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'
13288 beos*)
13289 library_names_spec='${libname}${shared_ext}'
13290 dynamic_linker="$host_os ld.so"
13291 shlibpath_var=LIBRARY_PATH
13294 bsdi[45]*)
13295 version_type=linux
13296 need_version=no
13297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13298 soname_spec='${libname}${release}${shared_ext}$major'
13299 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13300 shlibpath_var=LD_LIBRARY_PATH
13301 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13302 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13303 # the default ld.so.conf also contains /usr/contrib/lib and
13304 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13305 # libtool to hard-code these into programs
13308 cygwin* | mingw* | pw32*)
13309 version_type=windows
13310 shrext_cmds=".dll"
13311 need_version=no
13312 need_lib_prefix=no
13314 case $GCC,$host_os in
13315 yes,cygwin* | yes,mingw* | yes,pw32*)
13316 library_names_spec='$libname.dll.a'
13317 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13318 postinstall_cmds='base_file=`basename \${file}`~
13319 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13320 dldir=$destdir/`dirname \$dlpath`~
13321 test -d \$dldir || mkdir -p \$dldir~
13322 $install_prog $dir/$dlname \$dldir/$dlname~
13323 chmod a+x \$dldir/$dlname'
13324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13325 dlpath=$dir/\$dldll~
13326 $rm \$dlpath'
13327 shlibpath_overrides_runpath=yes
13329 case $host_os in
13330 cygwin*)
13331 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13332 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13333 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13335 mingw*)
13336 # MinGW DLLs use traditional 'lib' prefix
13337 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13338 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13339 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13340 # It is most probably a Windows format PATH printed by
13341 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13342 # path with ; separators, and with drive letters. We can handle the
13343 # drive letters (cygwin fileutils understands them), so leave them,
13344 # especially as we might pass files found there to a mingw objdump,
13345 # which wouldn't understand a cygwinified path. Ahh.
13346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13347 else
13348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13351 pw32*)
13352 # pw32 DLLs use 'pw' prefix rather than 'lib'
13353 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13355 esac
13359 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13361 esac
13362 dynamic_linker='Win32 ld.exe'
13363 # FIXME: first we should search . and the directory the executable is in
13364 shlibpath_var=PATH
13367 darwin* | rhapsody*)
13368 dynamic_linker="$host_os dyld"
13369 version_type=darwin
13370 need_lib_prefix=no
13371 need_version=no
13372 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13373 soname_spec='${libname}${release}${major}$shared_ext'
13374 shlibpath_overrides_runpath=yes
13375 shlibpath_var=DYLD_LIBRARY_PATH
13376 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13378 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13381 dgux*)
13382 version_type=linux
13383 need_lib_prefix=no
13384 need_version=no
13385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13386 soname_spec='${libname}${release}${shared_ext}$major'
13387 shlibpath_var=LD_LIBRARY_PATH
13390 freebsd1*)
13391 dynamic_linker=no
13394 freebsd* | dragonfly*)
13395 # DragonFly does not have aout. When/if they implement a new
13396 # versioning mechanism, adjust this.
13397 if test -x /usr/bin/objformat; then
13398 objformat=`/usr/bin/objformat`
13399 else
13400 case $host_os in
13401 freebsd[123]*) objformat=aout ;;
13402 *) objformat=elf ;;
13403 esac
13405 version_type=freebsd-$objformat
13406 case $version_type in
13407 freebsd-elf*)
13408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13409 need_version=no
13410 need_lib_prefix=no
13412 freebsd-*)
13413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13414 need_version=yes
13416 esac
13417 shlibpath_var=LD_LIBRARY_PATH
13418 case $host_os in
13419 freebsd2*)
13420 shlibpath_overrides_runpath=yes
13422 freebsd3.[01]* | freebsdelf3.[01]*)
13423 shlibpath_overrides_runpath=yes
13424 hardcode_into_libs=yes
13426 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13427 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13428 shlibpath_overrides_runpath=no
13429 hardcode_into_libs=yes
13431 *) # from 4.6 on, and DragonFly
13432 shlibpath_overrides_runpath=yes
13433 hardcode_into_libs=yes
13435 esac
13438 gnu*)
13439 version_type=linux
13440 need_lib_prefix=no
13441 need_version=no
13442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13443 soname_spec='${libname}${release}${shared_ext}$major'
13444 shlibpath_var=LD_LIBRARY_PATH
13445 hardcode_into_libs=yes
13448 hpux9* | hpux10* | hpux11*)
13449 # Give a soname corresponding to the major version so that dld.sl refuses to
13450 # link against other versions.
13451 version_type=sunos
13452 need_lib_prefix=no
13453 need_version=no
13454 case $host_cpu in
13455 ia64*)
13456 shrext_cmds='.so'
13457 hardcode_into_libs=yes
13458 dynamic_linker="$host_os dld.so"
13459 shlibpath_var=LD_LIBRARY_PATH
13460 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13462 soname_spec='${libname}${release}${shared_ext}$major'
13463 if test "X$HPUX_IA64_MODE" = X32; then
13464 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13465 else
13466 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13470 hppa*64*)
13471 shrext_cmds='.sl'
13472 hardcode_into_libs=yes
13473 dynamic_linker="$host_os dld.sl"
13474 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477 soname_spec='${libname}${release}${shared_ext}$major'
13478 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13482 shrext_cmds='.sl'
13483 dynamic_linker="$host_os dld.sl"
13484 shlibpath_var=SHLIB_PATH
13485 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13487 soname_spec='${libname}${release}${shared_ext}$major'
13489 esac
13490 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13491 postinstall_cmds='chmod 555 $lib'
13494 interix[3-9]*)
13495 version_type=linux
13496 need_lib_prefix=no
13497 need_version=no
13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13499 soname_spec='${libname}${release}${shared_ext}$major'
13500 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13501 shlibpath_var=LD_LIBRARY_PATH
13502 shlibpath_overrides_runpath=no
13503 hardcode_into_libs=yes
13506 irix5* | irix6* | nonstopux*)
13507 case $host_os in
13508 nonstopux*) version_type=nonstopux ;;
13510 if test "$lt_cv_prog_gnu_ld" = yes; then
13511 version_type=linux
13512 else
13513 version_type=irix
13514 fi ;;
13515 esac
13516 need_lib_prefix=no
13517 need_version=no
13518 soname_spec='${libname}${release}${shared_ext}$major'
13519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13520 case $host_os in
13521 irix5* | nonstopux*)
13522 libsuff= shlibsuff=
13525 case $LD in # libtool.m4 will add one of these switches to LD
13526 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13527 libsuff= shlibsuff= libmagic=32-bit;;
13528 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13529 libsuff=32 shlibsuff=N32 libmagic=N32;;
13530 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13531 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13532 *) libsuff= shlibsuff= libmagic=never-match;;
13533 esac
13535 esac
13536 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13537 shlibpath_overrides_runpath=no
13538 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13539 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13540 hardcode_into_libs=yes
13543 # No shared lib support for Linux oldld, aout, or coff.
13544 linux*oldld* | linux*aout* | linux*coff*)
13545 dynamic_linker=no
13548 # This must be Linux ELF.
13549 linux* | k*bsd*-gnu)
13550 version_type=linux
13551 need_lib_prefix=no
13552 need_version=no
13553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13554 soname_spec='${libname}${release}${shared_ext}$major'
13555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13556 shlibpath_var=LD_LIBRARY_PATH
13557 shlibpath_overrides_runpath=no
13558 # This implies no fast_install, which is unacceptable.
13559 # Some rework will be needed to allow for fast_install
13560 # before this can be enabled.
13561 hardcode_into_libs=yes
13563 # Append ld.so.conf contents to the search path
13564 if test -f /etc/ld.so.conf; then
13565 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' ' '`
13566 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13569 # We used to test for /lib/ld.so.1 and disable shared libraries on
13570 # powerpc, because MkLinux only supported shared libraries with the
13571 # GNU dynamic linker. Since this was broken with cross compilers,
13572 # most powerpc-linux boxes support dynamic linking these days and
13573 # people can always --disable-shared, the test was removed, and we
13574 # assume the GNU/Linux dynamic linker is in use.
13575 dynamic_linker='GNU/Linux ld.so'
13578 netbsdelf*-gnu)
13579 version_type=linux
13580 need_lib_prefix=no
13581 need_version=no
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13583 soname_spec='${libname}${release}${shared_ext}$major'
13584 shlibpath_var=LD_LIBRARY_PATH
13585 shlibpath_overrides_runpath=no
13586 hardcode_into_libs=yes
13587 dynamic_linker='NetBSD ld.elf_so'
13590 netbsd*)
13591 version_type=sunos
13592 need_lib_prefix=no
13593 need_version=no
13594 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13597 dynamic_linker='NetBSD (a.out) ld.so'
13598 else
13599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13600 soname_spec='${libname}${release}${shared_ext}$major'
13601 dynamic_linker='NetBSD ld.elf_so'
13603 shlibpath_var=LD_LIBRARY_PATH
13604 shlibpath_overrides_runpath=yes
13605 hardcode_into_libs=yes
13608 newsos6)
13609 version_type=linux
13610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13611 shlibpath_var=LD_LIBRARY_PATH
13612 shlibpath_overrides_runpath=yes
13615 nto-qnx*)
13616 version_type=linux
13617 need_lib_prefix=no
13618 need_version=no
13619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13620 soname_spec='${libname}${release}${shared_ext}$major'
13621 shlibpath_var=LD_LIBRARY_PATH
13622 shlibpath_overrides_runpath=yes
13625 openbsd*)
13626 version_type=sunos
13627 sys_lib_dlsearch_path_spec="/usr/lib"
13628 need_lib_prefix=no
13629 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13630 case $host_os in
13631 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13632 *) need_version=no ;;
13633 esac
13634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13636 shlibpath_var=LD_LIBRARY_PATH
13637 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13638 case $host_os in
13639 openbsd2.[89] | openbsd2.[89].*)
13640 shlibpath_overrides_runpath=no
13643 shlibpath_overrides_runpath=yes
13645 esac
13646 else
13647 shlibpath_overrides_runpath=yes
13651 os2*)
13652 libname_spec='$name'
13653 shrext_cmds=".dll"
13654 need_lib_prefix=no
13655 library_names_spec='$libname${shared_ext} $libname.a'
13656 dynamic_linker='OS/2 ld.exe'
13657 shlibpath_var=LIBPATH
13660 osf3* | osf4* | osf5*)
13661 version_type=osf
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${shared_ext}'
13666 shlibpath_var=LD_LIBRARY_PATH
13667 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13668 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13671 rdos*)
13672 dynamic_linker=no
13675 solaris*)
13676 version_type=linux
13677 need_lib_prefix=no
13678 need_version=no
13679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13680 soname_spec='${libname}${release}${shared_ext}$major'
13681 shlibpath_var=LD_LIBRARY_PATH
13682 shlibpath_overrides_runpath=yes
13683 hardcode_into_libs=yes
13684 # ldd complains unless libraries are executable
13685 postinstall_cmds='chmod +x $lib'
13688 sunos4*)
13689 version_type=sunos
13690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13691 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13692 shlibpath_var=LD_LIBRARY_PATH
13693 shlibpath_overrides_runpath=yes
13694 if test "$with_gnu_ld" = yes; then
13695 need_lib_prefix=no
13697 need_version=yes
13700 sysv4 | sysv4.3*)
13701 version_type=linux
13702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13703 soname_spec='${libname}${release}${shared_ext}$major'
13704 shlibpath_var=LD_LIBRARY_PATH
13705 case $host_vendor in
13706 sni)
13707 shlibpath_overrides_runpath=no
13708 need_lib_prefix=no
13709 export_dynamic_flag_spec='${wl}-Blargedynsym'
13710 runpath_var=LD_RUN_PATH
13712 siemens)
13713 need_lib_prefix=no
13715 motorola)
13716 need_lib_prefix=no
13717 need_version=no
13718 shlibpath_overrides_runpath=no
13719 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13721 esac
13724 sysv4*MP*)
13725 if test -d /usr/nec ;then
13726 version_type=linux
13727 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13728 soname_spec='$libname${shared_ext}.$major'
13729 shlibpath_var=LD_LIBRARY_PATH
13733 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13734 version_type=freebsd-elf
13735 need_lib_prefix=no
13736 need_version=no
13737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13738 soname_spec='${libname}${release}${shared_ext}$major'
13739 shlibpath_var=LD_LIBRARY_PATH
13740 hardcode_into_libs=yes
13741 if test "$with_gnu_ld" = yes; then
13742 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13743 shlibpath_overrides_runpath=no
13744 else
13745 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13746 shlibpath_overrides_runpath=yes
13747 case $host_os in
13748 sco3.2v5*)
13749 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13751 esac
13753 sys_lib_dlsearch_path_spec='/usr/lib'
13756 uts4*)
13757 version_type=linux
13758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13759 soname_spec='${libname}${release}${shared_ext}$major'
13760 shlibpath_var=LD_LIBRARY_PATH
13764 dynamic_linker=no
13766 esac
13767 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13768 $as_echo "$dynamic_linker" >&6; }
13769 test "$dynamic_linker" = no && can_build_shared=no
13771 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13772 $as_echo_n "(cached) " >&6
13773 else
13774 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13777 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13778 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13779 $as_echo_n "(cached) " >&6
13780 else
13781 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13784 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13786 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13787 if test "$GCC" = yes; then
13788 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13791 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13792 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13793 hardcode_action_CXX=
13794 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13795 test -n "$runpath_var_CXX" || \
13796 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13798 # We can hardcode non-existant directories.
13799 if test "$hardcode_direct_CXX" != no &&
13800 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13801 # have to relink, otherwise we might link with an installed library
13802 # when we should be linking with a yet-to-be-installed one
13803 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13804 test "$hardcode_minus_L_CXX" != no; then
13805 # Linking always hardcodes the temporary library directory.
13806 hardcode_action_CXX=relink
13807 else
13808 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13809 hardcode_action_CXX=immediate
13811 else
13812 # We cannot hardcode anything, or else we can only hardcode existing
13813 # directories.
13814 hardcode_action_CXX=unsupported
13816 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13817 $as_echo "$hardcode_action_CXX" >&6; }
13819 if test "$hardcode_action_CXX" = relink; then
13820 # Fast installation is not supported
13821 enable_fast_install=no
13822 elif test "$shlibpath_overrides_runpath" = yes ||
13823 test "$enable_shared" = no; then
13824 # Fast installation is not necessary
13825 enable_fast_install=needless
13829 # The else clause should only fire when bootstrapping the
13830 # libtool distribution, otherwise you forgot to ship ltmain.sh
13831 # with your package, and you will get complaints that there are
13832 # no rules to generate ltmain.sh.
13833 if test -f "$ltmain"; then
13834 # See if we are running on zsh, and set the options which allow our commands through
13835 # without removal of \ escapes.
13836 if test -n "${ZSH_VERSION+set}" ; then
13837 setopt NO_GLOB_SUBST
13839 # Now quote all the things that may contain metacharacters while being
13840 # careful not to overquote the AC_SUBSTed values. We take copies of the
13841 # variables and quote the copies for generation of the libtool script.
13842 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13843 SED SHELL STRIP \
13844 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13845 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13846 deplibs_check_method reload_flag reload_cmds need_locks \
13847 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13848 lt_cv_sys_global_symbol_to_c_name_address \
13849 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13850 old_postinstall_cmds old_postuninstall_cmds \
13851 compiler_CXX \
13852 CC_CXX \
13853 LD_CXX \
13854 lt_prog_compiler_wl_CXX \
13855 lt_prog_compiler_pic_CXX \
13856 lt_prog_compiler_static_CXX \
13857 lt_prog_compiler_no_builtin_flag_CXX \
13858 export_dynamic_flag_spec_CXX \
13859 thread_safe_flag_spec_CXX \
13860 whole_archive_flag_spec_CXX \
13861 enable_shared_with_static_runtimes_CXX \
13862 old_archive_cmds_CXX \
13863 old_archive_from_new_cmds_CXX \
13864 predep_objects_CXX \
13865 postdep_objects_CXX \
13866 predeps_CXX \
13867 postdeps_CXX \
13868 compiler_lib_search_path_CXX \
13869 compiler_lib_search_dirs_CXX \
13870 archive_cmds_CXX \
13871 archive_expsym_cmds_CXX \
13872 postinstall_cmds_CXX \
13873 postuninstall_cmds_CXX \
13874 old_archive_from_expsyms_cmds_CXX \
13875 allow_undefined_flag_CXX \
13876 no_undefined_flag_CXX \
13877 export_symbols_cmds_CXX \
13878 hardcode_libdir_flag_spec_CXX \
13879 hardcode_libdir_flag_spec_ld_CXX \
13880 hardcode_libdir_separator_CXX \
13881 hardcode_automatic_CXX \
13882 module_cmds_CXX \
13883 module_expsym_cmds_CXX \
13884 lt_cv_prog_compiler_c_o_CXX \
13885 fix_srcfile_path_CXX \
13886 exclude_expsyms_CXX \
13887 include_expsyms_CXX; do
13889 case $var in
13890 old_archive_cmds_CXX | \
13891 old_archive_from_new_cmds_CXX | \
13892 archive_cmds_CXX | \
13893 archive_expsym_cmds_CXX | \
13894 module_cmds_CXX | \
13895 module_expsym_cmds_CXX | \
13896 old_archive_from_expsyms_cmds_CXX | \
13897 export_symbols_cmds_CXX | \
13898 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13899 postinstall_cmds | postuninstall_cmds | \
13900 old_postinstall_cmds | old_postuninstall_cmds | \
13901 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13902 # Double-quote double-evaled strings.
13903 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13906 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13908 esac
13909 done
13911 case $lt_echo in
13912 *'\$0 --fallback-echo"')
13913 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13915 esac
13917 cfgfile="$ofile"
13919 cat <<__EOF__ >> "$cfgfile"
13920 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13922 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13924 # Shell to use when invoking shell scripts.
13925 SHELL=$lt_SHELL
13927 # Whether or not to build shared libraries.
13928 build_libtool_libs=$enable_shared
13930 # Whether or not to build static libraries.
13931 build_old_libs=$enable_static
13933 # Whether or not to add -lc for building shared libraries.
13934 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13936 # Whether or not to disallow shared libs when runtime libs are static
13937 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13939 # Whether or not to optimize for fast installation.
13940 fast_install=$enable_fast_install
13942 # The host system.
13943 host_alias=$host_alias
13944 host=$host
13945 host_os=$host_os
13947 # The build system.
13948 build_alias=$build_alias
13949 build=$build
13950 build_os=$build_os
13952 # An echo program that does not interpret backslashes.
13953 echo=$lt_echo
13955 # The archiver.
13956 AR=$lt_AR
13957 AR_FLAGS=$lt_AR_FLAGS
13959 # A C compiler.
13960 LTCC=$lt_LTCC
13962 # LTCC compiler flags.
13963 LTCFLAGS=$lt_LTCFLAGS
13965 # A language-specific compiler.
13966 CC=$lt_compiler_CXX
13968 # Is the compiler the GNU C compiler?
13969 with_gcc=$GCC_CXX
13971 # An ERE matcher.
13972 EGREP=$lt_EGREP
13974 # The linker used to build libraries.
13975 LD=$lt_LD_CXX
13977 # Whether we need hard or soft links.
13978 LN_S=$lt_LN_S
13980 # A BSD-compatible nm program.
13981 NM=$lt_NM
13983 # A symbol stripping program
13984 STRIP=$lt_STRIP
13986 # Used to examine libraries when file_magic_cmd begins "file"
13987 MAGIC_CMD=$MAGIC_CMD
13989 # Used on cygwin: DLL creation program.
13990 DLLTOOL="$DLLTOOL"
13992 # Used on cygwin: object dumper.
13993 OBJDUMP="$OBJDUMP"
13995 # Used on cygwin: assembler.
13996 AS="$AS"
13998 # The name of the directory that contains temporary libtool files.
13999 objdir=$objdir
14001 # How to create reloadable object files.
14002 reload_flag=$lt_reload_flag
14003 reload_cmds=$lt_reload_cmds
14005 # How to pass a linker flag through the compiler.
14006 wl=$lt_lt_prog_compiler_wl_CXX
14008 # Object file suffix (normally "o").
14009 objext="$ac_objext"
14011 # Old archive suffix (normally "a").
14012 libext="$libext"
14014 # Shared library suffix (normally ".so").
14015 shrext_cmds='$shrext_cmds'
14017 # Executable file suffix (normally "").
14018 exeext="$exeext"
14020 # Additional compiler flags for building library objects.
14021 pic_flag=$lt_lt_prog_compiler_pic_CXX
14022 pic_mode=$pic_mode
14024 # What is the maximum length of a command?
14025 max_cmd_len=$lt_cv_sys_max_cmd_len
14027 # Does compiler simultaneously support -c and -o options?
14028 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14030 # Must we lock files when doing compilation?
14031 need_locks=$lt_need_locks
14033 # Do we need the lib prefix for modules?
14034 need_lib_prefix=$need_lib_prefix
14036 # Do we need a version for libraries?
14037 need_version=$need_version
14039 # Whether dlopen is supported.
14040 dlopen_support=$enable_dlopen
14042 # Whether dlopen of programs is supported.
14043 dlopen_self=$enable_dlopen_self
14045 # Whether dlopen of statically linked programs is supported.
14046 dlopen_self_static=$enable_dlopen_self_static
14048 # Compiler flag to prevent dynamic linking.
14049 link_static_flag=$lt_lt_prog_compiler_static_CXX
14051 # Compiler flag to turn off builtin functions.
14052 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14054 # Compiler flag to allow reflexive dlopens.
14055 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14057 # Compiler flag to generate shared objects directly from archives.
14058 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14060 # Compiler flag to generate thread-safe objects.
14061 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14063 # Library versioning type.
14064 version_type=$version_type
14066 # Format of library name prefix.
14067 libname_spec=$lt_libname_spec
14069 # List of archive names. First name is the real one, the rest are links.
14070 # The last name is the one that the linker finds with -lNAME.
14071 library_names_spec=$lt_library_names_spec
14073 # The coded name of the library, if different from the real name.
14074 soname_spec=$lt_soname_spec
14076 # Commands used to build and install an old-style archive.
14077 RANLIB=$lt_RANLIB
14078 old_archive_cmds=$lt_old_archive_cmds_CXX
14079 old_postinstall_cmds=$lt_old_postinstall_cmds
14080 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14082 # Create an old-style archive from a shared archive.
14083 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14085 # Create a temporary old-style archive to link instead of a shared archive.
14086 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14088 # Commands used to build and install a shared archive.
14089 archive_cmds=$lt_archive_cmds_CXX
14090 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14091 postinstall_cmds=$lt_postinstall_cmds
14092 postuninstall_cmds=$lt_postuninstall_cmds
14094 # Commands used to build a loadable module (assumed same as above if empty)
14095 module_cmds=$lt_module_cmds_CXX
14096 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14098 # Commands to strip libraries.
14099 old_striplib=$lt_old_striplib
14100 striplib=$lt_striplib
14102 # Dependencies to place before the objects being linked to create a
14103 # shared library.
14104 predep_objects=$lt_predep_objects_CXX
14106 # Dependencies to place after the objects being linked to create a
14107 # shared library.
14108 postdep_objects=$lt_postdep_objects_CXX
14110 # Dependencies to place before the objects being linked to create a
14111 # shared library.
14112 predeps=$lt_predeps_CXX
14114 # Dependencies to place after the objects being linked to create a
14115 # shared library.
14116 postdeps=$lt_postdeps_CXX
14118 # The directories searched by this compiler when creating a shared
14119 # library
14120 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14122 # The library search path used internally by the compiler when linking
14123 # a shared library.
14124 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14126 # Method to check whether dependent libraries are shared objects.
14127 deplibs_check_method=$lt_deplibs_check_method
14129 # Command to use when deplibs_check_method == file_magic.
14130 file_magic_cmd=$lt_file_magic_cmd
14132 # Flag that allows shared libraries with undefined symbols to be built.
14133 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14135 # Flag that forces no undefined symbols.
14136 no_undefined_flag=$lt_no_undefined_flag_CXX
14138 # Commands used to finish a libtool library installation in a directory.
14139 finish_cmds=$lt_finish_cmds
14141 # Same as above, but a single script fragment to be evaled but not shown.
14142 finish_eval=$lt_finish_eval
14144 # Take the output of nm and produce a listing of raw symbols and C names.
14145 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14147 # Transform the output of nm in a proper C declaration
14148 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14150 # Transform the output of nm in a C name address pair
14151 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14153 # This is the shared library runtime path variable.
14154 runpath_var=$runpath_var
14156 # This is the shared library path variable.
14157 shlibpath_var=$shlibpath_var
14159 # Is shlibpath searched before the hard-coded library search path?
14160 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14162 # How to hardcode a shared library path into an executable.
14163 hardcode_action=$hardcode_action_CXX
14165 # Whether we should hardcode library paths into libraries.
14166 hardcode_into_libs=$hardcode_into_libs
14168 # Flag to hardcode \$libdir into a binary during linking.
14169 # This must work even if \$libdir does not exist.
14170 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14172 # If ld is used when linking, flag to hardcode \$libdir into
14173 # a binary during linking. This must work even if \$libdir does
14174 # not exist.
14175 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14177 # Whether we need a single -rpath flag with a separated argument.
14178 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14180 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14181 # resulting binary.
14182 hardcode_direct=$hardcode_direct_CXX
14184 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14185 # resulting binary.
14186 hardcode_minus_L=$hardcode_minus_L_CXX
14188 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14189 # the resulting binary.
14190 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14192 # Set to yes if building a shared library automatically hardcodes DIR into the library
14193 # and all subsequent libraries and executables linked against it.
14194 hardcode_automatic=$hardcode_automatic_CXX
14196 # Variables whose values should be saved in libtool wrapper scripts and
14197 # restored at relink time.
14198 variables_saved_for_relink="$variables_saved_for_relink"
14200 # Whether libtool must link a program against all its dependency libraries.
14201 link_all_deplibs=$link_all_deplibs_CXX
14203 # Compile-time system search path for libraries
14204 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14206 # Run-time system search path for libraries
14207 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14209 # Fix the shell variable \$srcfile for the compiler.
14210 fix_srcfile_path=$lt_fix_srcfile_path
14212 # Set to yes if exported symbols are required.
14213 always_export_symbols=$always_export_symbols_CXX
14215 # The commands to list exported symbols.
14216 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14218 # The commands to extract the exported symbol list from a shared archive.
14219 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14221 # Symbols that should not be listed in the preloaded symbols.
14222 exclude_expsyms=$lt_exclude_expsyms_CXX
14224 # Symbols that must always be exported.
14225 include_expsyms=$lt_include_expsyms_CXX
14227 # ### END LIBTOOL TAG CONFIG: $tagname
14229 __EOF__
14232 else
14233 # If there is no Makefile yet, we rely on a make rule to execute
14234 # `config.status --recheck' to rerun these tests and create the
14235 # libtool script then.
14236 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14237 if test -f "$ltmain_in"; then
14238 test -f Makefile && make "$ltmain"
14243 ac_ext=c
14244 ac_cpp='$CPP $CPPFLAGS'
14245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14249 CC=$lt_save_CC
14250 LDCXX=$LD
14251 LD=$lt_save_LD
14252 GCC=$lt_save_GCC
14253 with_gnu_ldcxx=$with_gnu_ld
14254 with_gnu_ld=$lt_save_with_gnu_ld
14255 lt_cv_path_LDCXX=$lt_cv_path_LD
14256 lt_cv_path_LD=$lt_save_path_LD
14257 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14258 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14260 else
14261 tagname=""
14265 F77)
14266 if test -n "$F77" && test "X$F77" != "Xno"; then
14268 ac_ext=f
14269 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14270 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14271 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14274 archive_cmds_need_lc_F77=no
14275 allow_undefined_flag_F77=
14276 always_export_symbols_F77=no
14277 archive_expsym_cmds_F77=
14278 export_dynamic_flag_spec_F77=
14279 hardcode_direct_F77=no
14280 hardcode_libdir_flag_spec_F77=
14281 hardcode_libdir_flag_spec_ld_F77=
14282 hardcode_libdir_separator_F77=
14283 hardcode_minus_L_F77=no
14284 hardcode_automatic_F77=no
14285 module_cmds_F77=
14286 module_expsym_cmds_F77=
14287 link_all_deplibs_F77=unknown
14288 old_archive_cmds_F77=$old_archive_cmds
14289 no_undefined_flag_F77=
14290 whole_archive_flag_spec_F77=
14291 enable_shared_with_static_runtimes_F77=no
14293 # Source file extension for f77 test sources.
14294 ac_ext=f
14296 # Object file extension for compiled f77 test sources.
14297 objext=o
14298 objext_F77=$objext
14300 # Code to be used in simple compile tests
14301 lt_simple_compile_test_code="\
14302 subroutine t
14303 return
14307 # Code to be used in simple link tests
14308 lt_simple_link_test_code="\
14309 program t
14313 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14315 # If no C compiler was specified, use CC.
14316 LTCC=${LTCC-"$CC"}
14318 # If no C compiler flags were specified, use CFLAGS.
14319 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14321 # Allow CC to be a program name with arguments.
14322 compiler=$CC
14325 # save warnings/boilerplate of simple test code
14326 ac_outfile=conftest.$ac_objext
14327 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14328 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14329 _lt_compiler_boilerplate=`cat conftest.err`
14330 $rm conftest*
14332 ac_outfile=conftest.$ac_objext
14333 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14334 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14335 _lt_linker_boilerplate=`cat conftest.err`
14336 $rm -r conftest*
14339 # Allow CC to be a program name with arguments.
14340 lt_save_CC="$CC"
14341 CC=${F77-"f77"}
14342 compiler=$CC
14343 compiler_F77=$CC
14344 for cc_temp in $compiler""; do
14345 case $cc_temp in
14346 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14347 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14348 \-*) ;;
14349 *) break;;
14350 esac
14351 done
14352 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14355 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14356 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14357 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14358 $as_echo "$can_build_shared" >&6; }
14360 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14361 $as_echo_n "checking whether to build shared libraries... " >&6; }
14362 test "$can_build_shared" = "no" && enable_shared=no
14364 # On AIX, shared libraries and static libraries use the same namespace, and
14365 # are all built from PIC.
14366 case $host_os in
14367 aix3*)
14368 test "$enable_shared" = yes && enable_static=no
14369 if test -n "$RANLIB"; then
14370 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14371 postinstall_cmds='$RANLIB $lib'
14374 aix[4-9]*)
14375 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14376 test "$enable_shared" = yes && enable_static=no
14379 esac
14380 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14381 $as_echo "$enable_shared" >&6; }
14383 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14384 $as_echo_n "checking whether to build static libraries... " >&6; }
14385 # Make sure either enable_shared or enable_static is yes.
14386 test "$enable_shared" = yes || enable_static=yes
14387 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14388 $as_echo "$enable_static" >&6; }
14390 GCC_F77="$G77"
14391 LD_F77="$LD"
14393 lt_prog_compiler_wl_F77=
14394 lt_prog_compiler_pic_F77=
14395 lt_prog_compiler_static_F77=
14397 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14398 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14400 if test "$GCC" = yes; then
14401 lt_prog_compiler_wl_F77='-Wl,'
14402 lt_prog_compiler_static_F77='-static'
14404 case $host_os in
14405 aix*)
14406 # All AIX code is PIC.
14407 if test "$host_cpu" = ia64; then
14408 # AIX 5 now supports IA64 processor
14409 lt_prog_compiler_static_F77='-Bstatic'
14413 amigaos*)
14414 # FIXME: we need at least 68020 code to build shared libraries, but
14415 # adding the `-m68020' flag to GCC prevents building anything better,
14416 # like `-m68040'.
14417 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14420 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14421 # PIC is the default for these OSes.
14424 mingw* | cygwin* | pw32* | os2*)
14425 # This hack is so that the source file can tell whether it is being
14426 # built for inclusion in a dll (and should export symbols for example).
14427 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14428 # (--disable-auto-import) libraries
14429 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14432 darwin* | rhapsody*)
14433 # PIC is the default on this platform
14434 # Common symbols not allowed in MH_DYLIB files
14435 lt_prog_compiler_pic_F77='-fno-common'
14438 interix[3-9]*)
14439 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14440 # Instead, we relocate shared libraries at runtime.
14443 msdosdjgpp*)
14444 # Just because we use GCC doesn't mean we suddenly get shared libraries
14445 # on systems that don't support them.
14446 lt_prog_compiler_can_build_shared_F77=no
14447 enable_shared=no
14450 sysv4*MP*)
14451 if test -d /usr/nec; then
14452 lt_prog_compiler_pic_F77=-Kconform_pic
14456 hpux*)
14457 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14458 # not for PA HP-UX.
14459 case $host_cpu in
14460 hppa*64*|ia64*)
14461 # +Z the default
14464 lt_prog_compiler_pic_F77='-fPIC'
14466 esac
14470 lt_prog_compiler_pic_F77='-fPIC'
14472 esac
14473 else
14474 # PORTME Check for flag to pass linker flags through the system compiler.
14475 case $host_os in
14476 aix*)
14477 lt_prog_compiler_wl_F77='-Wl,'
14478 if test "$host_cpu" = ia64; then
14479 # AIX 5 now supports IA64 processor
14480 lt_prog_compiler_static_F77='-Bstatic'
14481 else
14482 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14485 darwin*)
14486 # PIC is the default on this platform
14487 # Common symbols not allowed in MH_DYLIB files
14488 case $cc_basename in
14489 xlc*)
14490 lt_prog_compiler_pic_F77='-qnocommon'
14491 lt_prog_compiler_wl_F77='-Wl,'
14493 esac
14496 mingw* | cygwin* | pw32* | os2*)
14497 # This hack is so that the source file can tell whether it is being
14498 # built for inclusion in a dll (and should export symbols for example).
14499 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14502 hpux9* | hpux10* | hpux11*)
14503 lt_prog_compiler_wl_F77='-Wl,'
14504 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14505 # not for PA HP-UX.
14506 case $host_cpu in
14507 hppa*64*|ia64*)
14508 # +Z the default
14511 lt_prog_compiler_pic_F77='+Z'
14513 esac
14514 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14515 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14518 irix5* | irix6* | nonstopux*)
14519 lt_prog_compiler_wl_F77='-Wl,'
14520 # PIC (with -KPIC) is the default.
14521 lt_prog_compiler_static_F77='-non_shared'
14524 newsos6)
14525 lt_prog_compiler_pic_F77='-KPIC'
14526 lt_prog_compiler_static_F77='-Bstatic'
14529 linux* | k*bsd*-gnu)
14530 case $cc_basename in
14531 icc* | ecc*)
14532 lt_prog_compiler_wl_F77='-Wl,'
14533 lt_prog_compiler_pic_F77='-KPIC'
14534 lt_prog_compiler_static_F77='-static'
14536 pgcc* | pgf77* | pgf90* | pgf95*)
14537 # Portland Group compilers (*not* the Pentium gcc compiler,
14538 # which looks to be a dead project)
14539 lt_prog_compiler_wl_F77='-Wl,'
14540 lt_prog_compiler_pic_F77='-fpic'
14541 lt_prog_compiler_static_F77='-Bstatic'
14543 ccc*)
14544 lt_prog_compiler_wl_F77='-Wl,'
14545 # All Alpha code is PIC.
14546 lt_prog_compiler_static_F77='-non_shared'
14549 case `$CC -V 2>&1 | sed 5q` in
14550 *Sun\ C*)
14551 # Sun C 5.9
14552 lt_prog_compiler_pic_F77='-KPIC'
14553 lt_prog_compiler_static_F77='-Bstatic'
14554 lt_prog_compiler_wl_F77='-Wl,'
14556 *Sun\ F*)
14557 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14558 lt_prog_compiler_pic_F77='-KPIC'
14559 lt_prog_compiler_static_F77='-Bstatic'
14560 lt_prog_compiler_wl_F77=''
14562 esac
14564 esac
14567 osf3* | osf4* | osf5*)
14568 lt_prog_compiler_wl_F77='-Wl,'
14569 # All OSF/1 code is PIC.
14570 lt_prog_compiler_static_F77='-non_shared'
14573 rdos*)
14574 lt_prog_compiler_static_F77='-non_shared'
14577 solaris*)
14578 lt_prog_compiler_pic_F77='-KPIC'
14579 lt_prog_compiler_static_F77='-Bstatic'
14580 case $cc_basename in
14581 f77* | f90* | f95*)
14582 lt_prog_compiler_wl_F77='-Qoption ld ';;
14584 lt_prog_compiler_wl_F77='-Wl,';;
14585 esac
14588 sunos4*)
14589 lt_prog_compiler_wl_F77='-Qoption ld '
14590 lt_prog_compiler_pic_F77='-PIC'
14591 lt_prog_compiler_static_F77='-Bstatic'
14594 sysv4 | sysv4.2uw2* | sysv4.3*)
14595 lt_prog_compiler_wl_F77='-Wl,'
14596 lt_prog_compiler_pic_F77='-KPIC'
14597 lt_prog_compiler_static_F77='-Bstatic'
14600 sysv4*MP*)
14601 if test -d /usr/nec ;then
14602 lt_prog_compiler_pic_F77='-Kconform_pic'
14603 lt_prog_compiler_static_F77='-Bstatic'
14607 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14608 lt_prog_compiler_wl_F77='-Wl,'
14609 lt_prog_compiler_pic_F77='-KPIC'
14610 lt_prog_compiler_static_F77='-Bstatic'
14613 unicos*)
14614 lt_prog_compiler_wl_F77='-Wl,'
14615 lt_prog_compiler_can_build_shared_F77=no
14618 uts4*)
14619 lt_prog_compiler_pic_F77='-pic'
14620 lt_prog_compiler_static_F77='-Bstatic'
14624 lt_prog_compiler_can_build_shared_F77=no
14626 esac
14629 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14630 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14633 # Check to make sure the PIC flag actually works.
14635 if test -n "$lt_prog_compiler_pic_F77"; then
14637 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14638 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14639 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14640 $as_echo_n "(cached) " >&6
14641 else
14642 lt_cv_prog_compiler_pic_works_F77=no
14643 ac_outfile=conftest.$ac_objext
14644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14645 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14646 # Insert the option either (1) after the last *FLAGS variable, or
14647 # (2) before a word containing "conftest.", or (3) at the end.
14648 # Note that $ac_compile itself does not contain backslashes and begins
14649 # with a dollar sign (not a hyphen), so the echo should work correctly.
14650 # The option is referenced via a variable to avoid confusing sed.
14651 lt_compile=`echo "$ac_compile" | $SED \
14652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14654 -e 's:$: $lt_compiler_flag:'`
14655 (eval echo "\"\$as_me:14655: $lt_compile\"" >&5)
14656 (eval "$lt_compile" 2>conftest.err)
14657 ac_status=$?
14658 cat conftest.err >&5
14659 echo "$as_me:14659: \$? = $ac_status" >&5
14660 if (exit $ac_status) && test -s "$ac_outfile"; then
14661 # The compiler can only warn and ignore the option if not recognized
14662 # So say no if there are warnings other than the usual output.
14663 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14665 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14666 lt_cv_prog_compiler_pic_works_F77=yes
14669 $rm conftest*
14672 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14673 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14675 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14676 case $lt_prog_compiler_pic_F77 in
14677 "" | " "*) ;;
14678 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14679 esac
14680 else
14681 lt_prog_compiler_pic_F77=
14682 lt_prog_compiler_can_build_shared_F77=no
14686 case $host_os in
14687 # For platforms which do not support PIC, -DPIC is meaningless:
14688 *djgpp*)
14689 lt_prog_compiler_pic_F77=
14692 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14694 esac
14697 # Check to make sure the static flag actually works.
14699 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14700 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14701 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14702 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14703 $as_echo_n "(cached) " >&6
14704 else
14705 lt_cv_prog_compiler_static_works_F77=no
14706 save_LDFLAGS="$LDFLAGS"
14707 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14708 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14710 # The linker can only warn and ignore the option if not recognized
14711 # So say no if there are warnings
14712 if test -s conftest.err; then
14713 # Append any errors to the config.log.
14714 cat conftest.err 1>&5
14715 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14717 if diff conftest.exp conftest.er2 >/dev/null; then
14718 lt_cv_prog_compiler_static_works_F77=yes
14720 else
14721 lt_cv_prog_compiler_static_works_F77=yes
14724 $rm -r conftest*
14725 LDFLAGS="$save_LDFLAGS"
14728 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14729 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14731 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14733 else
14734 lt_prog_compiler_static_F77=
14738 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14739 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14740 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14741 $as_echo_n "(cached) " >&6
14742 else
14743 lt_cv_prog_compiler_c_o_F77=no
14744 $rm -r conftest 2>/dev/null
14745 mkdir conftest
14746 cd conftest
14747 mkdir out
14748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14750 lt_compiler_flag="-o out/conftest2.$ac_objext"
14751 # Insert the option either (1) after the last *FLAGS variable, or
14752 # (2) before a word containing "conftest.", or (3) at the end.
14753 # Note that $ac_compile itself does not contain backslashes and begins
14754 # with a dollar sign (not a hyphen), so the echo should work correctly.
14755 lt_compile=`echo "$ac_compile" | $SED \
14756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14758 -e 's:$: $lt_compiler_flag:'`
14759 (eval echo "\"\$as_me:14759: $lt_compile\"" >&5)
14760 (eval "$lt_compile" 2>out/conftest.err)
14761 ac_status=$?
14762 cat out/conftest.err >&5
14763 echo "$as_me:14763: \$? = $ac_status" >&5
14764 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14765 then
14766 # The compiler can only warn and ignore the option if not recognized
14767 # So say no if there are warnings
14768 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14771 lt_cv_prog_compiler_c_o_F77=yes
14774 chmod u+w . 2>&5
14775 $rm conftest*
14776 # SGI C++ compiler will create directory out/ii_files/ for
14777 # template instantiation
14778 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14779 $rm out/* && rmdir out
14780 cd ..
14781 rmdir conftest
14782 $rm conftest*
14785 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14786 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14789 hard_links="nottested"
14790 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14791 # do not overwrite the value of need_locks provided by the user
14792 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14793 $as_echo_n "checking if we can lock with hard links... " >&6; }
14794 hard_links=yes
14795 $rm conftest*
14796 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14797 touch conftest.a
14798 ln conftest.a conftest.b 2>&5 || hard_links=no
14799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14800 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14801 $as_echo "$hard_links" >&6; }
14802 if test "$hard_links" = no; then
14803 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14804 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14805 need_locks=warn
14807 else
14808 need_locks=no
14811 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14812 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14814 runpath_var=
14815 allow_undefined_flag_F77=
14816 enable_shared_with_static_runtimes_F77=no
14817 archive_cmds_F77=
14818 archive_expsym_cmds_F77=
14819 old_archive_From_new_cmds_F77=
14820 old_archive_from_expsyms_cmds_F77=
14821 export_dynamic_flag_spec_F77=
14822 whole_archive_flag_spec_F77=
14823 thread_safe_flag_spec_F77=
14824 hardcode_libdir_flag_spec_F77=
14825 hardcode_libdir_flag_spec_ld_F77=
14826 hardcode_libdir_separator_F77=
14827 hardcode_direct_F77=no
14828 hardcode_minus_L_F77=no
14829 hardcode_shlibpath_var_F77=unsupported
14830 link_all_deplibs_F77=unknown
14831 hardcode_automatic_F77=no
14832 module_cmds_F77=
14833 module_expsym_cmds_F77=
14834 always_export_symbols_F77=no
14835 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14836 # include_expsyms should be a list of space-separated symbols to be *always*
14837 # included in the symbol list
14838 include_expsyms_F77=
14839 # exclude_expsyms can be an extended regexp of symbols to exclude
14840 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14841 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14842 # as well as any symbol that contains `d'.
14843 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14844 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14845 # platforms (ab)use it in PIC code, but their linkers get confused if
14846 # the symbol is explicitly referenced. Since portable code cannot
14847 # rely on this symbol name, it's probably fine to never include it in
14848 # preloaded symbol tables.
14849 # Exclude shared library initialization/finalization symbols.
14850 extract_expsyms_cmds=
14851 # Just being paranoid about ensuring that cc_basename is set.
14852 for cc_temp in $compiler""; do
14853 case $cc_temp in
14854 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14855 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14856 \-*) ;;
14857 *) break;;
14858 esac
14859 done
14860 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14862 case $host_os in
14863 cygwin* | mingw* | pw32*)
14864 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14865 # When not using gcc, we currently assume that we are using
14866 # Microsoft Visual C++.
14867 if test "$GCC" != yes; then
14868 with_gnu_ld=no
14871 interix*)
14872 # we just hope/assume this is gcc and not c89 (= MSVC++)
14873 with_gnu_ld=yes
14875 openbsd*)
14876 with_gnu_ld=no
14878 esac
14880 ld_shlibs_F77=yes
14881 if test "$with_gnu_ld" = yes; then
14882 # If archive_cmds runs LD, not CC, wlarc should be empty
14883 wlarc='${wl}'
14885 # Set some defaults for GNU ld with shared library support. These
14886 # are reset later if shared libraries are not supported. Putting them
14887 # here allows them to be overridden if necessary.
14888 runpath_var=LD_RUN_PATH
14889 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14890 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14891 # ancient GNU ld didn't support --whole-archive et. al.
14892 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14893 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14894 else
14895 whole_archive_flag_spec_F77=
14897 supports_anon_versioning=no
14898 case `$LD -v 2>/dev/null` in
14899 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14900 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14901 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14902 *\ 2.11.*) ;; # other 2.11 versions
14903 *) supports_anon_versioning=yes ;;
14904 esac
14906 # See if GNU ld supports shared libraries.
14907 case $host_os in
14908 aix[3-9]*)
14909 # On AIX/PPC, the GNU linker is very broken
14910 if test "$host_cpu" != ia64; then
14911 ld_shlibs_F77=no
14912 cat <<EOF 1>&2
14914 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14915 *** to be unable to reliably create shared libraries on AIX.
14916 *** Therefore, libtool is disabling shared libraries support. If you
14917 *** really care for shared libraries, you may want to modify your PATH
14918 *** so that a non-GNU linker is found, and then restart.
14924 amigaos*)
14925 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)'
14926 hardcode_libdir_flag_spec_F77='-L$libdir'
14927 hardcode_minus_L_F77=yes
14929 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14930 # that the semantics of dynamic libraries on AmigaOS, at least up
14931 # to version 4, is to share data among multiple programs linked
14932 # with the same dynamic library. Since this doesn't match the
14933 # behavior of shared libraries on other platforms, we can't use
14934 # them.
14935 ld_shlibs_F77=no
14938 beos*)
14939 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14940 allow_undefined_flag_F77=unsupported
14941 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14942 # support --undefined. This deserves some investigation. FIXME
14943 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14944 else
14945 ld_shlibs_F77=no
14949 cygwin* | mingw* | pw32*)
14950 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14951 # as there is no search path for DLLs.
14952 hardcode_libdir_flag_spec_F77='-L$libdir'
14953 allow_undefined_flag_F77=unsupported
14954 always_export_symbols_F77=no
14955 enable_shared_with_static_runtimes_F77=yes
14956 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14958 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14959 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14960 # If the export-symbols file already is a .def file (1st line
14961 # is EXPORTS), use it as is; otherwise, prepend...
14962 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14963 cp $export_symbols $output_objdir/$soname.def;
14964 else
14965 echo EXPORTS > $output_objdir/$soname.def;
14966 cat $export_symbols >> $output_objdir/$soname.def;
14968 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14969 else
14970 ld_shlibs_F77=no
14974 interix[3-9]*)
14975 hardcode_direct_F77=no
14976 hardcode_shlibpath_var_F77=no
14977 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14978 export_dynamic_flag_spec_F77='${wl}-E'
14979 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14980 # Instead, shared libraries are loaded at an image base (0x10000000 by
14981 # default) and relocated if they conflict, which is a slow very memory
14982 # consuming and fragmenting process. To avoid this, we pick a random,
14983 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14984 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14985 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'
14986 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'
14989 gnu* | linux* | k*bsd*-gnu)
14990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14991 tmp_addflag=
14992 case $cc_basename,$host_cpu in
14993 pgcc*) # Portland Group C compiler
14994 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'
14995 tmp_addflag=' $pic_flag'
14997 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14998 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'
14999 tmp_addflag=' $pic_flag -Mnomain' ;;
15000 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15001 tmp_addflag=' -i_dynamic' ;;
15002 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15003 tmp_addflag=' -i_dynamic -nofor_main' ;;
15004 ifc* | ifort*) # Intel Fortran compiler
15005 tmp_addflag=' -nofor_main' ;;
15006 esac
15007 case `$CC -V 2>&1 | sed 5q` in
15008 *Sun\ C*) # Sun C 5.9
15009 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'
15010 tmp_sharedflag='-G' ;;
15011 *Sun\ F*) # Sun Fortran 8.3
15012 tmp_sharedflag='-G' ;;
15014 tmp_sharedflag='-shared' ;;
15015 esac
15016 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15018 if test $supports_anon_versioning = yes; then
15019 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15020 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15021 $echo "local: *; };" >> $output_objdir/$libname.ver~
15022 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15024 link_all_deplibs_F77=no
15025 else
15026 ld_shlibs_F77=no
15030 netbsd* | netbsdelf*-gnu)
15031 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15032 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15033 wlarc=
15034 else
15035 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15036 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15040 solaris*)
15041 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15042 ld_shlibs_F77=no
15043 cat <<EOF 1>&2
15045 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15046 *** create shared libraries on Solaris systems. Therefore, libtool
15047 *** is disabling shared libraries support. We urge you to upgrade GNU
15048 *** binutils to release 2.9.1 or newer. Another option is to modify
15049 *** your PATH or compiler configuration so that the native linker is
15050 *** used, and then restart.
15053 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15054 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15055 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15056 else
15057 ld_shlibs_F77=no
15061 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15062 case `$LD -v 2>&1` in
15063 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15064 ld_shlibs_F77=no
15065 cat <<_LT_EOF 1>&2
15067 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15068 *** reliably create shared libraries on SCO systems. Therefore, libtool
15069 *** is disabling shared libraries support. We urge you to upgrade GNU
15070 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15071 *** your PATH or compiler configuration so that the native linker is
15072 *** used, and then restart.
15074 _LT_EOF
15077 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15078 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15079 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15080 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15081 else
15082 ld_shlibs_F77=no
15085 esac
15088 sunos4*)
15089 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15090 wlarc=
15091 hardcode_direct_F77=yes
15092 hardcode_shlibpath_var_F77=no
15096 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15097 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15098 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15099 else
15100 ld_shlibs_F77=no
15103 esac
15105 if test "$ld_shlibs_F77" = no; then
15106 runpath_var=
15107 hardcode_libdir_flag_spec_F77=
15108 export_dynamic_flag_spec_F77=
15109 whole_archive_flag_spec_F77=
15111 else
15112 # PORTME fill in a description of your system's linker (not GNU ld)
15113 case $host_os in
15114 aix3*)
15115 allow_undefined_flag_F77=unsupported
15116 always_export_symbols_F77=yes
15117 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'
15118 # Note: this linker hardcodes the directories in LIBPATH if there
15119 # are no directories specified by -L.
15120 hardcode_minus_L_F77=yes
15121 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15122 # Neither direct hardcoding nor static linking is supported with a
15123 # broken collect2.
15124 hardcode_direct_F77=unsupported
15128 aix[4-9]*)
15129 if test "$host_cpu" = ia64; then
15130 # On IA64, the linker does run time linking by default, so we don't
15131 # have to do anything special.
15132 aix_use_runtimelinking=no
15133 exp_sym_flag='-Bexport'
15134 no_entry_flag=""
15135 else
15136 # If we're using GNU nm, then we don't want the "-C" option.
15137 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15138 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15139 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'
15140 else
15141 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'
15143 aix_use_runtimelinking=no
15145 # Test if we are trying to use run time linking or normal
15146 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15147 # need to do runtime linking.
15148 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15149 for ld_flag in $LDFLAGS; do
15150 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15151 aix_use_runtimelinking=yes
15152 break
15154 done
15156 esac
15158 exp_sym_flag='-bexport'
15159 no_entry_flag='-bnoentry'
15162 # When large executables or shared objects are built, AIX ld can
15163 # have problems creating the table of contents. If linking a library
15164 # or program results in "error TOC overflow" add -mminimal-toc to
15165 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15166 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15168 archive_cmds_F77=''
15169 hardcode_direct_F77=yes
15170 hardcode_libdir_separator_F77=':'
15171 link_all_deplibs_F77=yes
15173 if test "$GCC" = yes; then
15174 case $host_os in aix4.[012]|aix4.[012].*)
15175 # We only want to do this on AIX 4.2 and lower, the check
15176 # below for broken collect2 doesn't work under 4.3+
15177 collect2name=`${CC} -print-prog-name=collect2`
15178 if test -f "$collect2name" && \
15179 strings "$collect2name" | grep resolve_lib_name >/dev/null
15180 then
15181 # We have reworked collect2
15183 else
15184 # We have old collect2
15185 hardcode_direct_F77=unsupported
15186 # It fails to find uninstalled libraries when the uninstalled
15187 # path is not listed in the libpath. Setting hardcode_minus_L
15188 # to unsupported forces relinking
15189 hardcode_minus_L_F77=yes
15190 hardcode_libdir_flag_spec_F77='-L$libdir'
15191 hardcode_libdir_separator_F77=
15194 esac
15195 shared_flag='-shared'
15196 if test "$aix_use_runtimelinking" = yes; then
15197 shared_flag="$shared_flag "'${wl}-G'
15199 else
15200 # not using gcc
15201 if test "$host_cpu" = ia64; then
15202 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15203 # chokes on -Wl,-G. The following line is correct:
15204 shared_flag='-G'
15205 else
15206 if test "$aix_use_runtimelinking" = yes; then
15207 shared_flag='${wl}-G'
15208 else
15209 shared_flag='${wl}-bM:SRE'
15214 # It seems that -bexpall does not export symbols beginning with
15215 # underscore (_), so it is better to generate a list of symbols to export.
15216 always_export_symbols_F77=yes
15217 if test "$aix_use_runtimelinking" = yes; then
15218 # Warning - without using the other runtime loading flags (-brtl),
15219 # -berok will link without error, but may produce a broken library.
15220 allow_undefined_flag_F77='-berok'
15221 # Determine the default libpath from the value encoded in an empty executable.
15222 cat >conftest.$ac_ext <<_ACEOF
15223 program main
15226 _ACEOF
15227 rm -f conftest.$ac_objext conftest$ac_exeext
15228 if { (ac_try="$ac_link"
15229 case "(($ac_try" in
15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231 *) ac_try_echo=$ac_try;;
15232 esac
15233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15234 $as_echo "$ac_try_echo") >&5
15235 (eval "$ac_link") 2>conftest.er1
15236 ac_status=$?
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
15240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } && {
15242 test -z "$ac_f77_werror_flag" ||
15243 test ! -s conftest.err
15244 } && test -s conftest$ac_exeext && {
15245 test "$cross_compiling" = yes ||
15246 $as_test_x conftest$ac_exeext
15247 }; then
15249 lt_aix_libpath_sed='
15250 /Import File Strings/,/^$/ {
15251 /^0/ {
15252 s/^0 *\(.*\)$/\1/
15256 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15257 # Check for a 64-bit object if we didn't find anything.
15258 if test -z "$aix_libpath"; then
15259 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15261 else
15262 $as_echo "$as_me: failed program was:" >&5
15263 sed 's/^/| /' conftest.$ac_ext >&5
15268 rm -rf conftest.dSYM
15269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15270 conftest$ac_exeext conftest.$ac_ext
15271 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15273 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15274 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"
15275 else
15276 if test "$host_cpu" = ia64; then
15277 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15278 allow_undefined_flag_F77="-z nodefs"
15279 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"
15280 else
15281 # Determine the default libpath from the value encoded in an empty executable.
15282 cat >conftest.$ac_ext <<_ACEOF
15283 program main
15286 _ACEOF
15287 rm -f conftest.$ac_objext conftest$ac_exeext
15288 if { (ac_try="$ac_link"
15289 case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15292 esac
15293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15294 $as_echo "$ac_try_echo") >&5
15295 (eval "$ac_link") 2>conftest.er1
15296 ac_status=$?
15297 grep -v '^ *+' conftest.er1 >conftest.err
15298 rm -f conftest.er1
15299 cat conftest.err >&5
15300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); } && {
15302 test -z "$ac_f77_werror_flag" ||
15303 test ! -s conftest.err
15304 } && test -s conftest$ac_exeext && {
15305 test "$cross_compiling" = yes ||
15306 $as_test_x conftest$ac_exeext
15307 }; then
15309 lt_aix_libpath_sed='
15310 /Import File Strings/,/^$/ {
15311 /^0/ {
15312 s/^0 *\(.*\)$/\1/
15316 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15317 # Check for a 64-bit object if we didn't find anything.
15318 if test -z "$aix_libpath"; then
15319 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15321 else
15322 $as_echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15328 rm -rf conftest.dSYM
15329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15330 conftest$ac_exeext conftest.$ac_ext
15331 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15333 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15334 # Warning - without using the other run time loading flags,
15335 # -berok will link without error, but may produce a broken library.
15336 no_undefined_flag_F77=' ${wl}-bernotok'
15337 allow_undefined_flag_F77=' ${wl}-berok'
15338 # Exported symbols can be pulled into shared objects from archives
15339 whole_archive_flag_spec_F77='$convenience'
15340 archive_cmds_need_lc_F77=yes
15341 # This is similar to how AIX traditionally builds its shared libraries.
15342 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'
15347 amigaos*)
15348 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)'
15349 hardcode_libdir_flag_spec_F77='-L$libdir'
15350 hardcode_minus_L_F77=yes
15351 # see comment about different semantics on the GNU ld section
15352 ld_shlibs_F77=no
15355 bsdi[45]*)
15356 export_dynamic_flag_spec_F77=-rdynamic
15359 cygwin* | mingw* | pw32*)
15360 # When not using gcc, we currently assume that we are using
15361 # Microsoft Visual C++.
15362 # hardcode_libdir_flag_spec is actually meaningless, as there is
15363 # no search path for DLLs.
15364 hardcode_libdir_flag_spec_F77=' '
15365 allow_undefined_flag_F77=unsupported
15366 # Tell ltmain to make .lib files, not .a files.
15367 libext=lib
15368 # Tell ltmain to make .dll files, not .so files.
15369 shrext_cmds=".dll"
15370 # FIXME: Setting linknames here is a bad hack.
15371 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15372 # The linker will automatically build a .lib file if we build a DLL.
15373 old_archive_From_new_cmds_F77='true'
15374 # FIXME: Should let the user specify the lib program.
15375 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15376 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15377 enable_shared_with_static_runtimes_F77=yes
15380 darwin* | rhapsody*)
15381 case $host_os in
15382 rhapsody* | darwin1.[012])
15383 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15385 *) # Darwin 1.3 on
15386 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15387 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15388 else
15389 case ${MACOSX_DEPLOYMENT_TARGET} in
15390 10.[012])
15391 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15393 10.*)
15394 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15396 esac
15399 esac
15400 archive_cmds_need_lc_F77=no
15401 hardcode_direct_F77=no
15402 hardcode_automatic_F77=yes
15403 hardcode_shlibpath_var_F77=unsupported
15404 whole_archive_flag_spec_F77=''
15405 link_all_deplibs_F77=yes
15406 if test "$GCC" = yes ; then
15407 output_verbose_link_cmd='echo'
15408 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}"
15409 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15410 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}"
15411 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}"
15412 else
15413 case $cc_basename in
15414 xlc*)
15415 output_verbose_link_cmd='echo'
15416 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15417 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15418 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15419 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}'
15420 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}'
15423 ld_shlibs_F77=no
15425 esac
15429 dgux*)
15430 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15431 hardcode_libdir_flag_spec_F77='-L$libdir'
15432 hardcode_shlibpath_var_F77=no
15435 freebsd1*)
15436 ld_shlibs_F77=no
15439 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15440 # support. Future versions do this automatically, but an explicit c++rt0.o
15441 # does not break anything, and helps significantly (at the cost of a little
15442 # extra space).
15443 freebsd2.2*)
15444 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15445 hardcode_libdir_flag_spec_F77='-R$libdir'
15446 hardcode_direct_F77=yes
15447 hardcode_shlibpath_var_F77=no
15450 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15451 freebsd2*)
15452 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15453 hardcode_direct_F77=yes
15454 hardcode_minus_L_F77=yes
15455 hardcode_shlibpath_var_F77=no
15458 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15459 freebsd* | dragonfly*)
15460 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15461 hardcode_libdir_flag_spec_F77='-R$libdir'
15462 hardcode_direct_F77=yes
15463 hardcode_shlibpath_var_F77=no
15466 hpux9*)
15467 if test "$GCC" = yes; then
15468 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'
15469 else
15470 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'
15472 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15473 hardcode_libdir_separator_F77=:
15474 hardcode_direct_F77=yes
15476 # hardcode_minus_L: Not really in the search PATH,
15477 # but as the default location of the library.
15478 hardcode_minus_L_F77=yes
15479 export_dynamic_flag_spec_F77='${wl}-E'
15482 hpux10*)
15483 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15484 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15485 else
15486 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15488 if test "$with_gnu_ld" = no; then
15489 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15490 hardcode_libdir_separator_F77=:
15492 hardcode_direct_F77=yes
15493 export_dynamic_flag_spec_F77='${wl}-E'
15495 # hardcode_minus_L: Not really in the search PATH,
15496 # but as the default location of the library.
15497 hardcode_minus_L_F77=yes
15501 hpux11*)
15502 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15503 case $host_cpu in
15504 hppa*64*)
15505 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15507 ia64*)
15508 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15511 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15513 esac
15514 else
15515 case $host_cpu in
15516 hppa*64*)
15517 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15519 ia64*)
15520 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15523 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15525 esac
15527 if test "$with_gnu_ld" = no; then
15528 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15529 hardcode_libdir_separator_F77=:
15531 case $host_cpu in
15532 hppa*64*|ia64*)
15533 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15534 hardcode_direct_F77=no
15535 hardcode_shlibpath_var_F77=no
15538 hardcode_direct_F77=yes
15539 export_dynamic_flag_spec_F77='${wl}-E'
15541 # hardcode_minus_L: Not really in the search PATH,
15542 # but as the default location of the library.
15543 hardcode_minus_L_F77=yes
15545 esac
15549 irix5* | irix6* | nonstopux*)
15550 if test "$GCC" = yes; then
15551 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'
15552 else
15553 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'
15554 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15556 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15557 hardcode_libdir_separator_F77=:
15558 link_all_deplibs_F77=yes
15561 netbsd* | netbsdelf*-gnu)
15562 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15563 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15564 else
15565 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15567 hardcode_libdir_flag_spec_F77='-R$libdir'
15568 hardcode_direct_F77=yes
15569 hardcode_shlibpath_var_F77=no
15572 newsos6)
15573 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15574 hardcode_direct_F77=yes
15575 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15576 hardcode_libdir_separator_F77=:
15577 hardcode_shlibpath_var_F77=no
15580 openbsd*)
15581 if test -f /usr/libexec/ld.so; then
15582 hardcode_direct_F77=yes
15583 hardcode_shlibpath_var_F77=no
15584 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15585 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15586 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15587 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15588 export_dynamic_flag_spec_F77='${wl}-E'
15589 else
15590 case $host_os in
15591 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15592 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15593 hardcode_libdir_flag_spec_F77='-R$libdir'
15596 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15597 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15599 esac
15601 else
15602 ld_shlibs_F77=no
15606 os2*)
15607 hardcode_libdir_flag_spec_F77='-L$libdir'
15608 hardcode_minus_L_F77=yes
15609 allow_undefined_flag_F77=unsupported
15610 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'
15611 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15614 osf3*)
15615 if test "$GCC" = yes; then
15616 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15617 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'
15618 else
15619 allow_undefined_flag_F77=' -expect_unresolved \*'
15620 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'
15622 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15623 hardcode_libdir_separator_F77=:
15626 osf4* | osf5*) # as osf3* with the addition of -msym flag
15627 if test "$GCC" = yes; then
15628 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15629 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'
15630 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15631 else
15632 allow_undefined_flag_F77=' -expect_unresolved \*'
15633 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'
15634 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~
15635 $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'
15637 # Both c and cxx compiler support -rpath directly
15638 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15640 hardcode_libdir_separator_F77=:
15643 solaris*)
15644 no_undefined_flag_F77=' -z text'
15645 if test "$GCC" = yes; then
15646 wlarc='${wl}'
15647 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15648 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15649 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15650 else
15651 wlarc=''
15652 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15653 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15654 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15656 hardcode_libdir_flag_spec_F77='-R$libdir'
15657 hardcode_shlibpath_var_F77=no
15658 case $host_os in
15659 solaris2.[0-5] | solaris2.[0-5].*) ;;
15661 # The compiler driver will combine and reorder linker options,
15662 # but understands `-z linker_flag'. GCC discards it without `$wl',
15663 # but is careful enough not to reorder.
15664 # Supported since Solaris 2.6 (maybe 2.5.1?)
15665 if test "$GCC" = yes; then
15666 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15667 else
15668 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15671 esac
15672 link_all_deplibs_F77=yes
15675 sunos4*)
15676 if test "x$host_vendor" = xsequent; then
15677 # Use $CC to link under sequent, because it throws in some extra .o
15678 # files that make .init and .fini sections work.
15679 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15680 else
15681 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15683 hardcode_libdir_flag_spec_F77='-L$libdir'
15684 hardcode_direct_F77=yes
15685 hardcode_minus_L_F77=yes
15686 hardcode_shlibpath_var_F77=no
15689 sysv4)
15690 case $host_vendor in
15691 sni)
15692 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15693 hardcode_direct_F77=yes # is this really true???
15695 siemens)
15696 ## LD is ld it makes a PLAMLIB
15697 ## CC just makes a GrossModule.
15698 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15699 reload_cmds_F77='$CC -r -o $output$reload_objs'
15700 hardcode_direct_F77=no
15702 motorola)
15703 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15704 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15706 esac
15707 runpath_var='LD_RUN_PATH'
15708 hardcode_shlibpath_var_F77=no
15711 sysv4.3*)
15712 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15713 hardcode_shlibpath_var_F77=no
15714 export_dynamic_flag_spec_F77='-Bexport'
15717 sysv4*MP*)
15718 if test -d /usr/nec; then
15719 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15720 hardcode_shlibpath_var_F77=no
15721 runpath_var=LD_RUN_PATH
15722 hardcode_runpath_var=yes
15723 ld_shlibs_F77=yes
15727 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15728 no_undefined_flag_F77='${wl}-z,text'
15729 archive_cmds_need_lc_F77=no
15730 hardcode_shlibpath_var_F77=no
15731 runpath_var='LD_RUN_PATH'
15733 if test "$GCC" = yes; then
15734 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15735 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15736 else
15737 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15738 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15742 sysv5* | sco3.2v5* | sco5v6*)
15743 # Note: We can NOT use -z defs as we might desire, because we do not
15744 # link with -lc, and that would cause any symbols used from libc to
15745 # always be unresolved, which means just about no library would
15746 # ever link correctly. If we're not using GNU ld we use -z text
15747 # though, which does catch some bad symbols but isn't as heavy-handed
15748 # as -z defs.
15749 no_undefined_flag_F77='${wl}-z,text'
15750 allow_undefined_flag_F77='${wl}-z,nodefs'
15751 archive_cmds_need_lc_F77=no
15752 hardcode_shlibpath_var_F77=no
15753 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15754 hardcode_libdir_separator_F77=':'
15755 link_all_deplibs_F77=yes
15756 export_dynamic_flag_spec_F77='${wl}-Bexport'
15757 runpath_var='LD_RUN_PATH'
15759 if test "$GCC" = yes; then
15760 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15761 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15762 else
15763 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15764 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15768 uts4*)
15769 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15770 hardcode_libdir_flag_spec_F77='-L$libdir'
15771 hardcode_shlibpath_var_F77=no
15775 ld_shlibs_F77=no
15777 esac
15780 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15781 $as_echo "$ld_shlibs_F77" >&6; }
15782 test "$ld_shlibs_F77" = no && can_build_shared=no
15785 # Do we need to explicitly link libc?
15787 case "x$archive_cmds_need_lc_F77" in
15788 x|xyes)
15789 # Assume -lc should be added
15790 archive_cmds_need_lc_F77=yes
15792 if test "$enable_shared" = yes && test "$GCC" = yes; then
15793 case $archive_cmds_F77 in
15794 *'~'*)
15795 # FIXME: we may have to deal with multi-command sequences.
15797 '$CC '*)
15798 # Test whether the compiler implicitly links with -lc since on some
15799 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15800 # to ld, don't add -lc before -lgcc.
15801 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15802 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15803 $rm conftest*
15804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15807 (eval $ac_compile) 2>&5
15808 ac_status=$?
15809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); } 2>conftest.err; then
15811 soname=conftest
15812 lib=conftest
15813 libobjs=conftest.$ac_objext
15814 deplibs=
15815 wl=$lt_prog_compiler_wl_F77
15816 pic_flag=$lt_prog_compiler_pic_F77
15817 compiler_flags=-v
15818 linker_flags=-v
15819 verstring=
15820 output_objdir=.
15821 libname=conftest
15822 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15823 allow_undefined_flag_F77=
15824 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15825 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15826 ac_status=$?
15827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }
15829 then
15830 archive_cmds_need_lc_F77=no
15831 else
15832 archive_cmds_need_lc_F77=yes
15834 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15835 else
15836 cat conftest.err 1>&5
15838 $rm conftest*
15839 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15840 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15842 esac
15845 esac
15847 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15848 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15849 library_names_spec=
15850 libname_spec='lib$name'
15851 soname_spec=
15852 shrext_cmds=".so"
15853 postinstall_cmds=
15854 postuninstall_cmds=
15855 finish_cmds=
15856 finish_eval=
15857 shlibpath_var=
15858 shlibpath_overrides_runpath=unknown
15859 version_type=none
15860 dynamic_linker="$host_os ld.so"
15861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15863 need_lib_prefix=unknown
15864 hardcode_into_libs=no
15866 # when you set need_version to no, make sure it does not cause -set_version
15867 # flags to be left without arguments
15868 need_version=unknown
15870 case $host_os in
15871 aix3*)
15872 version_type=linux
15873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15874 shlibpath_var=LIBPATH
15876 # AIX 3 has no versioning support, so we append a major version to the name.
15877 soname_spec='${libname}${release}${shared_ext}$major'
15880 aix[4-9]*)
15881 version_type=linux
15882 need_lib_prefix=no
15883 need_version=no
15884 hardcode_into_libs=yes
15885 if test "$host_cpu" = ia64; then
15886 # AIX 5 supports IA64
15887 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15888 shlibpath_var=LD_LIBRARY_PATH
15889 else
15890 # With GCC up to 2.95.x, collect2 would create an import file
15891 # for dependence libraries. The import file would start with
15892 # the line `#! .'. This would cause the generated library to
15893 # depend on `.', always an invalid library. This was fixed in
15894 # development snapshots of GCC prior to 3.0.
15895 case $host_os in
15896 aix4 | aix4.[01] | aix4.[01].*)
15897 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15898 echo ' yes '
15899 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15901 else
15902 can_build_shared=no
15905 esac
15906 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15907 # soname into executable. Probably we can add versioning support to
15908 # collect2, so additional links can be useful in future.
15909 if test "$aix_use_runtimelinking" = yes; then
15910 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15911 # instead of lib<name>.a to let people know that these are not
15912 # typical AIX shared libraries.
15913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15914 else
15915 # We preserve .a as extension for shared libraries through AIX4.2
15916 # and later when we are not doing run time linking.
15917 library_names_spec='${libname}${release}.a $libname.a'
15918 soname_spec='${libname}${release}${shared_ext}$major'
15920 shlibpath_var=LIBPATH
15924 amigaos*)
15925 library_names_spec='$libname.ixlibrary $libname.a'
15926 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15927 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'
15930 beos*)
15931 library_names_spec='${libname}${shared_ext}'
15932 dynamic_linker="$host_os ld.so"
15933 shlibpath_var=LIBRARY_PATH
15936 bsdi[45]*)
15937 version_type=linux
15938 need_version=no
15939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15940 soname_spec='${libname}${release}${shared_ext}$major'
15941 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15942 shlibpath_var=LD_LIBRARY_PATH
15943 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15944 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15945 # the default ld.so.conf also contains /usr/contrib/lib and
15946 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15947 # libtool to hard-code these into programs
15950 cygwin* | mingw* | pw32*)
15951 version_type=windows
15952 shrext_cmds=".dll"
15953 need_version=no
15954 need_lib_prefix=no
15956 case $GCC,$host_os in
15957 yes,cygwin* | yes,mingw* | yes,pw32*)
15958 library_names_spec='$libname.dll.a'
15959 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15960 postinstall_cmds='base_file=`basename \${file}`~
15961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15962 dldir=$destdir/`dirname \$dlpath`~
15963 test -d \$dldir || mkdir -p \$dldir~
15964 $install_prog $dir/$dlname \$dldir/$dlname~
15965 chmod a+x \$dldir/$dlname'
15966 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15967 dlpath=$dir/\$dldll~
15968 $rm \$dlpath'
15969 shlibpath_overrides_runpath=yes
15971 case $host_os in
15972 cygwin*)
15973 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15974 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15975 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15977 mingw*)
15978 # MinGW DLLs use traditional 'lib' prefix
15979 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15980 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15981 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15982 # It is most probably a Windows format PATH printed by
15983 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15984 # path with ; separators, and with drive letters. We can handle the
15985 # drive letters (cygwin fileutils understands them), so leave them,
15986 # especially as we might pass files found there to a mingw objdump,
15987 # which wouldn't understand a cygwinified path. Ahh.
15988 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15989 else
15990 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15993 pw32*)
15994 # pw32 DLLs use 'pw' prefix rather than 'lib'
15995 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15997 esac
16001 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16003 esac
16004 dynamic_linker='Win32 ld.exe'
16005 # FIXME: first we should search . and the directory the executable is in
16006 shlibpath_var=PATH
16009 darwin* | rhapsody*)
16010 dynamic_linker="$host_os dyld"
16011 version_type=darwin
16012 need_lib_prefix=no
16013 need_version=no
16014 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16015 soname_spec='${libname}${release}${major}$shared_ext'
16016 shlibpath_overrides_runpath=yes
16017 shlibpath_var=DYLD_LIBRARY_PATH
16018 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16020 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16023 dgux*)
16024 version_type=linux
16025 need_lib_prefix=no
16026 need_version=no
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16028 soname_spec='${libname}${release}${shared_ext}$major'
16029 shlibpath_var=LD_LIBRARY_PATH
16032 freebsd1*)
16033 dynamic_linker=no
16036 freebsd* | dragonfly*)
16037 # DragonFly does not have aout. When/if they implement a new
16038 # versioning mechanism, adjust this.
16039 if test -x /usr/bin/objformat; then
16040 objformat=`/usr/bin/objformat`
16041 else
16042 case $host_os in
16043 freebsd[123]*) objformat=aout ;;
16044 *) objformat=elf ;;
16045 esac
16047 version_type=freebsd-$objformat
16048 case $version_type in
16049 freebsd-elf*)
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16051 need_version=no
16052 need_lib_prefix=no
16054 freebsd-*)
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16056 need_version=yes
16058 esac
16059 shlibpath_var=LD_LIBRARY_PATH
16060 case $host_os in
16061 freebsd2*)
16062 shlibpath_overrides_runpath=yes
16064 freebsd3.[01]* | freebsdelf3.[01]*)
16065 shlibpath_overrides_runpath=yes
16066 hardcode_into_libs=yes
16068 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16069 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16070 shlibpath_overrides_runpath=no
16071 hardcode_into_libs=yes
16073 *) # from 4.6 on, and DragonFly
16074 shlibpath_overrides_runpath=yes
16075 hardcode_into_libs=yes
16077 esac
16080 gnu*)
16081 version_type=linux
16082 need_lib_prefix=no
16083 need_version=no
16084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16085 soname_spec='${libname}${release}${shared_ext}$major'
16086 shlibpath_var=LD_LIBRARY_PATH
16087 hardcode_into_libs=yes
16090 hpux9* | hpux10* | hpux11*)
16091 # Give a soname corresponding to the major version so that dld.sl refuses to
16092 # link against other versions.
16093 version_type=sunos
16094 need_lib_prefix=no
16095 need_version=no
16096 case $host_cpu in
16097 ia64*)
16098 shrext_cmds='.so'
16099 hardcode_into_libs=yes
16100 dynamic_linker="$host_os dld.so"
16101 shlibpath_var=LD_LIBRARY_PATH
16102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104 soname_spec='${libname}${release}${shared_ext}$major'
16105 if test "X$HPUX_IA64_MODE" = X32; then
16106 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16107 else
16108 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16112 hppa*64*)
16113 shrext_cmds='.sl'
16114 hardcode_into_libs=yes
16115 dynamic_linker="$host_os dld.sl"
16116 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119 soname_spec='${libname}${release}${shared_ext}$major'
16120 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16124 shrext_cmds='.sl'
16125 dynamic_linker="$host_os dld.sl"
16126 shlibpath_var=SHLIB_PATH
16127 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129 soname_spec='${libname}${release}${shared_ext}$major'
16131 esac
16132 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16133 postinstall_cmds='chmod 555 $lib'
16136 interix[3-9]*)
16137 version_type=linux
16138 need_lib_prefix=no
16139 need_version=no
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16141 soname_spec='${libname}${release}${shared_ext}$major'
16142 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16143 shlibpath_var=LD_LIBRARY_PATH
16144 shlibpath_overrides_runpath=no
16145 hardcode_into_libs=yes
16148 irix5* | irix6* | nonstopux*)
16149 case $host_os in
16150 nonstopux*) version_type=nonstopux ;;
16152 if test "$lt_cv_prog_gnu_ld" = yes; then
16153 version_type=linux
16154 else
16155 version_type=irix
16156 fi ;;
16157 esac
16158 need_lib_prefix=no
16159 need_version=no
16160 soname_spec='${libname}${release}${shared_ext}$major'
16161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16162 case $host_os in
16163 irix5* | nonstopux*)
16164 libsuff= shlibsuff=
16167 case $LD in # libtool.m4 will add one of these switches to LD
16168 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16169 libsuff= shlibsuff= libmagic=32-bit;;
16170 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16171 libsuff=32 shlibsuff=N32 libmagic=N32;;
16172 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16173 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16174 *) libsuff= shlibsuff= libmagic=never-match;;
16175 esac
16177 esac
16178 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16179 shlibpath_overrides_runpath=no
16180 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16181 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16182 hardcode_into_libs=yes
16185 # No shared lib support for Linux oldld, aout, or coff.
16186 linux*oldld* | linux*aout* | linux*coff*)
16187 dynamic_linker=no
16190 # This must be Linux ELF.
16191 linux* | k*bsd*-gnu)
16192 version_type=linux
16193 need_lib_prefix=no
16194 need_version=no
16195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16196 soname_spec='${libname}${release}${shared_ext}$major'
16197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16198 shlibpath_var=LD_LIBRARY_PATH
16199 shlibpath_overrides_runpath=no
16200 # This implies no fast_install, which is unacceptable.
16201 # Some rework will be needed to allow for fast_install
16202 # before this can be enabled.
16203 hardcode_into_libs=yes
16205 # Append ld.so.conf contents to the search path
16206 if test -f /etc/ld.so.conf; then
16207 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' ' '`
16208 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16211 # We used to test for /lib/ld.so.1 and disable shared libraries on
16212 # powerpc, because MkLinux only supported shared libraries with the
16213 # GNU dynamic linker. Since this was broken with cross compilers,
16214 # most powerpc-linux boxes support dynamic linking these days and
16215 # people can always --disable-shared, the test was removed, and we
16216 # assume the GNU/Linux dynamic linker is in use.
16217 dynamic_linker='GNU/Linux ld.so'
16220 netbsdelf*-gnu)
16221 version_type=linux
16222 need_lib_prefix=no
16223 need_version=no
16224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16225 soname_spec='${libname}${release}${shared_ext}$major'
16226 shlibpath_var=LD_LIBRARY_PATH
16227 shlibpath_overrides_runpath=no
16228 hardcode_into_libs=yes
16229 dynamic_linker='NetBSD ld.elf_so'
16232 netbsd*)
16233 version_type=sunos
16234 need_lib_prefix=no
16235 need_version=no
16236 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16239 dynamic_linker='NetBSD (a.out) ld.so'
16240 else
16241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16242 soname_spec='${libname}${release}${shared_ext}$major'
16243 dynamic_linker='NetBSD ld.elf_so'
16245 shlibpath_var=LD_LIBRARY_PATH
16246 shlibpath_overrides_runpath=yes
16247 hardcode_into_libs=yes
16250 newsos6)
16251 version_type=linux
16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16253 shlibpath_var=LD_LIBRARY_PATH
16254 shlibpath_overrides_runpath=yes
16257 nto-qnx*)
16258 version_type=linux
16259 need_lib_prefix=no
16260 need_version=no
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262 soname_spec='${libname}${release}${shared_ext}$major'
16263 shlibpath_var=LD_LIBRARY_PATH
16264 shlibpath_overrides_runpath=yes
16267 openbsd*)
16268 version_type=sunos
16269 sys_lib_dlsearch_path_spec="/usr/lib"
16270 need_lib_prefix=no
16271 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16272 case $host_os in
16273 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16274 *) need_version=no ;;
16275 esac
16276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16278 shlibpath_var=LD_LIBRARY_PATH
16279 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16280 case $host_os in
16281 openbsd2.[89] | openbsd2.[89].*)
16282 shlibpath_overrides_runpath=no
16285 shlibpath_overrides_runpath=yes
16287 esac
16288 else
16289 shlibpath_overrides_runpath=yes
16293 os2*)
16294 libname_spec='$name'
16295 shrext_cmds=".dll"
16296 need_lib_prefix=no
16297 library_names_spec='$libname${shared_ext} $libname.a'
16298 dynamic_linker='OS/2 ld.exe'
16299 shlibpath_var=LIBPATH
16302 osf3* | osf4* | osf5*)
16303 version_type=osf
16304 need_lib_prefix=no
16305 need_version=no
16306 soname_spec='${libname}${release}${shared_ext}$major'
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16308 shlibpath_var=LD_LIBRARY_PATH
16309 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16310 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16313 rdos*)
16314 dynamic_linker=no
16317 solaris*)
16318 version_type=linux
16319 need_lib_prefix=no
16320 need_version=no
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 shlibpath_var=LD_LIBRARY_PATH
16324 shlibpath_overrides_runpath=yes
16325 hardcode_into_libs=yes
16326 # ldd complains unless libraries are executable
16327 postinstall_cmds='chmod +x $lib'
16330 sunos4*)
16331 version_type=sunos
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16333 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16334 shlibpath_var=LD_LIBRARY_PATH
16335 shlibpath_overrides_runpath=yes
16336 if test "$with_gnu_ld" = yes; then
16337 need_lib_prefix=no
16339 need_version=yes
16342 sysv4 | sysv4.3*)
16343 version_type=linux
16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345 soname_spec='${libname}${release}${shared_ext}$major'
16346 shlibpath_var=LD_LIBRARY_PATH
16347 case $host_vendor in
16348 sni)
16349 shlibpath_overrides_runpath=no
16350 need_lib_prefix=no
16351 export_dynamic_flag_spec='${wl}-Blargedynsym'
16352 runpath_var=LD_RUN_PATH
16354 siemens)
16355 need_lib_prefix=no
16357 motorola)
16358 need_lib_prefix=no
16359 need_version=no
16360 shlibpath_overrides_runpath=no
16361 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16363 esac
16366 sysv4*MP*)
16367 if test -d /usr/nec ;then
16368 version_type=linux
16369 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16370 soname_spec='$libname${shared_ext}.$major'
16371 shlibpath_var=LD_LIBRARY_PATH
16375 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16376 version_type=freebsd-elf
16377 need_lib_prefix=no
16378 need_version=no
16379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16380 soname_spec='${libname}${release}${shared_ext}$major'
16381 shlibpath_var=LD_LIBRARY_PATH
16382 hardcode_into_libs=yes
16383 if test "$with_gnu_ld" = yes; then
16384 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16385 shlibpath_overrides_runpath=no
16386 else
16387 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16388 shlibpath_overrides_runpath=yes
16389 case $host_os in
16390 sco3.2v5*)
16391 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16393 esac
16395 sys_lib_dlsearch_path_spec='/usr/lib'
16398 uts4*)
16399 version_type=linux
16400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16401 soname_spec='${libname}${release}${shared_ext}$major'
16402 shlibpath_var=LD_LIBRARY_PATH
16406 dynamic_linker=no
16408 esac
16409 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16410 $as_echo "$dynamic_linker" >&6; }
16411 test "$dynamic_linker" = no && can_build_shared=no
16413 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16414 $as_echo_n "(cached) " >&6
16415 else
16416 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16419 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16420 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16421 $as_echo_n "(cached) " >&6
16422 else
16423 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16426 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16428 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16429 if test "$GCC" = yes; then
16430 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16433 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16434 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16435 hardcode_action_F77=
16436 if test -n "$hardcode_libdir_flag_spec_F77" || \
16437 test -n "$runpath_var_F77" || \
16438 test "X$hardcode_automatic_F77" = "Xyes" ; then
16440 # We can hardcode non-existant directories.
16441 if test "$hardcode_direct_F77" != no &&
16442 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16443 # have to relink, otherwise we might link with an installed library
16444 # when we should be linking with a yet-to-be-installed one
16445 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16446 test "$hardcode_minus_L_F77" != no; then
16447 # Linking always hardcodes the temporary library directory.
16448 hardcode_action_F77=relink
16449 else
16450 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16451 hardcode_action_F77=immediate
16453 else
16454 # We cannot hardcode anything, or else we can only hardcode existing
16455 # directories.
16456 hardcode_action_F77=unsupported
16458 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16459 $as_echo "$hardcode_action_F77" >&6; }
16461 if test "$hardcode_action_F77" = relink; then
16462 # Fast installation is not supported
16463 enable_fast_install=no
16464 elif test "$shlibpath_overrides_runpath" = yes ||
16465 test "$enable_shared" = no; then
16466 # Fast installation is not necessary
16467 enable_fast_install=needless
16471 # The else clause should only fire when bootstrapping the
16472 # libtool distribution, otherwise you forgot to ship ltmain.sh
16473 # with your package, and you will get complaints that there are
16474 # no rules to generate ltmain.sh.
16475 if test -f "$ltmain"; then
16476 # See if we are running on zsh, and set the options which allow our commands through
16477 # without removal of \ escapes.
16478 if test -n "${ZSH_VERSION+set}" ; then
16479 setopt NO_GLOB_SUBST
16481 # Now quote all the things that may contain metacharacters while being
16482 # careful not to overquote the AC_SUBSTed values. We take copies of the
16483 # variables and quote the copies for generation of the libtool script.
16484 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16485 SED SHELL STRIP \
16486 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16487 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16488 deplibs_check_method reload_flag reload_cmds need_locks \
16489 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16490 lt_cv_sys_global_symbol_to_c_name_address \
16491 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16492 old_postinstall_cmds old_postuninstall_cmds \
16493 compiler_F77 \
16494 CC_F77 \
16495 LD_F77 \
16496 lt_prog_compiler_wl_F77 \
16497 lt_prog_compiler_pic_F77 \
16498 lt_prog_compiler_static_F77 \
16499 lt_prog_compiler_no_builtin_flag_F77 \
16500 export_dynamic_flag_spec_F77 \
16501 thread_safe_flag_spec_F77 \
16502 whole_archive_flag_spec_F77 \
16503 enable_shared_with_static_runtimes_F77 \
16504 old_archive_cmds_F77 \
16505 old_archive_from_new_cmds_F77 \
16506 predep_objects_F77 \
16507 postdep_objects_F77 \
16508 predeps_F77 \
16509 postdeps_F77 \
16510 compiler_lib_search_path_F77 \
16511 compiler_lib_search_dirs_F77 \
16512 archive_cmds_F77 \
16513 archive_expsym_cmds_F77 \
16514 postinstall_cmds_F77 \
16515 postuninstall_cmds_F77 \
16516 old_archive_from_expsyms_cmds_F77 \
16517 allow_undefined_flag_F77 \
16518 no_undefined_flag_F77 \
16519 export_symbols_cmds_F77 \
16520 hardcode_libdir_flag_spec_F77 \
16521 hardcode_libdir_flag_spec_ld_F77 \
16522 hardcode_libdir_separator_F77 \
16523 hardcode_automatic_F77 \
16524 module_cmds_F77 \
16525 module_expsym_cmds_F77 \
16526 lt_cv_prog_compiler_c_o_F77 \
16527 fix_srcfile_path_F77 \
16528 exclude_expsyms_F77 \
16529 include_expsyms_F77; do
16531 case $var in
16532 old_archive_cmds_F77 | \
16533 old_archive_from_new_cmds_F77 | \
16534 archive_cmds_F77 | \
16535 archive_expsym_cmds_F77 | \
16536 module_cmds_F77 | \
16537 module_expsym_cmds_F77 | \
16538 old_archive_from_expsyms_cmds_F77 | \
16539 export_symbols_cmds_F77 | \
16540 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16541 postinstall_cmds | postuninstall_cmds | \
16542 old_postinstall_cmds | old_postuninstall_cmds | \
16543 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16544 # Double-quote double-evaled strings.
16545 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16548 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16550 esac
16551 done
16553 case $lt_echo in
16554 *'\$0 --fallback-echo"')
16555 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16557 esac
16559 cfgfile="$ofile"
16561 cat <<__EOF__ >> "$cfgfile"
16562 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16564 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16566 # Shell to use when invoking shell scripts.
16567 SHELL=$lt_SHELL
16569 # Whether or not to build shared libraries.
16570 build_libtool_libs=$enable_shared
16572 # Whether or not to build static libraries.
16573 build_old_libs=$enable_static
16575 # Whether or not to add -lc for building shared libraries.
16576 build_libtool_need_lc=$archive_cmds_need_lc_F77
16578 # Whether or not to disallow shared libs when runtime libs are static
16579 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16581 # Whether or not to optimize for fast installation.
16582 fast_install=$enable_fast_install
16584 # The host system.
16585 host_alias=$host_alias
16586 host=$host
16587 host_os=$host_os
16589 # The build system.
16590 build_alias=$build_alias
16591 build=$build
16592 build_os=$build_os
16594 # An echo program that does not interpret backslashes.
16595 echo=$lt_echo
16597 # The archiver.
16598 AR=$lt_AR
16599 AR_FLAGS=$lt_AR_FLAGS
16601 # A C compiler.
16602 LTCC=$lt_LTCC
16604 # LTCC compiler flags.
16605 LTCFLAGS=$lt_LTCFLAGS
16607 # A language-specific compiler.
16608 CC=$lt_compiler_F77
16610 # Is the compiler the GNU C compiler?
16611 with_gcc=$GCC_F77
16613 # An ERE matcher.
16614 EGREP=$lt_EGREP
16616 # The linker used to build libraries.
16617 LD=$lt_LD_F77
16619 # Whether we need hard or soft links.
16620 LN_S=$lt_LN_S
16622 # A BSD-compatible nm program.
16623 NM=$lt_NM
16625 # A symbol stripping program
16626 STRIP=$lt_STRIP
16628 # Used to examine libraries when file_magic_cmd begins "file"
16629 MAGIC_CMD=$MAGIC_CMD
16631 # Used on cygwin: DLL creation program.
16632 DLLTOOL="$DLLTOOL"
16634 # Used on cygwin: object dumper.
16635 OBJDUMP="$OBJDUMP"
16637 # Used on cygwin: assembler.
16638 AS="$AS"
16640 # The name of the directory that contains temporary libtool files.
16641 objdir=$objdir
16643 # How to create reloadable object files.
16644 reload_flag=$lt_reload_flag
16645 reload_cmds=$lt_reload_cmds
16647 # How to pass a linker flag through the compiler.
16648 wl=$lt_lt_prog_compiler_wl_F77
16650 # Object file suffix (normally "o").
16651 objext="$ac_objext"
16653 # Old archive suffix (normally "a").
16654 libext="$libext"
16656 # Shared library suffix (normally ".so").
16657 shrext_cmds='$shrext_cmds'
16659 # Executable file suffix (normally "").
16660 exeext="$exeext"
16662 # Additional compiler flags for building library objects.
16663 pic_flag=$lt_lt_prog_compiler_pic_F77
16664 pic_mode=$pic_mode
16666 # What is the maximum length of a command?
16667 max_cmd_len=$lt_cv_sys_max_cmd_len
16669 # Does compiler simultaneously support -c and -o options?
16670 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16672 # Must we lock files when doing compilation?
16673 need_locks=$lt_need_locks
16675 # Do we need the lib prefix for modules?
16676 need_lib_prefix=$need_lib_prefix
16678 # Do we need a version for libraries?
16679 need_version=$need_version
16681 # Whether dlopen is supported.
16682 dlopen_support=$enable_dlopen
16684 # Whether dlopen of programs is supported.
16685 dlopen_self=$enable_dlopen_self
16687 # Whether dlopen of statically linked programs is supported.
16688 dlopen_self_static=$enable_dlopen_self_static
16690 # Compiler flag to prevent dynamic linking.
16691 link_static_flag=$lt_lt_prog_compiler_static_F77
16693 # Compiler flag to turn off builtin functions.
16694 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16696 # Compiler flag to allow reflexive dlopens.
16697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16699 # Compiler flag to generate shared objects directly from archives.
16700 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16702 # Compiler flag to generate thread-safe objects.
16703 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16705 # Library versioning type.
16706 version_type=$version_type
16708 # Format of library name prefix.
16709 libname_spec=$lt_libname_spec
16711 # List of archive names. First name is the real one, the rest are links.
16712 # The last name is the one that the linker finds with -lNAME.
16713 library_names_spec=$lt_library_names_spec
16715 # The coded name of the library, if different from the real name.
16716 soname_spec=$lt_soname_spec
16718 # Commands used to build and install an old-style archive.
16719 RANLIB=$lt_RANLIB
16720 old_archive_cmds=$lt_old_archive_cmds_F77
16721 old_postinstall_cmds=$lt_old_postinstall_cmds
16722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16724 # Create an old-style archive from a shared archive.
16725 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16727 # Create a temporary old-style archive to link instead of a shared archive.
16728 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16730 # Commands used to build and install a shared archive.
16731 archive_cmds=$lt_archive_cmds_F77
16732 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16733 postinstall_cmds=$lt_postinstall_cmds
16734 postuninstall_cmds=$lt_postuninstall_cmds
16736 # Commands used to build a loadable module (assumed same as above if empty)
16737 module_cmds=$lt_module_cmds_F77
16738 module_expsym_cmds=$lt_module_expsym_cmds_F77
16740 # Commands to strip libraries.
16741 old_striplib=$lt_old_striplib
16742 striplib=$lt_striplib
16744 # Dependencies to place before the objects being linked to create a
16745 # shared library.
16746 predep_objects=$lt_predep_objects_F77
16748 # Dependencies to place after the objects being linked to create a
16749 # shared library.
16750 postdep_objects=$lt_postdep_objects_F77
16752 # Dependencies to place before the objects being linked to create a
16753 # shared library.
16754 predeps=$lt_predeps_F77
16756 # Dependencies to place after the objects being linked to create a
16757 # shared library.
16758 postdeps=$lt_postdeps_F77
16760 # The directories searched by this compiler when creating a shared
16761 # library
16762 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16764 # The library search path used internally by the compiler when linking
16765 # a shared library.
16766 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16768 # Method to check whether dependent libraries are shared objects.
16769 deplibs_check_method=$lt_deplibs_check_method
16771 # Command to use when deplibs_check_method == file_magic.
16772 file_magic_cmd=$lt_file_magic_cmd
16774 # Flag that allows shared libraries with undefined symbols to be built.
16775 allow_undefined_flag=$lt_allow_undefined_flag_F77
16777 # Flag that forces no undefined symbols.
16778 no_undefined_flag=$lt_no_undefined_flag_F77
16780 # Commands used to finish a libtool library installation in a directory.
16781 finish_cmds=$lt_finish_cmds
16783 # Same as above, but a single script fragment to be evaled but not shown.
16784 finish_eval=$lt_finish_eval
16786 # Take the output of nm and produce a listing of raw symbols and C names.
16787 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16789 # Transform the output of nm in a proper C declaration
16790 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16792 # Transform the output of nm in a C name address pair
16793 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16795 # This is the shared library runtime path variable.
16796 runpath_var=$runpath_var
16798 # This is the shared library path variable.
16799 shlibpath_var=$shlibpath_var
16801 # Is shlibpath searched before the hard-coded library search path?
16802 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16804 # How to hardcode a shared library path into an executable.
16805 hardcode_action=$hardcode_action_F77
16807 # Whether we should hardcode library paths into libraries.
16808 hardcode_into_libs=$hardcode_into_libs
16810 # Flag to hardcode \$libdir into a binary during linking.
16811 # This must work even if \$libdir does not exist.
16812 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16814 # If ld is used when linking, flag to hardcode \$libdir into
16815 # a binary during linking. This must work even if \$libdir does
16816 # not exist.
16817 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16819 # Whether we need a single -rpath flag with a separated argument.
16820 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16822 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16823 # resulting binary.
16824 hardcode_direct=$hardcode_direct_F77
16826 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16827 # resulting binary.
16828 hardcode_minus_L=$hardcode_minus_L_F77
16830 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16831 # the resulting binary.
16832 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16834 # Set to yes if building a shared library automatically hardcodes DIR into the library
16835 # and all subsequent libraries and executables linked against it.
16836 hardcode_automatic=$hardcode_automatic_F77
16838 # Variables whose values should be saved in libtool wrapper scripts and
16839 # restored at relink time.
16840 variables_saved_for_relink="$variables_saved_for_relink"
16842 # Whether libtool must link a program against all its dependency libraries.
16843 link_all_deplibs=$link_all_deplibs_F77
16845 # Compile-time system search path for libraries
16846 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16848 # Run-time system search path for libraries
16849 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16851 # Fix the shell variable \$srcfile for the compiler.
16852 fix_srcfile_path=$lt_fix_srcfile_path
16854 # Set to yes if exported symbols are required.
16855 always_export_symbols=$always_export_symbols_F77
16857 # The commands to list exported symbols.
16858 export_symbols_cmds=$lt_export_symbols_cmds_F77
16860 # The commands to extract the exported symbol list from a shared archive.
16861 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16863 # Symbols that should not be listed in the preloaded symbols.
16864 exclude_expsyms=$lt_exclude_expsyms_F77
16866 # Symbols that must always be exported.
16867 include_expsyms=$lt_include_expsyms_F77
16869 # ### END LIBTOOL TAG CONFIG: $tagname
16871 __EOF__
16874 else
16875 # If there is no Makefile yet, we rely on a make rule to execute
16876 # `config.status --recheck' to rerun these tests and create the
16877 # libtool script then.
16878 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16879 if test -f "$ltmain_in"; then
16880 test -f Makefile && make "$ltmain"
16885 ac_ext=c
16886 ac_cpp='$CPP $CPPFLAGS'
16887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16891 CC="$lt_save_CC"
16893 else
16894 tagname=""
16898 GCJ)
16899 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16902 # Source file extension for Java test sources.
16903 ac_ext=java
16905 # Object file extension for compiled Java test sources.
16906 objext=o
16907 objext_GCJ=$objext
16909 # Code to be used in simple compile tests
16910 lt_simple_compile_test_code="class foo {}"
16912 # Code to be used in simple link tests
16913 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16915 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16917 # If no C compiler was specified, use CC.
16918 LTCC=${LTCC-"$CC"}
16920 # If no C compiler flags were specified, use CFLAGS.
16921 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16923 # Allow CC to be a program name with arguments.
16924 compiler=$CC
16927 # save warnings/boilerplate of simple test code
16928 ac_outfile=conftest.$ac_objext
16929 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16930 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16931 _lt_compiler_boilerplate=`cat conftest.err`
16932 $rm conftest*
16934 ac_outfile=conftest.$ac_objext
16935 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16936 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16937 _lt_linker_boilerplate=`cat conftest.err`
16938 $rm -r conftest*
16941 # Allow CC to be a program name with arguments.
16942 lt_save_CC="$CC"
16943 CC=${GCJ-"gcj"}
16944 compiler=$CC
16945 compiler_GCJ=$CC
16946 for cc_temp in $compiler""; do
16947 case $cc_temp in
16948 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16949 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16950 \-*) ;;
16951 *) break;;
16952 esac
16953 done
16954 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16957 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16958 archive_cmds_need_lc_GCJ=no
16960 old_archive_cmds_GCJ=$old_archive_cmds
16963 lt_prog_compiler_no_builtin_flag_GCJ=
16965 if test "$GCC" = yes; then
16966 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16969 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16970 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16971 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16972 $as_echo_n "(cached) " >&6
16973 else
16974 lt_cv_prog_compiler_rtti_exceptions=no
16975 ac_outfile=conftest.$ac_objext
16976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16977 lt_compiler_flag="-fno-rtti -fno-exceptions"
16978 # Insert the option either (1) after the last *FLAGS variable, or
16979 # (2) before a word containing "conftest.", or (3) at the end.
16980 # Note that $ac_compile itself does not contain backslashes and begins
16981 # with a dollar sign (not a hyphen), so the echo should work correctly.
16982 # The option is referenced via a variable to avoid confusing sed.
16983 lt_compile=`echo "$ac_compile" | $SED \
16984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16986 -e 's:$: $lt_compiler_flag:'`
16987 (eval echo "\"\$as_me:16987: $lt_compile\"" >&5)
16988 (eval "$lt_compile" 2>conftest.err)
16989 ac_status=$?
16990 cat conftest.err >&5
16991 echo "$as_me:16991: \$? = $ac_status" >&5
16992 if (exit $ac_status) && test -s "$ac_outfile"; then
16993 # The compiler can only warn and ignore the option if not recognized
16994 # So say no if there are warnings other than the usual output.
16995 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16997 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16998 lt_cv_prog_compiler_rtti_exceptions=yes
17001 $rm conftest*
17004 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17005 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17007 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17008 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17009 else
17015 lt_prog_compiler_wl_GCJ=
17016 lt_prog_compiler_pic_GCJ=
17017 lt_prog_compiler_static_GCJ=
17019 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17020 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17022 if test "$GCC" = yes; then
17023 lt_prog_compiler_wl_GCJ='-Wl,'
17024 lt_prog_compiler_static_GCJ='-static'
17026 case $host_os in
17027 aix*)
17028 # All AIX code is PIC.
17029 if test "$host_cpu" = ia64; then
17030 # AIX 5 now supports IA64 processor
17031 lt_prog_compiler_static_GCJ='-Bstatic'
17035 amigaos*)
17036 # FIXME: we need at least 68020 code to build shared libraries, but
17037 # adding the `-m68020' flag to GCC prevents building anything better,
17038 # like `-m68040'.
17039 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17042 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17043 # PIC is the default for these OSes.
17046 mingw* | cygwin* | pw32* | os2*)
17047 # This hack is so that the source file can tell whether it is being
17048 # built for inclusion in a dll (and should export symbols for example).
17049 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17050 # (--disable-auto-import) libraries
17054 darwin* | rhapsody*)
17055 # PIC is the default on this platform
17056 # Common symbols not allowed in MH_DYLIB files
17057 lt_prog_compiler_pic_GCJ='-fno-common'
17060 interix[3-9]*)
17061 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17062 # Instead, we relocate shared libraries at runtime.
17065 msdosdjgpp*)
17066 # Just because we use GCC doesn't mean we suddenly get shared libraries
17067 # on systems that don't support them.
17068 lt_prog_compiler_can_build_shared_GCJ=no
17069 enable_shared=no
17072 sysv4*MP*)
17073 if test -d /usr/nec; then
17074 lt_prog_compiler_pic_GCJ=-Kconform_pic
17078 hpux*)
17079 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17080 # not for PA HP-UX.
17081 case $host_cpu in
17082 hppa*64*|ia64*)
17083 # +Z the default
17086 lt_prog_compiler_pic_GCJ='-fPIC'
17088 esac
17092 lt_prog_compiler_pic_GCJ='-fPIC'
17094 esac
17095 else
17096 # PORTME Check for flag to pass linker flags through the system compiler.
17097 case $host_os in
17098 aix*)
17099 lt_prog_compiler_wl_GCJ='-Wl,'
17100 if test "$host_cpu" = ia64; then
17101 # AIX 5 now supports IA64 processor
17102 lt_prog_compiler_static_GCJ='-Bstatic'
17103 else
17104 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17107 darwin*)
17108 # PIC is the default on this platform
17109 # Common symbols not allowed in MH_DYLIB files
17110 case $cc_basename in
17111 xlc*)
17112 lt_prog_compiler_pic_GCJ='-qnocommon'
17113 lt_prog_compiler_wl_GCJ='-Wl,'
17115 esac
17118 mingw* | cygwin* | pw32* | os2*)
17119 # This hack is so that the source file can tell whether it is being
17120 # built for inclusion in a dll (and should export symbols for example).
17124 hpux9* | hpux10* | hpux11*)
17125 lt_prog_compiler_wl_GCJ='-Wl,'
17126 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17127 # not for PA HP-UX.
17128 case $host_cpu in
17129 hppa*64*|ia64*)
17130 # +Z the default
17133 lt_prog_compiler_pic_GCJ='+Z'
17135 esac
17136 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17137 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17140 irix5* | irix6* | nonstopux*)
17141 lt_prog_compiler_wl_GCJ='-Wl,'
17142 # PIC (with -KPIC) is the default.
17143 lt_prog_compiler_static_GCJ='-non_shared'
17146 newsos6)
17147 lt_prog_compiler_pic_GCJ='-KPIC'
17148 lt_prog_compiler_static_GCJ='-Bstatic'
17151 linux* | k*bsd*-gnu)
17152 case $cc_basename in
17153 icc* | ecc*)
17154 lt_prog_compiler_wl_GCJ='-Wl,'
17155 lt_prog_compiler_pic_GCJ='-KPIC'
17156 lt_prog_compiler_static_GCJ='-static'
17158 pgcc* | pgf77* | pgf90* | pgf95*)
17159 # Portland Group compilers (*not* the Pentium gcc compiler,
17160 # which looks to be a dead project)
17161 lt_prog_compiler_wl_GCJ='-Wl,'
17162 lt_prog_compiler_pic_GCJ='-fpic'
17163 lt_prog_compiler_static_GCJ='-Bstatic'
17165 ccc*)
17166 lt_prog_compiler_wl_GCJ='-Wl,'
17167 # All Alpha code is PIC.
17168 lt_prog_compiler_static_GCJ='-non_shared'
17171 case `$CC -V 2>&1 | sed 5q` in
17172 *Sun\ C*)
17173 # Sun C 5.9
17174 lt_prog_compiler_pic_GCJ='-KPIC'
17175 lt_prog_compiler_static_GCJ='-Bstatic'
17176 lt_prog_compiler_wl_GCJ='-Wl,'
17178 *Sun\ F*)
17179 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17180 lt_prog_compiler_pic_GCJ='-KPIC'
17181 lt_prog_compiler_static_GCJ='-Bstatic'
17182 lt_prog_compiler_wl_GCJ=''
17184 esac
17186 esac
17189 osf3* | osf4* | osf5*)
17190 lt_prog_compiler_wl_GCJ='-Wl,'
17191 # All OSF/1 code is PIC.
17192 lt_prog_compiler_static_GCJ='-non_shared'
17195 rdos*)
17196 lt_prog_compiler_static_GCJ='-non_shared'
17199 solaris*)
17200 lt_prog_compiler_pic_GCJ='-KPIC'
17201 lt_prog_compiler_static_GCJ='-Bstatic'
17202 case $cc_basename in
17203 f77* | f90* | f95*)
17204 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17206 lt_prog_compiler_wl_GCJ='-Wl,';;
17207 esac
17210 sunos4*)
17211 lt_prog_compiler_wl_GCJ='-Qoption ld '
17212 lt_prog_compiler_pic_GCJ='-PIC'
17213 lt_prog_compiler_static_GCJ='-Bstatic'
17216 sysv4 | sysv4.2uw2* | sysv4.3*)
17217 lt_prog_compiler_wl_GCJ='-Wl,'
17218 lt_prog_compiler_pic_GCJ='-KPIC'
17219 lt_prog_compiler_static_GCJ='-Bstatic'
17222 sysv4*MP*)
17223 if test -d /usr/nec ;then
17224 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17225 lt_prog_compiler_static_GCJ='-Bstatic'
17229 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17230 lt_prog_compiler_wl_GCJ='-Wl,'
17231 lt_prog_compiler_pic_GCJ='-KPIC'
17232 lt_prog_compiler_static_GCJ='-Bstatic'
17235 unicos*)
17236 lt_prog_compiler_wl_GCJ='-Wl,'
17237 lt_prog_compiler_can_build_shared_GCJ=no
17240 uts4*)
17241 lt_prog_compiler_pic_GCJ='-pic'
17242 lt_prog_compiler_static_GCJ='-Bstatic'
17246 lt_prog_compiler_can_build_shared_GCJ=no
17248 esac
17251 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17252 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17255 # Check to make sure the PIC flag actually works.
17257 if test -n "$lt_prog_compiler_pic_GCJ"; then
17259 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17260 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17261 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17262 $as_echo_n "(cached) " >&6
17263 else
17264 lt_cv_prog_compiler_pic_works_GCJ=no
17265 ac_outfile=conftest.$ac_objext
17266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17267 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17268 # Insert the option either (1) after the last *FLAGS variable, or
17269 # (2) before a word containing "conftest.", or (3) at the end.
17270 # Note that $ac_compile itself does not contain backslashes and begins
17271 # with a dollar sign (not a hyphen), so the echo should work correctly.
17272 # The option is referenced via a variable to avoid confusing sed.
17273 lt_compile=`echo "$ac_compile" | $SED \
17274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17276 -e 's:$: $lt_compiler_flag:'`
17277 (eval echo "\"\$as_me:17277: $lt_compile\"" >&5)
17278 (eval "$lt_compile" 2>conftest.err)
17279 ac_status=$?
17280 cat conftest.err >&5
17281 echo "$as_me:17281: \$? = $ac_status" >&5
17282 if (exit $ac_status) && test -s "$ac_outfile"; then
17283 # The compiler can only warn and ignore the option if not recognized
17284 # So say no if there are warnings other than the usual output.
17285 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17288 lt_cv_prog_compiler_pic_works_GCJ=yes
17291 $rm conftest*
17294 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17295 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17297 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17298 case $lt_prog_compiler_pic_GCJ in
17299 "" | " "*) ;;
17300 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17301 esac
17302 else
17303 lt_prog_compiler_pic_GCJ=
17304 lt_prog_compiler_can_build_shared_GCJ=no
17308 case $host_os in
17309 # For platforms which do not support PIC, -DPIC is meaningless:
17310 *djgpp*)
17311 lt_prog_compiler_pic_GCJ=
17314 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17316 esac
17319 # Check to make sure the static flag actually works.
17321 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17322 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17323 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17324 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17325 $as_echo_n "(cached) " >&6
17326 else
17327 lt_cv_prog_compiler_static_works_GCJ=no
17328 save_LDFLAGS="$LDFLAGS"
17329 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17330 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17332 # The linker can only warn and ignore the option if not recognized
17333 # So say no if there are warnings
17334 if test -s conftest.err; then
17335 # Append any errors to the config.log.
17336 cat conftest.err 1>&5
17337 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17339 if diff conftest.exp conftest.er2 >/dev/null; then
17340 lt_cv_prog_compiler_static_works_GCJ=yes
17342 else
17343 lt_cv_prog_compiler_static_works_GCJ=yes
17346 $rm -r conftest*
17347 LDFLAGS="$save_LDFLAGS"
17350 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17351 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17353 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17355 else
17356 lt_prog_compiler_static_GCJ=
17360 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17361 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17362 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17363 $as_echo_n "(cached) " >&6
17364 else
17365 lt_cv_prog_compiler_c_o_GCJ=no
17366 $rm -r conftest 2>/dev/null
17367 mkdir conftest
17368 cd conftest
17369 mkdir out
17370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17372 lt_compiler_flag="-o out/conftest2.$ac_objext"
17373 # Insert the option either (1) after the last *FLAGS variable, or
17374 # (2) before a word containing "conftest.", or (3) at the end.
17375 # Note that $ac_compile itself does not contain backslashes and begins
17376 # with a dollar sign (not a hyphen), so the echo should work correctly.
17377 lt_compile=`echo "$ac_compile" | $SED \
17378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17380 -e 's:$: $lt_compiler_flag:'`
17381 (eval echo "\"\$as_me:17381: $lt_compile\"" >&5)
17382 (eval "$lt_compile" 2>out/conftest.err)
17383 ac_status=$?
17384 cat out/conftest.err >&5
17385 echo "$as_me:17385: \$? = $ac_status" >&5
17386 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17387 then
17388 # The compiler can only warn and ignore the option if not recognized
17389 # So say no if there are warnings
17390 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17391 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17392 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17393 lt_cv_prog_compiler_c_o_GCJ=yes
17396 chmod u+w . 2>&5
17397 $rm conftest*
17398 # SGI C++ compiler will create directory out/ii_files/ for
17399 # template instantiation
17400 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17401 $rm out/* && rmdir out
17402 cd ..
17403 rmdir conftest
17404 $rm conftest*
17407 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17408 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17411 hard_links="nottested"
17412 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17413 # do not overwrite the value of need_locks provided by the user
17414 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17415 $as_echo_n "checking if we can lock with hard links... " >&6; }
17416 hard_links=yes
17417 $rm conftest*
17418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17419 touch conftest.a
17420 ln conftest.a conftest.b 2>&5 || hard_links=no
17421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17422 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17423 $as_echo "$hard_links" >&6; }
17424 if test "$hard_links" = no; then
17425 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17426 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17427 need_locks=warn
17429 else
17430 need_locks=no
17433 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17434 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17436 runpath_var=
17437 allow_undefined_flag_GCJ=
17438 enable_shared_with_static_runtimes_GCJ=no
17439 archive_cmds_GCJ=
17440 archive_expsym_cmds_GCJ=
17441 old_archive_From_new_cmds_GCJ=
17442 old_archive_from_expsyms_cmds_GCJ=
17443 export_dynamic_flag_spec_GCJ=
17444 whole_archive_flag_spec_GCJ=
17445 thread_safe_flag_spec_GCJ=
17446 hardcode_libdir_flag_spec_GCJ=
17447 hardcode_libdir_flag_spec_ld_GCJ=
17448 hardcode_libdir_separator_GCJ=
17449 hardcode_direct_GCJ=no
17450 hardcode_minus_L_GCJ=no
17451 hardcode_shlibpath_var_GCJ=unsupported
17452 link_all_deplibs_GCJ=unknown
17453 hardcode_automatic_GCJ=no
17454 module_cmds_GCJ=
17455 module_expsym_cmds_GCJ=
17456 always_export_symbols_GCJ=no
17457 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17458 # include_expsyms should be a list of space-separated symbols to be *always*
17459 # included in the symbol list
17460 include_expsyms_GCJ=
17461 # exclude_expsyms can be an extended regexp of symbols to exclude
17462 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17463 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17464 # as well as any symbol that contains `d'.
17465 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17466 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17467 # platforms (ab)use it in PIC code, but their linkers get confused if
17468 # the symbol is explicitly referenced. Since portable code cannot
17469 # rely on this symbol name, it's probably fine to never include it in
17470 # preloaded symbol tables.
17471 # Exclude shared library initialization/finalization symbols.
17472 extract_expsyms_cmds=
17473 # Just being paranoid about ensuring that cc_basename is set.
17474 for cc_temp in $compiler""; do
17475 case $cc_temp in
17476 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17477 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17478 \-*) ;;
17479 *) break;;
17480 esac
17481 done
17482 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17484 case $host_os in
17485 cygwin* | mingw* | pw32*)
17486 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17487 # When not using gcc, we currently assume that we are using
17488 # Microsoft Visual C++.
17489 if test "$GCC" != yes; then
17490 with_gnu_ld=no
17493 interix*)
17494 # we just hope/assume this is gcc and not c89 (= MSVC++)
17495 with_gnu_ld=yes
17497 openbsd*)
17498 with_gnu_ld=no
17500 esac
17502 ld_shlibs_GCJ=yes
17503 if test "$with_gnu_ld" = yes; then
17504 # If archive_cmds runs LD, not CC, wlarc should be empty
17505 wlarc='${wl}'
17507 # Set some defaults for GNU ld with shared library support. These
17508 # are reset later if shared libraries are not supported. Putting them
17509 # here allows them to be overridden if necessary.
17510 runpath_var=LD_RUN_PATH
17511 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17512 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17513 # ancient GNU ld didn't support --whole-archive et. al.
17514 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17515 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17516 else
17517 whole_archive_flag_spec_GCJ=
17519 supports_anon_versioning=no
17520 case `$LD -v 2>/dev/null` in
17521 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17522 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17523 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17524 *\ 2.11.*) ;; # other 2.11 versions
17525 *) supports_anon_versioning=yes ;;
17526 esac
17528 # See if GNU ld supports shared libraries.
17529 case $host_os in
17530 aix[3-9]*)
17531 # On AIX/PPC, the GNU linker is very broken
17532 if test "$host_cpu" != ia64; then
17533 ld_shlibs_GCJ=no
17534 cat <<EOF 1>&2
17536 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17537 *** to be unable to reliably create shared libraries on AIX.
17538 *** Therefore, libtool is disabling shared libraries support. If you
17539 *** really care for shared libraries, you may want to modify your PATH
17540 *** so that a non-GNU linker is found, and then restart.
17546 amigaos*)
17547 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)'
17548 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17549 hardcode_minus_L_GCJ=yes
17551 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17552 # that the semantics of dynamic libraries on AmigaOS, at least up
17553 # to version 4, is to share data among multiple programs linked
17554 # with the same dynamic library. Since this doesn't match the
17555 # behavior of shared libraries on other platforms, we can't use
17556 # them.
17557 ld_shlibs_GCJ=no
17560 beos*)
17561 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17562 allow_undefined_flag_GCJ=unsupported
17563 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17564 # support --undefined. This deserves some investigation. FIXME
17565 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17566 else
17567 ld_shlibs_GCJ=no
17571 cygwin* | mingw* | pw32*)
17572 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17573 # as there is no search path for DLLs.
17574 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17575 allow_undefined_flag_GCJ=unsupported
17576 always_export_symbols_GCJ=no
17577 enable_shared_with_static_runtimes_GCJ=yes
17578 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17580 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17581 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17582 # If the export-symbols file already is a .def file (1st line
17583 # is EXPORTS), use it as is; otherwise, prepend...
17584 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17585 cp $export_symbols $output_objdir/$soname.def;
17586 else
17587 echo EXPORTS > $output_objdir/$soname.def;
17588 cat $export_symbols >> $output_objdir/$soname.def;
17590 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17591 else
17592 ld_shlibs_GCJ=no
17596 interix[3-9]*)
17597 hardcode_direct_GCJ=no
17598 hardcode_shlibpath_var_GCJ=no
17599 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17600 export_dynamic_flag_spec_GCJ='${wl}-E'
17601 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17602 # Instead, shared libraries are loaded at an image base (0x10000000 by
17603 # default) and relocated if they conflict, which is a slow very memory
17604 # consuming and fragmenting process. To avoid this, we pick a random,
17605 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17606 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17607 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'
17608 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'
17611 gnu* | linux* | k*bsd*-gnu)
17612 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17613 tmp_addflag=
17614 case $cc_basename,$host_cpu in
17615 pgcc*) # Portland Group C compiler
17616 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'
17617 tmp_addflag=' $pic_flag'
17619 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17620 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'
17621 tmp_addflag=' $pic_flag -Mnomain' ;;
17622 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17623 tmp_addflag=' -i_dynamic' ;;
17624 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17625 tmp_addflag=' -i_dynamic -nofor_main' ;;
17626 ifc* | ifort*) # Intel Fortran compiler
17627 tmp_addflag=' -nofor_main' ;;
17628 esac
17629 case `$CC -V 2>&1 | sed 5q` in
17630 *Sun\ C*) # Sun C 5.9
17631 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'
17632 tmp_sharedflag='-G' ;;
17633 *Sun\ F*) # Sun Fortran 8.3
17634 tmp_sharedflag='-G' ;;
17636 tmp_sharedflag='-shared' ;;
17637 esac
17638 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17640 if test $supports_anon_versioning = yes; then
17641 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17642 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17643 $echo "local: *; };" >> $output_objdir/$libname.ver~
17644 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17646 link_all_deplibs_GCJ=no
17647 else
17648 ld_shlibs_GCJ=no
17652 netbsd* | netbsdelf*-gnu)
17653 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17654 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17655 wlarc=
17656 else
17657 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17658 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17662 solaris*)
17663 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17664 ld_shlibs_GCJ=no
17665 cat <<EOF 1>&2
17667 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17668 *** create shared libraries on Solaris systems. Therefore, libtool
17669 *** is disabling shared libraries support. We urge you to upgrade GNU
17670 *** binutils to release 2.9.1 or newer. Another option is to modify
17671 *** your PATH or compiler configuration so that the native linker is
17672 *** used, and then restart.
17675 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17676 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17677 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17678 else
17679 ld_shlibs_GCJ=no
17683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17684 case `$LD -v 2>&1` in
17685 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17686 ld_shlibs_GCJ=no
17687 cat <<_LT_EOF 1>&2
17689 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17690 *** reliably create shared libraries on SCO systems. Therefore, libtool
17691 *** is disabling shared libraries support. We urge you to upgrade GNU
17692 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17693 *** your PATH or compiler configuration so that the native linker is
17694 *** used, and then restart.
17696 _LT_EOF
17699 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17700 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17701 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17702 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17703 else
17704 ld_shlibs_GCJ=no
17707 esac
17710 sunos4*)
17711 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17712 wlarc=
17713 hardcode_direct_GCJ=yes
17714 hardcode_shlibpath_var_GCJ=no
17718 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17719 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17720 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17721 else
17722 ld_shlibs_GCJ=no
17725 esac
17727 if test "$ld_shlibs_GCJ" = no; then
17728 runpath_var=
17729 hardcode_libdir_flag_spec_GCJ=
17730 export_dynamic_flag_spec_GCJ=
17731 whole_archive_flag_spec_GCJ=
17733 else
17734 # PORTME fill in a description of your system's linker (not GNU ld)
17735 case $host_os in
17736 aix3*)
17737 allow_undefined_flag_GCJ=unsupported
17738 always_export_symbols_GCJ=yes
17739 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'
17740 # Note: this linker hardcodes the directories in LIBPATH if there
17741 # are no directories specified by -L.
17742 hardcode_minus_L_GCJ=yes
17743 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17744 # Neither direct hardcoding nor static linking is supported with a
17745 # broken collect2.
17746 hardcode_direct_GCJ=unsupported
17750 aix[4-9]*)
17751 if test "$host_cpu" = ia64; then
17752 # On IA64, the linker does run time linking by default, so we don't
17753 # have to do anything special.
17754 aix_use_runtimelinking=no
17755 exp_sym_flag='-Bexport'
17756 no_entry_flag=""
17757 else
17758 # If we're using GNU nm, then we don't want the "-C" option.
17759 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17760 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17761 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'
17762 else
17763 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'
17765 aix_use_runtimelinking=no
17767 # Test if we are trying to use run time linking or normal
17768 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17769 # need to do runtime linking.
17770 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17771 for ld_flag in $LDFLAGS; do
17772 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17773 aix_use_runtimelinking=yes
17774 break
17776 done
17778 esac
17780 exp_sym_flag='-bexport'
17781 no_entry_flag='-bnoentry'
17784 # When large executables or shared objects are built, AIX ld can
17785 # have problems creating the table of contents. If linking a library
17786 # or program results in "error TOC overflow" add -mminimal-toc to
17787 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17788 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17790 archive_cmds_GCJ=''
17791 hardcode_direct_GCJ=yes
17792 hardcode_libdir_separator_GCJ=':'
17793 link_all_deplibs_GCJ=yes
17795 if test "$GCC" = yes; then
17796 case $host_os in aix4.[012]|aix4.[012].*)
17797 # We only want to do this on AIX 4.2 and lower, the check
17798 # below for broken collect2 doesn't work under 4.3+
17799 collect2name=`${CC} -print-prog-name=collect2`
17800 if test -f "$collect2name" && \
17801 strings "$collect2name" | grep resolve_lib_name >/dev/null
17802 then
17803 # We have reworked collect2
17805 else
17806 # We have old collect2
17807 hardcode_direct_GCJ=unsupported
17808 # It fails to find uninstalled libraries when the uninstalled
17809 # path is not listed in the libpath. Setting hardcode_minus_L
17810 # to unsupported forces relinking
17811 hardcode_minus_L_GCJ=yes
17812 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17813 hardcode_libdir_separator_GCJ=
17816 esac
17817 shared_flag='-shared'
17818 if test "$aix_use_runtimelinking" = yes; then
17819 shared_flag="$shared_flag "'${wl}-G'
17821 else
17822 # not using gcc
17823 if test "$host_cpu" = ia64; then
17824 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17825 # chokes on -Wl,-G. The following line is correct:
17826 shared_flag='-G'
17827 else
17828 if test "$aix_use_runtimelinking" = yes; then
17829 shared_flag='${wl}-G'
17830 else
17831 shared_flag='${wl}-bM:SRE'
17836 # It seems that -bexpall does not export symbols beginning with
17837 # underscore (_), so it is better to generate a list of symbols to export.
17838 always_export_symbols_GCJ=yes
17839 if test "$aix_use_runtimelinking" = yes; then
17840 # Warning - without using the other runtime loading flags (-brtl),
17841 # -berok will link without error, but may produce a broken library.
17842 allow_undefined_flag_GCJ='-berok'
17843 # Determine the default libpath from the value encoded in an empty executable.
17844 cat >conftest.$ac_ext <<_ACEOF
17845 /* confdefs.h. */
17846 _ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17852 main ()
17856 return 0;
17858 _ACEOF
17859 rm -f conftest.$ac_objext conftest$ac_exeext
17860 if { (ac_try="$ac_link"
17861 case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17864 esac
17865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17866 $as_echo "$ac_try_echo") >&5
17867 (eval "$ac_link") 2>conftest.er1
17868 ac_status=$?
17869 grep -v '^ *+' conftest.er1 >conftest.err
17870 rm -f conftest.er1
17871 cat conftest.err >&5
17872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } && {
17874 test -z "$ac_c_werror_flag" ||
17875 test ! -s conftest.err
17876 } && test -s conftest$ac_exeext && {
17877 test "$cross_compiling" = yes ||
17878 $as_test_x conftest$ac_exeext
17879 }; then
17881 lt_aix_libpath_sed='
17882 /Import File Strings/,/^$/ {
17883 /^0/ {
17884 s/^0 *\(.*\)$/\1/
17888 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17889 # Check for a 64-bit object if we didn't find anything.
17890 if test -z "$aix_libpath"; then
17891 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17893 else
17894 $as_echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17900 rm -rf conftest.dSYM
17901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17902 conftest$ac_exeext conftest.$ac_ext
17903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17905 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17906 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"
17907 else
17908 if test "$host_cpu" = ia64; then
17909 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17910 allow_undefined_flag_GCJ="-z nodefs"
17911 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"
17912 else
17913 # Determine the default libpath from the value encoded in an empty executable.
17914 cat >conftest.$ac_ext <<_ACEOF
17915 /* confdefs.h. */
17916 _ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17922 main ()
17926 return 0;
17928 _ACEOF
17929 rm -f conftest.$ac_objext conftest$ac_exeext
17930 if { (ac_try="$ac_link"
17931 case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17934 esac
17935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17936 $as_echo "$ac_try_echo") >&5
17937 (eval "$ac_link") 2>conftest.er1
17938 ac_status=$?
17939 grep -v '^ *+' conftest.er1 >conftest.err
17940 rm -f conftest.er1
17941 cat conftest.err >&5
17942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } && {
17944 test -z "$ac_c_werror_flag" ||
17945 test ! -s conftest.err
17946 } && test -s conftest$ac_exeext && {
17947 test "$cross_compiling" = yes ||
17948 $as_test_x conftest$ac_exeext
17949 }; then
17951 lt_aix_libpath_sed='
17952 /Import File Strings/,/^$/ {
17953 /^0/ {
17954 s/^0 *\(.*\)$/\1/
17958 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17959 # Check for a 64-bit object if we didn't find anything.
17960 if test -z "$aix_libpath"; then
17961 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17963 else
17964 $as_echo "$as_me: failed program was:" >&5
17965 sed 's/^/| /' conftest.$ac_ext >&5
17970 rm -rf conftest.dSYM
17971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17972 conftest$ac_exeext conftest.$ac_ext
17973 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17975 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17976 # Warning - without using the other run time loading flags,
17977 # -berok will link without error, but may produce a broken library.
17978 no_undefined_flag_GCJ=' ${wl}-bernotok'
17979 allow_undefined_flag_GCJ=' ${wl}-berok'
17980 # Exported symbols can be pulled into shared objects from archives
17981 whole_archive_flag_spec_GCJ='$convenience'
17982 archive_cmds_need_lc_GCJ=yes
17983 # This is similar to how AIX traditionally builds its shared libraries.
17984 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'
17989 amigaos*)
17990 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)'
17991 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17992 hardcode_minus_L_GCJ=yes
17993 # see comment about different semantics on the GNU ld section
17994 ld_shlibs_GCJ=no
17997 bsdi[45]*)
17998 export_dynamic_flag_spec_GCJ=-rdynamic
18001 cygwin* | mingw* | pw32*)
18002 # When not using gcc, we currently assume that we are using
18003 # Microsoft Visual C++.
18004 # hardcode_libdir_flag_spec is actually meaningless, as there is
18005 # no search path for DLLs.
18006 hardcode_libdir_flag_spec_GCJ=' '
18007 allow_undefined_flag_GCJ=unsupported
18008 # Tell ltmain to make .lib files, not .a files.
18009 libext=lib
18010 # Tell ltmain to make .dll files, not .so files.
18011 shrext_cmds=".dll"
18012 # FIXME: Setting linknames here is a bad hack.
18013 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18014 # The linker will automatically build a .lib file if we build a DLL.
18015 old_archive_From_new_cmds_GCJ='true'
18016 # FIXME: Should let the user specify the lib program.
18017 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18018 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18019 enable_shared_with_static_runtimes_GCJ=yes
18022 darwin* | rhapsody*)
18023 case $host_os in
18024 rhapsody* | darwin1.[012])
18025 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18027 *) # Darwin 1.3 on
18028 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18029 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18030 else
18031 case ${MACOSX_DEPLOYMENT_TARGET} in
18032 10.[012])
18033 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18035 10.*)
18036 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18038 esac
18041 esac
18042 archive_cmds_need_lc_GCJ=no
18043 hardcode_direct_GCJ=no
18044 hardcode_automatic_GCJ=yes
18045 hardcode_shlibpath_var_GCJ=unsupported
18046 whole_archive_flag_spec_GCJ=''
18047 link_all_deplibs_GCJ=yes
18048 if test "$GCC" = yes ; then
18049 output_verbose_link_cmd='echo'
18050 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}"
18051 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18052 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}"
18053 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}"
18054 else
18055 case $cc_basename in
18056 xlc*)
18057 output_verbose_link_cmd='echo'
18058 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18059 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18060 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18061 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}'
18062 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}'
18065 ld_shlibs_GCJ=no
18067 esac
18071 dgux*)
18072 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18073 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18074 hardcode_shlibpath_var_GCJ=no
18077 freebsd1*)
18078 ld_shlibs_GCJ=no
18081 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18082 # support. Future versions do this automatically, but an explicit c++rt0.o
18083 # does not break anything, and helps significantly (at the cost of a little
18084 # extra space).
18085 freebsd2.2*)
18086 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18087 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18088 hardcode_direct_GCJ=yes
18089 hardcode_shlibpath_var_GCJ=no
18092 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18093 freebsd2*)
18094 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18095 hardcode_direct_GCJ=yes
18096 hardcode_minus_L_GCJ=yes
18097 hardcode_shlibpath_var_GCJ=no
18100 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18101 freebsd* | dragonfly*)
18102 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18103 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18104 hardcode_direct_GCJ=yes
18105 hardcode_shlibpath_var_GCJ=no
18108 hpux9*)
18109 if test "$GCC" = yes; then
18110 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'
18111 else
18112 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'
18114 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18115 hardcode_libdir_separator_GCJ=:
18116 hardcode_direct_GCJ=yes
18118 # hardcode_minus_L: Not really in the search PATH,
18119 # but as the default location of the library.
18120 hardcode_minus_L_GCJ=yes
18121 export_dynamic_flag_spec_GCJ='${wl}-E'
18124 hpux10*)
18125 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18126 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18127 else
18128 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18130 if test "$with_gnu_ld" = no; then
18131 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18132 hardcode_libdir_separator_GCJ=:
18134 hardcode_direct_GCJ=yes
18135 export_dynamic_flag_spec_GCJ='${wl}-E'
18137 # hardcode_minus_L: Not really in the search PATH,
18138 # but as the default location of the library.
18139 hardcode_minus_L_GCJ=yes
18143 hpux11*)
18144 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18145 case $host_cpu in
18146 hppa*64*)
18147 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18149 ia64*)
18150 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18153 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18155 esac
18156 else
18157 case $host_cpu in
18158 hppa*64*)
18159 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18161 ia64*)
18162 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18165 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18167 esac
18169 if test "$with_gnu_ld" = no; then
18170 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18171 hardcode_libdir_separator_GCJ=:
18173 case $host_cpu in
18174 hppa*64*|ia64*)
18175 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18176 hardcode_direct_GCJ=no
18177 hardcode_shlibpath_var_GCJ=no
18180 hardcode_direct_GCJ=yes
18181 export_dynamic_flag_spec_GCJ='${wl}-E'
18183 # hardcode_minus_L: Not really in the search PATH,
18184 # but as the default location of the library.
18185 hardcode_minus_L_GCJ=yes
18187 esac
18191 irix5* | irix6* | nonstopux*)
18192 if test "$GCC" = yes; then
18193 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'
18194 else
18195 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'
18196 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18198 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18199 hardcode_libdir_separator_GCJ=:
18200 link_all_deplibs_GCJ=yes
18203 netbsd* | netbsdelf*-gnu)
18204 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18205 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18206 else
18207 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18209 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18210 hardcode_direct_GCJ=yes
18211 hardcode_shlibpath_var_GCJ=no
18214 newsos6)
18215 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18216 hardcode_direct_GCJ=yes
18217 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18218 hardcode_libdir_separator_GCJ=:
18219 hardcode_shlibpath_var_GCJ=no
18222 openbsd*)
18223 if test -f /usr/libexec/ld.so; then
18224 hardcode_direct_GCJ=yes
18225 hardcode_shlibpath_var_GCJ=no
18226 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18227 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18228 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18229 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18230 export_dynamic_flag_spec_GCJ='${wl}-E'
18231 else
18232 case $host_os in
18233 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18234 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18235 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18238 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18239 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18241 esac
18243 else
18244 ld_shlibs_GCJ=no
18248 os2*)
18249 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18250 hardcode_minus_L_GCJ=yes
18251 allow_undefined_flag_GCJ=unsupported
18252 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'
18253 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18256 osf3*)
18257 if test "$GCC" = yes; then
18258 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18259 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'
18260 else
18261 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18262 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'
18264 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18265 hardcode_libdir_separator_GCJ=:
18268 osf4* | osf5*) # as osf3* with the addition of -msym flag
18269 if test "$GCC" = yes; then
18270 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18271 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'
18272 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18273 else
18274 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18275 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'
18276 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~
18277 $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'
18279 # Both c and cxx compiler support -rpath directly
18280 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18282 hardcode_libdir_separator_GCJ=:
18285 solaris*)
18286 no_undefined_flag_GCJ=' -z text'
18287 if test "$GCC" = yes; then
18288 wlarc='${wl}'
18289 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18290 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18291 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18292 else
18293 wlarc=''
18294 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18295 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18296 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18298 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18299 hardcode_shlibpath_var_GCJ=no
18300 case $host_os in
18301 solaris2.[0-5] | solaris2.[0-5].*) ;;
18303 # The compiler driver will combine and reorder linker options,
18304 # but understands `-z linker_flag'. GCC discards it without `$wl',
18305 # but is careful enough not to reorder.
18306 # Supported since Solaris 2.6 (maybe 2.5.1?)
18307 if test "$GCC" = yes; then
18308 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18309 else
18310 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18313 esac
18314 link_all_deplibs_GCJ=yes
18317 sunos4*)
18318 if test "x$host_vendor" = xsequent; then
18319 # Use $CC to link under sequent, because it throws in some extra .o
18320 # files that make .init and .fini sections work.
18321 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18322 else
18323 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18325 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18326 hardcode_direct_GCJ=yes
18327 hardcode_minus_L_GCJ=yes
18328 hardcode_shlibpath_var_GCJ=no
18331 sysv4)
18332 case $host_vendor in
18333 sni)
18334 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18335 hardcode_direct_GCJ=yes # is this really true???
18337 siemens)
18338 ## LD is ld it makes a PLAMLIB
18339 ## CC just makes a GrossModule.
18340 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18341 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18342 hardcode_direct_GCJ=no
18344 motorola)
18345 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18346 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18348 esac
18349 runpath_var='LD_RUN_PATH'
18350 hardcode_shlibpath_var_GCJ=no
18353 sysv4.3*)
18354 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18355 hardcode_shlibpath_var_GCJ=no
18356 export_dynamic_flag_spec_GCJ='-Bexport'
18359 sysv4*MP*)
18360 if test -d /usr/nec; then
18361 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18362 hardcode_shlibpath_var_GCJ=no
18363 runpath_var=LD_RUN_PATH
18364 hardcode_runpath_var=yes
18365 ld_shlibs_GCJ=yes
18369 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18370 no_undefined_flag_GCJ='${wl}-z,text'
18371 archive_cmds_need_lc_GCJ=no
18372 hardcode_shlibpath_var_GCJ=no
18373 runpath_var='LD_RUN_PATH'
18375 if test "$GCC" = yes; then
18376 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18377 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18378 else
18379 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18380 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18384 sysv5* | sco3.2v5* | sco5v6*)
18385 # Note: We can NOT use -z defs as we might desire, because we do not
18386 # link with -lc, and that would cause any symbols used from libc to
18387 # always be unresolved, which means just about no library would
18388 # ever link correctly. If we're not using GNU ld we use -z text
18389 # though, which does catch some bad symbols but isn't as heavy-handed
18390 # as -z defs.
18391 no_undefined_flag_GCJ='${wl}-z,text'
18392 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18393 archive_cmds_need_lc_GCJ=no
18394 hardcode_shlibpath_var_GCJ=no
18395 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18396 hardcode_libdir_separator_GCJ=':'
18397 link_all_deplibs_GCJ=yes
18398 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18399 runpath_var='LD_RUN_PATH'
18401 if test "$GCC" = yes; then
18402 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18403 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18404 else
18405 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18406 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18410 uts4*)
18411 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18412 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18413 hardcode_shlibpath_var_GCJ=no
18417 ld_shlibs_GCJ=no
18419 esac
18422 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18423 $as_echo "$ld_shlibs_GCJ" >&6; }
18424 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18427 # Do we need to explicitly link libc?
18429 case "x$archive_cmds_need_lc_GCJ" in
18430 x|xyes)
18431 # Assume -lc should be added
18432 archive_cmds_need_lc_GCJ=yes
18434 if test "$enable_shared" = yes && test "$GCC" = yes; then
18435 case $archive_cmds_GCJ in
18436 *'~'*)
18437 # FIXME: we may have to deal with multi-command sequences.
18439 '$CC '*)
18440 # Test whether the compiler implicitly links with -lc since on some
18441 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18442 # to ld, don't add -lc before -lgcc.
18443 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18444 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18445 $rm conftest*
18446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18449 (eval $ac_compile) 2>&5
18450 ac_status=$?
18451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } 2>conftest.err; then
18453 soname=conftest
18454 lib=conftest
18455 libobjs=conftest.$ac_objext
18456 deplibs=
18457 wl=$lt_prog_compiler_wl_GCJ
18458 pic_flag=$lt_prog_compiler_pic_GCJ
18459 compiler_flags=-v
18460 linker_flags=-v
18461 verstring=
18462 output_objdir=.
18463 libname=conftest
18464 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18465 allow_undefined_flag_GCJ=
18466 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18467 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18468 ac_status=$?
18469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }
18471 then
18472 archive_cmds_need_lc_GCJ=no
18473 else
18474 archive_cmds_need_lc_GCJ=yes
18476 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18477 else
18478 cat conftest.err 1>&5
18480 $rm conftest*
18481 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18482 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18484 esac
18487 esac
18489 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18490 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18491 library_names_spec=
18492 libname_spec='lib$name'
18493 soname_spec=
18494 shrext_cmds=".so"
18495 postinstall_cmds=
18496 postuninstall_cmds=
18497 finish_cmds=
18498 finish_eval=
18499 shlibpath_var=
18500 shlibpath_overrides_runpath=unknown
18501 version_type=none
18502 dynamic_linker="$host_os ld.so"
18503 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18505 need_lib_prefix=unknown
18506 hardcode_into_libs=no
18508 # when you set need_version to no, make sure it does not cause -set_version
18509 # flags to be left without arguments
18510 need_version=unknown
18512 case $host_os in
18513 aix3*)
18514 version_type=linux
18515 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18516 shlibpath_var=LIBPATH
18518 # AIX 3 has no versioning support, so we append a major version to the name.
18519 soname_spec='${libname}${release}${shared_ext}$major'
18522 aix[4-9]*)
18523 version_type=linux
18524 need_lib_prefix=no
18525 need_version=no
18526 hardcode_into_libs=yes
18527 if test "$host_cpu" = ia64; then
18528 # AIX 5 supports IA64
18529 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18530 shlibpath_var=LD_LIBRARY_PATH
18531 else
18532 # With GCC up to 2.95.x, collect2 would create an import file
18533 # for dependence libraries. The import file would start with
18534 # the line `#! .'. This would cause the generated library to
18535 # depend on `.', always an invalid library. This was fixed in
18536 # development snapshots of GCC prior to 3.0.
18537 case $host_os in
18538 aix4 | aix4.[01] | aix4.[01].*)
18539 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18540 echo ' yes '
18541 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18543 else
18544 can_build_shared=no
18547 esac
18548 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18549 # soname into executable. Probably we can add versioning support to
18550 # collect2, so additional links can be useful in future.
18551 if test "$aix_use_runtimelinking" = yes; then
18552 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18553 # instead of lib<name>.a to let people know that these are not
18554 # typical AIX shared libraries.
18555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18556 else
18557 # We preserve .a as extension for shared libraries through AIX4.2
18558 # and later when we are not doing run time linking.
18559 library_names_spec='${libname}${release}.a $libname.a'
18560 soname_spec='${libname}${release}${shared_ext}$major'
18562 shlibpath_var=LIBPATH
18566 amigaos*)
18567 library_names_spec='$libname.ixlibrary $libname.a'
18568 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18569 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'
18572 beos*)
18573 library_names_spec='${libname}${shared_ext}'
18574 dynamic_linker="$host_os ld.so"
18575 shlibpath_var=LIBRARY_PATH
18578 bsdi[45]*)
18579 version_type=linux
18580 need_version=no
18581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18582 soname_spec='${libname}${release}${shared_ext}$major'
18583 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18584 shlibpath_var=LD_LIBRARY_PATH
18585 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18586 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18587 # the default ld.so.conf also contains /usr/contrib/lib and
18588 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18589 # libtool to hard-code these into programs
18592 cygwin* | mingw* | pw32*)
18593 version_type=windows
18594 shrext_cmds=".dll"
18595 need_version=no
18596 need_lib_prefix=no
18598 case $GCC,$host_os in
18599 yes,cygwin* | yes,mingw* | yes,pw32*)
18600 library_names_spec='$libname.dll.a'
18601 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18602 postinstall_cmds='base_file=`basename \${file}`~
18603 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18604 dldir=$destdir/`dirname \$dlpath`~
18605 test -d \$dldir || mkdir -p \$dldir~
18606 $install_prog $dir/$dlname \$dldir/$dlname~
18607 chmod a+x \$dldir/$dlname'
18608 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18609 dlpath=$dir/\$dldll~
18610 $rm \$dlpath'
18611 shlibpath_overrides_runpath=yes
18613 case $host_os in
18614 cygwin*)
18615 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18616 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18617 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18619 mingw*)
18620 # MinGW DLLs use traditional 'lib' prefix
18621 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18622 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18623 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18624 # It is most probably a Windows format PATH printed by
18625 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18626 # path with ; separators, and with drive letters. We can handle the
18627 # drive letters (cygwin fileutils understands them), so leave them,
18628 # especially as we might pass files found there to a mingw objdump,
18629 # which wouldn't understand a cygwinified path. Ahh.
18630 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18631 else
18632 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18635 pw32*)
18636 # pw32 DLLs use 'pw' prefix rather than 'lib'
18637 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18639 esac
18643 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18645 esac
18646 dynamic_linker='Win32 ld.exe'
18647 # FIXME: first we should search . and the directory the executable is in
18648 shlibpath_var=PATH
18651 darwin* | rhapsody*)
18652 dynamic_linker="$host_os dyld"
18653 version_type=darwin
18654 need_lib_prefix=no
18655 need_version=no
18656 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18657 soname_spec='${libname}${release}${major}$shared_ext'
18658 shlibpath_overrides_runpath=yes
18659 shlibpath_var=DYLD_LIBRARY_PATH
18660 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18662 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18665 dgux*)
18666 version_type=linux
18667 need_lib_prefix=no
18668 need_version=no
18669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18670 soname_spec='${libname}${release}${shared_ext}$major'
18671 shlibpath_var=LD_LIBRARY_PATH
18674 freebsd1*)
18675 dynamic_linker=no
18678 freebsd* | dragonfly*)
18679 # DragonFly does not have aout. When/if they implement a new
18680 # versioning mechanism, adjust this.
18681 if test -x /usr/bin/objformat; then
18682 objformat=`/usr/bin/objformat`
18683 else
18684 case $host_os in
18685 freebsd[123]*) objformat=aout ;;
18686 *) objformat=elf ;;
18687 esac
18689 version_type=freebsd-$objformat
18690 case $version_type in
18691 freebsd-elf*)
18692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18693 need_version=no
18694 need_lib_prefix=no
18696 freebsd-*)
18697 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18698 need_version=yes
18700 esac
18701 shlibpath_var=LD_LIBRARY_PATH
18702 case $host_os in
18703 freebsd2*)
18704 shlibpath_overrides_runpath=yes
18706 freebsd3.[01]* | freebsdelf3.[01]*)
18707 shlibpath_overrides_runpath=yes
18708 hardcode_into_libs=yes
18710 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18711 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18712 shlibpath_overrides_runpath=no
18713 hardcode_into_libs=yes
18715 *) # from 4.6 on, and DragonFly
18716 shlibpath_overrides_runpath=yes
18717 hardcode_into_libs=yes
18719 esac
18722 gnu*)
18723 version_type=linux
18724 need_lib_prefix=no
18725 need_version=no
18726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18727 soname_spec='${libname}${release}${shared_ext}$major'
18728 shlibpath_var=LD_LIBRARY_PATH
18729 hardcode_into_libs=yes
18732 hpux9* | hpux10* | hpux11*)
18733 # Give a soname corresponding to the major version so that dld.sl refuses to
18734 # link against other versions.
18735 version_type=sunos
18736 need_lib_prefix=no
18737 need_version=no
18738 case $host_cpu in
18739 ia64*)
18740 shrext_cmds='.so'
18741 hardcode_into_libs=yes
18742 dynamic_linker="$host_os dld.so"
18743 shlibpath_var=LD_LIBRARY_PATH
18744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18746 soname_spec='${libname}${release}${shared_ext}$major'
18747 if test "X$HPUX_IA64_MODE" = X32; then
18748 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18749 else
18750 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18754 hppa*64*)
18755 shrext_cmds='.sl'
18756 hardcode_into_libs=yes
18757 dynamic_linker="$host_os dld.sl"
18758 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18761 soname_spec='${libname}${release}${shared_ext}$major'
18762 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18763 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18766 shrext_cmds='.sl'
18767 dynamic_linker="$host_os dld.sl"
18768 shlibpath_var=SHLIB_PATH
18769 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18771 soname_spec='${libname}${release}${shared_ext}$major'
18773 esac
18774 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18775 postinstall_cmds='chmod 555 $lib'
18778 interix[3-9]*)
18779 version_type=linux
18780 need_lib_prefix=no
18781 need_version=no
18782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18783 soname_spec='${libname}${release}${shared_ext}$major'
18784 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18785 shlibpath_var=LD_LIBRARY_PATH
18786 shlibpath_overrides_runpath=no
18787 hardcode_into_libs=yes
18790 irix5* | irix6* | nonstopux*)
18791 case $host_os in
18792 nonstopux*) version_type=nonstopux ;;
18794 if test "$lt_cv_prog_gnu_ld" = yes; then
18795 version_type=linux
18796 else
18797 version_type=irix
18798 fi ;;
18799 esac
18800 need_lib_prefix=no
18801 need_version=no
18802 soname_spec='${libname}${release}${shared_ext}$major'
18803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18804 case $host_os in
18805 irix5* | nonstopux*)
18806 libsuff= shlibsuff=
18809 case $LD in # libtool.m4 will add one of these switches to LD
18810 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18811 libsuff= shlibsuff= libmagic=32-bit;;
18812 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18813 libsuff=32 shlibsuff=N32 libmagic=N32;;
18814 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18815 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18816 *) libsuff= shlibsuff= libmagic=never-match;;
18817 esac
18819 esac
18820 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18821 shlibpath_overrides_runpath=no
18822 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18823 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18824 hardcode_into_libs=yes
18827 # No shared lib support for Linux oldld, aout, or coff.
18828 linux*oldld* | linux*aout* | linux*coff*)
18829 dynamic_linker=no
18832 # This must be Linux ELF.
18833 linux* | k*bsd*-gnu)
18834 version_type=linux
18835 need_lib_prefix=no
18836 need_version=no
18837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18838 soname_spec='${libname}${release}${shared_ext}$major'
18839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18840 shlibpath_var=LD_LIBRARY_PATH
18841 shlibpath_overrides_runpath=no
18842 # This implies no fast_install, which is unacceptable.
18843 # Some rework will be needed to allow for fast_install
18844 # before this can be enabled.
18845 hardcode_into_libs=yes
18847 # Append ld.so.conf contents to the search path
18848 if test -f /etc/ld.so.conf; then
18849 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' ' '`
18850 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18853 # We used to test for /lib/ld.so.1 and disable shared libraries on
18854 # powerpc, because MkLinux only supported shared libraries with the
18855 # GNU dynamic linker. Since this was broken with cross compilers,
18856 # most powerpc-linux boxes support dynamic linking these days and
18857 # people can always --disable-shared, the test was removed, and we
18858 # assume the GNU/Linux dynamic linker is in use.
18859 dynamic_linker='GNU/Linux ld.so'
18862 netbsdelf*-gnu)
18863 version_type=linux
18864 need_lib_prefix=no
18865 need_version=no
18866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18867 soname_spec='${libname}${release}${shared_ext}$major'
18868 shlibpath_var=LD_LIBRARY_PATH
18869 shlibpath_overrides_runpath=no
18870 hardcode_into_libs=yes
18871 dynamic_linker='NetBSD ld.elf_so'
18874 netbsd*)
18875 version_type=sunos
18876 need_lib_prefix=no
18877 need_version=no
18878 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18881 dynamic_linker='NetBSD (a.out) ld.so'
18882 else
18883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18884 soname_spec='${libname}${release}${shared_ext}$major'
18885 dynamic_linker='NetBSD ld.elf_so'
18887 shlibpath_var=LD_LIBRARY_PATH
18888 shlibpath_overrides_runpath=yes
18889 hardcode_into_libs=yes
18892 newsos6)
18893 version_type=linux
18894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18895 shlibpath_var=LD_LIBRARY_PATH
18896 shlibpath_overrides_runpath=yes
18899 nto-qnx*)
18900 version_type=linux
18901 need_lib_prefix=no
18902 need_version=no
18903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18904 soname_spec='${libname}${release}${shared_ext}$major'
18905 shlibpath_var=LD_LIBRARY_PATH
18906 shlibpath_overrides_runpath=yes
18909 openbsd*)
18910 version_type=sunos
18911 sys_lib_dlsearch_path_spec="/usr/lib"
18912 need_lib_prefix=no
18913 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18914 case $host_os in
18915 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18916 *) need_version=no ;;
18917 esac
18918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18920 shlibpath_var=LD_LIBRARY_PATH
18921 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18922 case $host_os in
18923 openbsd2.[89] | openbsd2.[89].*)
18924 shlibpath_overrides_runpath=no
18927 shlibpath_overrides_runpath=yes
18929 esac
18930 else
18931 shlibpath_overrides_runpath=yes
18935 os2*)
18936 libname_spec='$name'
18937 shrext_cmds=".dll"
18938 need_lib_prefix=no
18939 library_names_spec='$libname${shared_ext} $libname.a'
18940 dynamic_linker='OS/2 ld.exe'
18941 shlibpath_var=LIBPATH
18944 osf3* | osf4* | osf5*)
18945 version_type=osf
18946 need_lib_prefix=no
18947 need_version=no
18948 soname_spec='${libname}${release}${shared_ext}$major'
18949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18950 shlibpath_var=LD_LIBRARY_PATH
18951 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18952 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18955 rdos*)
18956 dynamic_linker=no
18959 solaris*)
18960 version_type=linux
18961 need_lib_prefix=no
18962 need_version=no
18963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18964 soname_spec='${libname}${release}${shared_ext}$major'
18965 shlibpath_var=LD_LIBRARY_PATH
18966 shlibpath_overrides_runpath=yes
18967 hardcode_into_libs=yes
18968 # ldd complains unless libraries are executable
18969 postinstall_cmds='chmod +x $lib'
18972 sunos4*)
18973 version_type=sunos
18974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18975 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18976 shlibpath_var=LD_LIBRARY_PATH
18977 shlibpath_overrides_runpath=yes
18978 if test "$with_gnu_ld" = yes; then
18979 need_lib_prefix=no
18981 need_version=yes
18984 sysv4 | sysv4.3*)
18985 version_type=linux
18986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18987 soname_spec='${libname}${release}${shared_ext}$major'
18988 shlibpath_var=LD_LIBRARY_PATH
18989 case $host_vendor in
18990 sni)
18991 shlibpath_overrides_runpath=no
18992 need_lib_prefix=no
18993 export_dynamic_flag_spec='${wl}-Blargedynsym'
18994 runpath_var=LD_RUN_PATH
18996 siemens)
18997 need_lib_prefix=no
18999 motorola)
19000 need_lib_prefix=no
19001 need_version=no
19002 shlibpath_overrides_runpath=no
19003 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19005 esac
19008 sysv4*MP*)
19009 if test -d /usr/nec ;then
19010 version_type=linux
19011 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19012 soname_spec='$libname${shared_ext}.$major'
19013 shlibpath_var=LD_LIBRARY_PATH
19017 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19018 version_type=freebsd-elf
19019 need_lib_prefix=no
19020 need_version=no
19021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19022 soname_spec='${libname}${release}${shared_ext}$major'
19023 shlibpath_var=LD_LIBRARY_PATH
19024 hardcode_into_libs=yes
19025 if test "$with_gnu_ld" = yes; then
19026 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19027 shlibpath_overrides_runpath=no
19028 else
19029 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19030 shlibpath_overrides_runpath=yes
19031 case $host_os in
19032 sco3.2v5*)
19033 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19035 esac
19037 sys_lib_dlsearch_path_spec='/usr/lib'
19040 uts4*)
19041 version_type=linux
19042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19043 soname_spec='${libname}${release}${shared_ext}$major'
19044 shlibpath_var=LD_LIBRARY_PATH
19048 dynamic_linker=no
19050 esac
19051 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19052 $as_echo "$dynamic_linker" >&6; }
19053 test "$dynamic_linker" = no && can_build_shared=no
19055 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19056 $as_echo_n "(cached) " >&6
19057 else
19058 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19061 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19062 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19063 $as_echo_n "(cached) " >&6
19064 else
19065 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19068 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19070 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19071 if test "$GCC" = yes; then
19072 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19075 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19076 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19077 hardcode_action_GCJ=
19078 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19079 test -n "$runpath_var_GCJ" || \
19080 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19082 # We can hardcode non-existant directories.
19083 if test "$hardcode_direct_GCJ" != no &&
19084 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19085 # have to relink, otherwise we might link with an installed library
19086 # when we should be linking with a yet-to-be-installed one
19087 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19088 test "$hardcode_minus_L_GCJ" != no; then
19089 # Linking always hardcodes the temporary library directory.
19090 hardcode_action_GCJ=relink
19091 else
19092 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19093 hardcode_action_GCJ=immediate
19095 else
19096 # We cannot hardcode anything, or else we can only hardcode existing
19097 # directories.
19098 hardcode_action_GCJ=unsupported
19100 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19101 $as_echo "$hardcode_action_GCJ" >&6; }
19103 if test "$hardcode_action_GCJ" = relink; then
19104 # Fast installation is not supported
19105 enable_fast_install=no
19106 elif test "$shlibpath_overrides_runpath" = yes ||
19107 test "$enable_shared" = no; then
19108 # Fast installation is not necessary
19109 enable_fast_install=needless
19113 # The else clause should only fire when bootstrapping the
19114 # libtool distribution, otherwise you forgot to ship ltmain.sh
19115 # with your package, and you will get complaints that there are
19116 # no rules to generate ltmain.sh.
19117 if test -f "$ltmain"; then
19118 # See if we are running on zsh, and set the options which allow our commands through
19119 # without removal of \ escapes.
19120 if test -n "${ZSH_VERSION+set}" ; then
19121 setopt NO_GLOB_SUBST
19123 # Now quote all the things that may contain metacharacters while being
19124 # careful not to overquote the AC_SUBSTed values. We take copies of the
19125 # variables and quote the copies for generation of the libtool script.
19126 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19127 SED SHELL STRIP \
19128 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19129 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19130 deplibs_check_method reload_flag reload_cmds need_locks \
19131 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19132 lt_cv_sys_global_symbol_to_c_name_address \
19133 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19134 old_postinstall_cmds old_postuninstall_cmds \
19135 compiler_GCJ \
19136 CC_GCJ \
19137 LD_GCJ \
19138 lt_prog_compiler_wl_GCJ \
19139 lt_prog_compiler_pic_GCJ \
19140 lt_prog_compiler_static_GCJ \
19141 lt_prog_compiler_no_builtin_flag_GCJ \
19142 export_dynamic_flag_spec_GCJ \
19143 thread_safe_flag_spec_GCJ \
19144 whole_archive_flag_spec_GCJ \
19145 enable_shared_with_static_runtimes_GCJ \
19146 old_archive_cmds_GCJ \
19147 old_archive_from_new_cmds_GCJ \
19148 predep_objects_GCJ \
19149 postdep_objects_GCJ \
19150 predeps_GCJ \
19151 postdeps_GCJ \
19152 compiler_lib_search_path_GCJ \
19153 compiler_lib_search_dirs_GCJ \
19154 archive_cmds_GCJ \
19155 archive_expsym_cmds_GCJ \
19156 postinstall_cmds_GCJ \
19157 postuninstall_cmds_GCJ \
19158 old_archive_from_expsyms_cmds_GCJ \
19159 allow_undefined_flag_GCJ \
19160 no_undefined_flag_GCJ \
19161 export_symbols_cmds_GCJ \
19162 hardcode_libdir_flag_spec_GCJ \
19163 hardcode_libdir_flag_spec_ld_GCJ \
19164 hardcode_libdir_separator_GCJ \
19165 hardcode_automatic_GCJ \
19166 module_cmds_GCJ \
19167 module_expsym_cmds_GCJ \
19168 lt_cv_prog_compiler_c_o_GCJ \
19169 fix_srcfile_path_GCJ \
19170 exclude_expsyms_GCJ \
19171 include_expsyms_GCJ; do
19173 case $var in
19174 old_archive_cmds_GCJ | \
19175 old_archive_from_new_cmds_GCJ | \
19176 archive_cmds_GCJ | \
19177 archive_expsym_cmds_GCJ | \
19178 module_cmds_GCJ | \
19179 module_expsym_cmds_GCJ | \
19180 old_archive_from_expsyms_cmds_GCJ | \
19181 export_symbols_cmds_GCJ | \
19182 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19183 postinstall_cmds | postuninstall_cmds | \
19184 old_postinstall_cmds | old_postuninstall_cmds | \
19185 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19186 # Double-quote double-evaled strings.
19187 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19190 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19192 esac
19193 done
19195 case $lt_echo in
19196 *'\$0 --fallback-echo"')
19197 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19199 esac
19201 cfgfile="$ofile"
19203 cat <<__EOF__ >> "$cfgfile"
19204 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19206 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19208 # Shell to use when invoking shell scripts.
19209 SHELL=$lt_SHELL
19211 # Whether or not to build shared libraries.
19212 build_libtool_libs=$enable_shared
19214 # Whether or not to build static libraries.
19215 build_old_libs=$enable_static
19217 # Whether or not to add -lc for building shared libraries.
19218 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19220 # Whether or not to disallow shared libs when runtime libs are static
19221 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19223 # Whether or not to optimize for fast installation.
19224 fast_install=$enable_fast_install
19226 # The host system.
19227 host_alias=$host_alias
19228 host=$host
19229 host_os=$host_os
19231 # The build system.
19232 build_alias=$build_alias
19233 build=$build
19234 build_os=$build_os
19236 # An echo program that does not interpret backslashes.
19237 echo=$lt_echo
19239 # The archiver.
19240 AR=$lt_AR
19241 AR_FLAGS=$lt_AR_FLAGS
19243 # A C compiler.
19244 LTCC=$lt_LTCC
19246 # LTCC compiler flags.
19247 LTCFLAGS=$lt_LTCFLAGS
19249 # A language-specific compiler.
19250 CC=$lt_compiler_GCJ
19252 # Is the compiler the GNU C compiler?
19253 with_gcc=$GCC_GCJ
19255 # An ERE matcher.
19256 EGREP=$lt_EGREP
19258 # The linker used to build libraries.
19259 LD=$lt_LD_GCJ
19261 # Whether we need hard or soft links.
19262 LN_S=$lt_LN_S
19264 # A BSD-compatible nm program.
19265 NM=$lt_NM
19267 # A symbol stripping program
19268 STRIP=$lt_STRIP
19270 # Used to examine libraries when file_magic_cmd begins "file"
19271 MAGIC_CMD=$MAGIC_CMD
19273 # Used on cygwin: DLL creation program.
19274 DLLTOOL="$DLLTOOL"
19276 # Used on cygwin: object dumper.
19277 OBJDUMP="$OBJDUMP"
19279 # Used on cygwin: assembler.
19280 AS="$AS"
19282 # The name of the directory that contains temporary libtool files.
19283 objdir=$objdir
19285 # How to create reloadable object files.
19286 reload_flag=$lt_reload_flag
19287 reload_cmds=$lt_reload_cmds
19289 # How to pass a linker flag through the compiler.
19290 wl=$lt_lt_prog_compiler_wl_GCJ
19292 # Object file suffix (normally "o").
19293 objext="$ac_objext"
19295 # Old archive suffix (normally "a").
19296 libext="$libext"
19298 # Shared library suffix (normally ".so").
19299 shrext_cmds='$shrext_cmds'
19301 # Executable file suffix (normally "").
19302 exeext="$exeext"
19304 # Additional compiler flags for building library objects.
19305 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19306 pic_mode=$pic_mode
19308 # What is the maximum length of a command?
19309 max_cmd_len=$lt_cv_sys_max_cmd_len
19311 # Does compiler simultaneously support -c and -o options?
19312 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19314 # Must we lock files when doing compilation?
19315 need_locks=$lt_need_locks
19317 # Do we need the lib prefix for modules?
19318 need_lib_prefix=$need_lib_prefix
19320 # Do we need a version for libraries?
19321 need_version=$need_version
19323 # Whether dlopen is supported.
19324 dlopen_support=$enable_dlopen
19326 # Whether dlopen of programs is supported.
19327 dlopen_self=$enable_dlopen_self
19329 # Whether dlopen of statically linked programs is supported.
19330 dlopen_self_static=$enable_dlopen_self_static
19332 # Compiler flag to prevent dynamic linking.
19333 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19335 # Compiler flag to turn off builtin functions.
19336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19338 # Compiler flag to allow reflexive dlopens.
19339 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19341 # Compiler flag to generate shared objects directly from archives.
19342 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19344 # Compiler flag to generate thread-safe objects.
19345 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19347 # Library versioning type.
19348 version_type=$version_type
19350 # Format of library name prefix.
19351 libname_spec=$lt_libname_spec
19353 # List of archive names. First name is the real one, the rest are links.
19354 # The last name is the one that the linker finds with -lNAME.
19355 library_names_spec=$lt_library_names_spec
19357 # The coded name of the library, if different from the real name.
19358 soname_spec=$lt_soname_spec
19360 # Commands used to build and install an old-style archive.
19361 RANLIB=$lt_RANLIB
19362 old_archive_cmds=$lt_old_archive_cmds_GCJ
19363 old_postinstall_cmds=$lt_old_postinstall_cmds
19364 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19366 # Create an old-style archive from a shared archive.
19367 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19369 # Create a temporary old-style archive to link instead of a shared archive.
19370 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19372 # Commands used to build and install a shared archive.
19373 archive_cmds=$lt_archive_cmds_GCJ
19374 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19375 postinstall_cmds=$lt_postinstall_cmds
19376 postuninstall_cmds=$lt_postuninstall_cmds
19378 # Commands used to build a loadable module (assumed same as above if empty)
19379 module_cmds=$lt_module_cmds_GCJ
19380 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19382 # Commands to strip libraries.
19383 old_striplib=$lt_old_striplib
19384 striplib=$lt_striplib
19386 # Dependencies to place before the objects being linked to create a
19387 # shared library.
19388 predep_objects=$lt_predep_objects_GCJ
19390 # Dependencies to place after the objects being linked to create a
19391 # shared library.
19392 postdep_objects=$lt_postdep_objects_GCJ
19394 # Dependencies to place before the objects being linked to create a
19395 # shared library.
19396 predeps=$lt_predeps_GCJ
19398 # Dependencies to place after the objects being linked to create a
19399 # shared library.
19400 postdeps=$lt_postdeps_GCJ
19402 # The directories searched by this compiler when creating a shared
19403 # library
19404 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19406 # The library search path used internally by the compiler when linking
19407 # a shared library.
19408 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19410 # Method to check whether dependent libraries are shared objects.
19411 deplibs_check_method=$lt_deplibs_check_method
19413 # Command to use when deplibs_check_method == file_magic.
19414 file_magic_cmd=$lt_file_magic_cmd
19416 # Flag that allows shared libraries with undefined symbols to be built.
19417 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19419 # Flag that forces no undefined symbols.
19420 no_undefined_flag=$lt_no_undefined_flag_GCJ
19422 # Commands used to finish a libtool library installation in a directory.
19423 finish_cmds=$lt_finish_cmds
19425 # Same as above, but a single script fragment to be evaled but not shown.
19426 finish_eval=$lt_finish_eval
19428 # Take the output of nm and produce a listing of raw symbols and C names.
19429 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19431 # Transform the output of nm in a proper C declaration
19432 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19434 # Transform the output of nm in a C name address pair
19435 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19437 # This is the shared library runtime path variable.
19438 runpath_var=$runpath_var
19440 # This is the shared library path variable.
19441 shlibpath_var=$shlibpath_var
19443 # Is shlibpath searched before the hard-coded library search path?
19444 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19446 # How to hardcode a shared library path into an executable.
19447 hardcode_action=$hardcode_action_GCJ
19449 # Whether we should hardcode library paths into libraries.
19450 hardcode_into_libs=$hardcode_into_libs
19452 # Flag to hardcode \$libdir into a binary during linking.
19453 # This must work even if \$libdir does not exist.
19454 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19456 # If ld is used when linking, flag to hardcode \$libdir into
19457 # a binary during linking. This must work even if \$libdir does
19458 # not exist.
19459 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19461 # Whether we need a single -rpath flag with a separated argument.
19462 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19464 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19465 # resulting binary.
19466 hardcode_direct=$hardcode_direct_GCJ
19468 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19469 # resulting binary.
19470 hardcode_minus_L=$hardcode_minus_L_GCJ
19472 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19473 # the resulting binary.
19474 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19476 # Set to yes if building a shared library automatically hardcodes DIR into the library
19477 # and all subsequent libraries and executables linked against it.
19478 hardcode_automatic=$hardcode_automatic_GCJ
19480 # Variables whose values should be saved in libtool wrapper scripts and
19481 # restored at relink time.
19482 variables_saved_for_relink="$variables_saved_for_relink"
19484 # Whether libtool must link a program against all its dependency libraries.
19485 link_all_deplibs=$link_all_deplibs_GCJ
19487 # Compile-time system search path for libraries
19488 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19490 # Run-time system search path for libraries
19491 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19493 # Fix the shell variable \$srcfile for the compiler.
19494 fix_srcfile_path=$lt_fix_srcfile_path
19496 # Set to yes if exported symbols are required.
19497 always_export_symbols=$always_export_symbols_GCJ
19499 # The commands to list exported symbols.
19500 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19502 # The commands to extract the exported symbol list from a shared archive.
19503 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19505 # Symbols that should not be listed in the preloaded symbols.
19506 exclude_expsyms=$lt_exclude_expsyms_GCJ
19508 # Symbols that must always be exported.
19509 include_expsyms=$lt_include_expsyms_GCJ
19511 # ### END LIBTOOL TAG CONFIG: $tagname
19513 __EOF__
19516 else
19517 # If there is no Makefile yet, we rely on a make rule to execute
19518 # `config.status --recheck' to rerun these tests and create the
19519 # libtool script then.
19520 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19521 if test -f "$ltmain_in"; then
19522 test -f Makefile && make "$ltmain"
19527 ac_ext=c
19528 ac_cpp='$CPP $CPPFLAGS'
19529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19533 CC="$lt_save_CC"
19535 else
19536 tagname=""
19543 # Source file extension for RC test sources.
19544 ac_ext=rc
19546 # Object file extension for compiled RC test sources.
19547 objext=o
19548 objext_RC=$objext
19550 # Code to be used in simple compile tests
19551 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19553 # Code to be used in simple link tests
19554 lt_simple_link_test_code="$lt_simple_compile_test_code"
19556 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19558 # If no C compiler was specified, use CC.
19559 LTCC=${LTCC-"$CC"}
19561 # If no C compiler flags were specified, use CFLAGS.
19562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19564 # Allow CC to be a program name with arguments.
19565 compiler=$CC
19568 # save warnings/boilerplate of simple test code
19569 ac_outfile=conftest.$ac_objext
19570 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19571 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19572 _lt_compiler_boilerplate=`cat conftest.err`
19573 $rm conftest*
19575 ac_outfile=conftest.$ac_objext
19576 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19577 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19578 _lt_linker_boilerplate=`cat conftest.err`
19579 $rm -r conftest*
19582 # Allow CC to be a program name with arguments.
19583 lt_save_CC="$CC"
19584 CC=${RC-"windres"}
19585 compiler=$CC
19586 compiler_RC=$CC
19587 for cc_temp in $compiler""; do
19588 case $cc_temp in
19589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19591 \-*) ;;
19592 *) break;;
19593 esac
19594 done
19595 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19597 lt_cv_prog_compiler_c_o_RC=yes
19599 # The else clause should only fire when bootstrapping the
19600 # libtool distribution, otherwise you forgot to ship ltmain.sh
19601 # with your package, and you will get complaints that there are
19602 # no rules to generate ltmain.sh.
19603 if test -f "$ltmain"; then
19604 # See if we are running on zsh, and set the options which allow our commands through
19605 # without removal of \ escapes.
19606 if test -n "${ZSH_VERSION+set}" ; then
19607 setopt NO_GLOB_SUBST
19609 # Now quote all the things that may contain metacharacters while being
19610 # careful not to overquote the AC_SUBSTed values. We take copies of the
19611 # variables and quote the copies for generation of the libtool script.
19612 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19613 SED SHELL STRIP \
19614 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19615 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19616 deplibs_check_method reload_flag reload_cmds need_locks \
19617 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19618 lt_cv_sys_global_symbol_to_c_name_address \
19619 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19620 old_postinstall_cmds old_postuninstall_cmds \
19621 compiler_RC \
19622 CC_RC \
19623 LD_RC \
19624 lt_prog_compiler_wl_RC \
19625 lt_prog_compiler_pic_RC \
19626 lt_prog_compiler_static_RC \
19627 lt_prog_compiler_no_builtin_flag_RC \
19628 export_dynamic_flag_spec_RC \
19629 thread_safe_flag_spec_RC \
19630 whole_archive_flag_spec_RC \
19631 enable_shared_with_static_runtimes_RC \
19632 old_archive_cmds_RC \
19633 old_archive_from_new_cmds_RC \
19634 predep_objects_RC \
19635 postdep_objects_RC \
19636 predeps_RC \
19637 postdeps_RC \
19638 compiler_lib_search_path_RC \
19639 compiler_lib_search_dirs_RC \
19640 archive_cmds_RC \
19641 archive_expsym_cmds_RC \
19642 postinstall_cmds_RC \
19643 postuninstall_cmds_RC \
19644 old_archive_from_expsyms_cmds_RC \
19645 allow_undefined_flag_RC \
19646 no_undefined_flag_RC \
19647 export_symbols_cmds_RC \
19648 hardcode_libdir_flag_spec_RC \
19649 hardcode_libdir_flag_spec_ld_RC \
19650 hardcode_libdir_separator_RC \
19651 hardcode_automatic_RC \
19652 module_cmds_RC \
19653 module_expsym_cmds_RC \
19654 lt_cv_prog_compiler_c_o_RC \
19655 fix_srcfile_path_RC \
19656 exclude_expsyms_RC \
19657 include_expsyms_RC; do
19659 case $var in
19660 old_archive_cmds_RC | \
19661 old_archive_from_new_cmds_RC | \
19662 archive_cmds_RC | \
19663 archive_expsym_cmds_RC | \
19664 module_cmds_RC | \
19665 module_expsym_cmds_RC | \
19666 old_archive_from_expsyms_cmds_RC | \
19667 export_symbols_cmds_RC | \
19668 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19669 postinstall_cmds | postuninstall_cmds | \
19670 old_postinstall_cmds | old_postuninstall_cmds | \
19671 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19672 # Double-quote double-evaled strings.
19673 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19676 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19678 esac
19679 done
19681 case $lt_echo in
19682 *'\$0 --fallback-echo"')
19683 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19685 esac
19687 cfgfile="$ofile"
19689 cat <<__EOF__ >> "$cfgfile"
19690 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19692 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19694 # Shell to use when invoking shell scripts.
19695 SHELL=$lt_SHELL
19697 # Whether or not to build shared libraries.
19698 build_libtool_libs=$enable_shared
19700 # Whether or not to build static libraries.
19701 build_old_libs=$enable_static
19703 # Whether or not to add -lc for building shared libraries.
19704 build_libtool_need_lc=$archive_cmds_need_lc_RC
19706 # Whether or not to disallow shared libs when runtime libs are static
19707 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19709 # Whether or not to optimize for fast installation.
19710 fast_install=$enable_fast_install
19712 # The host system.
19713 host_alias=$host_alias
19714 host=$host
19715 host_os=$host_os
19717 # The build system.
19718 build_alias=$build_alias
19719 build=$build
19720 build_os=$build_os
19722 # An echo program that does not interpret backslashes.
19723 echo=$lt_echo
19725 # The archiver.
19726 AR=$lt_AR
19727 AR_FLAGS=$lt_AR_FLAGS
19729 # A C compiler.
19730 LTCC=$lt_LTCC
19732 # LTCC compiler flags.
19733 LTCFLAGS=$lt_LTCFLAGS
19735 # A language-specific compiler.
19736 CC=$lt_compiler_RC
19738 # Is the compiler the GNU C compiler?
19739 with_gcc=$GCC_RC
19741 # An ERE matcher.
19742 EGREP=$lt_EGREP
19744 # The linker used to build libraries.
19745 LD=$lt_LD_RC
19747 # Whether we need hard or soft links.
19748 LN_S=$lt_LN_S
19750 # A BSD-compatible nm program.
19751 NM=$lt_NM
19753 # A symbol stripping program
19754 STRIP=$lt_STRIP
19756 # Used to examine libraries when file_magic_cmd begins "file"
19757 MAGIC_CMD=$MAGIC_CMD
19759 # Used on cygwin: DLL creation program.
19760 DLLTOOL="$DLLTOOL"
19762 # Used on cygwin: object dumper.
19763 OBJDUMP="$OBJDUMP"
19765 # Used on cygwin: assembler.
19766 AS="$AS"
19768 # The name of the directory that contains temporary libtool files.
19769 objdir=$objdir
19771 # How to create reloadable object files.
19772 reload_flag=$lt_reload_flag
19773 reload_cmds=$lt_reload_cmds
19775 # How to pass a linker flag through the compiler.
19776 wl=$lt_lt_prog_compiler_wl_RC
19778 # Object file suffix (normally "o").
19779 objext="$ac_objext"
19781 # Old archive suffix (normally "a").
19782 libext="$libext"
19784 # Shared library suffix (normally ".so").
19785 shrext_cmds='$shrext_cmds'
19787 # Executable file suffix (normally "").
19788 exeext="$exeext"
19790 # Additional compiler flags for building library objects.
19791 pic_flag=$lt_lt_prog_compiler_pic_RC
19792 pic_mode=$pic_mode
19794 # What is the maximum length of a command?
19795 max_cmd_len=$lt_cv_sys_max_cmd_len
19797 # Does compiler simultaneously support -c and -o options?
19798 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19800 # Must we lock files when doing compilation?
19801 need_locks=$lt_need_locks
19803 # Do we need the lib prefix for modules?
19804 need_lib_prefix=$need_lib_prefix
19806 # Do we need a version for libraries?
19807 need_version=$need_version
19809 # Whether dlopen is supported.
19810 dlopen_support=$enable_dlopen
19812 # Whether dlopen of programs is supported.
19813 dlopen_self=$enable_dlopen_self
19815 # Whether dlopen of statically linked programs is supported.
19816 dlopen_self_static=$enable_dlopen_self_static
19818 # Compiler flag to prevent dynamic linking.
19819 link_static_flag=$lt_lt_prog_compiler_static_RC
19821 # Compiler flag to turn off builtin functions.
19822 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19824 # Compiler flag to allow reflexive dlopens.
19825 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19827 # Compiler flag to generate shared objects directly from archives.
19828 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19830 # Compiler flag to generate thread-safe objects.
19831 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19833 # Library versioning type.
19834 version_type=$version_type
19836 # Format of library name prefix.
19837 libname_spec=$lt_libname_spec
19839 # List of archive names. First name is the real one, the rest are links.
19840 # The last name is the one that the linker finds with -lNAME.
19841 library_names_spec=$lt_library_names_spec
19843 # The coded name of the library, if different from the real name.
19844 soname_spec=$lt_soname_spec
19846 # Commands used to build and install an old-style archive.
19847 RANLIB=$lt_RANLIB
19848 old_archive_cmds=$lt_old_archive_cmds_RC
19849 old_postinstall_cmds=$lt_old_postinstall_cmds
19850 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19852 # Create an old-style archive from a shared archive.
19853 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19855 # Create a temporary old-style archive to link instead of a shared archive.
19856 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19858 # Commands used to build and install a shared archive.
19859 archive_cmds=$lt_archive_cmds_RC
19860 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19861 postinstall_cmds=$lt_postinstall_cmds
19862 postuninstall_cmds=$lt_postuninstall_cmds
19864 # Commands used to build a loadable module (assumed same as above if empty)
19865 module_cmds=$lt_module_cmds_RC
19866 module_expsym_cmds=$lt_module_expsym_cmds_RC
19868 # Commands to strip libraries.
19869 old_striplib=$lt_old_striplib
19870 striplib=$lt_striplib
19872 # Dependencies to place before the objects being linked to create a
19873 # shared library.
19874 predep_objects=$lt_predep_objects_RC
19876 # Dependencies to place after the objects being linked to create a
19877 # shared library.
19878 postdep_objects=$lt_postdep_objects_RC
19880 # Dependencies to place before the objects being linked to create a
19881 # shared library.
19882 predeps=$lt_predeps_RC
19884 # Dependencies to place after the objects being linked to create a
19885 # shared library.
19886 postdeps=$lt_postdeps_RC
19888 # The directories searched by this compiler when creating a shared
19889 # library
19890 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19892 # The library search path used internally by the compiler when linking
19893 # a shared library.
19894 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19896 # Method to check whether dependent libraries are shared objects.
19897 deplibs_check_method=$lt_deplibs_check_method
19899 # Command to use when deplibs_check_method == file_magic.
19900 file_magic_cmd=$lt_file_magic_cmd
19902 # Flag that allows shared libraries with undefined symbols to be built.
19903 allow_undefined_flag=$lt_allow_undefined_flag_RC
19905 # Flag that forces no undefined symbols.
19906 no_undefined_flag=$lt_no_undefined_flag_RC
19908 # Commands used to finish a libtool library installation in a directory.
19909 finish_cmds=$lt_finish_cmds
19911 # Same as above, but a single script fragment to be evaled but not shown.
19912 finish_eval=$lt_finish_eval
19914 # Take the output of nm and produce a listing of raw symbols and C names.
19915 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19917 # Transform the output of nm in a proper C declaration
19918 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19920 # Transform the output of nm in a C name address pair
19921 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19923 # This is the shared library runtime path variable.
19924 runpath_var=$runpath_var
19926 # This is the shared library path variable.
19927 shlibpath_var=$shlibpath_var
19929 # Is shlibpath searched before the hard-coded library search path?
19930 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19932 # How to hardcode a shared library path into an executable.
19933 hardcode_action=$hardcode_action_RC
19935 # Whether we should hardcode library paths into libraries.
19936 hardcode_into_libs=$hardcode_into_libs
19938 # Flag to hardcode \$libdir into a binary during linking.
19939 # This must work even if \$libdir does not exist.
19940 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19942 # If ld is used when linking, flag to hardcode \$libdir into
19943 # a binary during linking. This must work even if \$libdir does
19944 # not exist.
19945 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19947 # Whether we need a single -rpath flag with a separated argument.
19948 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19950 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19951 # resulting binary.
19952 hardcode_direct=$hardcode_direct_RC
19954 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19955 # resulting binary.
19956 hardcode_minus_L=$hardcode_minus_L_RC
19958 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19959 # the resulting binary.
19960 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19962 # Set to yes if building a shared library automatically hardcodes DIR into the library
19963 # and all subsequent libraries and executables linked against it.
19964 hardcode_automatic=$hardcode_automatic_RC
19966 # Variables whose values should be saved in libtool wrapper scripts and
19967 # restored at relink time.
19968 variables_saved_for_relink="$variables_saved_for_relink"
19970 # Whether libtool must link a program against all its dependency libraries.
19971 link_all_deplibs=$link_all_deplibs_RC
19973 # Compile-time system search path for libraries
19974 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19976 # Run-time system search path for libraries
19977 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19979 # Fix the shell variable \$srcfile for the compiler.
19980 fix_srcfile_path=$lt_fix_srcfile_path
19982 # Set to yes if exported symbols are required.
19983 always_export_symbols=$always_export_symbols_RC
19985 # The commands to list exported symbols.
19986 export_symbols_cmds=$lt_export_symbols_cmds_RC
19988 # The commands to extract the exported symbol list from a shared archive.
19989 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19991 # Symbols that should not be listed in the preloaded symbols.
19992 exclude_expsyms=$lt_exclude_expsyms_RC
19994 # Symbols that must always be exported.
19995 include_expsyms=$lt_include_expsyms_RC
19997 # ### END LIBTOOL TAG CONFIG: $tagname
19999 __EOF__
20002 else
20003 # If there is no Makefile yet, we rely on a make rule to execute
20004 # `config.status --recheck' to rerun these tests and create the
20005 # libtool script then.
20006 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20007 if test -f "$ltmain_in"; then
20008 test -f Makefile && make "$ltmain"
20013 ac_ext=c
20014 ac_cpp='$CPP $CPPFLAGS'
20015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20019 CC="$lt_save_CC"
20024 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20025 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20026 { (exit 1); exit 1; }; }
20028 esac
20030 # Append the new tag name to the list of available tags.
20031 if test -n "$tagname" ; then
20032 available_tags="$available_tags $tagname"
20035 done
20036 IFS="$lt_save_ifs"
20038 # Now substitute the updated list of available tags.
20039 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20040 mv "${ofile}T" "$ofile"
20041 chmod +x "$ofile"
20042 else
20043 rm -f "${ofile}T"
20044 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20045 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20046 { (exit 1); exit 1; }; }
20052 # This can be used to rebuild libtool when needed
20053 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20055 # Always use our own libtool.
20056 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20058 # Prevent multiple expansion
20081 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20082 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20083 if test "${ac_cv_c_const+set}" = set; then
20084 $as_echo_n "(cached) " >&6
20085 else
20086 cat >conftest.$ac_ext <<_ACEOF
20087 /* confdefs.h. */
20088 _ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h. */
20094 main ()
20096 /* FIXME: Include the comments suggested by Paul. */
20097 #ifndef __cplusplus
20098 /* Ultrix mips cc rejects this. */
20099 typedef int charset[2];
20100 const charset cs;
20101 /* SunOS 4.1.1 cc rejects this. */
20102 char const *const *pcpcc;
20103 char **ppc;
20104 /* NEC SVR4.0.2 mips cc rejects this. */
20105 struct point {int x, y;};
20106 static struct point const zero = {0,0};
20107 /* AIX XL C 1.02.0.0 rejects this.
20108 It does not let you subtract one const X* pointer from another in
20109 an arm of an if-expression whose if-part is not a constant
20110 expression */
20111 const char *g = "string";
20112 pcpcc = &g + (g ? g-g : 0);
20113 /* HPUX 7.0 cc rejects these. */
20114 ++pcpcc;
20115 ppc = (char**) pcpcc;
20116 pcpcc = (char const *const *) ppc;
20117 { /* SCO 3.2v4 cc rejects this. */
20118 char *t;
20119 char const *s = 0 ? (char *) 0 : (char const *) 0;
20121 *t++ = 0;
20122 if (s) return 0;
20124 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20125 int x[] = {25, 17};
20126 const int *foo = &x[0];
20127 ++foo;
20129 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20130 typedef const int *iptr;
20131 iptr p = 0;
20132 ++p;
20134 { /* AIX XL C 1.02.0.0 rejects this saying
20135 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20136 struct s { int j; const int *ap[3]; };
20137 struct s *b; b->j = 5;
20139 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20140 const int foo = 10;
20141 if (!foo) return 0;
20143 return !cs[0] && !zero.x;
20144 #endif
20147 return 0;
20149 _ACEOF
20150 rm -f conftest.$ac_objext
20151 if { (ac_try="$ac_compile"
20152 case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20155 esac
20156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20157 $as_echo "$ac_try_echo") >&5
20158 (eval "$ac_compile") 2>conftest.er1
20159 ac_status=$?
20160 grep -v '^ *+' conftest.er1 >conftest.err
20161 rm -f conftest.er1
20162 cat conftest.err >&5
20163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } && {
20165 test -z "$ac_c_werror_flag" ||
20166 test ! -s conftest.err
20167 } && test -s conftest.$ac_objext; then
20168 ac_cv_c_const=yes
20169 else
20170 $as_echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20173 ac_cv_c_const=no
20176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20178 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20179 $as_echo "$ac_cv_c_const" >&6; }
20180 if test $ac_cv_c_const = no; then
20182 cat >>confdefs.h <<\_ACEOF
20183 #define const /**/
20184 _ACEOF
20188 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
20189 $as_echo_n "checking for size_t... " >&6; }
20190 if test "${ac_cv_type_size_t+set}" = set; then
20191 $as_echo_n "(cached) " >&6
20192 else
20193 ac_cv_type_size_t=no
20194 cat >conftest.$ac_ext <<_ACEOF
20195 /* confdefs.h. */
20196 _ACEOF
20197 cat confdefs.h >>conftest.$ac_ext
20198 cat >>conftest.$ac_ext <<_ACEOF
20199 /* end confdefs.h. */
20200 $ac_includes_default
20202 main ()
20204 if (sizeof (size_t))
20205 return 0;
20207 return 0;
20209 _ACEOF
20210 rm -f conftest.$ac_objext
20211 if { (ac_try="$ac_compile"
20212 case "(($ac_try" in
20213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214 *) ac_try_echo=$ac_try;;
20215 esac
20216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20217 $as_echo "$ac_try_echo") >&5
20218 (eval "$ac_compile") 2>conftest.er1
20219 ac_status=$?
20220 grep -v '^ *+' conftest.er1 >conftest.err
20221 rm -f conftest.er1
20222 cat conftest.err >&5
20223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } && {
20225 test -z "$ac_c_werror_flag" ||
20226 test ! -s conftest.err
20227 } && test -s conftest.$ac_objext; then
20228 cat >conftest.$ac_ext <<_ACEOF
20229 /* confdefs.h. */
20230 _ACEOF
20231 cat confdefs.h >>conftest.$ac_ext
20232 cat >>conftest.$ac_ext <<_ACEOF
20233 /* end confdefs.h. */
20234 $ac_includes_default
20236 main ()
20238 if (sizeof ((size_t)))
20239 return 0;
20241 return 0;
20243 _ACEOF
20244 rm -f conftest.$ac_objext
20245 if { (ac_try="$ac_compile"
20246 case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20249 esac
20250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20251 $as_echo "$ac_try_echo") >&5
20252 (eval "$ac_compile") 2>conftest.er1
20253 ac_status=$?
20254 grep -v '^ *+' conftest.er1 >conftest.err
20255 rm -f conftest.er1
20256 cat conftest.err >&5
20257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); } && {
20259 test -z "$ac_c_werror_flag" ||
20260 test ! -s conftest.err
20261 } && test -s conftest.$ac_objext; then
20263 else
20264 $as_echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20267 ac_cv_type_size_t=yes
20270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20271 else
20272 $as_echo "$as_me: failed program was:" >&5
20273 sed 's/^/| /' conftest.$ac_ext >&5
20278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20280 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20281 $as_echo "$ac_cv_type_size_t" >&6; }
20282 if test "x$ac_cv_type_size_t" = x""yes; then
20284 else
20286 cat >>confdefs.h <<_ACEOF
20287 #define size_t unsigned int
20288 _ACEOF
20295 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20296 $as_echo_n "checking for ANSI C header files... " >&6; }
20297 if test "${ac_cv_header_stdc+set}" = set; then
20298 $as_echo_n "(cached) " >&6
20299 else
20300 cat >conftest.$ac_ext <<_ACEOF
20301 /* confdefs.h. */
20302 _ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h. */
20306 #include <stdlib.h>
20307 #include <stdarg.h>
20308 #include <string.h>
20309 #include <float.h>
20312 main ()
20316 return 0;
20318 _ACEOF
20319 rm -f conftest.$ac_objext
20320 if { (ac_try="$ac_compile"
20321 case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20324 esac
20325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20326 $as_echo "$ac_try_echo") >&5
20327 (eval "$ac_compile") 2>conftest.er1
20328 ac_status=$?
20329 grep -v '^ *+' conftest.er1 >conftest.err
20330 rm -f conftest.er1
20331 cat conftest.err >&5
20332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } && {
20334 test -z "$ac_c_werror_flag" ||
20335 test ! -s conftest.err
20336 } && test -s conftest.$ac_objext; then
20337 ac_cv_header_stdc=yes
20338 else
20339 $as_echo "$as_me: failed program was:" >&5
20340 sed 's/^/| /' conftest.$ac_ext >&5
20342 ac_cv_header_stdc=no
20345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20347 if test $ac_cv_header_stdc = yes; then
20348 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20349 cat >conftest.$ac_ext <<_ACEOF
20350 /* confdefs.h. */
20351 _ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20355 #include <string.h>
20357 _ACEOF
20358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20359 $EGREP "memchr" >/dev/null 2>&1; then
20361 else
20362 ac_cv_header_stdc=no
20364 rm -f conftest*
20368 if test $ac_cv_header_stdc = yes; then
20369 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20370 cat >conftest.$ac_ext <<_ACEOF
20371 /* confdefs.h. */
20372 _ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h. */
20376 #include <stdlib.h>
20378 _ACEOF
20379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20380 $EGREP "free" >/dev/null 2>&1; then
20382 else
20383 ac_cv_header_stdc=no
20385 rm -f conftest*
20389 if test $ac_cv_header_stdc = yes; then
20390 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20391 if test "$cross_compiling" = yes; then
20393 else
20394 cat >conftest.$ac_ext <<_ACEOF
20395 /* confdefs.h. */
20396 _ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20400 #include <ctype.h>
20401 #include <stdlib.h>
20402 #if ((' ' & 0x0FF) == 0x020)
20403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20405 #else
20406 # define ISLOWER(c) \
20407 (('a' <= (c) && (c) <= 'i') \
20408 || ('j' <= (c) && (c) <= 'r') \
20409 || ('s' <= (c) && (c) <= 'z'))
20410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20411 #endif
20413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20415 main ()
20417 int i;
20418 for (i = 0; i < 256; i++)
20419 if (XOR (islower (i), ISLOWER (i))
20420 || toupper (i) != TOUPPER (i))
20421 return 2;
20422 return 0;
20424 _ACEOF
20425 rm -f conftest$ac_exeext
20426 if { (ac_try="$ac_link"
20427 case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20430 esac
20431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20432 $as_echo "$ac_try_echo") >&5
20433 (eval "$ac_link") 2>&5
20434 ac_status=$?
20435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20437 { (case "(($ac_try" in
20438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439 *) ac_try_echo=$ac_try;;
20440 esac
20441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20442 $as_echo "$ac_try_echo") >&5
20443 (eval "$ac_try") 2>&5
20444 ac_status=$?
20445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; }; then
20448 else
20449 $as_echo "$as_me: program exited with status $ac_status" >&5
20450 $as_echo "$as_me: failed program was:" >&5
20451 sed 's/^/| /' conftest.$ac_ext >&5
20453 ( exit $ac_status )
20454 ac_cv_header_stdc=no
20456 rm -rf conftest.dSYM
20457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20463 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20464 $as_echo "$ac_cv_header_stdc" >&6; }
20465 if test $ac_cv_header_stdc = yes; then
20467 cat >>confdefs.h <<\_ACEOF
20468 #define STDC_HEADERS 1
20469 _ACEOF
20476 for ac_func in strtol
20478 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20479 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20480 $as_echo_n "checking for $ac_func... " >&6; }
20481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20482 $as_echo_n "(cached) " >&6
20483 else
20484 cat >conftest.$ac_ext <<_ACEOF
20485 /* confdefs.h. */
20486 _ACEOF
20487 cat confdefs.h >>conftest.$ac_ext
20488 cat >>conftest.$ac_ext <<_ACEOF
20489 /* end confdefs.h. */
20490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20492 #define $ac_func innocuous_$ac_func
20494 /* System header to define __stub macros and hopefully few prototypes,
20495 which can conflict with char $ac_func (); below.
20496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20497 <limits.h> exists even on freestanding compilers. */
20499 #ifdef __STDC__
20500 # include <limits.h>
20501 #else
20502 # include <assert.h>
20503 #endif
20505 #undef $ac_func
20507 /* Override any GCC internal prototype to avoid an error.
20508 Use char because int might match the return type of a GCC
20509 builtin and then its argument prototype would still apply. */
20510 #ifdef __cplusplus
20511 extern "C"
20512 #endif
20513 char $ac_func ();
20514 /* The GNU C library defines this for functions which it implements
20515 to always fail with ENOSYS. Some functions are actually named
20516 something starting with __ and the normal name is an alias. */
20517 #if defined __stub_$ac_func || defined __stub___$ac_func
20518 choke me
20519 #endif
20522 main ()
20524 return $ac_func ();
20526 return 0;
20528 _ACEOF
20529 rm -f conftest.$ac_objext conftest$ac_exeext
20530 if { (ac_try="$ac_link"
20531 case "(($ac_try" in
20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533 *) ac_try_echo=$ac_try;;
20534 esac
20535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20536 $as_echo "$ac_try_echo") >&5
20537 (eval "$ac_link") 2>conftest.er1
20538 ac_status=$?
20539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
20542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } && {
20544 test -z "$ac_c_werror_flag" ||
20545 test ! -s conftest.err
20546 } && test -s conftest$ac_exeext && {
20547 test "$cross_compiling" = yes ||
20548 $as_test_x conftest$ac_exeext
20549 }; then
20550 eval "$as_ac_var=yes"
20551 else
20552 $as_echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20555 eval "$as_ac_var=no"
20558 rm -rf conftest.dSYM
20559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20560 conftest$ac_exeext conftest.$ac_ext
20562 ac_res=`eval 'as_val=${'$as_ac_var'}
20563 $as_echo "$as_val"'`
20564 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20565 $as_echo "$ac_res" >&6; }
20566 as_val=`eval 'as_val=${'$as_ac_var'}
20567 $as_echo "$as_val"'`
20568 if test "x$as_val" = x""yes; then
20569 cat >>confdefs.h <<_ACEOF
20570 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20571 _ACEOF
20574 done
20577 if test "${ac_cv_header_sys_resource_h+set}" = set; then
20578 { $as_echo "$as_me:$LINENO: checking for sys/resource.h" >&5
20579 $as_echo_n "checking for sys/resource.h... " >&6; }
20580 if test "${ac_cv_header_sys_resource_h+set}" = set; then
20581 $as_echo_n "(cached) " >&6
20583 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_resource_h" >&5
20584 $as_echo "$ac_cv_header_sys_resource_h" >&6; }
20585 else
20586 # Is the header compilable?
20587 { $as_echo "$as_me:$LINENO: checking sys/resource.h usability" >&5
20588 $as_echo_n "checking sys/resource.h usability... " >&6; }
20589 cat >conftest.$ac_ext <<_ACEOF
20590 /* confdefs.h. */
20591 _ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20595 $ac_includes_default
20596 #include <sys/resource.h>
20597 _ACEOF
20598 rm -f conftest.$ac_objext
20599 if { (ac_try="$ac_compile"
20600 case "(($ac_try" in
20601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602 *) ac_try_echo=$ac_try;;
20603 esac
20604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20605 $as_echo "$ac_try_echo") >&5
20606 (eval "$ac_compile") 2>conftest.er1
20607 ac_status=$?
20608 grep -v '^ *+' conftest.er1 >conftest.err
20609 rm -f conftest.er1
20610 cat conftest.err >&5
20611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } && {
20613 test -z "$ac_c_werror_flag" ||
20614 test ! -s conftest.err
20615 } && test -s conftest.$ac_objext; then
20616 ac_header_compiler=yes
20617 else
20618 $as_echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20621 ac_header_compiler=no
20624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20625 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20626 $as_echo "$ac_header_compiler" >&6; }
20628 # Is the header present?
20629 { $as_echo "$as_me:$LINENO: checking sys/resource.h presence" >&5
20630 $as_echo_n "checking sys/resource.h presence... " >&6; }
20631 cat >conftest.$ac_ext <<_ACEOF
20632 /* confdefs.h. */
20633 _ACEOF
20634 cat confdefs.h >>conftest.$ac_ext
20635 cat >>conftest.$ac_ext <<_ACEOF
20636 /* end confdefs.h. */
20637 #include <sys/resource.h>
20638 _ACEOF
20639 if { (ac_try="$ac_cpp conftest.$ac_ext"
20640 case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20643 esac
20644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20645 $as_echo "$ac_try_echo") >&5
20646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20647 ac_status=$?
20648 grep -v '^ *+' conftest.er1 >conftest.err
20649 rm -f conftest.er1
20650 cat conftest.err >&5
20651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } >/dev/null && {
20653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20654 test ! -s conftest.err
20655 }; then
20656 ac_header_preproc=yes
20657 else
20658 $as_echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20661 ac_header_preproc=no
20664 rm -f conftest.err conftest.$ac_ext
20665 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20666 $as_echo "$ac_header_preproc" >&6; }
20668 # So? What about this header?
20669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20670 yes:no: )
20671 { $as_echo "$as_me:$LINENO: WARNING: sys/resource.h: accepted by the compiler, rejected by the preprocessor!" >&5
20672 $as_echo "$as_me: WARNING: sys/resource.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20673 { $as_echo "$as_me:$LINENO: WARNING: sys/resource.h: proceeding with the compiler's result" >&5
20674 $as_echo "$as_me: WARNING: sys/resource.h: proceeding with the compiler's result" >&2;}
20675 ac_header_preproc=yes
20677 no:yes:* )
20678 { $as_echo "$as_me:$LINENO: WARNING: sys/resource.h: present but cannot be compiled" >&5
20679 $as_echo "$as_me: WARNING: sys/resource.h: present but cannot be compiled" >&2;}
20680 { $as_echo "$as_me:$LINENO: WARNING: sys/resource.h: check for missing prerequisite headers?" >&5
20681 $as_echo "$as_me: WARNING: sys/resource.h: check for missing prerequisite headers?" >&2;}
20682 { $as_echo "$as_me:$LINENO: WARNING: sys/resource.h: see the Autoconf documentation" >&5
20683 $as_echo "$as_me: WARNING: sys/resource.h: see the Autoconf documentation" >&2;}
20684 { $as_echo "$as_me:$LINENO: WARNING: sys/resource.h: section \"Present But Cannot Be Compiled\"" >&5
20685 $as_echo "$as_me: WARNING: sys/resource.h: section \"Present But Cannot Be Compiled\"" >&2;}
20686 { $as_echo "$as_me:$LINENO: WARNING: sys/resource.h: proceeding with the preprocessor's result" >&5
20687 $as_echo "$as_me: WARNING: sys/resource.h: proceeding with the preprocessor's result" >&2;}
20688 { $as_echo "$as_me:$LINENO: WARNING: sys/resource.h: in the future, the compiler will take precedence" >&5
20689 $as_echo "$as_me: WARNING: sys/resource.h: in the future, the compiler will take precedence" >&2;}
20692 esac
20693 { $as_echo "$as_me:$LINENO: checking for sys/resource.h" >&5
20694 $as_echo_n "checking for sys/resource.h... " >&6; }
20695 if test "${ac_cv_header_sys_resource_h+set}" = set; then
20696 $as_echo_n "(cached) " >&6
20697 else
20698 ac_cv_header_sys_resource_h=$ac_header_preproc
20700 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_resource_h" >&5
20701 $as_echo "$ac_cv_header_sys_resource_h" >&6; }
20704 if test "x$ac_cv_header_sys_resource_h" = x""yes; then
20706 cat >>confdefs.h <<\_ACEOF
20707 #define HAS_SYS_RESOURCE_H 1
20708 _ACEOF
20710 else
20711 { $as_echo "$as_me:$LINENO: result: no" >&5
20712 $as_echo "no" >&6; }
20718 gmp_package="yes"
20719 gmp_include_package="yes"
20720 gmp_library_package="yes"
20722 MP_BITS="MP"
20724 cat >>confdefs.h <<\_ACEOF
20725 #define LINEAR_VALUE_IS_MP 1
20726 _ACEOF
20728 NEED_MP="no"
20731 # Check whether --with-ppl was given.
20732 if test "${with_ppl+set}" = set; then
20733 withval=$with_ppl;
20738 # Check whether --with-polylib_prefix was given.
20739 if test "${with_polylib_prefix+set}" = set; then
20740 withval=$with_polylib_prefix;
20744 # Check whether --with-polylib_exec_prefix was given.
20745 if test "${with_polylib_exec_prefix+set}" = set; then
20746 withval=$with_polylib_exec_prefix;
20750 # Check whether --with-polylib_builddir was given.
20751 if test "${with_polylib_builddir+set}" = set; then
20752 withval=$with_polylib_builddir;
20756 # Check whether --with-bits was given.
20757 if test "${with_bits+set}" = set; then
20758 withval=$with_bits; echo "polylib$withval"; BITS=$withval
20763 # Check whether --with-gmp was given.
20764 if test "${with_gmp+set}" = set; then
20765 withval=$with_gmp; echo "Package gmp : $withval" &&
20766 gmp_package=$withval &&
20767 GMP_INC=$gmp_package/include &&
20768 GMP_LIB=$gmp_package/lib &&
20769 NEED_MP="yes"
20774 # Check whether --with-gmp-include was given.
20775 if test "${with_gmp_include+set}" = set; then
20776 withval=$with_gmp_include; echo "Package gmp-include : $withval" &&
20777 gmp_include_package=$withval &&
20778 GMP_INC=$gmp_include_package &&
20779 NEED_MP="yes"
20784 # Check whether --with-gmp-library was given.
20785 if test "${with_gmp_library+set}" = set; then
20786 withval=$with_gmp_library; echo "Package gmp-library : $withval" &&
20787 gmp_library_package=$withval &&
20788 GMP_LIB=$gmp_library_package &&
20789 NEED_MP="yes"
20796 { $as_echo "$as_me:$LINENO: checking whether gmp works" >&5
20797 $as_echo_n "checking whether gmp works... " >&6; }
20798 if test "$gmp_package" = "no"; then
20799 echo "GMP package not defined"
20800 { $as_echo "$as_me:$LINENO: result: no" >&5
20801 $as_echo "no" >&6; }
20802 TO_BUILD_MP=""
20803 else
20804 if test "$NEED_MP" = "no"; then
20805 echo "Mode normal GMP"
20806 TO_BUILD="$TO_BUILD MP"
20807 if test "${ac_cv_header_gmp_h+set}" = set; then
20808 { $as_echo "$as_me:$LINENO: checking for gmp.h" >&5
20809 $as_echo_n "checking for gmp.h... " >&6; }
20810 if test "${ac_cv_header_gmp_h+set}" = set; then
20811 $as_echo_n "(cached) " >&6
20813 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
20814 $as_echo "$ac_cv_header_gmp_h" >&6; }
20815 else
20816 # Is the header compilable?
20817 { $as_echo "$as_me:$LINENO: checking gmp.h usability" >&5
20818 $as_echo_n "checking gmp.h usability... " >&6; }
20819 cat >conftest.$ac_ext <<_ACEOF
20820 /* confdefs.h. */
20821 _ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20825 $ac_includes_default
20826 #include <gmp.h>
20827 _ACEOF
20828 rm -f conftest.$ac_objext
20829 if { (ac_try="$ac_compile"
20830 case "(($ac_try" in
20831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832 *) ac_try_echo=$ac_try;;
20833 esac
20834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20835 $as_echo "$ac_try_echo") >&5
20836 (eval "$ac_compile") 2>conftest.er1
20837 ac_status=$?
20838 grep -v '^ *+' conftest.er1 >conftest.err
20839 rm -f conftest.er1
20840 cat conftest.err >&5
20841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } && {
20843 test -z "$ac_c_werror_flag" ||
20844 test ! -s conftest.err
20845 } && test -s conftest.$ac_objext; then
20846 ac_header_compiler=yes
20847 else
20848 $as_echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20851 ac_header_compiler=no
20854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20855 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20856 $as_echo "$ac_header_compiler" >&6; }
20858 # Is the header present?
20859 { $as_echo "$as_me:$LINENO: checking gmp.h presence" >&5
20860 $as_echo_n "checking gmp.h presence... " >&6; }
20861 cat >conftest.$ac_ext <<_ACEOF
20862 /* confdefs.h. */
20863 _ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20867 #include <gmp.h>
20868 _ACEOF
20869 if { (ac_try="$ac_cpp conftest.$ac_ext"
20870 case "(($ac_try" in
20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872 *) ac_try_echo=$ac_try;;
20873 esac
20874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20875 $as_echo "$ac_try_echo") >&5
20876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20877 ac_status=$?
20878 grep -v '^ *+' conftest.er1 >conftest.err
20879 rm -f conftest.er1
20880 cat conftest.err >&5
20881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } >/dev/null && {
20883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20884 test ! -s conftest.err
20885 }; then
20886 ac_header_preproc=yes
20887 else
20888 $as_echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20891 ac_header_preproc=no
20894 rm -f conftest.err conftest.$ac_ext
20895 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20896 $as_echo "$ac_header_preproc" >&6; }
20898 # So? What about this header?
20899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20900 yes:no: )
20901 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20902 $as_echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20903 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the compiler's result" >&5
20904 $as_echo "$as_me: WARNING: gmp.h: proceeding with the compiler's result" >&2;}
20905 ac_header_preproc=yes
20907 no:yes:* )
20908 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5
20909 $as_echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
20910 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5
20911 $as_echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;}
20912 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: see the Autoconf documentation" >&5
20913 $as_echo "$as_me: WARNING: gmp.h: see the Autoconf documentation" >&2;}
20914 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&5
20915 $as_echo "$as_me: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
20916 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
20917 $as_echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;}
20918 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: in the future, the compiler will take precedence" >&5
20919 $as_echo "$as_me: WARNING: gmp.h: in the future, the compiler will take precedence" >&2;}
20922 esac
20923 { $as_echo "$as_me:$LINENO: checking for gmp.h" >&5
20924 $as_echo_n "checking for gmp.h... " >&6; }
20925 if test "${ac_cv_header_gmp_h+set}" = set; then
20926 $as_echo_n "(cached) " >&6
20927 else
20928 ac_cv_header_gmp_h=$ac_header_preproc
20930 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
20931 $as_echo "$ac_cv_header_gmp_h" >&6; }
20934 if test "x$ac_cv_header_gmp_h" = x""yes; then
20935 { $as_echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
20936 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
20937 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
20938 $as_echo_n "(cached) " >&6
20939 else
20940 ac_check_lib_save_LIBS=$LIBS
20941 LIBS="-lgmp $LIBS"
20942 cat >conftest.$ac_ext <<_ACEOF
20943 /* confdefs.h. */
20944 _ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h. */
20949 /* Override any GCC internal prototype to avoid an error.
20950 Use char because int might match the return type of a GCC
20951 builtin and then its argument prototype would still apply. */
20952 #ifdef __cplusplus
20953 extern "C"
20954 #endif
20955 char __gmpz_init ();
20957 main ()
20959 return __gmpz_init ();
20961 return 0;
20963 _ACEOF
20964 rm -f conftest.$ac_objext conftest$ac_exeext
20965 if { (ac_try="$ac_link"
20966 case "(($ac_try" in
20967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968 *) ac_try_echo=$ac_try;;
20969 esac
20970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20971 $as_echo "$ac_try_echo") >&5
20972 (eval "$ac_link") 2>conftest.er1
20973 ac_status=$?
20974 grep -v '^ *+' conftest.er1 >conftest.err
20975 rm -f conftest.er1
20976 cat conftest.err >&5
20977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } && {
20979 test -z "$ac_c_werror_flag" ||
20980 test ! -s conftest.err
20981 } && test -s conftest$ac_exeext && {
20982 test "$cross_compiling" = yes ||
20983 $as_test_x conftest$ac_exeext
20984 }; then
20985 ac_cv_lib_gmp___gmpz_init=yes
20986 else
20987 $as_echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20990 ac_cv_lib_gmp___gmpz_init=no
20993 rm -rf conftest.dSYM
20994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20995 conftest$ac_exeext conftest.$ac_ext
20996 LIBS=$ac_check_lib_save_LIBS
20998 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
20999 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
21000 if test "x$ac_cv_lib_gmp___gmpz_init" = x""yes; then
21001 LIBS="$LIBS -lgmp"
21002 else
21003 echo "Can't find gmp library." &&
21004 echo "MP version will not be builded." &&
21005 TO_BUILD_MP=""
21008 else
21009 echo "Can't find gmp headers." &&
21010 echo "MP version will not be builded." &&
21011 TO_BUILD_MP=""
21015 else
21017 if test "$gmp_package" != "yes" ; then
21018 echo "(GMP path has been set by user)"
21019 GMP_DIR=$gmp_package
21020 CPPFLAGS="-I$GMP_DIR/include $CPPFLAGS"
21021 LDFLAGS="-L$GMP_DIR/lib $LDFLAGS"
21024 if test "$gmp_include_package" != "yes" ; then
21025 CPPFLAGS="-I$GMP_INC $CPPFLAGS"
21028 if test "$gmp_library_package" != "yes" ; then
21029 LDFLAGS="-L$GMP_LIB $LDFLAGS"
21032 if test "${ac_cv_header_gmp_h+set}" = set; then
21033 { $as_echo "$as_me:$LINENO: checking for gmp.h" >&5
21034 $as_echo_n "checking for gmp.h... " >&6; }
21035 if test "${ac_cv_header_gmp_h+set}" = set; then
21036 $as_echo_n "(cached) " >&6
21038 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
21039 $as_echo "$ac_cv_header_gmp_h" >&6; }
21040 else
21041 # Is the header compilable?
21042 { $as_echo "$as_me:$LINENO: checking gmp.h usability" >&5
21043 $as_echo_n "checking gmp.h usability... " >&6; }
21044 cat >conftest.$ac_ext <<_ACEOF
21045 /* confdefs.h. */
21046 _ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h. */
21050 $ac_includes_default
21051 #include <gmp.h>
21052 _ACEOF
21053 rm -f conftest.$ac_objext
21054 if { (ac_try="$ac_compile"
21055 case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21058 esac
21059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21060 $as_echo "$ac_try_echo") >&5
21061 (eval "$ac_compile") 2>conftest.er1
21062 ac_status=$?
21063 grep -v '^ *+' conftest.er1 >conftest.err
21064 rm -f conftest.er1
21065 cat conftest.err >&5
21066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } && {
21068 test -z "$ac_c_werror_flag" ||
21069 test ! -s conftest.err
21070 } && test -s conftest.$ac_objext; then
21071 ac_header_compiler=yes
21072 else
21073 $as_echo "$as_me: failed program was:" >&5
21074 sed 's/^/| /' conftest.$ac_ext >&5
21076 ac_header_compiler=no
21079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21080 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21081 $as_echo "$ac_header_compiler" >&6; }
21083 # Is the header present?
21084 { $as_echo "$as_me:$LINENO: checking gmp.h presence" >&5
21085 $as_echo_n "checking gmp.h presence... " >&6; }
21086 cat >conftest.$ac_ext <<_ACEOF
21087 /* confdefs.h. */
21088 _ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21092 #include <gmp.h>
21093 _ACEOF
21094 if { (ac_try="$ac_cpp conftest.$ac_ext"
21095 case "(($ac_try" in
21096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097 *) ac_try_echo=$ac_try;;
21098 esac
21099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21100 $as_echo "$ac_try_echo") >&5
21101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21102 ac_status=$?
21103 grep -v '^ *+' conftest.er1 >conftest.err
21104 rm -f conftest.er1
21105 cat conftest.err >&5
21106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } >/dev/null && {
21108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21109 test ! -s conftest.err
21110 }; then
21111 ac_header_preproc=yes
21112 else
21113 $as_echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21116 ac_header_preproc=no
21119 rm -f conftest.err conftest.$ac_ext
21120 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21121 $as_echo "$ac_header_preproc" >&6; }
21123 # So? What about this header?
21124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21125 yes:no: )
21126 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21127 $as_echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21128 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the compiler's result" >&5
21129 $as_echo "$as_me: WARNING: gmp.h: proceeding with the compiler's result" >&2;}
21130 ac_header_preproc=yes
21132 no:yes:* )
21133 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5
21134 $as_echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
21135 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5
21136 $as_echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;}
21137 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: see the Autoconf documentation" >&5
21138 $as_echo "$as_me: WARNING: gmp.h: see the Autoconf documentation" >&2;}
21139 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&5
21140 $as_echo "$as_me: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21141 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
21142 $as_echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;}
21143 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: in the future, the compiler will take precedence" >&5
21144 $as_echo "$as_me: WARNING: gmp.h: in the future, the compiler will take precedence" >&2;}
21147 esac
21148 { $as_echo "$as_me:$LINENO: checking for gmp.h" >&5
21149 $as_echo_n "checking for gmp.h... " >&6; }
21150 if test "${ac_cv_header_gmp_h+set}" = set; then
21151 $as_echo_n "(cached) " >&6
21152 else
21153 ac_cv_header_gmp_h=$ac_header_preproc
21155 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
21156 $as_echo "$ac_cv_header_gmp_h" >&6; }
21159 if test "x$ac_cv_header_gmp_h" = x""yes; then
21161 else
21162 { { $as_echo "$as_me:$LINENO: error: Can't find gmp headers." >&5
21163 $as_echo "$as_me: error: Can't find gmp headers." >&2;}
21164 { (exit 1); exit 1; }; }
21168 { $as_echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
21169 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
21170 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
21171 $as_echo_n "(cached) " >&6
21172 else
21173 ac_check_lib_save_LIBS=$LIBS
21174 LIBS="-lgmp $LIBS"
21175 cat >conftest.$ac_ext <<_ACEOF
21176 /* confdefs.h. */
21177 _ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h. */
21182 /* Override any GCC internal prototype to avoid an error.
21183 Use char because int might match the return type of a GCC
21184 builtin and then its argument prototype would still apply. */
21185 #ifdef __cplusplus
21186 extern "C"
21187 #endif
21188 char __gmpz_init ();
21190 main ()
21192 return __gmpz_init ();
21194 return 0;
21196 _ACEOF
21197 rm -f conftest.$ac_objext conftest$ac_exeext
21198 if { (ac_try="$ac_link"
21199 case "(($ac_try" in
21200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21201 *) ac_try_echo=$ac_try;;
21202 esac
21203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21204 $as_echo "$ac_try_echo") >&5
21205 (eval "$ac_link") 2>conftest.er1
21206 ac_status=$?
21207 grep -v '^ *+' conftest.er1 >conftest.err
21208 rm -f conftest.er1
21209 cat conftest.err >&5
21210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } && {
21212 test -z "$ac_c_werror_flag" ||
21213 test ! -s conftest.err
21214 } && test -s conftest$ac_exeext && {
21215 test "$cross_compiling" = yes ||
21216 $as_test_x conftest$ac_exeext
21217 }; then
21218 ac_cv_lib_gmp___gmpz_init=yes
21219 else
21220 $as_echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21223 ac_cv_lib_gmp___gmpz_init=no
21226 rm -rf conftest.dSYM
21227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21228 conftest$ac_exeext conftest.$ac_ext
21229 LIBS=$ac_check_lib_save_LIBS
21231 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
21232 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
21233 if test "x$ac_cv_lib_gmp___gmpz_init" = x""yes; then
21234 LIBS="$LIBS -lgmp"
21235 else
21236 { { $as_echo "$as_me:$LINENO: error: Can't find gmp library." >&5
21237 $as_echo "$as_me: error: Can't find gmp library." >&2;}
21238 { (exit 1); exit 1; }; }
21242 { $as_echo "$as_me:$LINENO: result: yes" >&5
21243 $as_echo "yes" >&6; }
21248 polylibs="64 32"
21249 case "$BITS" in
21250 32|64|gmp)
21251 polylibs=$BITS
21253 esac
21260 if test "x$with_polylib_prefix" != "x" -a "x$with_polylib_exec_prefix" = "x"
21261 then
21262 with_polylib_exec_prefix=$with_polylib_prefix
21264 if test "x$with_polylib_prefix" != "x" -a "x$with_polylib_builddir" != "x"; then
21265 { { $as_echo "$as_me:$LINENO: error: --with-polylib-prefix and --with-polylib-builddir are mutually exclusive" >&5
21266 $as_echo "$as_me: error: --with-polylib-prefix and --with-polylib-builddir are mutually exclusive" >&2;}
21267 { (exit 1); exit 1; }; }
21270 { $as_echo "$as_me:$LINENO: checking for location of PolyLib" >&5
21271 $as_echo_n "checking for location of PolyLib... " >&6; }
21272 if test "x$with_polylib_builddir" != "x"; then
21273 { $as_echo "$as_me:$LINENO: result: built in $with_polylib_builddir" >&5
21274 $as_echo "built in $with_polylib_builddir" >&6; }
21275 polylib_srcdir=`echo @srcdir@ | $with_polylib_builddir/config.status --file=-`
21276 { $as_echo "$as_me:$LINENO: PolyLib sources in $polylib_srcdir" >&5
21277 $as_echo "$as_me: PolyLib sources in $polylib_srcdir" >&6;}
21278 polylib_polylibs=`echo @polylibs@ | $with_polylib_builddir/config.status --file=-`
21279 { $as_echo "$as_me:$LINENO: Configured polylibs: $polylib_polylibs" >&5
21280 $as_echo "$as_me: Configured polylibs: $polylib_polylibs" >&6;}
21281 CPPFLAGS="-I$with_polylib_builddir/include -I$polylib_srcdir/include $CPPFLAGS"
21282 for BITS in $polylibs; do
21283 cl_cv_polylib=missing
21284 for PL in $polylib_polylibs; do
21285 if test "libpolylib$BITS.la" = $PL; then
21286 cl_cv_polylib="polylib$BITS"
21287 break;
21289 done
21290 if test "$cl_cv_polylib" != "missing"; then
21291 LIBS="$with_polylib_builddir/lib$cl_cv_polylib.la $LIBS"
21292 break;
21294 done
21295 else
21296 if test "x$with_polylib_prefix" != "x"; then
21297 { $as_echo "$as_me:$LINENO: result: installed in $with_polylib_exec_prefix" >&5
21298 $as_echo "installed in $with_polylib_exec_prefix" >&6; }
21299 CPPFLAGS="-I$with_polylib_prefix/include $CPPFLAGS"
21300 LDFLAGS="-L$with_polylib_exec_prefix/lib $LDFLAGS"
21301 LD_LIBRARY_PATH="$with_polylib_exec_prefix/lib:$LD_LIBRARY_PATH"
21302 export LD_LIBRARY_PATH
21303 else
21304 { $as_echo "$as_me:$LINENO: result: installed in standard location" >&5
21305 $as_echo "installed in standard location" >&6; }
21307 for BITS in $polylibs; do
21308 cl_cv_polylib="polylib$BITS"
21309 as_ac_Lib=`$as_echo "ac_cv_lib_$cl_cv_polylib''_PolyhedronTSort" | $as_tr_sh`
21310 { $as_echo "$as_me:$LINENO: checking for PolyhedronTSort in -l$cl_cv_polylib" >&5
21311 $as_echo_n "checking for PolyhedronTSort in -l$cl_cv_polylib... " >&6; }
21312 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21313 $as_echo_n "(cached) " >&6
21314 else
21315 ac_check_lib_save_LIBS=$LIBS
21316 LIBS="-l$cl_cv_polylib $LIBS"
21317 cat >conftest.$ac_ext <<_ACEOF
21318 /* confdefs.h. */
21319 _ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h. */
21324 /* Override any GCC internal prototype to avoid an error.
21325 Use char because int might match the return type of a GCC
21326 builtin and then its argument prototype would still apply. */
21327 #ifdef __cplusplus
21328 extern "C"
21329 #endif
21330 char PolyhedronTSort ();
21332 main ()
21334 return PolyhedronTSort ();
21336 return 0;
21338 _ACEOF
21339 rm -f conftest.$ac_objext conftest$ac_exeext
21340 if { (ac_try="$ac_link"
21341 case "(($ac_try" in
21342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21343 *) ac_try_echo=$ac_try;;
21344 esac
21345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21346 $as_echo "$ac_try_echo") >&5
21347 (eval "$ac_link") 2>conftest.er1
21348 ac_status=$?
21349 grep -v '^ *+' conftest.er1 >conftest.err
21350 rm -f conftest.er1
21351 cat conftest.err >&5
21352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } && {
21354 test -z "$ac_c_werror_flag" ||
21355 test ! -s conftest.err
21356 } && test -s conftest$ac_exeext && {
21357 test "$cross_compiling" = yes ||
21358 $as_test_x conftest$ac_exeext
21359 }; then
21360 eval "$as_ac_Lib=yes"
21361 else
21362 $as_echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21365 eval "$as_ac_Lib=no"
21368 rm -rf conftest.dSYM
21369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21370 conftest$ac_exeext conftest.$ac_ext
21371 LIBS=$ac_check_lib_save_LIBS
21373 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21374 $as_echo "$as_val"'`
21375 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21376 $as_echo "$ac_res" >&6; }
21377 as_val=`eval 'as_val=${'$as_ac_Lib'}
21378 $as_echo "$as_val"'`
21379 if test "x$as_val" = x""yes; then
21381 LIBS="-l$cl_cv_polylib $LIBS"
21382 break
21386 cl_cv_polylib=missing
21387 done
21389 if test "$cl_cv_polylib" = "missing"; then
21390 { $as_echo "$as_me:$LINENO: result: Can't find PolyLib." >&5
21391 $as_echo "Can't find PolyLib." >&6; }
21392 else
21393 as_ac_Header=`$as_echo "ac_cv_header_polylib/$cl_cv_polylib.h" | $as_tr_sh`
21394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21395 { $as_echo "$as_me:$LINENO: checking for polylib/$cl_cv_polylib.h" >&5
21396 $as_echo_n "checking for polylib/$cl_cv_polylib.h... " >&6; }
21397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21398 $as_echo_n "(cached) " >&6
21400 ac_res=`eval 'as_val=${'$as_ac_Header'}
21401 $as_echo "$as_val"'`
21402 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21403 $as_echo "$ac_res" >&6; }
21404 else
21405 # Is the header compilable?
21406 { $as_echo "$as_me:$LINENO: checking polylib/$cl_cv_polylib.h usability" >&5
21407 $as_echo_n "checking polylib/$cl_cv_polylib.h usability... " >&6; }
21408 cat >conftest.$ac_ext <<_ACEOF
21409 /* confdefs.h. */
21410 _ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h. */
21414 $ac_includes_default
21415 #include <polylib/$cl_cv_polylib.h>
21416 _ACEOF
21417 rm -f conftest.$ac_objext
21418 if { (ac_try="$ac_compile"
21419 case "(($ac_try" in
21420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21421 *) ac_try_echo=$ac_try;;
21422 esac
21423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21424 $as_echo "$ac_try_echo") >&5
21425 (eval "$ac_compile") 2>conftest.er1
21426 ac_status=$?
21427 grep -v '^ *+' conftest.er1 >conftest.err
21428 rm -f conftest.er1
21429 cat conftest.err >&5
21430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); } && {
21432 test -z "$ac_c_werror_flag" ||
21433 test ! -s conftest.err
21434 } && test -s conftest.$ac_objext; then
21435 ac_header_compiler=yes
21436 else
21437 $as_echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21440 ac_header_compiler=no
21443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21444 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21445 $as_echo "$ac_header_compiler" >&6; }
21447 # Is the header present?
21448 { $as_echo "$as_me:$LINENO: checking polylib/$cl_cv_polylib.h presence" >&5
21449 $as_echo_n "checking polylib/$cl_cv_polylib.h presence... " >&6; }
21450 cat >conftest.$ac_ext <<_ACEOF
21451 /* confdefs.h. */
21452 _ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h. */
21456 #include <polylib/$cl_cv_polylib.h>
21457 _ACEOF
21458 if { (ac_try="$ac_cpp conftest.$ac_ext"
21459 case "(($ac_try" in
21460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21461 *) ac_try_echo=$ac_try;;
21462 esac
21463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21464 $as_echo "$ac_try_echo") >&5
21465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21466 ac_status=$?
21467 grep -v '^ *+' conftest.er1 >conftest.err
21468 rm -f conftest.er1
21469 cat conftest.err >&5
21470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } >/dev/null && {
21472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21473 test ! -s conftest.err
21474 }; then
21475 ac_header_preproc=yes
21476 else
21477 $as_echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21480 ac_header_preproc=no
21483 rm -f conftest.err conftest.$ac_ext
21484 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21485 $as_echo "$ac_header_preproc" >&6; }
21487 # So? What about this header?
21488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21489 yes:no: )
21490 { $as_echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21491 $as_echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21492 { $as_echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: proceeding with the compiler's result" >&5
21493 $as_echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: proceeding with the compiler's result" >&2;}
21494 ac_header_preproc=yes
21496 no:yes:* )
21497 { $as_echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: present but cannot be compiled" >&5
21498 $as_echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: present but cannot be compiled" >&2;}
21499 { $as_echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: check for missing prerequisite headers?" >&5
21500 $as_echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: check for missing prerequisite headers?" >&2;}
21501 { $as_echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: see the Autoconf documentation" >&5
21502 $as_echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: see the Autoconf documentation" >&2;}
21503 { $as_echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: section \"Present But Cannot Be Compiled\"" >&5
21504 $as_echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: section \"Present But Cannot Be Compiled\"" >&2;}
21505 { $as_echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: proceeding with the preprocessor's result" >&5
21506 $as_echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: proceeding with the preprocessor's result" >&2;}
21507 { $as_echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: in the future, the compiler will take precedence" >&5
21508 $as_echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: in the future, the compiler will take precedence" >&2;}
21511 esac
21512 { $as_echo "$as_me:$LINENO: checking for polylib/$cl_cv_polylib.h" >&5
21513 $as_echo_n "checking for polylib/$cl_cv_polylib.h... " >&6; }
21514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21515 $as_echo_n "(cached) " >&6
21516 else
21517 eval "$as_ac_Header=\$ac_header_preproc"
21519 ac_res=`eval 'as_val=${'$as_ac_Header'}
21520 $as_echo "$as_val"'`
21521 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21522 $as_echo "$ac_res" >&6; }
21525 as_val=`eval 'as_val=${'$as_ac_Header'}
21526 $as_echo "$as_val"'`
21527 if test "x$as_val" = x""yes; then
21529 else
21530 { { $as_echo "$as_me:$LINENO: error: Can't find PolyLib headers." >&5
21531 $as_echo "$as_me: error: Can't find PolyLib headers." >&2;}
21532 { (exit 1); exit 1; }; }
21539 if test -f $srcdir/.git/HEAD; then
21540 GIT_INDEX="\$(top_srcdir)/.git/index"
21545 # The default back-end for polyhedral operations is PolyLib, unless
21546 # -with-ppl is used.
21548 POLYHEDRAL_BACKEND=polylib
21550 ppl_major_version=0
21551 ppl_minor_version=10
21556 { $as_echo "$as_me:$LINENO: checking for Parma Polyhedral Library (PPL)" >&5
21557 $as_echo_n "checking for Parma Polyhedral Library (PPL)... " >&6; }
21558 if test "x$with_ppl" != "x" -a "x$with_ppl" != "xno"; then
21560 if test "x$with_polylib_prefix" != "x" -o "x$with_polylib_exec_prefix" != "x" -o "x$with_polylib_builddir" != "x"; then
21561 { { $as_echo "$as_me:$LINENO: error: --with-polylib and --with-ppl are mutually exclusive" >&5
21562 $as_echo "$as_me: error: --with-polylib and --with-ppl are mutually exclusive" >&2;}
21563 { (exit 1); exit 1; }; }
21566 if test "x$with_ppl" != "xyes" ; then
21567 ppl_prefix=$with_ppl
21568 { $as_echo "$as_me:$LINENO: result: installed in $ppl_prefix" >&5
21569 $as_echo "installed in $ppl_prefix" >&6; }
21570 CPPFLAGS="-I$ppl_prefix/include $CPPFLAGS"
21571 LDFLAGS="-L$ppl_prefix/lib $LDFLAGS"
21572 LD_LIBRARY_PATH="$ppl_prefix/lib:$LD_LIBRARY_PATH"
21573 export LD_LIBRARY_PATH
21574 else
21575 { $as_echo "$as_me:$LINENO: result: installed at system prefix" >&5
21576 $as_echo "installed at system prefix" >&6; }
21578 POLYHEDRAL_BACKEND=ppl
21580 if test "${ac_cv_header_ppl_c_h+set}" = set; then
21581 { $as_echo "$as_me:$LINENO: checking for ppl_c.h" >&5
21582 $as_echo_n "checking for ppl_c.h... " >&6; }
21583 if test "${ac_cv_header_ppl_c_h+set}" = set; then
21584 $as_echo_n "(cached) " >&6
21586 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ppl_c_h" >&5
21587 $as_echo "$ac_cv_header_ppl_c_h" >&6; }
21588 else
21589 # Is the header compilable?
21590 { $as_echo "$as_me:$LINENO: checking ppl_c.h usability" >&5
21591 $as_echo_n "checking ppl_c.h usability... " >&6; }
21592 cat >conftest.$ac_ext <<_ACEOF
21593 /* confdefs.h. */
21594 _ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21598 $ac_includes_default
21599 #include <ppl_c.h>
21600 _ACEOF
21601 rm -f conftest.$ac_objext
21602 if { (ac_try="$ac_compile"
21603 case "(($ac_try" in
21604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605 *) ac_try_echo=$ac_try;;
21606 esac
21607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21608 $as_echo "$ac_try_echo") >&5
21609 (eval "$ac_compile") 2>conftest.er1
21610 ac_status=$?
21611 grep -v '^ *+' conftest.er1 >conftest.err
21612 rm -f conftest.er1
21613 cat conftest.err >&5
21614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } && {
21616 test -z "$ac_c_werror_flag" ||
21617 test ! -s conftest.err
21618 } && test -s conftest.$ac_objext; then
21619 ac_header_compiler=yes
21620 else
21621 $as_echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21624 ac_header_compiler=no
21627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21628 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21629 $as_echo "$ac_header_compiler" >&6; }
21631 # Is the header present?
21632 { $as_echo "$as_me:$LINENO: checking ppl_c.h presence" >&5
21633 $as_echo_n "checking ppl_c.h presence... " >&6; }
21634 cat >conftest.$ac_ext <<_ACEOF
21635 /* confdefs.h. */
21636 _ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21640 #include <ppl_c.h>
21641 _ACEOF
21642 if { (ac_try="$ac_cpp conftest.$ac_ext"
21643 case "(($ac_try" in
21644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21645 *) ac_try_echo=$ac_try;;
21646 esac
21647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21648 $as_echo "$ac_try_echo") >&5
21649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21650 ac_status=$?
21651 grep -v '^ *+' conftest.er1 >conftest.err
21652 rm -f conftest.er1
21653 cat conftest.err >&5
21654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); } >/dev/null && {
21656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21657 test ! -s conftest.err
21658 }; then
21659 ac_header_preproc=yes
21660 else
21661 $as_echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21664 ac_header_preproc=no
21667 rm -f conftest.err conftest.$ac_ext
21668 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21669 $as_echo "$ac_header_preproc" >&6; }
21671 # So? What about this header?
21672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21673 yes:no: )
21674 { $as_echo "$as_me:$LINENO: WARNING: ppl_c.h: accepted by the compiler, rejected by the preprocessor!" >&5
21675 $as_echo "$as_me: WARNING: ppl_c.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21676 { $as_echo "$as_me:$LINENO: WARNING: ppl_c.h: proceeding with the compiler's result" >&5
21677 $as_echo "$as_me: WARNING: ppl_c.h: proceeding with the compiler's result" >&2;}
21678 ac_header_preproc=yes
21680 no:yes:* )
21681 { $as_echo "$as_me:$LINENO: WARNING: ppl_c.h: present but cannot be compiled" >&5
21682 $as_echo "$as_me: WARNING: ppl_c.h: present but cannot be compiled" >&2;}
21683 { $as_echo "$as_me:$LINENO: WARNING: ppl_c.h: check for missing prerequisite headers?" >&5
21684 $as_echo "$as_me: WARNING: ppl_c.h: check for missing prerequisite headers?" >&2;}
21685 { $as_echo "$as_me:$LINENO: WARNING: ppl_c.h: see the Autoconf documentation" >&5
21686 $as_echo "$as_me: WARNING: ppl_c.h: see the Autoconf documentation" >&2;}
21687 { $as_echo "$as_me:$LINENO: WARNING: ppl_c.h: section \"Present But Cannot Be Compiled\"" >&5
21688 $as_echo "$as_me: WARNING: ppl_c.h: section \"Present But Cannot Be Compiled\"" >&2;}
21689 { $as_echo "$as_me:$LINENO: WARNING: ppl_c.h: proceeding with the preprocessor's result" >&5
21690 $as_echo "$as_me: WARNING: ppl_c.h: proceeding with the preprocessor's result" >&2;}
21691 { $as_echo "$as_me:$LINENO: WARNING: ppl_c.h: in the future, the compiler will take precedence" >&5
21692 $as_echo "$as_me: WARNING: ppl_c.h: in the future, the compiler will take precedence" >&2;}
21695 esac
21696 { $as_echo "$as_me:$LINENO: checking for ppl_c.h" >&5
21697 $as_echo_n "checking for ppl_c.h... " >&6; }
21698 if test "${ac_cv_header_ppl_c_h+set}" = set; then
21699 $as_echo_n "(cached) " >&6
21700 else
21701 ac_cv_header_ppl_c_h=$ac_header_preproc
21703 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ppl_c_h" >&5
21704 $as_echo "$ac_cv_header_ppl_c_h" >&6; }
21707 if test "x$ac_cv_header_ppl_c_h" = x""yes; then
21709 else
21710 { { $as_echo "$as_me:$LINENO: error: Can't find PPL headers." >&5
21711 $as_echo "$as_me: error: Can't find PPL headers." >&2;}
21712 { (exit 1); exit 1; }; }
21717 { $as_echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
21718 $as_echo_n "checking for version $ppl_major_version.$ppl_minor_version of PPL... " >&6; }
21719 cat >conftest.$ac_ext <<_ACEOF
21720 /* confdefs.h. */
21721 _ACEOF
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h. */
21725 #include "ppl_c.h"
21727 main ()
21730 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
21731 choke me
21732 #endif
21735 return 0;
21737 _ACEOF
21738 rm -f conftest.$ac_objext
21739 if { (ac_try="$ac_compile"
21740 case "(($ac_try" in
21741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742 *) ac_try_echo=$ac_try;;
21743 esac
21744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21745 $as_echo "$ac_try_echo") >&5
21746 (eval "$ac_compile") 2>conftest.er1
21747 ac_status=$?
21748 grep -v '^ *+' conftest.er1 >conftest.err
21749 rm -f conftest.er1
21750 cat conftest.err >&5
21751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); } && {
21753 test -z "$ac_c_werror_flag" ||
21754 test ! -s conftest.err
21755 } && test -s conftest.$ac_objext; then
21756 { $as_echo "$as_me:$LINENO: result: yes" >&5
21757 $as_echo "yes" >&6; }
21758 else
21759 $as_echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21762 { { $as_echo "$as_me:$LINENO: error: Can't find correct version of PPL." >&5
21763 $as_echo "$as_me: error: Can't find correct version of PPL." >&2;}
21764 { (exit 1); exit 1; }; }
21767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21769 LIBS="$LIBS -lppl_c -lppl -lgmpxx"
21771 cat >>confdefs.h <<\_ACEOF
21772 #define CLOOG_PPL_BACKEND 1
21773 _ACEOF
21776 else
21777 { $as_echo "$as_me:$LINENO: result: not using PPL" >&5
21778 $as_echo "not using PPL" >&6; }
21794 ac_config_files="$ac_config_files Makefile test/Makefile include/cloog/cloog.h autoconf/Doxyfile"
21796 ac_config_files="$ac_config_files doc/Makefile"
21798 ac_config_files="$ac_config_files genversion.sh"
21800 ac_config_commands="$ac_config_commands version.h"
21802 ac_config_commands="$ac_config_commands doc/gitversion.texi"
21804 cat >confcache <<\_ACEOF
21805 # This file is a shell script that caches the results of configure
21806 # tests run on this system so they can be shared between configure
21807 # scripts and configure runs, see configure's option --config-cache.
21808 # It is not useful on other systems. If it contains results you don't
21809 # want to keep, you may remove or edit it.
21811 # config.status only pays attention to the cache file if you give it
21812 # the --recheck option to rerun configure.
21814 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21815 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21816 # following values.
21818 _ACEOF
21820 # The following way of writing the cache mishandles newlines in values,
21821 # but we know of no workaround that is simple, portable, and efficient.
21822 # So, we kill variables containing newlines.
21823 # Ultrix sh set writes to stderr and can't be redirected directly,
21824 # and sets the high bit in the cache file unless we assign to the vars.
21826 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21827 eval ac_val=\$$ac_var
21828 case $ac_val in #(
21829 *${as_nl}*)
21830 case $ac_var in #(
21831 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21832 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21833 esac
21834 case $ac_var in #(
21835 _ | IFS | as_nl) ;; #(
21836 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21837 *) $as_unset $ac_var ;;
21838 esac ;;
21839 esac
21840 done
21842 (set) 2>&1 |
21843 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21844 *${as_nl}ac_space=\ *)
21845 # `set' does not quote correctly, so add quotes (double-quote
21846 # substitution turns \\\\ into \\, and sed turns \\ into \).
21847 sed -n \
21848 "s/'/'\\\\''/g;
21849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21850 ;; #(
21852 # `set' quotes correctly as required by POSIX, so do not add quotes.
21853 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21855 esac |
21856 sort
21858 sed '
21859 /^ac_cv_env_/b end
21860 t clear
21861 :clear
21862 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21863 t end
21864 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21865 :end' >>confcache
21866 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21867 if test -w "$cache_file"; then
21868 test "x$cache_file" != "x/dev/null" &&
21869 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21870 $as_echo "$as_me: updating cache $cache_file" >&6;}
21871 cat confcache >$cache_file
21872 else
21873 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21874 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21877 rm -f confcache
21879 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21880 # Let make expand exec_prefix.
21881 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21883 DEFS=-DHAVE_CONFIG_H
21885 ac_libobjs=
21886 ac_ltlibobjs=
21887 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21888 # 1. Remove the extension, and $U if already installed.
21889 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21890 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21891 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21892 # will be set to the directory where LIBOBJS objects are built.
21893 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21894 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21895 done
21896 LIBOBJS=$ac_libobjs
21898 LTLIBOBJS=$ac_ltlibobjs
21901 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21902 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21903 Usually this means the macro was only invoked conditionally." >&5
21904 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21905 Usually this means the macro was only invoked conditionally." >&2;}
21906 { (exit 1); exit 1; }; }
21908 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21909 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21910 Usually this means the macro was only invoked conditionally." >&5
21911 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21912 Usually this means the macro was only invoked conditionally." >&2;}
21913 { (exit 1); exit 1; }; }
21915 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21916 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21917 Usually this means the macro was only invoked conditionally." >&5
21918 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21919 Usually this means the macro was only invoked conditionally." >&2;}
21920 { (exit 1); exit 1; }; }
21923 : ${CONFIG_STATUS=./config.status}
21924 ac_write_fail=0
21925 ac_clean_files_save=$ac_clean_files
21926 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21927 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21928 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21929 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21930 #! $SHELL
21931 # Generated by $as_me.
21932 # Run this file to recreate the current configuration.
21933 # Compiler output produced by configure, useful for debugging
21934 # configure, is in config.log if it exists.
21936 debug=false
21937 ac_cs_recheck=false
21938 ac_cs_silent=false
21939 SHELL=\${CONFIG_SHELL-$SHELL}
21940 _ACEOF
21942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21943 ## --------------------- ##
21944 ## M4sh Initialization. ##
21945 ## --------------------- ##
21947 # Be more Bourne compatible
21948 DUALCASE=1; export DUALCASE # for MKS sh
21949 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21950 emulate sh
21951 NULLCMD=:
21952 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21953 # is contrary to our usage. Disable this feature.
21954 alias -g '${1+"$@"}'='"$@"'
21955 setopt NO_GLOB_SUBST
21956 else
21957 case `(set -o) 2>/dev/null` in
21958 *posix*) set -o posix ;;
21959 esac
21966 # PATH needs CR
21967 # Avoid depending upon Character Ranges.
21968 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21969 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21970 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21971 as_cr_digits='0123456789'
21972 as_cr_alnum=$as_cr_Letters$as_cr_digits
21974 as_nl='
21976 export as_nl
21977 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21978 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21979 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21980 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21981 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21982 as_echo='printf %s\n'
21983 as_echo_n='printf %s'
21984 else
21985 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21986 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21987 as_echo_n='/usr/ucb/echo -n'
21988 else
21989 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21990 as_echo_n_body='eval
21991 arg=$1;
21992 case $arg in
21993 *"$as_nl"*)
21994 expr "X$arg" : "X\\(.*\\)$as_nl";
21995 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21996 esac;
21997 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21999 export as_echo_n_body
22000 as_echo_n='sh -c $as_echo_n_body as_echo'
22002 export as_echo_body
22003 as_echo='sh -c $as_echo_body as_echo'
22006 # The user is always right.
22007 if test "${PATH_SEPARATOR+set}" != set; then
22008 PATH_SEPARATOR=:
22009 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22010 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22011 PATH_SEPARATOR=';'
22015 # Support unset when possible.
22016 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22017 as_unset=unset
22018 else
22019 as_unset=false
22023 # IFS
22024 # We need space, tab and new line, in precisely that order. Quoting is
22025 # there to prevent editors from complaining about space-tab.
22026 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22027 # splitting by setting IFS to empty value.)
22028 IFS=" "" $as_nl"
22030 # Find who we are. Look in the path if we contain no directory separator.
22031 case $0 in
22032 *[\\/]* ) as_myself=$0 ;;
22033 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22034 for as_dir in $PATH
22036 IFS=$as_save_IFS
22037 test -z "$as_dir" && as_dir=.
22038 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22039 done
22040 IFS=$as_save_IFS
22043 esac
22044 # We did not find ourselves, most probably we were run as `sh COMMAND'
22045 # in which case we are not to be found in the path.
22046 if test "x$as_myself" = x; then
22047 as_myself=$0
22049 if test ! -f "$as_myself"; then
22050 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22051 { (exit 1); exit 1; }
22054 # Work around bugs in pre-3.0 UWIN ksh.
22055 for as_var in ENV MAIL MAILPATH
22056 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22057 done
22058 PS1='$ '
22059 PS2='> '
22060 PS4='+ '
22062 # NLS nuisances.
22063 LC_ALL=C
22064 export LC_ALL
22065 LANGUAGE=C
22066 export LANGUAGE
22068 # Required to use basename.
22069 if expr a : '\(a\)' >/dev/null 2>&1 &&
22070 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22071 as_expr=expr
22072 else
22073 as_expr=false
22076 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22077 as_basename=basename
22078 else
22079 as_basename=false
22083 # Name of the executable.
22084 as_me=`$as_basename -- "$0" ||
22085 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22086 X"$0" : 'X\(//\)$' \| \
22087 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22088 $as_echo X/"$0" |
22089 sed '/^.*\/\([^/][^/]*\)\/*$/{
22090 s//\1/
22093 /^X\/\(\/\/\)$/{
22094 s//\1/
22097 /^X\/\(\/\).*/{
22098 s//\1/
22101 s/.*/./; q'`
22103 # CDPATH.
22104 $as_unset CDPATH
22108 as_lineno_1=$LINENO
22109 as_lineno_2=$LINENO
22110 test "x$as_lineno_1" != "x$as_lineno_2" &&
22111 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22113 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22114 # uniformly replaced by the line number. The first 'sed' inserts a
22115 # line-number line after each line using $LINENO; the second 'sed'
22116 # does the real work. The second script uses 'N' to pair each
22117 # line-number line with the line containing $LINENO, and appends
22118 # trailing '-' during substitution so that $LINENO is not a special
22119 # case at line end.
22120 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22121 # scripts with optimization help from Paolo Bonzini. Blame Lee
22122 # E. McMahon (1931-1989) for sed's syntax. :-)
22123 sed -n '
22125 /[$]LINENO/=
22126 ' <$as_myself |
22127 sed '
22128 s/[$]LINENO.*/&-/
22129 t lineno
22131 :lineno
22133 :loop
22134 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22135 t loop
22136 s/-\n.*//
22137 ' >$as_me.lineno &&
22138 chmod +x "$as_me.lineno" ||
22139 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22140 { (exit 1); exit 1; }; }
22142 # Don't try to exec as it changes $[0], causing all sort of problems
22143 # (the dirname of $[0] is not the place where we might find the
22144 # original and so on. Autoconf is especially sensitive to this).
22145 . "./$as_me.lineno"
22146 # Exit status is that of the last command.
22147 exit
22151 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22152 as_dirname=dirname
22153 else
22154 as_dirname=false
22157 ECHO_C= ECHO_N= ECHO_T=
22158 case `echo -n x` in
22159 -n*)
22160 case `echo 'x\c'` in
22161 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22162 *) ECHO_C='\c';;
22163 esac;;
22165 ECHO_N='-n';;
22166 esac
22167 if expr a : '\(a\)' >/dev/null 2>&1 &&
22168 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22169 as_expr=expr
22170 else
22171 as_expr=false
22174 rm -f conf$$ conf$$.exe conf$$.file
22175 if test -d conf$$.dir; then
22176 rm -f conf$$.dir/conf$$.file
22177 else
22178 rm -f conf$$.dir
22179 mkdir conf$$.dir 2>/dev/null
22181 if (echo >conf$$.file) 2>/dev/null; then
22182 if ln -s conf$$.file conf$$ 2>/dev/null; then
22183 as_ln_s='ln -s'
22184 # ... but there are two gotchas:
22185 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22186 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22187 # In both cases, we have to default to `cp -p'.
22188 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22189 as_ln_s='cp -p'
22190 elif ln conf$$.file conf$$ 2>/dev/null; then
22191 as_ln_s=ln
22192 else
22193 as_ln_s='cp -p'
22195 else
22196 as_ln_s='cp -p'
22198 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22199 rmdir conf$$.dir 2>/dev/null
22201 if mkdir -p . 2>/dev/null; then
22202 as_mkdir_p=:
22203 else
22204 test -d ./-p && rmdir ./-p
22205 as_mkdir_p=false
22208 if test -x / >/dev/null 2>&1; then
22209 as_test_x='test -x'
22210 else
22211 if ls -dL / >/dev/null 2>&1; then
22212 as_ls_L_option=L
22213 else
22214 as_ls_L_option=
22216 as_test_x='
22217 eval sh -c '\''
22218 if test -d "$1"; then
22219 test -d "$1/.";
22220 else
22221 case $1 in
22222 -*)set "./$1";;
22223 esac;
22224 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22225 ???[sx]*):;;*)false;;esac;fi
22226 '\'' sh
22229 as_executable_p=$as_test_x
22231 # Sed expression to map a string onto a valid CPP name.
22232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22234 # Sed expression to map a string onto a valid variable name.
22235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22238 exec 6>&1
22240 # Save the log message, to keep $[0] and so on meaningful, and to
22241 # report actual input values of CONFIG_FILES etc. instead of their
22242 # values after options handling.
22243 ac_log="
22244 This file was extended by $as_me, which was
22245 generated by GNU Autoconf 2.63. Invocation command line was
22247 CONFIG_FILES = $CONFIG_FILES
22248 CONFIG_HEADERS = $CONFIG_HEADERS
22249 CONFIG_LINKS = $CONFIG_LINKS
22250 CONFIG_COMMANDS = $CONFIG_COMMANDS
22251 $ $0 $@
22253 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22256 _ACEOF
22258 case $ac_config_files in *"
22259 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22260 esac
22262 case $ac_config_headers in *"
22263 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22264 esac
22267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22268 # Files that config.status was made for.
22269 config_files="$ac_config_files"
22270 config_headers="$ac_config_headers"
22271 config_commands="$ac_config_commands"
22273 _ACEOF
22275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22276 ac_cs_usage="\
22277 \`$as_me' instantiates files from templates according to the
22278 current configuration.
22280 Usage: $0 [OPTION]... [FILE]...
22282 -h, --help print this help, then exit
22283 -V, --version print version number and configuration settings, then exit
22284 -q, --quiet, --silent
22285 do not print progress messages
22286 -d, --debug don't remove temporary files
22287 --recheck update $as_me by reconfiguring in the same conditions
22288 --file=FILE[:TEMPLATE]
22289 instantiate the configuration file FILE
22290 --header=FILE[:TEMPLATE]
22291 instantiate the configuration header FILE
22293 Configuration files:
22294 $config_files
22296 Configuration headers:
22297 $config_headers
22299 Configuration commands:
22300 $config_commands
22302 Report bugs to <bug-autoconf@gnu.org>."
22304 _ACEOF
22305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22306 ac_cs_version="\\
22307 config.status
22308 configured by $0, generated by GNU Autoconf 2.63,
22309 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22311 Copyright (C) 2008 Free Software Foundation, Inc.
22312 This config.status script is free software; the Free Software Foundation
22313 gives unlimited permission to copy, distribute and modify it."
22315 ac_pwd='$ac_pwd'
22316 srcdir='$srcdir'
22317 INSTALL='$INSTALL'
22318 AWK='$AWK'
22319 test -n "\$AWK" || AWK=awk
22320 _ACEOF
22322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22323 # The default lists apply if the user does not specify any file.
22324 ac_need_defaults=:
22325 while test $# != 0
22327 case $1 in
22328 --*=*)
22329 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22330 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22331 ac_shift=:
22334 ac_option=$1
22335 ac_optarg=$2
22336 ac_shift=shift
22338 esac
22340 case $ac_option in
22341 # Handling of the options.
22342 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22343 ac_cs_recheck=: ;;
22344 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22345 $as_echo "$ac_cs_version"; exit ;;
22346 --debug | --debu | --deb | --de | --d | -d )
22347 debug=: ;;
22348 --file | --fil | --fi | --f )
22349 $ac_shift
22350 case $ac_optarg in
22351 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22352 esac
22353 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22354 ac_need_defaults=false;;
22355 --header | --heade | --head | --hea )
22356 $ac_shift
22357 case $ac_optarg in
22358 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22359 esac
22360 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22361 ac_need_defaults=false;;
22362 --he | --h)
22363 # Conflict between --help and --header
22364 { $as_echo "$as_me: error: ambiguous option: $1
22365 Try \`$0 --help' for more information." >&2
22366 { (exit 1); exit 1; }; };;
22367 --help | --hel | -h )
22368 $as_echo "$ac_cs_usage"; exit ;;
22369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22370 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22371 ac_cs_silent=: ;;
22373 # This is an error.
22374 -*) { $as_echo "$as_me: error: unrecognized option: $1
22375 Try \`$0 --help' for more information." >&2
22376 { (exit 1); exit 1; }; } ;;
22378 *) ac_config_targets="$ac_config_targets $1"
22379 ac_need_defaults=false ;;
22381 esac
22382 shift
22383 done
22385 ac_configure_extra_args=
22387 if $ac_cs_silent; then
22388 exec 6>/dev/null
22389 ac_configure_extra_args="$ac_configure_extra_args --silent"
22392 _ACEOF
22393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22394 if \$ac_cs_recheck; then
22395 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22396 shift
22397 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22398 CONFIG_SHELL='$SHELL'
22399 export CONFIG_SHELL
22400 exec "\$@"
22403 _ACEOF
22404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22405 exec 5>>config.log
22407 echo
22408 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22409 ## Running $as_me. ##
22410 _ASBOX
22411 $as_echo "$ac_log"
22412 } >&5
22414 _ACEOF
22415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22417 # INIT-COMMANDS
22419 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22421 _ACEOF
22423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22425 # Handling of arguments.
22426 for ac_config_target in $ac_config_targets
22428 case $ac_config_target in
22429 "include/cloog/cloog-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/cloog/cloog-config.h" ;;
22430 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22431 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22432 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22433 "include/cloog/cloog.h") CONFIG_FILES="$CONFIG_FILES include/cloog/cloog.h" ;;
22434 "autoconf/Doxyfile") CONFIG_FILES="$CONFIG_FILES autoconf/Doxyfile" ;;
22435 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22436 "genversion.sh") CONFIG_FILES="$CONFIG_FILES genversion.sh" ;;
22437 "version.h") CONFIG_COMMANDS="$CONFIG_COMMANDS version.h" ;;
22438 "doc/gitversion.texi") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/gitversion.texi" ;;
22440 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22441 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22442 { (exit 1); exit 1; }; };;
22443 esac
22444 done
22447 # If the user did not use the arguments to specify the items to instantiate,
22448 # then the envvar interface is used. Set only those that are not.
22449 # We use the long form for the default assignment because of an extremely
22450 # bizarre bug on SunOS 4.1.3.
22451 if $ac_need_defaults; then
22452 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22453 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22454 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22457 # Have a temporary directory for convenience. Make it in the build tree
22458 # simply because there is no reason against having it here, and in addition,
22459 # creating and moving files from /tmp can sometimes cause problems.
22460 # Hook for its removal unless debugging.
22461 # Note that there is a small window in which the directory will not be cleaned:
22462 # after its creation but before its name has been assigned to `$tmp'.
22463 $debug ||
22465 tmp=
22466 trap 'exit_status=$?
22467 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22469 trap '{ (exit 1); exit 1; }' 1 2 13 15
22471 # Create a (secure) tmp directory for tmp files.
22474 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22475 test -n "$tmp" && test -d "$tmp"
22476 } ||
22478 tmp=./conf$$-$RANDOM
22479 (umask 077 && mkdir "$tmp")
22480 } ||
22482 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22483 { (exit 1); exit 1; }
22486 # Set up the scripts for CONFIG_FILES section.
22487 # No need to generate them if there are no CONFIG_FILES.
22488 # This happens for instance with `./config.status config.h'.
22489 if test -n "$CONFIG_FILES"; then
22492 ac_cr=' '
22493 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22494 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22495 ac_cs_awk_cr='\\r'
22496 else
22497 ac_cs_awk_cr=$ac_cr
22500 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22501 _ACEOF
22505 echo "cat >conf$$subs.awk <<_ACEOF" &&
22506 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22507 echo "_ACEOF"
22508 } >conf$$subs.sh ||
22509 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22510 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22511 { (exit 1); exit 1; }; }
22512 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22513 ac_delim='%!_!# '
22514 for ac_last_try in false false false false false :; do
22515 . ./conf$$subs.sh ||
22516 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22517 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22518 { (exit 1); exit 1; }; }
22520 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22521 if test $ac_delim_n = $ac_delim_num; then
22522 break
22523 elif $ac_last_try; then
22524 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22525 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22526 { (exit 1); exit 1; }; }
22527 else
22528 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22530 done
22531 rm -f conf$$subs.sh
22533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22534 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22535 _ACEOF
22536 sed -n '
22538 s/^/S["/; s/!.*/"]=/
22541 s/^[^!]*!//
22542 :repl
22543 t repl
22544 s/'"$ac_delim"'$//
22545 t delim
22548 s/\(.\{148\}\).*/\1/
22549 t more1
22550 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22553 b repl
22554 :more1
22555 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22558 s/.\{148\}//
22559 t nl
22560 :delim
22562 s/\(.\{148\}\).*/\1/
22563 t more2
22564 s/["\\]/\\&/g; s/^/"/; s/$/"/
22567 :more2
22568 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22571 s/.\{148\}//
22572 t delim
22573 ' <conf$$subs.awk | sed '
22574 /^[^""]/{
22576 s/\n//
22578 ' >>$CONFIG_STATUS || ac_write_fail=1
22579 rm -f conf$$subs.awk
22580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22581 _ACAWK
22582 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22583 for (key in S) S_is_set[key] = 1
22584 FS = "\a"
22588 line = $ 0
22589 nfields = split(line, field, "@")
22590 substed = 0
22591 len = length(field[1])
22592 for (i = 2; i < nfields; i++) {
22593 key = field[i]
22594 keylen = length(key)
22595 if (S_is_set[key]) {
22596 value = S[key]
22597 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22598 len += length(value) + length(field[++i])
22599 substed = 1
22600 } else
22601 len += 1 + keylen
22604 print line
22607 _ACAWK
22608 _ACEOF
22609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22610 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22611 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22612 else
22614 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22615 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22616 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22617 { (exit 1); exit 1; }; }
22618 _ACEOF
22620 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22621 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22622 # trailing colons and then remove the whole line if VPATH becomes empty
22623 # (actually we leave an empty line to preserve line numbers).
22624 if test "x$srcdir" = x.; then
22625 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22626 s/:*\$(srcdir):*/:/
22627 s/:*\${srcdir}:*/:/
22628 s/:*@srcdir@:*/:/
22629 s/^\([^=]*=[ ]*\):*/\1/
22630 s/:*$//
22631 s/^[^=]*=[ ]*$//
22635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22636 fi # test -n "$CONFIG_FILES"
22638 # Set up the scripts for CONFIG_HEADERS section.
22639 # No need to generate them if there are no CONFIG_HEADERS.
22640 # This happens for instance with `./config.status Makefile'.
22641 if test -n "$CONFIG_HEADERS"; then
22642 cat >"$tmp/defines.awk" <<\_ACAWK ||
22643 BEGIN {
22644 _ACEOF
22646 # Transform confdefs.h into an awk script `defines.awk', embedded as
22647 # here-document in config.status, that substitutes the proper values into
22648 # config.h.in to produce config.h.
22650 # Create a delimiter string that does not exist in confdefs.h, to ease
22651 # handling of long lines.
22652 ac_delim='%!_!# '
22653 for ac_last_try in false false :; do
22654 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22655 if test -z "$ac_t"; then
22656 break
22657 elif $ac_last_try; then
22658 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22659 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22660 { (exit 1); exit 1; }; }
22661 else
22662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22664 done
22666 # For the awk script, D is an array of macro values keyed by name,
22667 # likewise P contains macro parameters if any. Preserve backslash
22668 # newline sequences.
22670 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22671 sed -n '
22672 s/.\{148\}/&'"$ac_delim"'/g
22673 t rset
22674 :rset
22675 s/^[ ]*#[ ]*define[ ][ ]*/ /
22676 t def
22678 :def
22679 s/\\$//
22680 t bsnl
22681 s/["\\]/\\&/g
22682 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22683 D["\1"]=" \3"/p
22684 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22686 :bsnl
22687 s/["\\]/\\&/g
22688 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22689 D["\1"]=" \3\\\\\\n"\\/p
22690 t cont
22691 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22692 t cont
22694 :cont
22696 s/.\{148\}/&'"$ac_delim"'/g
22697 t clear
22698 :clear
22699 s/\\$//
22700 t bsnlc
22701 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22703 :bsnlc
22704 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22705 b cont
22706 ' <confdefs.h | sed '
22707 s/'"$ac_delim"'/"\\\
22708 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22711 for (key in D) D_is_set[key] = 1
22712 FS = "\a"
22714 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22715 line = \$ 0
22716 split(line, arg, " ")
22717 if (arg[1] == "#") {
22718 defundef = arg[2]
22719 mac1 = arg[3]
22720 } else {
22721 defundef = substr(arg[1], 2)
22722 mac1 = arg[2]
22724 split(mac1, mac2, "(") #)
22725 macro = mac2[1]
22726 prefix = substr(line, 1, index(line, defundef) - 1)
22727 if (D_is_set[macro]) {
22728 # Preserve the white space surrounding the "#".
22729 print prefix "define", macro P[macro] D[macro]
22730 next
22731 } else {
22732 # Replace #undef with comments. This is necessary, for example,
22733 # in the case of _POSIX_SOURCE, which is predefined and required
22734 # on some systems where configure will not decide to define it.
22735 if (defundef == "undef") {
22736 print "/*", prefix defundef, macro, "*/"
22737 next
22741 { print }
22742 _ACAWK
22743 _ACEOF
22744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22745 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22746 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22747 { (exit 1); exit 1; }; }
22748 fi # test -n "$CONFIG_HEADERS"
22751 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22752 shift
22753 for ac_tag
22755 case $ac_tag in
22756 :[FHLC]) ac_mode=$ac_tag; continue;;
22757 esac
22758 case $ac_mode$ac_tag in
22759 :[FHL]*:*);;
22760 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22761 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22762 { (exit 1); exit 1; }; };;
22763 :[FH]-) ac_tag=-:-;;
22764 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22765 esac
22766 ac_save_IFS=$IFS
22767 IFS=:
22768 set x $ac_tag
22769 IFS=$ac_save_IFS
22770 shift
22771 ac_file=$1
22772 shift
22774 case $ac_mode in
22775 :L) ac_source=$1;;
22776 :[FH])
22777 ac_file_inputs=
22778 for ac_f
22780 case $ac_f in
22781 -) ac_f="$tmp/stdin";;
22782 *) # Look for the file first in the build tree, then in the source tree
22783 # (if the path is not absolute). The absolute path cannot be DOS-style,
22784 # because $ac_f cannot contain `:'.
22785 test -f "$ac_f" ||
22786 case $ac_f in
22787 [\\/$]*) false;;
22788 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22789 esac ||
22790 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22791 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22792 { (exit 1); exit 1; }; };;
22793 esac
22794 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22795 ac_file_inputs="$ac_file_inputs '$ac_f'"
22796 done
22798 # Let's still pretend it is `configure' which instantiates (i.e., don't
22799 # use $as_me), people would be surprised to read:
22800 # /* config.h. Generated by config.status. */
22801 configure_input='Generated from '`
22802 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22803 `' by configure.'
22804 if test x"$ac_file" != x-; then
22805 configure_input="$ac_file. $configure_input"
22806 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22807 $as_echo "$as_me: creating $ac_file" >&6;}
22809 # Neutralize special characters interpreted by sed in replacement strings.
22810 case $configure_input in #(
22811 *\&* | *\|* | *\\* )
22812 ac_sed_conf_input=`$as_echo "$configure_input" |
22813 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22814 *) ac_sed_conf_input=$configure_input;;
22815 esac
22817 case $ac_tag in
22818 *:-:* | *:-) cat >"$tmp/stdin" \
22819 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22820 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22821 { (exit 1); exit 1; }; } ;;
22822 esac
22824 esac
22826 ac_dir=`$as_dirname -- "$ac_file" ||
22827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22828 X"$ac_file" : 'X\(//\)[^/]' \| \
22829 X"$ac_file" : 'X\(//\)$' \| \
22830 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22831 $as_echo X"$ac_file" |
22832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22833 s//\1/
22836 /^X\(\/\/\)[^/].*/{
22837 s//\1/
22840 /^X\(\/\/\)$/{
22841 s//\1/
22844 /^X\(\/\).*/{
22845 s//\1/
22848 s/.*/./; q'`
22849 { as_dir="$ac_dir"
22850 case $as_dir in #(
22851 -*) as_dir=./$as_dir;;
22852 esac
22853 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22854 as_dirs=
22855 while :; do
22856 case $as_dir in #(
22857 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22858 *) as_qdir=$as_dir;;
22859 esac
22860 as_dirs="'$as_qdir' $as_dirs"
22861 as_dir=`$as_dirname -- "$as_dir" ||
22862 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22863 X"$as_dir" : 'X\(//\)[^/]' \| \
22864 X"$as_dir" : 'X\(//\)$' \| \
22865 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22866 $as_echo X"$as_dir" |
22867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22868 s//\1/
22871 /^X\(\/\/\)[^/].*/{
22872 s//\1/
22875 /^X\(\/\/\)$/{
22876 s//\1/
22879 /^X\(\/\).*/{
22880 s//\1/
22883 s/.*/./; q'`
22884 test -d "$as_dir" && break
22885 done
22886 test -z "$as_dirs" || eval "mkdir $as_dirs"
22887 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22888 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22889 { (exit 1); exit 1; }; }; }
22890 ac_builddir=.
22892 case "$ac_dir" in
22893 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22895 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22896 # A ".." for each directory in $ac_dir_suffix.
22897 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22898 case $ac_top_builddir_sub in
22899 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22900 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22901 esac ;;
22902 esac
22903 ac_abs_top_builddir=$ac_pwd
22904 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22905 # for backward compatibility:
22906 ac_top_builddir=$ac_top_build_prefix
22908 case $srcdir in
22909 .) # We are building in place.
22910 ac_srcdir=.
22911 ac_top_srcdir=$ac_top_builddir_sub
22912 ac_abs_top_srcdir=$ac_pwd ;;
22913 [\\/]* | ?:[\\/]* ) # Absolute name.
22914 ac_srcdir=$srcdir$ac_dir_suffix;
22915 ac_top_srcdir=$srcdir
22916 ac_abs_top_srcdir=$srcdir ;;
22917 *) # Relative name.
22918 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22919 ac_top_srcdir=$ac_top_build_prefix$srcdir
22920 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22921 esac
22922 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22925 case $ac_mode in
22928 # CONFIG_FILE
22931 case $INSTALL in
22932 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22933 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22934 esac
22935 _ACEOF
22937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22938 # If the template does not know about datarootdir, expand it.
22939 # FIXME: This hack should be removed a few years after 2.60.
22940 ac_datarootdir_hack=; ac_datarootdir_seen=
22942 ac_sed_dataroot='
22943 /datarootdir/ {
22947 /@datadir@/p
22948 /@docdir@/p
22949 /@infodir@/p
22950 /@localedir@/p
22951 /@mandir@/p
22953 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22954 *datarootdir*) ac_datarootdir_seen=yes;;
22955 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22956 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22957 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22958 _ACEOF
22959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22960 ac_datarootdir_hack='
22961 s&@datadir@&$datadir&g
22962 s&@docdir@&$docdir&g
22963 s&@infodir@&$infodir&g
22964 s&@localedir@&$localedir&g
22965 s&@mandir@&$mandir&g
22966 s&\\\${datarootdir}&$datarootdir&g' ;;
22967 esac
22968 _ACEOF
22970 # Neutralize VPATH when `$srcdir' = `.'.
22971 # Shell code in configure.ac might set extrasub.
22972 # FIXME: do we really want to maintain this feature?
22973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22974 ac_sed_extra="$ac_vpsub
22975 $extrasub
22976 _ACEOF
22977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22979 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22980 s|@configure_input@|$ac_sed_conf_input|;t t
22981 s&@top_builddir@&$ac_top_builddir_sub&;t t
22982 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22983 s&@srcdir@&$ac_srcdir&;t t
22984 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22985 s&@top_srcdir@&$ac_top_srcdir&;t t
22986 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22987 s&@builddir@&$ac_builddir&;t t
22988 s&@abs_builddir@&$ac_abs_builddir&;t t
22989 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22990 s&@INSTALL@&$ac_INSTALL&;t t
22991 $ac_datarootdir_hack
22993 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22994 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22995 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22996 { (exit 1); exit 1; }; }
22998 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22999 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23000 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23001 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23002 which seems to be undefined. Please make sure it is defined." >&5
23003 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23004 which seems to be undefined. Please make sure it is defined." >&2;}
23006 rm -f "$tmp/stdin"
23007 case $ac_file in
23008 -) cat "$tmp/out" && rm -f "$tmp/out";;
23009 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23010 esac \
23011 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23012 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23013 { (exit 1); exit 1; }; }
23017 # CONFIG_HEADER
23019 if test x"$ac_file" != x-; then
23021 $as_echo "/* $configure_input */" \
23022 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23023 } >"$tmp/config.h" \
23024 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23025 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23026 { (exit 1); exit 1; }; }
23027 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23028 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23029 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23030 else
23031 rm -f "$ac_file"
23032 mv "$tmp/config.h" "$ac_file" \
23033 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23034 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23035 { (exit 1); exit 1; }; }
23037 else
23038 $as_echo "/* $configure_input */" \
23039 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23040 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23041 $as_echo "$as_me: error: could not create -" >&2;}
23042 { (exit 1); exit 1; }; }
23044 # Compute "$ac_file"'s index in $config_headers.
23045 _am_stamp_count=1
23046 for _am_header in $config_headers :; do
23047 case $_am_header in
23048 "$ac_file" | "$ac_file":* )
23049 break ;;
23051 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23052 esac
23053 done
23054 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
23055 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23056 X"$ac_file" : 'X\(//\)[^/]' \| \
23057 X"$ac_file" : 'X\(//\)$' \| \
23058 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23059 $as_echo X"$ac_file" |
23060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23061 s//\1/
23064 /^X\(\/\/\)[^/].*/{
23065 s//\1/
23068 /^X\(\/\/\)$/{
23069 s//\1/
23072 /^X\(\/\).*/{
23073 s//\1/
23076 s/.*/./; q'`/stamp-h$_am_stamp_count
23079 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23080 $as_echo "$as_me: executing $ac_file commands" >&6;}
23082 esac
23085 case $ac_file$ac_mode in
23086 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23087 # Strip MF so we end up with the name of the file.
23088 mf=`echo "$mf" | sed -e 's/:.*$//'`
23089 # Check whether this is an Automake generated Makefile or not.
23090 # We used to match only the files named `Makefile.in', but
23091 # some people rename them; so instead we look at the file content.
23092 # Grep'ing the first line is not enough: some people post-process
23093 # each Makefile.in and add a new line on top of each file to say so.
23094 # So let's grep whole file.
23095 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23096 dirpart=`$as_dirname -- "$mf" ||
23097 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23098 X"$mf" : 'X\(//\)[^/]' \| \
23099 X"$mf" : 'X\(//\)$' \| \
23100 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23101 $as_echo X"$mf" |
23102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23103 s//\1/
23106 /^X\(\/\/\)[^/].*/{
23107 s//\1/
23110 /^X\(\/\/\)$/{
23111 s//\1/
23114 /^X\(\/\).*/{
23115 s//\1/
23118 s/.*/./; q'`
23119 else
23120 continue
23122 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23123 # Extract the definition of DEP_FILES from the Makefile without
23124 # running `make'.
23125 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
23126 test -z "$DEPDIR" && continue
23127 # When using ansi2knr, U may be empty or an underscore; expand it
23128 U=`sed -n -e '/^U = / s///p' < "$mf"`
23129 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23130 # We invoke sed twice because it is the simplest approach to
23131 # changing $(DEPDIR) to its actual value in the expansion.
23132 for file in `sed -n -e '
23133 /^DEP_FILES = .*\\\\$/ {
23134 s/^DEP_FILES = //
23135 :loop
23136 s/\\\\$//
23139 /\\\\$/ b loop
23142 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23143 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23144 # Make sure the directory exists.
23145 test -f "$dirpart/$file" && continue
23146 fdir=`$as_dirname -- "$file" ||
23147 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23148 X"$file" : 'X\(//\)[^/]' \| \
23149 X"$file" : 'X\(//\)$' \| \
23150 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23151 $as_echo X"$file" |
23152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23153 s//\1/
23156 /^X\(\/\/\)[^/].*/{
23157 s//\1/
23160 /^X\(\/\/\)$/{
23161 s//\1/
23164 /^X\(\/\).*/{
23165 s//\1/
23168 s/.*/./; q'`
23169 { as_dir=$dirpart/$fdir
23170 case $as_dir in #(
23171 -*) as_dir=./$as_dir;;
23172 esac
23173 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23174 as_dirs=
23175 while :; do
23176 case $as_dir in #(
23177 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23178 *) as_qdir=$as_dir;;
23179 esac
23180 as_dirs="'$as_qdir' $as_dirs"
23181 as_dir=`$as_dirname -- "$as_dir" ||
23182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23183 X"$as_dir" : 'X\(//\)[^/]' \| \
23184 X"$as_dir" : 'X\(//\)$' \| \
23185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23186 $as_echo X"$as_dir" |
23187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23188 s//\1/
23191 /^X\(\/\/\)[^/].*/{
23192 s//\1/
23195 /^X\(\/\/\)$/{
23196 s//\1/
23199 /^X\(\/\).*/{
23200 s//\1/
23203 s/.*/./; q'`
23204 test -d "$as_dir" && break
23205 done
23206 test -z "$as_dirs" || eval "mkdir $as_dirs"
23207 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23208 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23209 { (exit 1); exit 1; }; }; }
23210 # echo "creating $dirpart/$file"
23211 echo '# dummy' > "$dirpart/$file"
23212 done
23213 done
23215 "genversion.sh":F) chmod +x genversion.sh ;;
23216 "version.h":C) echo '#define CLOOG_HEAD "'`./genversion.sh`'"' > version.h ;;
23217 "doc/gitversion.texi":C) echo '@set VERSION '`./genversion.sh`'' > doc/gitversion.texi ;;
23219 esac
23220 done # for ac_tag
23223 { (exit 0); exit 0; }
23224 _ACEOF
23225 chmod +x $CONFIG_STATUS
23226 ac_clean_files=$ac_clean_files_save
23228 test $ac_write_fail = 0 ||
23229 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23230 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23231 { (exit 1); exit 1; }; }
23234 # configure is writing to config.log, and then calls config.status.
23235 # config.status does its own redirection, appending to config.log.
23236 # Unfortunately, on DOS this fails, as config.log is still kept open
23237 # by configure, so config.status won't be able to write to it; its
23238 # output is simply discarded. So we exec the FD to /dev/null,
23239 # effectively closing config.log, so it can be properly (re)opened and
23240 # appended to by config.status. When coming back to configure, we
23241 # need to make the FD available again.
23242 if test "$no_create" != yes; then
23243 ac_cs_success=:
23244 ac_config_status_args=
23245 test "$silent" = yes &&
23246 ac_config_status_args="$ac_config_status_args --quiet"
23247 exec 5>/dev/null
23248 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23249 exec 5>>config.log
23250 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23251 # would make configure fail if this is the last instruction.
23252 $ac_cs_success || { (exit 1); exit 1; }
23254 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23255 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23256 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23261 echo " /*-----------------------------------------------*"
23262 echo " * CLooG configuration is OK *"
23263 echo " *-----------------------------------------------*/"
23264 echo "It appears that your system is OK to start CLooG compilation. You need"
23265 echo "now to type \"make\". After compilation, you should check CLooG by typing"
23266 echo "\"make check\". If no problem occur, you can type \"make uninstall\" if"
23267 echo "you are upgrading an old version. Lastly type \"make install\" to install"
23268 echo "CLooG on your system (log as root if necessary)."