2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 *v*x* | *x*v* ) as_opts=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status=$1; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
543 # Remove one level of quotation (which was required for Make).
544 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
552 elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556 # Yippee, $echo works!
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582 echo_test_string=`eval $cmd` &&
583 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592 test "X$echo_testing_string" = "X$echo_test_string"; then
595 # The Solaris, AIX, and Digital Unix default echo programs unquote
596 # backslashes. This makes it impossible to quote backslashes using
597 # echo "$something" | sed 's/\\/\\\\/g'
599 # So, first we look for a working echo in the user's PATH.
601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602 for dir in $PATH /usr/ucb; do
604 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
614 if test "X$echo" = Xecho; then
615 # We didn't find a better echo, so look for alternatives.
616 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618 test "X$echo_testing_string" = "X$echo_test_string"; then
619 # This shell has a builtin print -r that does the trick.
621 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622 test "X$CONFIG_SHELL" != X/bin/ksh; then
623 # If we have ksh, try running configure again with it.
624 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625 export ORIGINAL_CONFIG_SHELL
626 CONFIG_SHELL=/bin/ksh
628 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
632 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
637 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643 SHELL="$CONFIG_SHELL"
645 echo="$CONFIG_SHELL $0 --fallback-echo"
646 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647 test "X$echo_testing_string" = 'X\t' &&
648 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 echo="$CONFIG_SHELL $0 --fallback-echo"
652 # maybe with a smaller string...
655 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
663 if test "$prev" != 'sed 50q "$0"'; then
664 echo_test_string=`eval $prev`
665 export echo_test_string
666 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668 # Oops. We lost completely, so just stick with echo.
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
687 tagnames=${tagnames+${tagnames},}CXX
689 tagnames=${tagnames+${tagnames},}F77
691 test -n "$DJDIR" || exec 7<&0 </dev/null
695 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
696 # so uname gets run too.
697 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
702 ac_default_prefix=/usr/local
704 ac_config_libobj_dir=.
711 # Identity of this package.
719 ac_unique_file="src/control/control.c"
720 ac_default_prefix=/usr
721 # Factoring default headers for most tests.
722 ac_includes_default="\
724 #ifdef HAVE_SYS_TYPES_H
725 # include <sys/types.h>
727 #ifdef HAVE_SYS_STAT_H
728 # include <sys/stat.h>
734 # ifdef HAVE_STDLIB_H
739 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
744 #ifdef HAVE_STRINGS_H
745 # include <strings.h>
747 #ifdef HAVE_INTTYPES_H
748 # include <inttypes.h>
757 ac_subst_vars='am__EXEEXT_FALSE
761 BUILD_CTL_PLUGIN_EXT_FALSE
762 BUILD_CTL_PLUGIN_EXT_TRUE
763 BUILD_CTL_PLUGIN_SHM_FALSE
764 BUILD_CTL_PLUGIN_SHM_TRUE
765 BUILD_CTL_PLUGIN_FALSE
766 BUILD_CTL_PLUGIN_TRUE
767 BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE
768 BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE
769 BUILD_PCM_PLUGIN_IOPLUG_FALSE
770 BUILD_PCM_PLUGIN_IOPLUG_TRUE
771 BUILD_PCM_PLUGIN_EXTPLUG_FALSE
772 BUILD_PCM_PLUGIN_EXTPLUG_TRUE
773 BUILD_PCM_PLUGIN_SOFTVOL_FALSE
774 BUILD_PCM_PLUGIN_SOFTVOL_TRUE
775 BUILD_PCM_PLUGIN_IEC958_FALSE
776 BUILD_PCM_PLUGIN_IEC958_TRUE
777 BUILD_PCM_PLUGIN_ASYM_FALSE
778 BUILD_PCM_PLUGIN_ASYM_TRUE
779 BUILD_PCM_PLUGIN_DSNOOP_FALSE
780 BUILD_PCM_PLUGIN_DSNOOP_TRUE
781 BUILD_PCM_PLUGIN_DSHARE_FALSE
782 BUILD_PCM_PLUGIN_DSHARE_TRUE
783 BUILD_PCM_PLUGIN_DMIX_FALSE
784 BUILD_PCM_PLUGIN_DMIX_TRUE
785 BUILD_PCM_PLUGIN_LADSPA_FALSE
786 BUILD_PCM_PLUGIN_LADSPA_TRUE
787 BUILD_PCM_PLUGIN_LFLOAT_FALSE
788 BUILD_PCM_PLUGIN_LFLOAT_TRUE
789 BUILD_PCM_PLUGIN_HOOKS_FALSE
790 BUILD_PCM_PLUGIN_HOOKS_TRUE
791 BUILD_PCM_PLUGIN_METER_FALSE
792 BUILD_PCM_PLUGIN_METER_TRUE
793 BUILD_PCM_PLUGIN_SHARE_FALSE
794 BUILD_PCM_PLUGIN_SHARE_TRUE
795 BUILD_PCM_PLUGIN_EMPTY_FALSE
796 BUILD_PCM_PLUGIN_EMPTY_TRUE
797 BUILD_PCM_PLUGIN_NULL_FALSE
798 BUILD_PCM_PLUGIN_NULL_TRUE
799 BUILD_PCM_PLUGIN_FILE_FALSE
800 BUILD_PCM_PLUGIN_FILE_TRUE
801 BUILD_PCM_PLUGIN_SHM_FALSE
802 BUILD_PCM_PLUGIN_SHM_TRUE
803 BUILD_PCM_PLUGIN_MULTI_FALSE
804 BUILD_PCM_PLUGIN_MULTI_TRUE
805 BUILD_PCM_PLUGIN_PLUG_FALSE
806 BUILD_PCM_PLUGIN_PLUG_TRUE
807 BUILD_PCM_PLUGIN_RATE_FALSE
808 BUILD_PCM_PLUGIN_RATE_TRUE
809 BUILD_PCM_PLUGIN_ADPCM_FALSE
810 BUILD_PCM_PLUGIN_ADPCM_TRUE
811 BUILD_PCM_PLUGIN_ALAW_FALSE
812 BUILD_PCM_PLUGIN_ALAW_TRUE
813 BUILD_PCM_PLUGIN_MULAW_FALSE
814 BUILD_PCM_PLUGIN_MULAW_TRUE
815 BUILD_PCM_PLUGIN_ROUTE_FALSE
816 BUILD_PCM_PLUGIN_ROUTE_TRUE
817 BUILD_PCM_PLUGIN_LINEAR_FALSE
818 BUILD_PCM_PLUGIN_LINEAR_TRUE
819 BUILD_PCM_PLUGIN_COPY_FALSE
820 BUILD_PCM_PLUGIN_COPY_TRUE
821 BUILD_PCM_PLUGIN_FALSE
822 BUILD_PCM_PLUGIN_TRUE
841 KEEP_OLD_SYMBOLS_FALSE
842 KEEP_OLD_SYMBOLS_TRUE
847 SYMBOLIC_FUNCTIONS_FALSE
848 SYMBOLIC_FUNCTIONS_TRUE
849 VERSIONED_SYMBOLS_FALSE
850 VERSIONED_SYMBOLS_TRUE
908 INSTALL_STRIP_PROGRAM
958 program_transform_name
971 enable_option_checking
973 enable_dependency_tracking
985 enable_symbolic_functions
1011 ac_precious_vars='build_alias
1028 # Initialize some variables set by options.
1030 ac_init_version=false
1031 ac_unrecognized_opts=
1032 ac_unrecognized_sep=
1033 # The variables have the same names as the options, with
1034 # dashes changed to underlines.
1035 cache_file=/dev/null
1042 program_transform_name=s,x,x,
1050 # Installation directory options.
1051 # These are left unexpanded so users can "make install exec_prefix=/foo"
1052 # and all the variables that are supposed to be based on exec_prefix
1053 # by default will actually change.
1054 # Use braces instead of parens because sh, perl, etc. also accept them.
1055 # (The list follows the same order as the GNU Coding Standards.)
1056 bindir='${exec_prefix}/bin'
1057 sbindir='${exec_prefix}/sbin'
1058 libexecdir='${exec_prefix}/libexec'
1059 datarootdir='${prefix}/share'
1060 datadir='${datarootdir}'
1061 sysconfdir='${prefix}/etc'
1062 sharedstatedir='${prefix}/com'
1063 localstatedir='${prefix}/var'
1064 includedir='${prefix}/include'
1065 oldincludedir='/usr/include'
1066 docdir='${datarootdir}/doc/${PACKAGE}'
1067 infodir='${datarootdir}/info'
1072 libdir='${exec_prefix}/lib'
1073 localedir='${datarootdir}/locale'
1074 mandir='${datarootdir}/man'
1080 # If the previous option needs an argument, assign it.
1081 if test -n "$ac_prev"; then
1082 eval $ac_prev=\$ac_option
1088 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1093 # Accept the important Cygnus configure options, so we can diagnose typos.
1095 case $ac_dashdash$ac_option in
1099 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1101 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1102 bindir=$ac_optarg ;;
1104 -build | --build | --buil | --bui | --bu)
1105 ac_prev=build_alias ;;
1106 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1107 build_alias=$ac_optarg ;;
1109 -cache-file | --cache-file | --cache-fil | --cache-fi \
1110 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1111 ac_prev=cache_file ;;
1112 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1113 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1114 cache_file=$ac_optarg ;;
1116 --config-cache | -C)
1117 cache_file=config.cache ;;
1119 -datadir | --datadir | --datadi | --datad)
1121 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1122 datadir=$ac_optarg ;;
1124 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1125 | --dataroo | --dataro | --datar)
1126 ac_prev=datarootdir ;;
1127 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1128 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1129 datarootdir=$ac_optarg ;;
1131 -disable-* | --disable-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid feature name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1140 "enable_$ac_useropt"
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1145 eval enable_$ac_useropt=no ;;
1147 -docdir | --docdir | --docdi | --doc | --do)
1149 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1150 docdir=$ac_optarg ;;
1152 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1154 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1155 dvidir=$ac_optarg ;;
1157 -enable-* | --enable-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error $? "invalid feature name: $ac_useropt"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1166 "enable_$ac_useropt"
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1171 eval enable_$ac_useropt=\$ac_optarg ;;
1173 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1174 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1175 | --exec | --exe | --ex)
1176 ac_prev=exec_prefix ;;
1177 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1178 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1179 | --exec=* | --exe=* | --ex=*)
1180 exec_prefix=$ac_optarg ;;
1182 -gas | --gas | --ga | --g)
1183 # Obsolete; use --with-gas.
1186 -help | --help | --hel | --he | -h)
1187 ac_init_help=long ;;
1188 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1189 ac_init_help=recursive ;;
1190 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1191 ac_init_help=short ;;
1193 -host | --host | --hos | --ho)
1194 ac_prev=host_alias ;;
1195 -host=* | --host=* | --hos=* | --ho=*)
1196 host_alias=$ac_optarg ;;
1198 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1200 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1202 htmldir=$ac_optarg ;;
1204 -includedir | --includedir | --includedi | --included | --include \
1205 | --includ | --inclu | --incl | --inc)
1206 ac_prev=includedir ;;
1207 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1208 | --includ=* | --inclu=* | --incl=* | --inc=*)
1209 includedir=$ac_optarg ;;
1211 -infodir | --infodir | --infodi | --infod | --info | --inf)
1213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1214 infodir=$ac_optarg ;;
1216 -libdir | --libdir | --libdi | --libd)
1218 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1219 libdir=$ac_optarg ;;
1221 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1222 | --libexe | --libex | --libe)
1223 ac_prev=libexecdir ;;
1224 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1225 | --libexe=* | --libex=* | --libe=*)
1226 libexecdir=$ac_optarg ;;
1228 -localedir | --localedir | --localedi | --localed | --locale)
1229 ac_prev=localedir ;;
1230 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1231 localedir=$ac_optarg ;;
1233 -localstatedir | --localstatedir | --localstatedi | --localstated \
1234 | --localstate | --localstat | --localsta | --localst | --locals)
1235 ac_prev=localstatedir ;;
1236 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1237 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1238 localstatedir=$ac_optarg ;;
1240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1243 mandir=$ac_optarg ;;
1245 -nfp | --nfp | --nf)
1246 # Obsolete; use --without-fp.
1249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1250 | --no-cr | --no-c | -n)
1253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1259 | --oldin | --oldi | --old | --ol | --o)
1260 ac_prev=oldincludedir ;;
1261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1264 oldincludedir=$ac_optarg ;;
1266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1269 prefix=$ac_optarg ;;
1271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1272 | --program-pre | --program-pr | --program-p)
1273 ac_prev=program_prefix ;;
1274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1276 program_prefix=$ac_optarg ;;
1278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1279 | --program-suf | --program-su | --program-s)
1280 ac_prev=program_suffix ;;
1281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1283 program_suffix=$ac_optarg ;;
1285 -program-transform-name | --program-transform-name \
1286 | --program-transform-nam | --program-transform-na \
1287 | --program-transform-n | --program-transform- \
1288 | --program-transform | --program-transfor \
1289 | --program-transfo | --program-transf \
1290 | --program-trans | --program-tran \
1291 | --progr-tra | --program-tr | --program-t)
1292 ac_prev=program_transform_name ;;
1293 -program-transform-name=* | --program-transform-name=* \
1294 | --program-transform-nam=* | --program-transform-na=* \
1295 | --program-transform-n=* | --program-transform-=* \
1296 | --program-transform=* | --program-transfor=* \
1297 | --program-transfo=* | --program-transf=* \
1298 | --program-trans=* | --program-tran=* \
1299 | --progr-tra=* | --program-tr=* | --program-t=*)
1300 program_transform_name=$ac_optarg ;;
1302 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1304 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1305 pdfdir=$ac_optarg ;;
1307 -psdir | --psdir | --psdi | --psd | --ps)
1309 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1313 | -silent | --silent | --silen | --sile | --sil)
1316 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1318 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1320 sbindir=$ac_optarg ;;
1322 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1323 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1324 | --sharedst | --shareds | --shared | --share | --shar \
1326 ac_prev=sharedstatedir ;;
1327 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1328 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1329 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1331 sharedstatedir=$ac_optarg ;;
1333 -site | --site | --sit)
1335 -site=* | --site=* | --sit=*)
1338 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1340 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1341 srcdir=$ac_optarg ;;
1343 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1344 | --syscon | --sysco | --sysc | --sys | --sy)
1345 ac_prev=sysconfdir ;;
1346 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1347 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1348 sysconfdir=$ac_optarg ;;
1350 -target | --target | --targe | --targ | --tar | --ta | --t)
1351 ac_prev=target_alias ;;
1352 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1353 target_alias=$ac_optarg ;;
1355 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1358 -version | --version | --versio | --versi | --vers | -V)
1359 ac_init_version=: ;;
1362 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1363 # Reject names that are not valid shell variable names.
1364 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1365 as_fn_error $? "invalid package name: $ac_useropt"
1366 ac_useropt_orig=$ac_useropt
1367 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1368 case $ac_user_opts in
1372 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1373 ac_unrecognized_sep=', ';;
1375 eval with_$ac_useropt=\$ac_optarg ;;
1377 -without-* | --without-*)
1378 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1379 # Reject names that are not valid shell variable names.
1380 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1381 as_fn_error $? "invalid package name: $ac_useropt"
1382 ac_useropt_orig=$ac_useropt
1383 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1384 case $ac_user_opts in
1388 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1389 ac_unrecognized_sep=', ';;
1391 eval with_$ac_useropt=no ;;
1394 # Obsolete; use --with-x.
1397 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1398 | --x-incl | --x-inc | --x-in | --x-i)
1399 ac_prev=x_includes ;;
1400 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1401 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1402 x_includes=$ac_optarg ;;
1404 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1406 ac_prev=x_libraries ;;
1407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1409 x_libraries=$ac_optarg ;;
1411 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1412 Try \`$0 --help' for more information"
1416 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1417 # Reject names that are not valid shell variable names.
1418 case $ac_envvar in #(
1419 '' | [0-9]* | *[!_$as_cr_alnum]* )
1420 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1422 eval $ac_envvar=\$ac_optarg
1423 export $ac_envvar ;;
1426 # FIXME: should be removed in autoconf 3.0.
1427 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1428 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1429 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1430 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1436 if test -n "$ac_prev"; then
1437 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1438 as_fn_error $? "missing argument to $ac_option"
1441 if test -n "$ac_unrecognized_opts"; then
1442 case $enable_option_checking in
1444 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1445 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1449 # Check all directory arguments for consistency.
1450 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1451 datadir sysconfdir sharedstatedir localstatedir includedir \
1452 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1453 libdir localedir mandir
1455 eval ac_val=\$$ac_var
1456 # Remove trailing slashes.
1459 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1460 eval $ac_var=\$ac_val;;
1462 # Be sure to have absolute directory names.
1464 [\\/$]* | ?:[\\/]* ) continue;;
1465 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1467 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1470 # There might be people who depend on the old broken behavior: `$host'
1471 # used to hold the argument of --host etc.
1472 # FIXME: To remove some day.
1475 target=$target_alias
1477 # FIXME: To remove some day.
1478 if test "x$host_alias" != x; then
1479 if test "x$build_alias" = x; then
1480 cross_compiling=maybe
1481 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1482 If a cross compiler is detected then cross compile mode will be used" >&2
1483 elif test "x$build_alias" != "x$host_alias"; then
1489 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1491 test "$silent" = yes && exec 6>/dev/null
1494 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1495 ac_ls_di=`ls -di .` &&
1496 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1497 as_fn_error $? "working directory cannot be determined"
1498 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1499 as_fn_error $? "pwd does not report name of working directory"
1502 # Find the source files, if location was not specified.
1503 if test -z "$srcdir"; then
1504 ac_srcdir_defaulted=yes
1505 # Try the directory containing this script, then the parent directory.
1506 ac_confdir=`$as_dirname -- "$as_myself" ||
1507 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1508 X"$as_myself" : 'X\(//\)[^/]' \| \
1509 X"$as_myself" : 'X\(//\)$' \| \
1510 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1511 $as_echo X"$as_myself" |
1512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1534 ac_srcdir_defaulted=no
1536 if test ! -r "$srcdir/$ac_unique_file"; then
1537 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1538 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1540 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1542 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1544 # When building in place, set srcdir=.
1545 if test "$ac_abs_confdir" = "$ac_pwd"; then
1548 # Remove unnecessary trailing slashes from srcdir.
1549 # Double slashes in file names in object file debugging info
1550 # mess up M-x gdb in Emacs.
1552 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1554 for ac_var in $ac_precious_vars; do
1555 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1556 eval ac_env_${ac_var}_value=\$${ac_var}
1557 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1558 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1562 # Report the --help message.
1564 if test "$ac_init_help" = "long"; then
1565 # Omit some internal or obsolete options to make the list less imposing.
1566 # This message is too long to be a string in the A/UX 3.1 sh.
1568 \`configure' configures this package to adapt to many kinds of systems.
1570 Usage: $0 [OPTION]... [VAR=VALUE]...
1572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1573 VAR=VALUE. See below for descriptions of some of the useful variables.
1575 Defaults for the options are specified in brackets.
1578 -h, --help display this help and exit
1579 --help=short display options specific to this package
1580 --help=recursive display the short help of all the included packages
1581 -V, --version display version information and exit
1582 -q, --quiet, --silent do not print \`checking ...' messages
1583 --cache-file=FILE cache test results in FILE [disabled]
1584 -C, --config-cache alias for \`--cache-file=config.cache'
1585 -n, --no-create do not create output files
1586 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1588 Installation directories:
1589 --prefix=PREFIX install architecture-independent files in PREFIX
1590 [$ac_default_prefix]
1591 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1594 By default, \`make install' will install all the files in
1595 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1596 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1597 for instance \`--prefix=\$HOME'.
1599 For better control, use the options below.
1601 Fine tuning of the installation directories:
1602 --bindir=DIR user executables [EPREFIX/bin]
1603 --sbindir=DIR system admin executables [EPREFIX/sbin]
1604 --libexecdir=DIR program executables [EPREFIX/libexec]
1605 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1606 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1607 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1608 --libdir=DIR object code libraries [EPREFIX/lib]
1609 --includedir=DIR C header files [PREFIX/include]
1610 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1611 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1612 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1613 --infodir=DIR info documentation [DATAROOTDIR/info]
1614 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1615 --mandir=DIR man documentation [DATAROOTDIR/man]
1616 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1617 --htmldir=DIR html documentation [DOCDIR]
1618 --dvidir=DIR dvi documentation [DOCDIR]
1619 --pdfdir=DIR pdf documentation [DOCDIR]
1620 --psdir=DIR ps documentation [DOCDIR]
1626 --program-prefix=PREFIX prepend PREFIX to installed program names
1627 --program-suffix=SUFFIX append SUFFIX to installed program names
1628 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1631 --build=BUILD configure for building on BUILD [guessed]
1632 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1636 if test -n "$ac_init_help"; then
1641 --disable-option-checking ignore unrecognized --enable/--with options
1642 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1643 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1644 --enable-silent-rules less verbose build output (undo: `make V=1')
1645 --disable-silent-rules verbose build output (undo: `make V=0')
1646 --disable-dependency-tracking speeds up one-time build
1647 --enable-dependency-tracking do not reject slow dependency extractors
1648 --enable-static[=PKGS] build static libraries [default=no]
1649 --enable-shared[=PKGS] build shared libraries [default=yes]
1650 --enable-fast-install[=PKGS]
1651 optimize for fast installation [default=yes]
1652 --disable-libtool-lock avoid locking (might break parallel builds)
1653 --enable-symbolic-functions
1654 use -Bsymbolic-functions option if available
1655 (optmization for size and speed)
1656 --enable-debug enable assert call at the default error message
1658 --enable-resmgr support resmgr (optional)
1659 --disable-aload disable reading /dev/aload*
1660 --disable-mixer disable the mixer component
1661 --disable-pcm disable the PCM component
1662 --disable-rawmidi disable the raw MIDI component
1663 --disable-hwdep disable the hwdep component
1664 --disable-seq disable the sequencer component
1665 --disable-ucm disable the use-case-manager component
1666 --disable-alisp disable the alisp component
1667 --disable-old-symbols disable old obsoleted symbols
1668 --disable-python disable the python components
1671 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1672 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1673 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1674 --with-pic try to use only PIC/non-PIC objects [default=use
1676 --with-tags[=TAGS] include additional configurations [automatic]
1677 --with-configdir=dir path where ALSA config files are stored
1678 --with-plugindir=dir path where ALSA plugin files are stored
1679 --with-pkgconfdir=dir path where pkgconfig files are stored
1680 --with-versioned shared library will be compiled with versioned
1681 symbols (default = yes)
1682 --with-debug library will be compiled with asserts (default =
1684 --with-tmpdir=directory directory to put tmp socket files (/tmp)
1685 --with-softfloat do you have floating point unit on this machine?
1687 --with-libdl Use libdl for plugins (default = yes)
1688 --with-pthread Use pthread (default = yes)
1689 --with-librt Use librt for monotonic clock (default = yes)
1690 --with-alsa-devdir=dir directory with ALSA device files (default /dev/snd)
1691 --with-aload-devdir=dir directory with aload* device files (default /dev)
1692 --with-pythonlibs=ldflags
1693 specify python libraries (-lpthread -lm -ldl
1695 --with-pythonincludes=Cflags
1696 specify python C header files
1697 (-I/usr/include/python)
1698 --with-pcm-plugins=<list>
1699 build PCM plugins (default = all)
1700 --with-ctl-plugins=<list>
1701 build control plugins (default = all)
1703 Some influential environment variables:
1704 CC C compiler command
1705 CFLAGS C compiler flags
1706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1707 nonstandard directory <lib dir>
1708 LIBS libraries to pass to the linker, e.g. -l<library>
1709 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1710 you have headers in a nonstandard directory <include dir>
1712 CXX C++ compiler command
1713 CXXFLAGS C++ compiler flags
1714 CXXCPP C++ preprocessor
1715 F77 Fortran 77 compiler command
1716 FFLAGS Fortran 77 compiler flags
1718 Use these variables to override the choices made by `configure' or to help
1719 it to find libraries and programs with nonstandard names/locations.
1721 Report bugs to the package provider.
1726 if test "$ac_init_help" = "recursive"; then
1727 # If there are subdirs, report their specific --help.
1728 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1729 test -d "$ac_dir" ||
1730 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1735 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1738 # A ".." for each directory in $ac_dir_suffix.
1739 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1740 case $ac_top_builddir_sub in
1741 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1745 ac_abs_top_builddir=$ac_pwd
1746 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1747 # for backward compatibility:
1748 ac_top_builddir=$ac_top_build_prefix
1751 .) # We are building in place.
1753 ac_top_srcdir=$ac_top_builddir_sub
1754 ac_abs_top_srcdir=$ac_pwd ;;
1755 [\\/]* | ?:[\\/]* ) # Absolute name.
1756 ac_srcdir=$srcdir$ac_dir_suffix;
1757 ac_top_srcdir=$srcdir
1758 ac_abs_top_srcdir=$srcdir ;;
1760 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1761 ac_top_srcdir=$ac_top_build_prefix$srcdir
1762 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1764 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1766 cd "$ac_dir" || { ac_status=$?; continue; }
1767 # Check for guested configure.
1768 if test -f "$ac_srcdir/configure.gnu"; then
1770 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1771 elif test -f "$ac_srcdir/configure"; then
1773 $SHELL "$ac_srcdir/configure" --help=recursive
1775 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1777 cd "$ac_pwd" || { ac_status=$?; break; }
1781 test -n "$ac_init_help" && exit $ac_status
1782 if $ac_init_version; then
1785 generated by GNU Autoconf 2.68
1787 Copyright (C) 2010 Free Software Foundation, Inc.
1788 This configure script is free software; the Free Software Foundation
1789 gives unlimited permission to copy, distribute and modify it.
1794 ## ------------------------ ##
1795 ## Autoconf initialization. ##
1796 ## ------------------------ ##
1798 # ac_fn_c_try_compile LINENO
1799 # --------------------------
1800 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_compile ()
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext
1805 if { { ac_try="$ac_compile"
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_compile") 2>conftest.err
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest.$ac_objext; then :
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1834 } # ac_fn_c_try_compile
1836 # ac_fn_c_try_cpp LINENO
1837 # ----------------------
1838 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 if { { ac_try="$ac_cpp conftest.$ac_ext"
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } > conftest.i && {
1858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1859 test ! -s conftest.err
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1873 # ac_fn_c_try_link LINENO
1874 # -----------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded.
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 rm -f conftest.$ac_objext conftest$ac_exeext
1880 if { { ac_try="$ac_link"
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_link") 2>conftest.err
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && {
1896 test -z "$ac_c_werror_flag" ||
1897 test ! -s conftest.err
1898 } && test -s conftest$ac_exeext && {
1899 test "$cross_compiling" = yes ||
1900 $as_test_x conftest$ac_exeext
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911 # interfere with the next link command; also delete a directory that is
1912 # left behind by Apple's compiler. We do this before executing the actions.
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1917 } # ac_fn_c_try_link
1919 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1922 # the include files in INCLUDES and setting the cache variable VAR
1924 ac_fn_c_check_header_mongrel ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if eval \${$3+:} false; then :
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if eval \${$3+:} false; then :
1931 $as_echo_n "(cached) " >&6
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1937 # Is the header compilable?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1939 $as_echo_n "checking $2 usability... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_header_compiler=yes
1948 ac_header_compiler=no
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1952 $as_echo "$ac_header_compiler" >&6; }
1954 # Is the header present?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1956 $as_echo_n "checking $2 presence... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1961 if ac_fn_c_try_cpp "$LINENO"; then :
1962 ac_header_preproc=yes
1964 ac_header_preproc=no
1966 rm -f conftest.err conftest.i conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1968 $as_echo "$ac_header_preproc" >&6; }
1970 # So? What about this header?
1971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1974 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1980 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1982 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1984 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1986 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994 $as_echo_n "(cached) " >&6
1996 eval "$3=\$ac_header_compiler"
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 } # ac_fn_c_check_header_mongrel
2006 # ac_fn_c_try_run LINENO
2007 # ----------------------
2008 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2009 # that executables *can* be run.
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 if { { ac_try="$ac_link"
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_link") 2>&5
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2024 { { case "(($ac_try" in
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030 (eval "$ac_try") 2>&5
2032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033 test $ac_status = 0; }; }; then :
2036 $as_echo "$as_me: program exited with status $ac_status" >&5
2037 $as_echo "$as_me: failed program was:" >&5
2038 sed 's/^/| /' conftest.$ac_ext >&5
2040 ac_retval=$ac_status
2042 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 as_fn_set_status $ac_retval
2048 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2049 # -------------------------------------------------------
2050 # Tests whether HEADER exists and can be compiled using the include files in
2051 # INCLUDES, setting the cache variable VAR accordingly.
2052 ac_fn_c_check_header_compile ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval \${$3+:} false; then :
2058 $as_echo_n "(cached) " >&6
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2065 if ac_fn_c_try_compile "$LINENO"; then :
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077 } # ac_fn_c_check_header_compile
2079 # ac_fn_c_check_func LINENO FUNC VAR
2080 # ----------------------------------
2081 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2082 ac_fn_c_check_func ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if eval \${$3+:} false; then :
2088 $as_echo_n "(cached) " >&6
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2094 #define $2 innocuous_$2
2096 /* System header to define __stub macros and hopefully few prototypes,
2097 which can conflict with char $2 (); below.
2098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2099 <limits.h> exists even on freestanding compilers. */
2102 # include <limits.h>
2104 # include <assert.h>
2109 /* Override any GCC internal prototype to avoid an error.
2110 Use char because int might match the return type of a GCC
2111 builtin and then its argument prototype would still apply. */
2116 /* The GNU C library defines this for functions which it implements
2117 to always fail with ENOSYS. Some functions are actually named
2118 something starting with __ and the normal name is an alias. */
2119 #if defined __stub_$2 || defined __stub___$2
2131 if ac_fn_c_try_link "$LINENO"; then :
2136 rm -f core conftest.err conftest.$ac_objext \
2137 conftest$ac_exeext conftest.$ac_ext
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2141 $as_echo "$ac_res" >&6; }
2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144 } # ac_fn_c_check_func
2146 # ac_fn_cxx_try_compile LINENO
2147 # ----------------------------
2148 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2149 ac_fn_cxx_try_compile ()
2151 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152 rm -f conftest.$ac_objext
2153 if { { ac_try="$ac_compile"
2155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156 *) ac_try_echo=$ac_try;;
2158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2159 $as_echo "$ac_try_echo"; } >&5
2160 (eval "$ac_compile") 2>conftest.err
2162 if test -s conftest.err; then
2163 grep -v '^ *+' conftest.err >conftest.er1
2164 cat conftest.er1 >&5
2165 mv -f conftest.er1 conftest.err
2167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2168 test $ac_status = 0; } && {
2169 test -z "$ac_cxx_werror_flag" ||
2170 test ! -s conftest.err
2171 } && test -s conftest.$ac_objext; then :
2174 $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180 as_fn_set_status $ac_retval
2182 } # ac_fn_cxx_try_compile
2184 # ac_fn_cxx_try_cpp LINENO
2185 # ------------------------
2186 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2187 ac_fn_cxx_try_cpp ()
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 if { { ac_try="$ac_cpp conftest.$ac_ext"
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2199 if test -s conftest.err; then
2200 grep -v '^ *+' conftest.err >conftest.er1
2201 cat conftest.er1 >&5
2202 mv -f conftest.er1 conftest.err
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; } > conftest.i && {
2206 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2207 test ! -s conftest.err
2211 $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217 as_fn_set_status $ac_retval
2219 } # ac_fn_cxx_try_cpp
2221 # ac_fn_cxx_try_link LINENO
2222 # -------------------------
2223 # Try to link conftest.$ac_ext, and return whether this succeeded.
2224 ac_fn_cxx_try_link ()
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 rm -f conftest.$ac_objext conftest$ac_exeext
2228 if { { ac_try="$ac_link"
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_link") 2>conftest.err
2237 if test -s conftest.err; then
2238 grep -v '^ *+' conftest.err >conftest.er1
2239 cat conftest.er1 >&5
2240 mv -f conftest.er1 conftest.err
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; } && {
2244 test -z "$ac_cxx_werror_flag" ||
2245 test ! -s conftest.err
2246 } && test -s conftest$ac_exeext && {
2247 test "$cross_compiling" = yes ||
2248 $as_test_x conftest$ac_exeext
2252 $as_echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2257 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2258 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2259 # interfere with the next link command; also delete a directory that is
2260 # left behind by Apple's compiler. We do this before executing the actions.
2261 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 as_fn_set_status $ac_retval
2265 } # ac_fn_cxx_try_link
2267 # ac_fn_f77_try_compile LINENO
2268 # ----------------------------
2269 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2270 ac_fn_f77_try_compile ()
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 rm -f conftest.$ac_objext
2274 if { { ac_try="$ac_compile"
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280 $as_echo "$ac_try_echo"; } >&5
2281 (eval "$ac_compile") 2>conftest.err
2283 if test -s conftest.err; then
2284 grep -v '^ *+' conftest.err >conftest.er1
2285 cat conftest.er1 >&5
2286 mv -f conftest.er1 conftest.err
2288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2289 test $ac_status = 0; } && {
2290 test -z "$ac_f77_werror_flag" ||
2291 test ! -s conftest.err
2292 } && test -s conftest.$ac_objext; then :
2295 $as_echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2300 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301 as_fn_set_status $ac_retval
2303 } # ac_fn_f77_try_compile
2305 # ac_fn_f77_try_link LINENO
2306 # -------------------------
2307 # Try to link conftest.$ac_ext, and return whether this succeeded.
2308 ac_fn_f77_try_link ()
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 rm -f conftest.$ac_objext conftest$ac_exeext
2312 if { { ac_try="$ac_link"
2314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2315 *) ac_try_echo=$ac_try;;
2317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2318 $as_echo "$ac_try_echo"; } >&5
2319 (eval "$ac_link") 2>conftest.err
2321 if test -s conftest.err; then
2322 grep -v '^ *+' conftest.err >conftest.er1
2323 cat conftest.er1 >&5
2324 mv -f conftest.er1 conftest.err
2326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2327 test $ac_status = 0; } && {
2328 test -z "$ac_f77_werror_flag" ||
2329 test ! -s conftest.err
2330 } && test -s conftest$ac_exeext && {
2331 test "$cross_compiling" = yes ||
2332 $as_test_x conftest$ac_exeext
2336 $as_echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2341 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2342 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2343 # interfere with the next link command; also delete a directory that is
2344 # left behind by Apple's compiler. We do this before executing the actions.
2345 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2346 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2347 as_fn_set_status $ac_retval
2349 } # ac_fn_f77_try_link
2350 cat >config.log <<_ACEOF
2351 This file contains any messages produced by compilers while
2352 running configure, to aid debugging if configure makes a mistake.
2354 It was created by $as_me, which was
2355 generated by GNU Autoconf 2.68. Invocation command line was
2367 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2368 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2369 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2370 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2371 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2373 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2374 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2376 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2377 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2378 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2379 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2380 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2381 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2382 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 test -z "$as_dir" && as_dir=.
2391 $as_echo "PATH: $as_dir"
2407 # Keep a trace of the command line.
2408 # Strip out --no-create and --no-recursion so they do not pile up.
2409 # Strip out --silent because we don't want to record it for future runs.
2410 # Also quote any args containing shell meta-characters.
2411 # Make two passes to allow for proper duplicate-argument suppression.
2415 ac_must_keep_next=false
2421 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2422 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2423 | -silent | --silent | --silen | --sile | --sil)
2426 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2429 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2431 as_fn_append ac_configure_args1 " '$ac_arg'"
2432 if test $ac_must_keep_next = true; then
2433 ac_must_keep_next=false # Got value, back to normal.
2436 *=* | --config-cache | -C | -disable-* | --disable-* \
2437 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2438 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2439 | -with-* | --with-* | -without-* | --without-* | --x)
2440 case "$ac_configure_args0 " in
2441 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2444 -* ) ac_must_keep_next=true ;;
2447 as_fn_append ac_configure_args " '$ac_arg'"
2452 { ac_configure_args0=; unset ac_configure_args0;}
2453 { ac_configure_args1=; unset ac_configure_args1;}
2455 # When interrupted or exit'd, cleanup temporary files, and complete
2456 # config.log. We remove comments because anyway the quotes in there
2457 # would cause problems or look ugly.
2458 # WARNING: Use '\'' to represent an apostrophe within the trap.
2459 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2460 trap 'exit_status=$?
2461 # Save into config.log some information that might help in debugging.
2465 $as_echo "## ---------------- ##
2466 ## Cache variables. ##
2467 ## ---------------- ##"
2469 # The following way of writing the cache mishandles newlines in values,
2471 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2472 eval ac_val=\$$ac_var
2476 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2477 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2480 _ | IFS | as_nl) ;; #(
2481 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2482 *) { eval $ac_var=; unset $ac_var;} ;;
2487 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2488 *${as_nl}ac_space=\ *)
2490 "s/'\''/'\''\\\\'\'''\''/g;
2491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2494 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2501 $as_echo "## ----------------- ##
2502 ## Output variables. ##
2503 ## ----------------- ##"
2505 for ac_var in $ac_subst_vars
2507 eval ac_val=\$$ac_var
2509 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2511 $as_echo "$ac_var='\''$ac_val'\''"
2515 if test -n "$ac_subst_files"; then
2516 $as_echo "## ------------------- ##
2517 ## File substitutions. ##
2518 ## ------------------- ##"
2520 for ac_var in $ac_subst_files
2522 eval ac_val=\$$ac_var
2524 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2526 $as_echo "$ac_var='\''$ac_val'\''"
2531 if test -s confdefs.h; then
2532 $as_echo "## ----------- ##
2539 test "$ac_signal" != 0 &&
2540 $as_echo "$as_me: caught signal $ac_signal"
2541 $as_echo "$as_me: exit $exit_status"
2543 rm -f core *.core core.conftest.* &&
2544 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2547 for ac_signal in 1 2 13 15; do
2548 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2552 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2553 rm -f -r conftest* confdefs.h
2555 $as_echo "/* confdefs.h */" > confdefs.h
2557 # Predefined preprocessor variables.
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_NAME "$PACKAGE_NAME"
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_STRING "$PACKAGE_STRING"
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_URL "$PACKAGE_URL"
2584 # Let the site file select an alternate cache file if it wants to.
2585 # Prefer an explicitly selected file to automatically selected ones.
2588 if test -n "$CONFIG_SITE"; then
2589 # We do not want a PATH search for config.site.
2590 case $CONFIG_SITE in #((
2591 -*) ac_site_file1=./$CONFIG_SITE;;
2592 */*) ac_site_file1=$CONFIG_SITE;;
2593 *) ac_site_file1=./$CONFIG_SITE;;
2595 elif test "x$prefix" != xNONE; then
2596 ac_site_file1=$prefix/share/config.site
2597 ac_site_file2=$prefix/etc/config.site
2599 ac_site_file1=$ac_default_prefix/share/config.site
2600 ac_site_file2=$ac_default_prefix/etc/config.site
2602 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2604 test "x$ac_site_file" = xNONE && continue
2605 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2607 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2608 sed 's/^/| /' "$ac_site_file" >&5
2610 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612 as_fn_error $? "failed to load site script $ac_site_file
2613 See \`config.log' for more details" "$LINENO" 5; }
2617 if test -r "$cache_file"; then
2618 # Some versions of bash will fail to source /dev/null (special files
2619 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2620 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2622 $as_echo "$as_me: loading cache $cache_file" >&6;}
2624 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2625 *) . "./$cache_file";;
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2630 $as_echo "$as_me: creating cache $cache_file" >&6;}
2634 # Check that the precious variables saved in the cache have kept the same
2636 ac_cache_corrupted=false
2637 for ac_var in $ac_precious_vars; do
2638 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2639 eval ac_new_set=\$ac_env_${ac_var}_set
2640 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2641 eval ac_new_val=\$ac_env_${ac_var}_value
2642 case $ac_old_set,$ac_new_set in
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2645 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2646 ac_cache_corrupted=: ;;
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2649 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2650 ac_cache_corrupted=: ;;
2653 if test "x$ac_old_val" != "x$ac_new_val"; then
2654 # differences in whitespace do not lead to failure.
2655 ac_old_val_w=`echo x $ac_old_val`
2656 ac_new_val_w=`echo x $ac_new_val`
2657 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2659 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2660 ac_cache_corrupted=:
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2663 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2664 eval $ac_var=\$ac_old_val
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2667 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2669 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2672 # Pass precious variables to config.status.
2673 if test "$ac_new_set" = set; then
2675 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2676 *) ac_arg=$ac_var=$ac_new_val ;;
2678 case " $ac_configure_args " in
2679 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2680 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2684 if $ac_cache_corrupted; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2688 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2689 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2691 ## -------------------- ##
2692 ## Main body of script. ##
2693 ## -------------------- ##
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2706 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2707 if test -f "$ac_dir/install-sh"; then
2709 ac_install_sh="$ac_aux_dir/install-sh -c"
2711 elif test -f "$ac_dir/install.sh"; then
2713 ac_install_sh="$ac_aux_dir/install.sh -c"
2715 elif test -f "$ac_dir/shtool"; then
2717 ac_install_sh="$ac_aux_dir/shtool install -c"
2721 if test -z "$ac_aux_dir"; then
2722 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2725 # These three variables are undocumented and unsupported,
2726 # and are intended to be withdrawn in a future Autoconf release.
2727 # They can cause serious problems if a builder's source tree is in a directory
2728 # whose full name contains unusual characters.
2729 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2730 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2731 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2734 # Make sure we can run config.sub.
2735 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2736 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2739 $as_echo_n "checking build system type... " >&6; }
2740 if ${ac_cv_build+:} false; then :
2741 $as_echo_n "(cached) " >&6
2743 ac_build_alias=$build_alias
2744 test "x$ac_build_alias" = x &&
2745 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2746 test "x$ac_build_alias" = x &&
2747 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2748 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2749 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2753 $as_echo "$ac_cv_build" >&6; }
2754 case $ac_cv_build in
2756 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2759 ac_save_IFS=$IFS; IFS='-'
2765 # Remember, the first character of IFS is used to create $*,
2766 # except with old shells:
2769 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2773 $as_echo_n "checking host system type... " >&6; }
2774 if ${ac_cv_host+:} false; then :
2775 $as_echo_n "(cached) " >&6
2777 if test "x$host_alias" = x; then
2778 ac_cv_host=$ac_cv_build
2780 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2781 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2786 $as_echo "$ac_cv_host" >&6; }
2789 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2792 ac_save_IFS=$IFS; IFS='-'
2798 # Remember, the first character of IFS is used to create $*,
2799 # except with old shells:
2802 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2805 am__api_version='1.11'
2807 # Find a good install program. We prefer a C program (faster),
2808 # so one script is as good as another. But avoid the broken or
2809 # incompatible versions:
2810 # SysV /etc/install, /usr/sbin/install
2811 # SunOS /usr/etc/install
2812 # IRIX /sbin/install
2814 # AmigaOS /C/install, which installs bootblocks on floppy discs
2815 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2816 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2817 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2818 # OS/2's system install, which has a completely different semantic
2819 # ./install, which can be erroneously created by make from ./install.sh.
2820 # Reject install programs that cannot install multiple files.
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2822 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2823 if test -z "$INSTALL"; then
2824 if ${ac_cv_path_install+:} false; then :
2825 $as_echo_n "(cached) " >&6
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 test -z "$as_dir" && as_dir=.
2832 # Account for people who put trailing slashes in PATH elements.
2833 case $as_dir/ in #((
2834 ./ | .// | /[cC]/* | \
2835 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2836 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2839 # OSF1 and SCO ODT 3.0 have their own names for install.
2840 # Don't use installbsd from OSF since it installs stuff as root
2842 for ac_prog in ginstall scoinst install; do
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2845 if test $ac_prog = install &&
2846 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2847 # AIX install. It has an incompatible calling convention.
2849 elif test $ac_prog = install &&
2850 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2851 # program-specific install script used by HP pwplus--don't use.
2854 rm -rf conftest.one conftest.two conftest.dir
2855 echo one > conftest.one
2856 echo two > conftest.two
2858 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2859 test -s conftest.one && test -s conftest.two &&
2860 test -s conftest.dir/conftest.one &&
2861 test -s conftest.dir/conftest.two
2863 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2876 rm -rf conftest.one conftest.two conftest.dir
2879 if test "${ac_cv_path_install+set}" = set; then
2880 INSTALL=$ac_cv_path_install
2882 # As a last resort, use the slow shell script. Don't cache a
2883 # value for INSTALL within a source directory, because that will
2884 # break other packages using the cache if that directory is
2885 # removed, or if the value is a relative name.
2886 INSTALL=$ac_install_sh
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2890 $as_echo "$INSTALL" >&6; }
2892 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2893 # It thinks the first close brace ends the variable substitution.
2894 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2896 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2898 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2901 $as_echo_n "checking whether build environment is sane... " >&6; }
2904 echo timestamp > conftest.file
2905 # Reject unsafe characters in $srcdir or the absolute working directory
2906 # name. Accept space and tab only in the latter.
2910 *[\\\"\#\$\&\'\`$am_lf]*)
2911 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2914 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2915 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2918 # Do `set' in a subshell so we don't clobber the current shell's
2919 # arguments. Must try -L first in case configure is actually a
2920 # symlink; some systems play weird games with the mod time of symlinks
2921 # (eg FreeBSD returns the mod time of the symlink's containing
2924 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2925 if test "$*" = "X"; then
2927 set X `ls -t "$srcdir/configure" conftest.file`
2930 if test "$*" != "X $srcdir/configure conftest.file" \
2931 && test "$*" != "X conftest.file $srcdir/configure"; then
2933 # If neither matched, then we have a broken ls. This can happen
2934 # if, for instance, CONFIG_SHELL is bash and it inherits a
2935 # broken ls alias from the environment. This has actually
2936 # happened. Such a system could not be considered "sane".
2937 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2938 alias in your environment" "$LINENO" 5
2941 test "$2" = conftest.file
2947 as_fn_error $? "newly created file is older than distributed files!
2948 Check your system clock" "$LINENO" 5
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2951 $as_echo "yes" >&6; }
2952 test "$program_prefix" != NONE &&
2953 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2954 # Use a double $ so make ignores it.
2955 test "$program_suffix" != NONE &&
2956 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2957 # Double any \ or $.
2958 # By default was `s,x,x', remove it if useless.
2959 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2960 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2962 # expand $ac_aux_dir to an absolute path
2963 am_aux_dir=`cd $ac_aux_dir && pwd`
2965 if test x"${MISSING+set}" != xset; then
2968 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2970 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2973 # Use eval to expand $SHELL
2974 if eval "$MISSING --run true"; then
2975 am_missing_run="$MISSING --run "
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2979 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2982 if test x"${install_sh}" != xset; then
2985 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2987 install_sh="\${SHELL} $am_aux_dir/install-sh"
2991 # Installed binaries are usually stripped using `strip' when the user
2992 # run `make install-strip'. However `strip' might not be the right
2993 # tool to use in cross-compilation environments, therefore Automake
2994 # will honor the `STRIP' environment variable to overrule this program.
2995 if test "$cross_compiling" != no; then
2996 if test -n "$ac_tool_prefix"; then
2997 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2998 set dummy ${ac_tool_prefix}strip; ac_word=$2
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000 $as_echo_n "checking for $ac_word... " >&6; }
3001 if ${ac_cv_prog_STRIP+:} false; then :
3002 $as_echo_n "(cached) " >&6
3004 if test -n "$STRIP"; then
3005 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 STRIP=$ac_cv_prog_STRIP
3025 if test -n "$STRIP"; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3027 $as_echo "$STRIP" >&6; }
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030 $as_echo "no" >&6; }
3035 if test -z "$ac_cv_prog_STRIP"; then
3037 # Extract the first word of "strip", so it can be a program name with args.
3038 set dummy strip; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3042 $as_echo_n "(cached) " >&6
3044 if test -n "$ac_ct_STRIP"; then
3045 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 ac_cv_prog_ac_ct_STRIP="strip"
3055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3065 if test -n "$ac_ct_STRIP"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3067 $as_echo "$ac_ct_STRIP" >&6; }
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3073 if test "x$ac_ct_STRIP" = x; then
3076 case $cross_compiling:$ac_tool_warned in
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3080 ac_tool_warned=yes ;;
3085 STRIP="$ac_cv_prog_STRIP"
3089 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3092 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3093 if test -z "$MKDIR_P"; then
3094 if ${ac_cv_path_mkdir+:} false; then :
3095 $as_echo_n "(cached) " >&6
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3101 test -z "$as_dir" && as_dir=.
3102 for ac_prog in mkdir gmkdir; do
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3105 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3106 'mkdir (GNU coreutils) '* | \
3107 'mkdir (coreutils) '* | \
3108 'mkdir (fileutils) '4.1*)
3109 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3119 test -d ./--version && rmdir ./--version
3120 if test "${ac_cv_path_mkdir+set}" = set; then
3121 MKDIR_P="$ac_cv_path_mkdir -p"
3123 # As a last resort, use the slow shell script. Don't cache a
3124 # value for MKDIR_P within a source directory, because that will
3125 # break other packages using the cache if that directory is
3126 # removed, or if the value is a relative name.
3127 MKDIR_P="$ac_install_sh -d"
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3131 $as_echo "$MKDIR_P" >&6; }
3135 [\\/$]* | ?:[\\/]*) ;;
3136 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3139 for ac_prog in gawk mawk nawk awk
3141 # Extract the first word of "$ac_prog", so it can be a program name with args.
3142 set dummy $ac_prog; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_AWK+:} false; then :
3146 $as_echo_n "(cached) " >&6
3148 if test -n "$AWK"; then
3149 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3158 ac_cv_prog_AWK="$ac_prog"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 if test -n "$AWK"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3171 $as_echo "$AWK" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3178 test -n "$AWK" && break
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3182 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3184 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3185 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3186 $as_echo_n "(cached) " >&6
3188 cat >conftest.make <<\_ACEOF
3191 @echo '@@@%%%=$(MAKE)=@@@%%%'
3193 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3194 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3196 eval ac_cv_prog_make_${ac_make}_set=yes;;
3198 eval ac_cv_prog_make_${ac_make}_set=no;;
3202 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3204 $as_echo "yes" >&6; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3209 SET_MAKE="MAKE=${MAKE-make}"
3212 rm -rf .tst 2>/dev/null
3213 mkdir .tst 2>/dev/null
3214 if test -d .tst; then
3219 rmdir .tst 2>/dev/null
3221 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3222 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3223 # is not polluted with repeated "-I."
3224 am__isrc=' -I$(srcdir)'
3225 # test to see if srcdir already configured
3226 if test -f $srcdir/config.status; then
3227 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3231 # test whether we have cygpath
3232 if test -z "$CYGPATH_W"; then
3233 if (cygpath --version) >/dev/null 2>/dev/null; then
3234 CYGPATH_W='cygpath -w'
3241 # Define the identity of the package.
3246 cat >>confdefs.h <<_ACEOF
3247 #define PACKAGE "$PACKAGE"
3251 cat >>confdefs.h <<_ACEOF
3252 #define VERSION "$VERSION"
3255 # Some tools Automake needs.
3257 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3260 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3263 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3266 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3269 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3271 # We need awk for the "check" target. The system "awk" is bad on
3273 # Always define AMTAR for backward compatibility.
3275 AMTAR=${AMTAR-"${am_missing_run}tar"}
3277 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3283 eval LIBTOOL_VERSION_INFO="2:0:0"
3284 if test -n "${ACLOCAL}"; then
3286 INSTALL_M4_FALSE='#'
3293 # Test for new silent rules and enable only if they are available
3294 # Check whether --enable-silent-rules was given.
3295 if test "${enable_silent_rules+set}" = set; then :
3296 enableval=$enable_silent_rules;
3299 case $enable_silent_rules in
3300 yes) AM_DEFAULT_VERBOSITY=0;;
3301 no) AM_DEFAULT_VERBOSITY=1;;
3302 *) AM_DEFAULT_VERBOSITY=0;;
3310 if test "x$host" != "x$build" -a -z "`echo $CC | grep -e '-gcc'`";
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cross-compiler" >&5
3313 $as_echo_n "checking for cross-compiler... " >&6; }
3315 which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
3316 which ${host_cpu}-${host_os}-gcc >/dev/null 2>&1 \
3317 && CC=${host_cpu}-${host-os}-gcc
3318 which ${host_cpu}-${host_vendor}-${host_os}-gcc >/dev/null 2>&1 \
3319 && CC=${host_cpu}-${host_vendor}-${host_os}-gcc
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3322 $as_echo "$CC" >&6; }
3325 CFLAGS="$CFLAGS -D_GNU_SOURCE"
3329 ac_cpp='$CPP $CPPFLAGS'
3330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3333 if test -n "$ac_tool_prefix"; then
3334 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3335 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if ${ac_cv_prog_CC+:} false; then :
3339 $as_echo_n "(cached) " >&6
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3351 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 if test -n "$CC"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3364 $as_echo "$CC" >&6; }
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3372 if test -z "$ac_cv_prog_CC"; then
3374 # Extract the first word of "gcc", so it can be a program name with args.
3375 set dummy gcc; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3379 $as_echo_n "(cached) " >&6
3381 if test -n "$ac_ct_CC"; then
3382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 ac_cv_prog_ac_ct_CC="gcc"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3402 if test -n "$ac_ct_CC"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3404 $as_echo "$ac_ct_CC" >&6; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3410 if test "x$ac_ct_CC" = x; then
3413 case $cross_compiling:$ac_tool_warned in
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3417 ac_tool_warned=yes ;;
3425 if test -z "$CC"; then
3426 if test -n "$ac_tool_prefix"; then
3427 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3428 set dummy ${ac_tool_prefix}cc; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if ${ac_cv_prog_CC+:} false; then :
3432 $as_echo_n "(cached) " >&6
3434 if test -n "$CC"; then
3435 ac_cv_prog_CC="$CC" # Let the user override the test.
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3444 ac_cv_prog_CC="${ac_tool_prefix}cc"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 if test -n "$CC"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 $as_echo "$CC" >&6; }
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3466 if test -z "$CC"; then
3467 # Extract the first word of "cc", so it can be a program name with args.
3468 set dummy cc; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if ${ac_cv_prog_CC+:} false; then :
3472 $as_echo_n "(cached) " >&6
3474 if test -n "$CC"; then
3475 ac_cv_prog_CC="$CC" # Let the user override the test.
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3486 ac_prog_rejected=yes
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 if test $ac_prog_rejected = yes; then
3498 # We found a bogon in the path, so make sure we never use it.
3499 set dummy $ac_cv_prog_CC
3501 if test $# != 0; then
3502 # We chose a different compiler from the bogus one.
3503 # However, it has the same basename, so the bogon will be chosen
3504 # first if we set CC to just the basename; use the full file name.
3506 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3512 if test -n "$CC"; then
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3514 $as_echo "$CC" >&6; }
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3522 if test -z "$CC"; then
3523 if test -n "$ac_tool_prefix"; then
3524 for ac_prog in cl.exe
3526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if ${ac_cv_prog_CC+:} false; then :
3531 $as_echo_n "(cached) " >&6
3533 if test -n "$CC"; then
3534 ac_cv_prog_CC="$CC" # Let the user override the test.
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3543 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 if test -n "$CC"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3556 $as_echo "$CC" >&6; }
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3563 test -n "$CC" && break
3566 if test -z "$CC"; then
3568 for ac_prog in cl.exe
3570 # Extract the first word of "$ac_prog", so it can be a program name with args.
3571 set dummy $ac_prog; ac_word=$2
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 $as_echo_n "checking for $ac_word... " >&6; }
3574 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3575 $as_echo_n "(cached) " >&6
3577 if test -n "$ac_ct_CC"; then
3578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3587 ac_cv_prog_ac_ct_CC="$ac_prog"
3588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3598 if test -n "$ac_ct_CC"; then
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3600 $as_echo "$ac_ct_CC" >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3607 test -n "$ac_ct_CC" && break
3610 if test "x$ac_ct_CC" = x; then
3613 case $cross_compiling:$ac_tool_warned in
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3617 ac_tool_warned=yes ;;
3626 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628 as_fn_error $? "no acceptable C compiler found in \$PATH
3629 See \`config.log' for more details" "$LINENO" 5; }
3631 # Provide some information about the compiler.
3632 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3635 for ac_option in --version -v -V -qversion; do
3636 { { ac_try="$ac_compiler $ac_option >&5"
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642 $as_echo "$ac_try_echo"; } >&5
3643 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3645 if test -s conftest.err; then
3647 ... rest of stderr output deleted ...
3648 10q' conftest.err >conftest.er1
3649 cat conftest.er1 >&5
3651 rm -f conftest.er1 conftest.err
3652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653 test $ac_status = 0; }
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3667 ac_clean_files_save=$ac_clean_files
3668 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3669 # Try to create an executable without -o first, disregard a.out.
3670 # It will help us diagnose broken compilers, and finding out an intuition
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3673 $as_echo_n "checking whether the C compiler works... " >&6; }
3674 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3676 # The possible output files:
3677 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3680 for ac_file in $ac_files
3683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3684 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3689 if { { ac_try="$ac_link_default"
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695 $as_echo "$ac_try_echo"; } >&5
3696 (eval "$ac_link_default") 2>&5
3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699 test $ac_status = 0; }; then :
3700 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3701 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3702 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3703 # so that the user can short-circuit this test for compilers unknown to
3705 for ac_file in $ac_files ''
3707 test -f "$ac_file" || continue
3709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3712 # We found the default executable, but exeext='' is most
3716 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3718 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3720 # We set ac_cv_exeext here because the later test for it is not
3721 # safe: cross compilers may not add the suffix if given an `-o'
3722 # argument, so we may need to know it at that point already.
3723 # Even if this section looks crufty: it has the advantage of
3730 test "$ac_cv_exeext" = no && ac_cv_exeext=
3735 if test -z "$ac_file"; then :
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3738 $as_echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error 77 "C compiler cannot create executables
3744 See \`config.log' for more details" "$LINENO" 5; }
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3747 $as_echo "yes" >&6; }
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3750 $as_echo_n "checking for C compiler default output file name... " >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3752 $as_echo "$ac_file" >&6; }
3753 ac_exeext=$ac_cv_exeext
3755 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3756 ac_clean_files=$ac_clean_files_save
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3758 $as_echo_n "checking for suffix of executables... " >&6; }
3759 if { { ac_try="$ac_link"
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3765 $as_echo "$ac_try_echo"; } >&5
3766 (eval "$ac_link") 2>&5
3768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769 test $ac_status = 0; }; then :
3770 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3771 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3772 # work properly (i.e., refer to `conftest.exe'), while it won't with
3774 for ac_file in conftest.exe conftest conftest.*; do
3775 test -f "$ac_file" || continue
3777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3778 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3786 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3787 See \`config.log' for more details" "$LINENO" 5; }
3789 rm -f conftest conftest$ac_cv_exeext
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3791 $as_echo "$ac_cv_exeext" >&6; }
3793 rm -f conftest.$ac_ext
3794 EXEEXT=$ac_cv_exeext
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3802 FILE *f = fopen ("conftest.out", "w");
3803 return ferror (f) || fclose (f) != 0;
3809 ac_clean_files="$ac_clean_files conftest.out"
3810 # Check that the compiler produces executables we can run. If not, either
3811 # the compiler is broken, or we cross compile.
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3813 $as_echo_n "checking whether we are cross compiling... " >&6; }
3814 if test "$cross_compiling" != yes; then
3815 { { ac_try="$ac_link"
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821 $as_echo "$ac_try_echo"; } >&5
3822 (eval "$ac_link") 2>&5
3824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825 test $ac_status = 0; }
3826 if { ac_try='./conftest$ac_cv_exeext'
3827 { { case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3832 $as_echo "$ac_try_echo"; } >&5
3833 (eval "$ac_try") 2>&5
3835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3836 test $ac_status = 0; }; }; then
3839 if test "$cross_compiling" = maybe; then
3842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3844 as_fn_error $? "cannot run C compiled programs.
3845 If you meant to cross compile, use \`--host'.
3846 See \`config.log' for more details" "$LINENO" 5; }
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3851 $as_echo "$cross_compiling" >&6; }
3853 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3854 ac_clean_files=$ac_clean_files_save
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3856 $as_echo_n "checking for suffix of object files... " >&6; }
3857 if ${ac_cv_objext+:} false; then :
3858 $as_echo_n "(cached) " >&6
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3871 rm -f conftest.o conftest.obj
3872 if { { ac_try="$ac_compile"
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 $as_echo "$ac_try_echo"; } >&5
3879 (eval "$ac_compile") 2>&5
3881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882 test $ac_status = 0; }; then :
3883 for ac_file in conftest.o conftest.obj conftest.*; do
3884 test -f "$ac_file" || continue;
3886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3887 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3892 $as_echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error $? "cannot compute suffix of object files: cannot compile
3898 See \`config.log' for more details" "$LINENO" 5; }
3900 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3903 $as_echo "$ac_cv_objext" >&6; }
3904 OBJEXT=$ac_cv_objext
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3907 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3908 if ${ac_cv_c_compiler_gnu+:} false; then :
3909 $as_echo_n "(cached) " >&6
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3925 if ac_fn_c_try_compile "$LINENO"; then :
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3935 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3936 if test $ac_compiler_gnu = yes; then
3941 ac_test_CFLAGS=${CFLAGS+set}
3942 ac_save_CFLAGS=$CFLAGS
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3944 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3945 if ${ac_cv_prog_cc_g+:} false; then :
3946 $as_echo_n "(cached) " >&6
3948 ac_save_c_werror_flag=$ac_c_werror_flag
3949 ac_c_werror_flag=yes
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3963 if ac_fn_c_try_compile "$LINENO"; then :
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3978 if ac_fn_c_try_compile "$LINENO"; then :
3981 ac_c_werror_flag=$ac_save_c_werror_flag
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3994 if ac_fn_c_try_compile "$LINENO"; then :
3997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 ac_c_werror_flag=$ac_save_c_werror_flag
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4005 $as_echo "$ac_cv_prog_cc_g" >&6; }
4006 if test "$ac_test_CFLAGS" = set; then
4007 CFLAGS=$ac_save_CFLAGS
4008 elif test $ac_cv_prog_cc_g = yes; then
4009 if test "$GCC" = yes; then
4015 if test "$GCC" = yes; then
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4022 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4023 if ${ac_cv_prog_cc_c89+:} false; then :
4024 $as_echo_n "(cached) " >&6
4026 ac_cv_prog_cc_c89=no
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4032 #include <sys/types.h>
4033 #include <sys/stat.h>
4034 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4035 struct buf { int x; };
4036 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4037 static char *e (p, i)
4043 static char *f (char * (*g) (char **, int), char **p, ...)
4048 s = g (p, va_arg (v,int));
4053 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4054 function prototypes and stuff, but not '\xHH' hex character constants.
4055 These don't provoke an error unfortunately, instead are silently treated
4056 as 'x'. The following induces an error, until -std is added to get
4057 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4058 array size at least. It's necessary to write '\x00'==0 to get something
4059 that's true only with -std. */
4060 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4062 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4063 inside strings and character constants. */
4065 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4067 int test (int i, double x);
4068 struct s1 {int (*f) (int a);};
4069 struct s2 {int (*f) (double a);};
4070 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4076 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4081 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4082 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4084 CC="$ac_save_CC $ac_arg"
4085 if ac_fn_c_try_compile "$LINENO"; then :
4086 ac_cv_prog_cc_c89=$ac_arg
4088 rm -f core conftest.err conftest.$ac_objext
4089 test "x$ac_cv_prog_cc_c89" != "xno" && break
4091 rm -f conftest.$ac_ext
4096 case "x$ac_cv_prog_cc_c89" in
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4099 $as_echo "none needed" >&6; } ;;
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4102 $as_echo "unsupported" >&6; } ;;
4104 CC="$CC $ac_cv_prog_cc_c89"
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4106 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4108 if test "x$ac_cv_prog_cc_c89" != xno; then :
4113 ac_cpp='$CPP $CPPFLAGS'
4114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117 DEPDIR="${am__leading_dot}deps"
4119 ac_config_commands="$ac_config_commands depfiles"
4122 am_make=${MAKE-make}
4123 cat > confinc << 'END'
4125 @echo this is the am__doit target
4128 # If we don't find an include directive, just comment out the code.
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4130 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4134 # First try GNU make style include.
4135 echo "include confinc" > confmf
4136 # Ignore all kinds of additional output from `make'.
4137 case `$am_make -s -f confmf 2> /dev/null` in #(
4138 *the\ am__doit\ target*)
4144 # Now try BSD make style include.
4145 if test "$am__include" = "#"; then
4146 echo '.include "confinc"' > confmf
4147 case `$am_make -s -f confmf 2> /dev/null` in #(
4148 *the\ am__doit\ target*)
4149 am__include=.include
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4158 $as_echo "$_am_result" >&6; }
4159 rm -f confinc confmf
4161 # Check whether --enable-dependency-tracking was given.
4162 if test "${enable_dependency_tracking+set}" = set; then :
4163 enableval=$enable_dependency_tracking;
4166 if test "x$enable_dependency_tracking" != xno; then
4167 am_depcomp="$ac_aux_dir/depcomp"
4170 if test "x$enable_dependency_tracking" != xno; then
4180 depcc="$CC" am_compiler_list=
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4183 $as_echo_n "checking dependency style of $depcc... " >&6; }
4184 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4185 $as_echo_n "(cached) " >&6
4187 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4188 # We make a subdir and do the tests there. Otherwise we can end up
4189 # making bogus files that we don't know about and never remove. For
4190 # instance it was reported that on HP-UX the gcc test will end up
4191 # making a dummy file named `D' -- because `-MD' means `put the output
4194 # Copy depcomp to subdir because otherwise we won't find it if we're
4195 # using a relative directory.
4196 cp "$am_depcomp" conftest.dir
4198 # We will build objects and dependencies in a subdirectory because
4199 # it helps to detect inapplicable dependency modes. For instance
4200 # both Tru64's cc and ICC support -MD to output dependencies as a
4201 # side effect of compilation, but ICC will put the dependencies in
4202 # the current directory while Tru64 will put them in the object
4206 am_cv_CC_dependencies_compiler_type=none
4207 if test "$am_compiler_list" = ""; then
4208 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4211 case " $depcc " in #(
4212 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4215 for depmode in $am_compiler_list; do
4216 # Setup a source with many dependencies, because some compilers
4217 # like to wrap large dependency lists on column 80 (with \), and
4218 # we should not choose a depcomp mode which is confused by this.
4220 # We need to recreate these files for each test, as the compiler may
4221 # overwrite some of them when testing with obscure command lines.
4222 # This happens at least with the AIX C compiler.
4224 for i in 1 2 3 4 5 6; do
4225 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4226 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4227 # Solaris 8's {/usr,}/bin/sh.
4228 touch sub/conftst$i.h
4230 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4232 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4233 # mode. It turns out that the SunPro C++ compiler does not properly
4234 # handle `-M -o', and we need to detect this. Also, some Intel
4235 # versions had trouble with output in subdirs
4236 am__obj=sub/conftest.${OBJEXT-o}
4237 am__minus_obj="-o $am__obj"
4240 # This depmode causes a compiler race in universal mode.
4241 test "$am__universal" = false || continue
4244 # after this tag, mechanisms are not by side-effect, so they'll
4245 # only be used when explicitly requested
4246 if test "x$enable_dependency_tracking" = xyes; then
4252 msvisualcpp | msvcmsys)
4253 # This compiler won't grok `-c -o', but also, the minuso test has
4254 # not run yet. These depmodes are late enough in the game, and
4255 # so weak that their functioning should not be impacted.
4256 am__obj=conftest.${OBJEXT-o}
4261 if depmode=$depmode \
4262 source=sub/conftest.c object=$am__obj \
4263 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4264 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4265 >/dev/null 2>conftest.err &&
4266 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4267 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4268 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4269 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4270 # icc doesn't choke on unknown options, it will just issue warnings
4271 # or remarks (even with -Werror). So we grep stderr for any message
4272 # that says an option was ignored or not supported.
4273 # When given -MP, icc 7.0 and 7.1 complain thusly:
4274 # icc: Command line warning: ignoring option '-M'; no argument required
4275 # The diagnosis changed in icc 8.0:
4276 # icc: Command line remark: option '-MP' not supported
4277 if (grep 'ignoring option' conftest.err ||
4278 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4279 am_cv_CC_dependencies_compiler_type=$depmode
4288 am_cv_CC_dependencies_compiler_type=none
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4293 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4294 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4297 test "x$enable_dependency_tracking" != xno \
4298 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4300 am__fastdepCC_FALSE='#'
4302 am__fastdepCC_TRUE='#'
4303 am__fastdepCC_FALSE=
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4313 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4314 # On Suns, sometimes $CPP names a directory.
4315 if test -n "$CPP" && test -d "$CPP"; then
4318 if test -z "$CPP"; then
4319 if ${ac_cv_prog_CPP+:} false; then :
4320 $as_echo_n "(cached) " >&6
4322 # Double quotes because CPP needs to be expanded
4323 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4326 for ac_c_preproc_warn_flag in '' yes
4328 # Use a header file that comes with gcc, so configuring glibc
4329 # with a fresh cross-compiler works.
4330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4331 # <limits.h> exists even on freestanding compilers.
4332 # On the NeXT, cc -E runs the code through the compiler's parser,
4333 # not just through cpp. "Syntax error" is here to catch this case.
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4337 # include <limits.h>
4339 # include <assert.h>
4343 if ac_fn_c_try_cpp "$LINENO"; then :
4346 # Broken: fails on valid input.
4349 rm -f conftest.err conftest.i conftest.$ac_ext
4351 # OK, works on sane cases. Now check whether nonexistent headers
4352 # can be detected and how.
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4355 #include <ac_nonexistent.h>
4357 if ac_fn_c_try_cpp "$LINENO"; then :
4358 # Broken: success on invalid input.
4361 # Passes both tests.
4365 rm -f conftest.err conftest.i conftest.$ac_ext
4368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4369 rm -f conftest.i conftest.err conftest.$ac_ext
4370 if $ac_preproc_ok; then :
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4383 $as_echo "$CPP" >&6; }
4385 for ac_c_preproc_warn_flag in '' yes
4387 # Use a header file that comes with gcc, so configuring glibc
4388 # with a fresh cross-compiler works.
4389 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4390 # <limits.h> exists even on freestanding compilers.
4391 # On the NeXT, cc -E runs the code through the compiler's parser,
4392 # not just through cpp. "Syntax error" is here to catch this case.
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4396 # include <limits.h>
4398 # include <assert.h>
4402 if ac_fn_c_try_cpp "$LINENO"; then :
4405 # Broken: fails on valid input.
4408 rm -f conftest.err conftest.i conftest.$ac_ext
4410 # OK, works on sane cases. Now check whether nonexistent headers
4411 # can be detected and how.
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4414 #include <ac_nonexistent.h>
4416 if ac_fn_c_try_cpp "$LINENO"; then :
4417 # Broken: success on invalid input.
4420 # Passes both tests.
4424 rm -f conftest.err conftest.i conftest.$ac_ext
4427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4428 rm -f conftest.i conftest.err conftest.$ac_ext
4429 if $ac_preproc_ok; then :
4432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4434 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4435 See \`config.log' for more details" "$LINENO" 5; }
4439 ac_cpp='$CPP $CPPFLAGS'
4440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4446 $as_echo_n "checking whether ln -s works... " >&6; }
4448 if test "$LN_S" = "ln -s"; then
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4450 $as_echo "yes" >&6; }
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4453 $as_echo "no, using $LN_S" >&6; }
4456 # Check whether --enable-static was given.
4457 if test "${enable_static+set}" = set; then :
4458 enableval=$enable_static; p=${PACKAGE-default}
4460 yes) enable_static=yes ;;
4461 no) enable_static=no ;;
4464 # Look at the argument we got. We use all the common list separators.
4465 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4466 for pkg in $enableval; do
4468 if test "X$pkg" = "X$p"; then
4483 # Check whether --enable-shared was given.
4484 if test "${enable_shared+set}" = set; then :
4485 enableval=$enable_shared; p=${PACKAGE-default}
4487 yes) enable_shared=yes ;;
4488 no) enable_shared=no ;;
4491 # Look at the argument we got. We use all the common list separators.
4492 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4493 for pkg in $enableval; do
4495 if test "X$pkg" = "X$p"; then
4507 # Check whether --enable-fast-install was given.
4508 if test "${enable_fast_install+set}" = set; then :
4509 enableval=$enable_fast_install; p=${PACKAGE-default}
4511 yes) enable_fast_install=yes ;;
4512 no) enable_fast_install=no ;;
4514 enable_fast_install=no
4515 # Look at the argument we got. We use all the common list separators.
4516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4517 for pkg in $enableval; do
4519 if test "X$pkg" = "X$p"; then
4520 enable_fast_install=yes
4527 enable_fast_install=yes
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4532 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4533 if ${lt_cv_path_SED+:} false; then :
4534 $as_echo_n "(cached) " >&6
4536 # Loop through the user's path and test for sed and gsed.
4537 # Then use that list of sed's as ones to test for truncation.
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 test -z "$as_dir" && as_dir=.
4543 for lt_ac_prog in sed gsed; do
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4546 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4553 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4554 # along with /bin/sed that truncates output.
4555 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4556 test ! -f $lt_ac_sed && continue
4557 cat /dev/null > conftest.in
4559 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4560 # Check for GNU sed and select it if it is found.
4561 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4562 lt_cv_path_SED=$lt_ac_sed
4566 cat conftest.in conftest.in >conftest.tmp
4567 mv conftest.tmp conftest.in
4568 cp conftest.in conftest.nl
4570 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4571 cmp -s conftest.out conftest.nl || break
4572 # 10000 chars as input seems more than enough
4573 test $lt_ac_count -gt 10 && break
4574 lt_ac_count=`expr $lt_ac_count + 1`
4575 if test $lt_ac_count -gt $lt_ac_max; then
4576 lt_ac_max=$lt_ac_count
4577 lt_cv_path_SED=$lt_ac_sed
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4586 $as_echo "$SED" >&6; }
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4589 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4590 if ${ac_cv_path_GREP+:} false; then :
4591 $as_echo_n "(cached) " >&6
4593 if test -z "$GREP"; then
4594 ac_path_GREP_found=false
4595 # Loop through the user's path and test for each of PROGNAME-LIST
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4600 test -z "$as_dir" && as_dir=.
4601 for ac_prog in grep ggrep; do
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4604 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4605 # Check for GNU ac_path_GREP and select it if it is found.
4606 # Check for GNU $ac_path_GREP
4607 case `"$ac_path_GREP" --version 2>&1` in
4609 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4612 $as_echo_n 0123456789 >"conftest.in"
4615 cat "conftest.in" "conftest.in" >"conftest.tmp"
4616 mv "conftest.tmp" "conftest.in"
4617 cp "conftest.in" "conftest.nl"
4618 $as_echo 'GREP' >> "conftest.nl"
4619 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4621 as_fn_arith $ac_count + 1 && ac_count=$as_val
4622 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4623 # Best one so far, save it but keep looking for a better one
4624 ac_cv_path_GREP="$ac_path_GREP"
4625 ac_path_GREP_max=$ac_count
4627 # 10*(2^10) chars as input seems more than enough
4628 test $ac_count -gt 10 && break
4630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4633 $ac_path_GREP_found && break 3
4638 if test -z "$ac_cv_path_GREP"; then
4639 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4642 ac_cv_path_GREP=$GREP
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4647 $as_echo "$ac_cv_path_GREP" >&6; }
4648 GREP="$ac_cv_path_GREP"
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4652 $as_echo_n "checking for egrep... " >&6; }
4653 if ${ac_cv_path_EGREP+:} false; then :
4654 $as_echo_n "(cached) " >&6
4656 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4657 then ac_cv_path_EGREP="$GREP -E"
4659 if test -z "$EGREP"; then
4660 ac_path_EGREP_found=false
4661 # Loop through the user's path and test for each of PROGNAME-LIST
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4666 test -z "$as_dir" && as_dir=.
4667 for ac_prog in egrep; do
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4670 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4671 # Check for GNU ac_path_EGREP and select it if it is found.
4672 # Check for GNU $ac_path_EGREP
4673 case `"$ac_path_EGREP" --version 2>&1` in
4675 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4678 $as_echo_n 0123456789 >"conftest.in"
4681 cat "conftest.in" "conftest.in" >"conftest.tmp"
4682 mv "conftest.tmp" "conftest.in"
4683 cp "conftest.in" "conftest.nl"
4684 $as_echo 'EGREP' >> "conftest.nl"
4685 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4686 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4687 as_fn_arith $ac_count + 1 && ac_count=$as_val
4688 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4689 # Best one so far, save it but keep looking for a better one
4690 ac_cv_path_EGREP="$ac_path_EGREP"
4691 ac_path_EGREP_max=$ac_count
4693 # 10*(2^10) chars as input seems more than enough
4694 test $ac_count -gt 10 && break
4696 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4699 $ac_path_EGREP_found && break 3
4704 if test -z "$ac_cv_path_EGREP"; then
4705 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4708 ac_cv_path_EGREP=$EGREP
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4714 $as_echo "$ac_cv_path_EGREP" >&6; }
4715 EGREP="$ac_cv_path_EGREP"
4719 # Check whether --with-gnu-ld was given.
4720 if test "${with_gnu_ld+set}" = set; then :
4721 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4727 if test "$GCC" = yes; then
4728 # Check if gcc -print-prog-name=ld gives a path.
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4730 $as_echo_n "checking for ld used by $CC... " >&6; }
4733 # gcc leaves a trailing carriage return which upsets mingw
4734 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4736 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4739 # Accept absolute paths.
4741 re_direlt='/[^/][^/]*/\.\./'
4742 # Canonicalize the pathname of ld
4743 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4744 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4745 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4747 test -z "$LD" && LD="$ac_prog"
4750 # If it fails, then pretend we aren't using GCC.
4754 # If it is relative, then search for the first ld in PATH.
4758 elif test "$with_gnu_ld" = yes; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4760 $as_echo_n "checking for GNU ld... " >&6; }
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4763 $as_echo_n "checking for non-GNU ld... " >&6; }
4765 if ${lt_cv_path_LD+:} false; then :
4766 $as_echo_n "(cached) " >&6
4768 if test -z "$LD"; then
4769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4770 for ac_dir in $PATH; do
4772 test -z "$ac_dir" && ac_dir=.
4773 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4774 lt_cv_path_LD="$ac_dir/$ac_prog"
4775 # Check to see if the program is GNU ld. I'd rather use --version,
4776 # but apparently some variants of GNU ld only accept -v.
4777 # Break only if it was the GNU/non-GNU ld that we prefer.
4778 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4779 *GNU* | *'with BFD'*)
4780 test "$with_gnu_ld" != no && break
4783 test "$with_gnu_ld" != yes && break
4790 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4795 if test -n "$LD"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4797 $as_echo "$LD" >&6; }
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4802 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4804 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4805 if ${lt_cv_prog_gnu_ld+:} false; then :
4806 $as_echo_n "(cached) " >&6
4808 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4809 case `$LD -v 2>&1 </dev/null` in
4810 *GNU* | *'with BFD'*)
4811 lt_cv_prog_gnu_ld=yes
4814 lt_cv_prog_gnu_ld=no
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4819 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4820 with_gnu_ld=$lt_cv_prog_gnu_ld
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4824 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4825 if ${lt_cv_ld_reload_flag+:} false; then :
4826 $as_echo_n "(cached) " >&6
4828 lt_cv_ld_reload_flag='-r'
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4831 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4832 reload_flag=$lt_cv_ld_reload_flag
4833 case $reload_flag in
4835 *) reload_flag=" $reload_flag" ;;
4837 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4840 if test "$GCC" = yes; then
4841 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4843 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4849 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4850 if ${lt_cv_path_NM+:} false; then :
4851 $as_echo_n "(cached) " >&6
4853 if test -n "$NM"; then
4854 # Let the user override the test.
4857 lt_nm_to_check="${ac_tool_prefix}nm"
4858 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4859 lt_nm_to_check="$lt_nm_to_check nm"
4861 for lt_tmp_nm in $lt_nm_to_check; do
4862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4863 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4865 test -z "$ac_dir" && ac_dir=.
4866 tmp_nm="$ac_dir/$lt_tmp_nm"
4867 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4868 # Check to see if the nm accepts a BSD-compat flag.
4869 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4870 # nm: unknown option "B" ignored
4871 # Tru64's nm complains that /dev/null is an invalid object file
4872 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4873 */dev/null* | *'Invalid file or object type'*)
4874 lt_cv_path_NM="$tmp_nm -B"
4878 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4880 lt_cv_path_NM="$tmp_nm -p"
4884 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4885 continue # so that we can try to find one that supports BSD flags
4894 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4898 $as_echo "$lt_cv_path_NM" >&6; }
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4902 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4903 if ${lt_cv_deplibs_check_method+:} false; then :
4904 $as_echo_n "(cached) " >&6
4906 lt_cv_file_magic_cmd='$MAGIC_CMD'
4907 lt_cv_file_magic_test_file=
4908 lt_cv_deplibs_check_method='unknown'
4909 # Need to set the preceding variable on all platforms that support
4910 # interlibrary dependencies.
4911 # 'none' -- dependencies not supported.
4912 # `unknown' -- same as none, but documents that we really don't know.
4913 # 'pass_all' -- all dependencies passed with no checks.
4914 # 'test_compile' -- check by making test program.
4915 # 'file_magic [[regex]]' -- check by looking for files in library path
4916 # which responds to the $file_magic_cmd with a given extended regex.
4917 # If you have `file' or equivalent on your system and you're not sure
4918 # whether `pass_all' will *always* work, you probably want this one.
4922 lt_cv_deplibs_check_method=pass_all
4926 lt_cv_deplibs_check_method=pass_all
4930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4931 lt_cv_file_magic_cmd='/usr/bin/file -L'
4932 lt_cv_file_magic_test_file=/shlib/libc.so
4936 # func_win32_libid is a shell function defined in ltmain.sh
4937 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4938 lt_cv_file_magic_cmd='func_win32_libid'
4942 # Base MSYS/MinGW do not provide the 'file' command needed by
4943 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4944 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4945 lt_cv_file_magic_cmd='$OBJDUMP -f'
4948 darwin* | rhapsody*)
4949 lt_cv_deplibs_check_method=pass_all
4952 freebsd* | kfreebsd*-gnu | dragonfly*)
4953 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4956 # Not sure whether the presence of OpenBSD here was a mistake.
4957 # Let's accept both of them until this is cleared up.
4958 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4959 lt_cv_file_magic_cmd=/usr/bin/file
4960 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4964 lt_cv_deplibs_check_method=pass_all
4969 lt_cv_deplibs_check_method=pass_all
4972 hpux10.20* | hpux11*)
4973 lt_cv_file_magic_cmd=/usr/bin/file
4976 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4977 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4980 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]'
4981 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4984 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4985 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4991 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4995 irix5* | irix6* | nonstopux*)
4997 *-32|*"-32 ") libmagic=32-bit;;
4998 *-n32|*"-n32 ") libmagic=N32;;
4999 *-64|*"-64 ") libmagic=64-bit;;
5000 *) libmagic=never-match;;
5002 lt_cv_deplibs_check_method=pass_all
5005 # This must be Linux ELF.
5007 lt_cv_deplibs_check_method=pass_all
5011 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5019 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5020 lt_cv_file_magic_cmd=/usr/bin/file
5021 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5025 lt_cv_deplibs_check_method=unknown
5029 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5036 osf3* | osf4* | osf5*)
5037 lt_cv_deplibs_check_method=pass_all
5041 lt_cv_deplibs_check_method=pass_all
5045 case $host_vendor in
5047 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]'
5048 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5051 lt_cv_deplibs_check_method=pass_all
5054 lt_cv_file_magic_cmd='/bin/file'
5055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5058 lt_cv_file_magic_cmd='/bin/file'
5059 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5060 lt_cv_file_magic_test_file=/lib/libc.so
5063 lt_cv_deplibs_check_method=pass_all
5066 lt_cv_deplibs_check_method=pass_all
5071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5072 lt_cv_deplibs_check_method=pass_all
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5078 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5079 file_magic_cmd=$lt_cv_file_magic_cmd
5080 deplibs_check_method=$lt_cv_deplibs_check_method
5081 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5086 # If no C compiler was specified, use CC.
5089 # If no C compiler flags were specified, use CFLAGS.
5090 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5092 # Allow CC to be a program name with arguments.
5096 # Check whether --enable-libtool-lock was given.
5097 if test "${enable_libtool_lock+set}" = set; then :
5098 enableval=$enable_libtool_lock;
5101 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5103 # Some flags need to be propagated to the compiler or linker for good
5107 # Find out which ABI we are using.
5108 echo 'int i;' > conftest.$ac_ext
5109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5110 (eval $ac_compile) 2>&5
5112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5113 test $ac_status = 0; }; then
5114 case `/usr/bin/file conftest.$ac_objext` in
5126 # Find out which ABI we are using.
5127 echo '#line 5127 "configure"' > conftest.$ac_ext
5128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5129 (eval $ac_compile) 2>&5
5131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5132 test $ac_status = 0; }; then
5133 if test "$lt_cv_prog_gnu_ld" = yes; then
5134 case `/usr/bin/file conftest.$ac_objext` in
5136 LD="${LD-ld} -melf32bsmip"
5139 LD="${LD-ld} -melf32bmipn32"
5142 LD="${LD-ld} -melf64bmip"
5146 case `/usr/bin/file conftest.$ac_objext` in
5162 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5163 # Find out which ABI we are using.
5164 echo 'int i;' > conftest.$ac_ext
5165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5166 (eval $ac_compile) 2>&5
5168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5169 test $ac_status = 0; }; then
5170 case `/usr/bin/file conftest.o` in
5174 LD="${LD-ld} -m elf_i386"
5176 ppc64-*linux*|powerpc64-*linux*)
5177 LD="${LD-ld} -m elf32ppclinux"
5180 LD="${LD-ld} -m elf_s390"
5183 LD="${LD-ld} -m elf32_sparc"
5190 LD="${LD-ld} -m elf_x86_64"
5192 ppc*-*linux*|powerpc*-*linux*)
5193 LD="${LD-ld} -m elf64ppc"
5196 LD="${LD-ld} -m elf64_s390"
5199 LD="${LD-ld} -m elf64_sparc"
5209 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5210 SAVE_CFLAGS="$CFLAGS"
5211 CFLAGS="$CFLAGS -belf"
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5213 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5214 if ${lt_cv_cc_needs_belf+:} false; then :
5215 $as_echo_n "(cached) " >&6
5218 ac_cpp='$CPP $CPPFLAGS'
5219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5234 if ac_fn_c_try_link "$LINENO"; then :
5235 lt_cv_cc_needs_belf=yes
5237 lt_cv_cc_needs_belf=no
5239 rm -f core conftest.err conftest.$ac_objext \
5240 conftest$ac_exeext conftest.$ac_ext
5242 ac_cpp='$CPP $CPPFLAGS'
5243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5249 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5250 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5251 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5252 CFLAGS="$SAVE_CFLAGS"
5256 # Find out which ABI we are using.
5257 echo 'int i;' > conftest.$ac_ext
5258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5259 (eval $ac_compile) 2>&5
5261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5262 test $ac_status = 0; }; then
5263 case `/usr/bin/file conftest.o` in
5265 case $lt_cv_prog_gnu_ld in
5266 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5267 *) LD="${LD-ld} -64" ;;
5278 need_locks="$enable_libtool_lock"
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5283 $as_echo_n "checking for ANSI C header files... " >&6; }
5284 if ${ac_cv_header_stdc+:} false; then :
5285 $as_echo_n "(cached) " >&6
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303 ac_cv_header_stdc=yes
5305 ac_cv_header_stdc=no
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309 if test $ac_cv_header_stdc = yes; then
5310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5317 $EGREP "memchr" >/dev/null 2>&1; then :
5320 ac_cv_header_stdc=no
5326 if test $ac_cv_header_stdc = yes; then
5327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5334 $EGREP "free" >/dev/null 2>&1; then :
5337 ac_cv_header_stdc=no
5343 if test $ac_cv_header_stdc = yes; then
5344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5345 if test "$cross_compiling" = yes; then :
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5352 #if ((' ' & 0x0FF) == 0x020)
5353 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5354 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5356 # define ISLOWER(c) \
5357 (('a' <= (c) && (c) <= 'i') \
5358 || ('j' <= (c) && (c) <= 'r') \
5359 || ('s' <= (c) && (c) <= 'z'))
5360 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5363 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5368 for (i = 0; i < 256; i++)
5369 if (XOR (islower (i), ISLOWER (i))
5370 || toupper (i) != TOUPPER (i))
5375 if ac_fn_c_try_run "$LINENO"; then :
5378 ac_cv_header_stdc=no
5380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5381 conftest.$ac_objext conftest.beam conftest.$ac_ext
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5387 $as_echo "$ac_cv_header_stdc" >&6; }
5388 if test $ac_cv_header_stdc = yes; then
5390 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5394 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5395 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5396 inttypes.h stdint.h unistd.h
5398 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5399 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5401 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5402 cat >>confdefs.h <<_ACEOF
5403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5411 for ac_header in dlfcn.h
5413 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5414 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5415 cat >>confdefs.h <<_ACEOF
5416 #define HAVE_DLFCN_H 1
5424 ac_cpp='$CXXCPP $CPPFLAGS'
5425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5428 if test -z "$CXX"; then
5429 if test -n "$CCC"; then
5432 if test -n "$ac_tool_prefix"; then
5433 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_prog_CXX+:} false; then :
5440 $as_echo_n "(cached) " >&6
5442 if test -n "$CXX"; then
5443 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 if test -n "$CXX"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5465 $as_echo "$CXX" >&6; }
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5472 test -n "$CXX" && break
5475 if test -z "$CXX"; then
5477 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5479 # Extract the first word of "$ac_prog", so it can be a program name with args.
5480 set dummy $ac_prog; ac_word=$2
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 $as_echo_n "checking for $ac_word... " >&6; }
5483 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5484 $as_echo_n "(cached) " >&6
5486 if test -n "$ac_ct_CXX"; then
5487 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5496 ac_cv_prog_ac_ct_CXX="$ac_prog"
5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5507 if test -n "$ac_ct_CXX"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5509 $as_echo "$ac_ct_CXX" >&6; }
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5516 test -n "$ac_ct_CXX" && break
5519 if test "x$ac_ct_CXX" = x; then
5522 case $cross_compiling:$ac_tool_warned in
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5526 ac_tool_warned=yes ;;
5534 # Provide some information about the compiler.
5535 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5538 for ac_option in --version -v -V -qversion; do
5539 { { ac_try="$ac_compiler $ac_option >&5"
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5545 $as_echo "$ac_try_echo"; } >&5
5546 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5548 if test -s conftest.err; then
5550 ... rest of stderr output deleted ...
5551 10q' conftest.err >conftest.er1
5552 cat conftest.er1 >&5
5554 rm -f conftest.er1 conftest.err
5555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5556 test $ac_status = 0; }
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5560 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5561 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5562 $as_echo_n "(cached) " >&6
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5578 if ac_fn_cxx_try_compile "$LINENO"; then :
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5588 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5589 if test $ac_compiler_gnu = yes; then
5594 ac_test_CXXFLAGS=${CXXFLAGS+set}
5595 ac_save_CXXFLAGS=$CXXFLAGS
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5597 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5598 if ${ac_cv_prog_cxx_g+:} false; then :
5599 $as_echo_n "(cached) " >&6
5601 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5602 ac_cxx_werror_flag=yes
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5616 if ac_fn_cxx_try_compile "$LINENO"; then :
5617 ac_cv_prog_cxx_g=yes
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5631 if ac_fn_cxx_try_compile "$LINENO"; then :
5634 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5647 if ac_fn_cxx_try_compile "$LINENO"; then :
5648 ac_cv_prog_cxx_g=yes
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5658 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5659 if test "$ac_test_CXXFLAGS" = set; then
5660 CXXFLAGS=$ac_save_CXXFLAGS
5661 elif test $ac_cv_prog_cxx_g = yes; then
5662 if test "$GXX" = yes; then
5668 if test "$GXX" = yes; then
5675 ac_cpp='$CXXCPP $CPPFLAGS'
5676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5680 depcc="$CXX" am_compiler_list=
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5683 $as_echo_n "checking dependency style of $depcc... " >&6; }
5684 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5685 $as_echo_n "(cached) " >&6
5687 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5688 # We make a subdir and do the tests there. Otherwise we can end up
5689 # making bogus files that we don't know about and never remove. For
5690 # instance it was reported that on HP-UX the gcc test will end up
5691 # making a dummy file named `D' -- because `-MD' means `put the output
5694 # Copy depcomp to subdir because otherwise we won't find it if we're
5695 # using a relative directory.
5696 cp "$am_depcomp" conftest.dir
5698 # We will build objects and dependencies in a subdirectory because
5699 # it helps to detect inapplicable dependency modes. For instance
5700 # both Tru64's cc and ICC support -MD to output dependencies as a
5701 # side effect of compilation, but ICC will put the dependencies in
5702 # the current directory while Tru64 will put them in the object
5706 am_cv_CXX_dependencies_compiler_type=none
5707 if test "$am_compiler_list" = ""; then
5708 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5711 case " $depcc " in #(
5712 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5715 for depmode in $am_compiler_list; do
5716 # Setup a source with many dependencies, because some compilers
5717 # like to wrap large dependency lists on column 80 (with \), and
5718 # we should not choose a depcomp mode which is confused by this.
5720 # We need to recreate these files for each test, as the compiler may
5721 # overwrite some of them when testing with obscure command lines.
5722 # This happens at least with the AIX C compiler.
5724 for i in 1 2 3 4 5 6; do
5725 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5726 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5727 # Solaris 8's {/usr,}/bin/sh.
5728 touch sub/conftst$i.h
5730 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5732 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5733 # mode. It turns out that the SunPro C++ compiler does not properly
5734 # handle `-M -o', and we need to detect this. Also, some Intel
5735 # versions had trouble with output in subdirs
5736 am__obj=sub/conftest.${OBJEXT-o}
5737 am__minus_obj="-o $am__obj"
5740 # This depmode causes a compiler race in universal mode.
5741 test "$am__universal" = false || continue
5744 # after this tag, mechanisms are not by side-effect, so they'll
5745 # only be used when explicitly requested
5746 if test "x$enable_dependency_tracking" = xyes; then
5752 msvisualcpp | msvcmsys)
5753 # This compiler won't grok `-c -o', but also, the minuso test has
5754 # not run yet. These depmodes are late enough in the game, and
5755 # so weak that their functioning should not be impacted.
5756 am__obj=conftest.${OBJEXT-o}
5761 if depmode=$depmode \
5762 source=sub/conftest.c object=$am__obj \
5763 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5764 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5765 >/dev/null 2>conftest.err &&
5766 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5767 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5768 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5769 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5770 # icc doesn't choke on unknown options, it will just issue warnings
5771 # or remarks (even with -Werror). So we grep stderr for any message
5772 # that says an option was ignored or not supported.
5773 # When given -MP, icc 7.0 and 7.1 complain thusly:
5774 # icc: Command line warning: ignoring option '-M'; no argument required
5775 # The diagnosis changed in icc 8.0:
5776 # icc: Command line remark: option '-MP' not supported
5777 if (grep 'ignoring option' conftest.err ||
5778 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5779 am_cv_CXX_dependencies_compiler_type=$depmode
5788 am_cv_CXX_dependencies_compiler_type=none
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5793 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5794 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5797 test "x$enable_dependency_tracking" != xno \
5798 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5799 am__fastdepCXX_TRUE=
5800 am__fastdepCXX_FALSE='#'
5802 am__fastdepCXX_TRUE='#'
5803 am__fastdepCXX_FALSE=
5809 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5810 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5811 (test "X$CXX" != "Xg++"))) ; then
5813 ac_cpp='$CXXCPP $CPPFLAGS'
5814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5818 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5819 if test -z "$CXXCPP"; then
5820 if ${ac_cv_prog_CXXCPP+:} false; then :
5821 $as_echo_n "(cached) " >&6
5823 # Double quotes because CXXCPP needs to be expanded
5824 for CXXCPP in "$CXX -E" "/lib/cpp"
5827 for ac_cxx_preproc_warn_flag in '' yes
5829 # Use a header file that comes with gcc, so configuring glibc
5830 # with a fresh cross-compiler works.
5831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5832 # <limits.h> exists even on freestanding compilers.
5833 # On the NeXT, cc -E runs the code through the compiler's parser,
5834 # not just through cpp. "Syntax error" is here to catch this case.
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5838 # include <limits.h>
5840 # include <assert.h>
5844 if ac_fn_cxx_try_cpp "$LINENO"; then :
5847 # Broken: fails on valid input.
5850 rm -f conftest.err conftest.i conftest.$ac_ext
5852 # OK, works on sane cases. Now check whether nonexistent headers
5853 # can be detected and how.
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856 #include <ac_nonexistent.h>
5858 if ac_fn_cxx_try_cpp "$LINENO"; then :
5859 # Broken: success on invalid input.
5862 # Passes both tests.
5866 rm -f conftest.err conftest.i conftest.$ac_ext
5869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5870 rm -f conftest.i conftest.err conftest.$ac_ext
5871 if $ac_preproc_ok; then :
5876 ac_cv_prog_CXXCPP=$CXXCPP
5879 CXXCPP=$ac_cv_prog_CXXCPP
5881 ac_cv_prog_CXXCPP=$CXXCPP
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5884 $as_echo "$CXXCPP" >&6; }
5886 for ac_cxx_preproc_warn_flag in '' yes
5888 # Use a header file that comes with gcc, so configuring glibc
5889 # with a fresh cross-compiler works.
5890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5891 # <limits.h> exists even on freestanding compilers.
5892 # On the NeXT, cc -E runs the code through the compiler's parser,
5893 # not just through cpp. "Syntax error" is here to catch this case.
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5897 # include <limits.h>
5899 # include <assert.h>
5903 if ac_fn_cxx_try_cpp "$LINENO"; then :
5906 # Broken: fails on valid input.
5909 rm -f conftest.err conftest.i conftest.$ac_ext
5911 # OK, works on sane cases. Now check whether nonexistent headers
5912 # can be detected and how.
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5915 #include <ac_nonexistent.h>
5917 if ac_fn_cxx_try_cpp "$LINENO"; then :
5918 # Broken: success on invalid input.
5921 # Passes both tests.
5925 rm -f conftest.err conftest.i conftest.$ac_ext
5928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5929 rm -f conftest.i conftest.err conftest.$ac_ext
5930 if $ac_preproc_ok; then :
5933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5935 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5936 See \`config.log' for more details" "$LINENO" 5; }
5940 ac_cpp='$CXXCPP $CPPFLAGS'
5941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5949 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5950 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5951 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5952 if test -n "$ac_tool_prefix"; then
5953 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 pgfortran pgf95 lf95 ftn
5955 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5956 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_prog_F77+:} false; then :
5960 $as_echo_n "(cached) " >&6
5962 if test -n "$F77"; then
5963 ac_cv_prog_F77="$F77" # Let the user override the test.
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 if test -n "$F77"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5985 $as_echo "$F77" >&6; }
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5992 test -n "$F77" && break
5995 if test -z "$F77"; then
5997 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 pgfortran pgf95 lf95 ftn
5999 # Extract the first word of "$ac_prog", so it can be a program name with args.
6000 set dummy $ac_prog; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6004 $as_echo_n "(cached) " >&6
6006 if test -n "$ac_ct_F77"; then
6007 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_ac_ct_F77="$ac_prog"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6027 if test -n "$ac_ct_F77"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6029 $as_echo "$ac_ct_F77" >&6; }
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6036 test -n "$ac_ct_F77" && break
6039 if test "x$ac_ct_F77" = x; then
6042 case $cross_compiling:$ac_tool_warned in
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6046 ac_tool_warned=yes ;;
6053 # Provide some information about the compiler.
6054 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6057 for ac_option in --version -v -V -qversion; do
6058 { { ac_try="$ac_compiler $ac_option >&5"
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6064 $as_echo "$ac_try_echo"; } >&5
6065 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6067 if test -s conftest.err; then
6069 ... rest of stderr output deleted ...
6070 10q' conftest.err >conftest.er1
6071 cat conftest.er1 >&5
6073 rm -f conftest.er1 conftest.err
6074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6075 test $ac_status = 0; }
6079 # If we don't use `.F' as extension, the preprocessor is not run on the
6080 # input file. (Note that this only needs to work for GNU compilers.)
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6084 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6085 if ${ac_cv_f77_compiler_gnu+:} false; then :
6086 $as_echo_n "(cached) " >&6
6088 cat > conftest.$ac_ext <<_ACEOF
6096 if ac_fn_f77_try_compile "$LINENO"; then :
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6106 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6108 ac_test_FFLAGS=${FFLAGS+set}
6109 ac_save_FFLAGS=$FFLAGS
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6112 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6113 if ${ac_cv_prog_f77_g+:} false; then :
6114 $as_echo_n "(cached) " >&6
6117 cat > conftest.$ac_ext <<_ACEOF
6122 if ac_fn_f77_try_compile "$LINENO"; then :
6123 ac_cv_prog_f77_g=yes
6127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6131 $as_echo "$ac_cv_prog_f77_g" >&6; }
6132 if test "$ac_test_FFLAGS" = set; then
6133 FFLAGS=$ac_save_FFLAGS
6134 elif test $ac_cv_prog_f77_g = yes; then
6135 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6141 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6148 if test $ac_compiler_gnu = yes; then
6154 ac_cpp='$CPP $CPPFLAGS'
6155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6161 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6163 # find the maximum length of command line arguments
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6165 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6166 if ${lt_cv_sys_max_cmd_len+:} false; then :
6167 $as_echo_n "(cached) " >&6
6174 # On DJGPP, this test can blow up pretty badly due to problems in libc
6175 # (any single argument exceeding 2000 bytes causes a buffer overrun
6176 # during glob expansion). Even if it were fixed, the result of this
6177 # check would be larger than it should be.
6178 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6182 # Under GNU Hurd, this test is not required because there is
6183 # no limit to the length of command line arguments.
6184 # Libtool will interpret -1 as no limit whatsoever
6185 lt_cv_sys_max_cmd_len=-1;
6189 # On Win9x/ME, this test blows up -- it succeeds, but takes
6190 # about 5 minutes as the teststring grows exponentially.
6191 # Worse, since 9x/ME are not pre-emptively multitasking,
6192 # you end up with a "frozen" computer, even though with patience
6193 # the test eventually succeeds (with a max line length of 256k).
6194 # Instead, let's just punt: use the minimum linelength reported by
6195 # all of the supported platforms: 8192 (on NT/2K/XP).
6196 lt_cv_sys_max_cmd_len=8192;
6200 # On AmigaOS with pdksh, this test takes hours, literally.
6201 # So we just punt and use a minimum line length of 8192.
6202 lt_cv_sys_max_cmd_len=8192;
6205 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6206 # This has been around since 386BSD, at least. Likely further.
6207 if test -x /sbin/sysctl; then
6208 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6209 elif test -x /usr/sbin/sysctl; then
6210 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6212 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6214 # And add a safety zone
6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6220 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6221 lt_cv_sys_max_cmd_len=196608
6225 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6226 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6227 # nice to cause kernel panics so lets avoid the loop below.
6228 # First set a reasonable default.
6229 lt_cv_sys_max_cmd_len=16384
6231 if test -x /sbin/sysconfig; then
6232 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6233 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6238 lt_cv_sys_max_cmd_len=102400
6240 sysv5* | sco5v6* | sysv4.2uw2*)
6241 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6242 if test -n "$kargmax"; then
6243 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6245 lt_cv_sys_max_cmd_len=32768
6249 # If test is not a shell built-in, we'll probably end up computing a
6250 # maximum length that is only half of the actual maximum length, but
6252 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6253 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6254 = "XX$teststring") >/dev/null 2>&1 &&
6255 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6256 lt_cv_sys_max_cmd_len=$new_result &&
6257 test $i != 17 # 1/2 MB should be enough
6260 teststring=$teststring$teststring
6263 # Add a significant safety factor because C++ compilers can tack on massive
6264 # amounts of additional arguments before passing them to the linker.
6265 # It appears as though 1/2 is a usable value.
6266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6272 if test -n $lt_cv_sys_max_cmd_len ; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6274 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6277 $as_echo "none" >&6; }
6283 # Check for command to grab the raw symbol name followed by C symbol from nm.
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6285 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6286 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6287 $as_echo_n "(cached) " >&6
6290 # These are sane defaults that work on at least a few old systems.
6291 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6293 # Character class describing NM global symbol codes.
6294 symcode='[BCDEGRST]'
6296 # Regexp to match symbols that can be accessed directly from C.
6297 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6299 # Transform an extracted symbol line into a proper C declaration
6300 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6302 # Transform an extracted symbol line into symbol name and symbol address
6303 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'"
6305 # Define system-specific variables.
6310 cygwin* | mingw* | pw32*)
6311 symcode='[ABCDGISTW]'
6313 hpux*) # Its linker distinguishes data from code symbols
6314 if test "$host_cpu" = ia64; then
6315 symcode='[ABCDEGRST]'
6317 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6318 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'"
6321 if test "$host_cpu" = ia64; then
6322 symcode='[ABCDGIRSTW]'
6323 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6324 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'"
6328 symcode='[BCDEGRST]'
6331 symcode='[BCDEGQRST]'
6342 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6350 # Handle CRLF in mingw tool chain
6354 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6358 # If we're using GNU nm, then use its standard symbol codes.
6359 case `$NM -V 2>&1` in
6360 *GNU* | *'with BFD'*)
6361 symcode='[ABCDGIRSTW]' ;;
6364 # Try without a prefix undercore, then with it.
6365 for ac_symprfx in "" "_"; do
6367 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6368 symxfrm="\\1 $ac_symprfx\\2 \\2"
6370 # Write the raw and C identifiers.
6371 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6373 # Check to see that the pipe works correctly.
6377 cat > conftest.$ac_ext <<EOF
6382 void nm_test_func(){}
6386 int main(){nm_test_var='a';nm_test_func();return(0);}
6389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6390 (eval $ac_compile) 2>&5
6392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6393 test $ac_status = 0; }; then
6394 # Now try to grab the symbols.
6396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6397 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6400 test $ac_status = 0; } && test -s "$nlist"; then
6401 # Try sorting and uniquifying the output.
6402 if sort "$nlist" | uniq > "$nlist"T; then
6403 mv -f "$nlist"T "$nlist"
6408 # Make sure that we snagged all the symbols we need.
6409 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6410 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6411 cat <<EOF > conftest.$ac_ext
6417 # Now generate the symbol file.
6418 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6420 cat <<EOF >> conftest.$ac_ext
6421 #if defined (__STDC__) && __STDC__
6422 # define lt_ptr_t void *
6424 # define lt_ptr_t char *
6428 /* The mapping between symbol names and symbols. */
6433 lt_preloaded_symbols[] =
6436 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6437 cat <<\EOF >> conftest.$ac_ext
6445 # Now try linking the two files.
6446 mv conftest.$ac_objext conftstm.$ac_objext
6447 lt_save_LIBS="$LIBS"
6448 lt_save_CFLAGS="$CFLAGS"
6449 LIBS="conftstm.$ac_objext"
6450 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6452 (eval $ac_link) 2>&5
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6458 LIBS="$lt_save_LIBS"
6459 CFLAGS="$lt_save_CFLAGS"
6461 echo "cannot find nm_test_func in $nlist" >&5
6464 echo "cannot find nm_test_var in $nlist" >&5
6467 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6470 echo "$progname: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6473 rm -f conftest* conftst*
6475 # Do not use the global_symbol_pipe unless it works.
6476 if test "$pipe_works" = yes; then
6479 lt_cv_sys_global_symbol_pipe=
6485 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6486 lt_cv_sys_global_symbol_to_cdecl=
6488 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6490 $as_echo "failed" >&6; }
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6493 $as_echo "ok" >&6; }
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6497 $as_echo_n "checking for objdir... " >&6; }
6498 if ${lt_cv_objdir+:} false; then :
6499 $as_echo_n "(cached) " >&6
6501 rm -f .libs 2>/dev/null
6502 mkdir .libs 2>/dev/null
6503 if test -d .libs; then
6506 # MS-DOS does not allow filenames that begin with a dot.
6509 rmdir .libs 2>/dev/null
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6512 $as_echo "$lt_cv_objdir" >&6; }
6513 objdir=$lt_cv_objdir
6521 # AIX sometimes has problems with the GCC collect2 program. For some
6522 # reason, if we set the COLLECT_NAMES environment variable, the problems
6523 # vanish in a puff of smoke.
6524 if test "X${COLLECT_NAMES+set}" != Xset; then
6526 export COLLECT_NAMES
6531 # Sed substitution that helps us do robust quoting. It backslashifies
6532 # metacharacters that are still active within double-quoted strings.
6533 Xsed='sed -e 1s/^X//'
6534 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6536 # Same as above, but do not quote variable references.
6537 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6539 # Sed substitution to delay expansion of an escaped shell variable in a
6540 # double_quote_subst'ed string.
6541 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6543 # Sed substitution to avoid accidental globbing in evaled expressions
6544 no_glob_subst='s/\*/\\\*/g'
6550 default_ofile=libtool
6551 can_build_shared=yes
6553 # All known linkers require a `.a' archive for static linking (except MSVC,
6554 # which needs '.lib').
6556 ltmain="$ac_aux_dir/ltmain.sh"
6557 ofile="$default_ofile"
6558 with_gnu_ld="$lt_cv_prog_gnu_ld"
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6562 set dummy ${ac_tool_prefix}ar; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if ${ac_cv_prog_AR+:} false; then :
6566 $as_echo_n "(cached) " >&6
6568 if test -n "$AR"; then
6569 ac_cv_prog_AR="$AR" # Let the user override the test.
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_AR="${ac_tool_prefix}ar"
6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 if test -n "$AR"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6591 $as_echo "$AR" >&6; }
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6599 if test -z "$ac_cv_prog_AR"; then
6601 # Extract the first word of "ar", so it can be a program name with args.
6602 set dummy ar; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6606 $as_echo_n "(cached) " >&6
6608 if test -n "$ac_ct_AR"; then
6609 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_ac_ct_AR="ar"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6629 if test -n "$ac_ct_AR"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6631 $as_echo "$ac_ct_AR" >&6; }
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6637 if test "x$ac_ct_AR" = x; then
6640 case $cross_compiling:$ac_tool_warned in
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6652 if test -n "$ac_tool_prefix"; then
6653 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6654 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if ${ac_cv_prog_RANLIB+:} false; then :
6658 $as_echo_n "(cached) " >&6
6660 if test -n "$RANLIB"; then
6661 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 RANLIB=$ac_cv_prog_RANLIB
6681 if test -n "$RANLIB"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6683 $as_echo "$RANLIB" >&6; }
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6691 if test -z "$ac_cv_prog_RANLIB"; then
6692 ac_ct_RANLIB=$RANLIB
6693 # Extract the first word of "ranlib", so it can be a program name with args.
6694 set dummy ranlib; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6698 $as_echo_n "(cached) " >&6
6700 if test -n "$ac_ct_RANLIB"; then
6701 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_prog_ac_ct_RANLIB="ranlib"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6721 if test -n "$ac_ct_RANLIB"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6723 $as_echo "$ac_ct_RANLIB" >&6; }
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6729 if test "x$ac_ct_RANLIB" = x; then
6732 case $cross_compiling:$ac_tool_warned in
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736 ac_tool_warned=yes ;;
6738 RANLIB=$ac_ct_RANLIB
6741 RANLIB="$ac_cv_prog_RANLIB"
6744 if test -n "$ac_tool_prefix"; then
6745 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6746 set dummy ${ac_tool_prefix}strip; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if ${ac_cv_prog_STRIP+:} false; then :
6750 $as_echo_n "(cached) " >&6
6752 if test -n "$STRIP"; then
6753 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 STRIP=$ac_cv_prog_STRIP
6773 if test -n "$STRIP"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6775 $as_echo "$STRIP" >&6; }
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6783 if test -z "$ac_cv_prog_STRIP"; then
6785 # Extract the first word of "strip", so it can be a program name with args.
6786 set dummy strip; ac_word=$2
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6790 $as_echo_n "(cached) " >&6
6792 if test -n "$ac_ct_STRIP"; then
6793 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_prog_ac_ct_STRIP="strip"
6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6813 if test -n "$ac_ct_STRIP"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6815 $as_echo "$ac_ct_STRIP" >&6; }
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6821 if test "x$ac_ct_STRIP" = x; then
6824 case $cross_compiling:$ac_tool_warned in
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6828 ac_tool_warned=yes ;;
6833 STRIP="$ac_cv_prog_STRIP"
6838 old_CFLAGS="$CFLAGS"
6840 # Set sane defaults for various variables
6841 test -z "$AR" && AR=ar
6842 test -z "$AR_FLAGS" && AR_FLAGS=cru
6843 test -z "$AS" && AS=as
6844 test -z "$CC" && CC=cc
6845 test -z "$LTCC" && LTCC=$CC
6846 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6847 test -z "$DLLTOOL" && DLLTOOL=dlltool
6848 test -z "$LD" && LD=ld
6849 test -z "$LN_S" && LN_S="ln -s"
6850 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6851 test -z "$NM" && NM=nm
6852 test -z "$SED" && SED=sed
6853 test -z "$OBJDUMP" && OBJDUMP=objdump
6854 test -z "$RANLIB" && RANLIB=:
6855 test -z "$STRIP" && STRIP=:
6856 test -z "$ac_objext" && ac_objext=o
6858 # Determine commands to create old-style static archives.
6859 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6860 old_postinstall_cmds='chmod 644 $oldlib'
6861 old_postuninstall_cmds=
6863 if test -n "$RANLIB"; then
6866 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6869 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6872 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6875 for cc_temp in $compiler""; do
6877 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6878 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6883 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6886 # Only perform the check for file, if the check method requires it
6887 case $deplibs_check_method in
6889 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6891 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6892 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6893 $as_echo_n "(cached) " >&6
6897 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6900 lt_save_MAGIC_CMD="$MAGIC_CMD"
6901 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6902 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6903 for ac_dir in $ac_dummy; do
6905 test -z "$ac_dir" && ac_dir=.
6906 if test -f $ac_dir/${ac_tool_prefix}file; then
6907 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6908 if test -n "$file_magic_test_file"; then
6909 case $deplibs_check_method in
6911 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6913 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6914 $EGREP "$file_magic_regex" > /dev/null; then
6919 *** Warning: the command libtool uses to detect shared libraries,
6920 *** $file_magic_cmd, produces output that libtool cannot recognize.
6921 *** The result is that libtool may fail to recognize shared libraries
6922 *** as such. This will affect the creation of libtool libraries that
6923 *** depend on shared libraries, but programs linked with such libtool
6924 *** libraries will work regardless of this problem. Nevertheless, you
6925 *** may want to report the problem to your system manager and/or to
6926 *** bug-libtool@gnu.org
6936 MAGIC_CMD="$lt_save_MAGIC_CMD"
6941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6942 if test -n "$MAGIC_CMD"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6944 $as_echo "$MAGIC_CMD" >&6; }
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6950 if test -z "$lt_cv_path_MAGIC_CMD"; then
6951 if test -n "$ac_tool_prefix"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6953 $as_echo_n "checking for file... " >&6; }
6954 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6955 $as_echo_n "(cached) " >&6
6959 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6962 lt_save_MAGIC_CMD="$MAGIC_CMD"
6963 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6964 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6965 for ac_dir in $ac_dummy; do
6967 test -z "$ac_dir" && ac_dir=.
6968 if test -f $ac_dir/file; then
6969 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6970 if test -n "$file_magic_test_file"; then
6971 case $deplibs_check_method in
6973 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6974 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6975 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6976 $EGREP "$file_magic_regex" > /dev/null; then
6981 *** Warning: the command libtool uses to detect shared libraries,
6982 *** $file_magic_cmd, produces output that libtool cannot recognize.
6983 *** The result is that libtool may fail to recognize shared libraries
6984 *** as such. This will affect the creation of libtool libraries that
6985 *** depend on shared libraries, but programs linked with such libtool
6986 *** libraries will work regardless of this problem. Nevertheless, you
6987 *** may want to report the problem to your system manager and/or to
6988 *** bug-libtool@gnu.org
6998 MAGIC_CMD="$lt_save_MAGIC_CMD"
7003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7004 if test -n "$MAGIC_CMD"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7006 $as_echo "$MAGIC_CMD" >&6; }
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7024 # Check whether --enable-libtool-lock was given.
7025 if test "${enable_libtool_lock+set}" = set; then :
7026 enableval=$enable_libtool_lock;
7029 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7032 # Check whether --with-pic was given.
7033 if test "${with_pic+set}" = set; then :
7034 withval=$with_pic; pic_mode="$withval"
7039 test -z "$pic_mode" && pic_mode=default
7041 # Use C for the default configuration in the libtool script
7045 ac_cpp='$CPP $CPPFLAGS'
7046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7051 # Source file extension for C test sources.
7054 # Object file extension for compiled C test sources.
7058 # Code to be used in simple compile tests
7059 lt_simple_compile_test_code="int some_variable = 0;\n"
7061 # Code to be used in simple link tests
7062 lt_simple_link_test_code='int main(){return(0);}\n'
7065 # If no C compiler was specified, use CC.
7068 # If no C compiler flags were specified, use CFLAGS.
7069 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7071 # Allow CC to be a program name with arguments.
7075 # save warnings/boilerplate of simple test code
7076 ac_outfile=conftest.$ac_objext
7077 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7078 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7079 _lt_compiler_boilerplate=`cat conftest.err`
7082 ac_outfile=conftest.$ac_objext
7083 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7084 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7085 _lt_linker_boilerplate=`cat conftest.err`
7090 lt_prog_compiler_no_builtin_flag=
7092 if test "$GCC" = yes; then
7093 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7097 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7098 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7099 $as_echo_n "(cached) " >&6
7101 lt_cv_prog_compiler_rtti_exceptions=no
7102 ac_outfile=conftest.$ac_objext
7103 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7104 lt_compiler_flag="-fno-rtti -fno-exceptions"
7105 # Insert the option either (1) after the last *FLAGS variable, or
7106 # (2) before a word containing "conftest.", or (3) at the end.
7107 # Note that $ac_compile itself does not contain backslashes and begins
7108 # with a dollar sign (not a hyphen), so the echo should work correctly.
7109 # The option is referenced via a variable to avoid confusing sed.
7110 lt_compile=`echo "$ac_compile" | $SED \
7111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7113 -e 's:$: $lt_compiler_flag:'`
7114 (eval echo "\"\$as_me:7114: $lt_compile\"" >&5)
7115 (eval "$lt_compile" 2>conftest.err)
7117 cat conftest.err >&5
7118 echo "$as_me:7118: \$? = $ac_status" >&5
7119 if (exit $ac_status) && test -s "$ac_outfile"; then
7120 # The compiler can only warn and ignore the option if not recognized
7121 # So say no if there are warnings other than the usual output.
7122 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7123 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7124 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7125 lt_cv_prog_compiler_rtti_exceptions=yes
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7132 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7134 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7135 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7142 lt_prog_compiler_wl=
7143 lt_prog_compiler_pic=
7144 lt_prog_compiler_static=
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7147 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7149 if test "$GCC" = yes; then
7150 lt_prog_compiler_wl='-Wl,'
7151 lt_prog_compiler_static='-static'
7155 # All AIX code is PIC.
7156 if test "$host_cpu" = ia64; then
7157 # AIX 5 now supports IA64 processor
7158 lt_prog_compiler_static='-Bstatic'
7163 # FIXME: we need at least 68020 code to build shared libraries, but
7164 # adding the `-m68020' flag to GCC prevents building anything better,
7166 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7169 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7170 # PIC is the default for these OSes.
7173 mingw* | pw32* | os2*)
7174 # This hack is so that the source file can tell whether it is being
7175 # built for inclusion in a dll (and should export symbols for example).
7176 lt_prog_compiler_pic='-DDLL_EXPORT'
7179 darwin* | rhapsody*)
7180 # PIC is the default on this platform
7181 # Common symbols not allowed in MH_DYLIB files
7182 lt_prog_compiler_pic='-fno-common'
7186 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7187 # Instead, we relocate shared libraries at runtime.
7191 # Just because we use GCC doesn't mean we suddenly get shared libraries
7192 # on systems that don't support them.
7193 lt_prog_compiler_can_build_shared=no
7198 if test -d /usr/nec; then
7199 lt_prog_compiler_pic=-Kconform_pic
7204 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7211 lt_prog_compiler_pic='-fPIC'
7217 lt_prog_compiler_pic='-fPIC'
7221 # PORTME Check for flag to pass linker flags through the system compiler.
7224 lt_prog_compiler_wl='-Wl,'
7225 if test "$host_cpu" = ia64; then
7226 # AIX 5 now supports IA64 processor
7227 lt_prog_compiler_static='-Bstatic'
7229 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7233 # PIC is the default on this platform
7234 # Common symbols not allowed in MH_DYLIB files
7235 case $cc_basename in
7237 lt_prog_compiler_pic='-qnocommon'
7238 lt_prog_compiler_wl='-Wl,'
7243 mingw* | pw32* | os2*)
7244 # This hack is so that the source file can tell whether it is being
7245 # built for inclusion in a dll (and should export symbols for example).
7246 lt_prog_compiler_pic='-DDLL_EXPORT'
7249 hpux9* | hpux10* | hpux11*)
7250 lt_prog_compiler_wl='-Wl,'
7251 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7258 lt_prog_compiler_pic='+Z'
7261 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7262 lt_prog_compiler_static='${wl}-a ${wl}archive'
7265 irix5* | irix6* | nonstopux*)
7266 lt_prog_compiler_wl='-Wl,'
7267 # PIC (with -KPIC) is the default.
7268 lt_prog_compiler_static='-non_shared'
7272 lt_prog_compiler_pic='-KPIC'
7273 lt_prog_compiler_static='-Bstatic'
7277 case $cc_basename in
7279 lt_prog_compiler_wl='-Wl,'
7280 lt_prog_compiler_pic='-KPIC'
7281 lt_prog_compiler_static='-static'
7283 pgcc* | pgf77* | pgf90* | pgf95*)
7284 # Portland Group compilers (*not* the Pentium gcc compiler,
7285 # which looks to be a dead project)
7286 lt_prog_compiler_wl='-Wl,'
7287 lt_prog_compiler_pic='-fpic'
7288 lt_prog_compiler_static='-Bstatic'
7291 lt_prog_compiler_wl='-Wl,'
7292 # All Alpha code is PIC.
7293 lt_prog_compiler_static='-non_shared'
7298 osf3* | osf4* | osf5*)
7299 lt_prog_compiler_wl='-Wl,'
7300 # All OSF/1 code is PIC.
7301 lt_prog_compiler_static='-non_shared'
7305 lt_prog_compiler_pic='-KPIC'
7306 lt_prog_compiler_static='-Bstatic'
7307 case $cc_basename in
7309 lt_prog_compiler_wl='-Qoption ld ';;
7311 lt_prog_compiler_wl='-Wl,';;
7316 lt_prog_compiler_wl='-Qoption ld '
7317 lt_prog_compiler_pic='-PIC'
7318 lt_prog_compiler_static='-Bstatic'
7321 sysv4 | sysv4.2uw2* | sysv4.3*)
7322 lt_prog_compiler_wl='-Wl,'
7323 lt_prog_compiler_pic='-KPIC'
7324 lt_prog_compiler_static='-Bstatic'
7328 if test -d /usr/nec ;then
7329 lt_prog_compiler_pic='-Kconform_pic'
7330 lt_prog_compiler_static='-Bstatic'
7334 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7335 lt_prog_compiler_wl='-Wl,'
7336 lt_prog_compiler_pic='-KPIC'
7337 lt_prog_compiler_static='-Bstatic'
7341 lt_prog_compiler_wl='-Wl,'
7342 lt_prog_compiler_can_build_shared=no
7346 lt_prog_compiler_pic='-pic'
7347 lt_prog_compiler_static='-Bstatic'
7351 lt_prog_compiler_can_build_shared=no
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7357 $as_echo "$lt_prog_compiler_pic" >&6; }
7360 # Check to make sure the PIC flag actually works.
7362 if test -n "$lt_prog_compiler_pic"; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7365 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7366 if ${lt_prog_compiler_pic_works+:} false; then :
7367 $as_echo_n "(cached) " >&6
7369 lt_prog_compiler_pic_works=no
7370 ac_outfile=conftest.$ac_objext
7371 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7372 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7373 # Insert the option either (1) after the last *FLAGS variable, or
7374 # (2) before a word containing "conftest.", or (3) at the end.
7375 # Note that $ac_compile itself does not contain backslashes and begins
7376 # with a dollar sign (not a hyphen), so the echo should work correctly.
7377 # The option is referenced via a variable to avoid confusing sed.
7378 lt_compile=`echo "$ac_compile" | $SED \
7379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7381 -e 's:$: $lt_compiler_flag:'`
7382 (eval echo "\"\$as_me:7382: $lt_compile\"" >&5)
7383 (eval "$lt_compile" 2>conftest.err)
7385 cat conftest.err >&5
7386 echo "$as_me:7386: \$? = $ac_status" >&5
7387 if (exit $ac_status) && test -s "$ac_outfile"; then
7388 # The compiler can only warn and ignore the option if not recognized
7389 # So say no if there are warnings other than the usual output.
7390 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7392 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7393 lt_prog_compiler_pic_works=yes
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
7400 $as_echo "$lt_prog_compiler_pic_works" >&6; }
7402 if test x"$lt_prog_compiler_pic_works" = xyes; then
7403 case $lt_prog_compiler_pic in
7405 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7408 lt_prog_compiler_pic=
7409 lt_prog_compiler_can_build_shared=no
7414 # For platforms which do not support PIC, -DPIC is meaningless:
7416 lt_prog_compiler_pic=
7419 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7424 # Check to make sure the static flag actually works.
7426 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7428 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7429 if ${lt_prog_compiler_static_works+:} false; then :
7430 $as_echo_n "(cached) " >&6
7432 lt_prog_compiler_static_works=no
7433 save_LDFLAGS="$LDFLAGS"
7434 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7435 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7436 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7437 # The linker can only warn and ignore the option if not recognized
7438 # So say no if there are warnings
7439 if test -s conftest.err; then
7440 # Append any errors to the config.log.
7441 cat conftest.err 1>&5
7442 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7444 if diff conftest.exp conftest.er2 >/dev/null; then
7445 lt_prog_compiler_static_works=yes
7448 lt_prog_compiler_static_works=yes
7452 LDFLAGS="$save_LDFLAGS"
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
7456 $as_echo "$lt_prog_compiler_static_works" >&6; }
7458 if test x"$lt_prog_compiler_static_works" = xyes; then
7461 lt_prog_compiler_static=
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7467 if ${lt_cv_prog_compiler_c_o+:} false; then :
7468 $as_echo_n "(cached) " >&6
7470 lt_cv_prog_compiler_c_o=no
7471 $rm -r conftest 2>/dev/null
7475 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7477 lt_compiler_flag="-o out/conftest2.$ac_objext"
7478 # Insert the option either (1) after the last *FLAGS variable, or
7479 # (2) before a word containing "conftest.", or (3) at the end.
7480 # Note that $ac_compile itself does not contain backslashes and begins
7481 # with a dollar sign (not a hyphen), so the echo should work correctly.
7482 lt_compile=`echo "$ac_compile" | $SED \
7483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7485 -e 's:$: $lt_compiler_flag:'`
7486 (eval echo "\"\$as_me:7486: $lt_compile\"" >&5)
7487 (eval "$lt_compile" 2>out/conftest.err)
7489 cat out/conftest.err >&5
7490 echo "$as_me:7490: \$? = $ac_status" >&5
7491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7493 # The compiler can only warn and ignore the option if not recognized
7494 # So say no if there are warnings
7495 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7498 lt_cv_prog_compiler_c_o=yes
7503 # SGI C++ compiler will create directory out/ii_files/ for
7504 # template instantiation
7505 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7506 $rm out/* && rmdir out
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7513 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7516 hard_links="nottested"
7517 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7518 # do not overwrite the value of need_locks provided by the user
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7520 $as_echo_n "checking if we can lock with hard links... " >&6; }
7523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7525 ln conftest.a conftest.b 2>&5 || hard_links=no
7526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7528 $as_echo "$hard_links" >&6; }
7529 if test "$hard_links" = no; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7531 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7539 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7542 allow_undefined_flag=
7543 enable_shared_with_static_runtimes=no
7545 archive_expsym_cmds=
7546 old_archive_From_new_cmds=
7547 old_archive_from_expsyms_cmds=
7548 export_dynamic_flag_spec=
7549 whole_archive_flag_spec=
7550 thread_safe_flag_spec=
7551 hardcode_libdir_flag_spec=
7552 hardcode_libdir_flag_spec_ld=
7553 hardcode_libdir_separator=
7556 hardcode_shlibpath_var=unsupported
7557 link_all_deplibs=unknown
7558 hardcode_automatic=no
7561 always_export_symbols=no
7562 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7563 # include_expsyms should be a list of space-separated symbols to be *always*
7564 # included in the symbol list
7566 # exclude_expsyms can be an extended regexp of symbols to exclude
7567 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7568 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7569 # as well as any symbol that contains `d'.
7570 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7571 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7572 # platforms (ab)use it in PIC code, but their linkers get confused if
7573 # the symbol is explicitly referenced. Since portable code cannot
7574 # rely on this symbol name, it's probably fine to never include it in
7575 # preloaded symbol tables.
7576 extract_expsyms_cmds=
7577 # Just being paranoid about ensuring that cc_basename is set.
7578 for cc_temp in $compiler""; do
7580 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7581 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7586 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7589 cygwin* | mingw* | pw32*)
7590 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7591 # When not using gcc, we currently assume that we are using
7592 # Microsoft Visual C++.
7593 if test "$GCC" != yes; then
7598 # we just hope/assume this is gcc and not c89 (= MSVC++)
7607 if test "$with_gnu_ld" = yes; then
7608 # If archive_cmds runs LD, not CC, wlarc should be empty
7611 # Set some defaults for GNU ld with shared library support. These
7612 # are reset later if shared libraries are not supported. Putting them
7613 # here allows them to be overridden if necessary.
7614 runpath_var=LD_RUN_PATH
7615 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7616 export_dynamic_flag_spec='${wl}--export-dynamic'
7617 # ancient GNU ld didn't support --whole-archive et. al.
7618 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7619 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7621 whole_archive_flag_spec=
7623 supports_anon_versioning=no
7624 case `$LD -v 2>/dev/null` in
7625 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7626 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7627 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7628 *\ 2.11.*) ;; # other 2.11 versions
7629 *) supports_anon_versioning=yes ;;
7632 # See if GNU ld supports shared libraries.
7634 aix3* | aix4* | aix5*)
7635 # On AIX/PPC, the GNU linker is very broken
7636 if test "$host_cpu" != ia64; then
7640 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7641 *** to be unable to reliably create shared libraries on AIX.
7642 *** Therefore, libtool is disabling shared libraries support. If you
7643 *** really care for shared libraries, you may want to modify your PATH
7644 *** so that a non-GNU linker is found, and then restart.
7651 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)'
7652 hardcode_libdir_flag_spec='-L$libdir'
7653 hardcode_minus_L=yes
7655 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7656 # that the semantics of dynamic libraries on AmigaOS, at least up
7657 # to version 4, is to share data among multiple programs linked
7658 # with the same dynamic library. Since this doesn't match the
7659 # behavior of shared libraries on other platforms, we can't use
7665 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7666 allow_undefined_flag=unsupported
7667 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7668 # support --undefined. This deserves some investigation. FIXME
7669 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7675 cygwin* | mingw* | pw32*)
7676 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7677 # as there is no search path for DLLs.
7678 hardcode_libdir_flag_spec='-L$libdir'
7679 allow_undefined_flag=unsupported
7680 always_export_symbols=no
7681 enable_shared_with_static_runtimes=yes
7682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7684 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7686 # If the export-symbols file already is a .def file (1st line
7687 # is EXPORTS), use it as is; otherwise, prepend...
7688 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7689 cp $export_symbols $output_objdir/$soname.def;
7691 echo EXPORTS > $output_objdir/$soname.def;
7692 cat $export_symbols >> $output_objdir/$soname.def;
7694 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7702 hardcode_shlibpath_var=no
7703 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7704 export_dynamic_flag_spec='${wl}-E'
7705 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7706 # Instead, shared libraries are loaded at an image base (0x10000000 by
7707 # default) and relocated if they conflict, which is a slow very memory
7708 # consuming and fragmenting process. To avoid this, we pick a random,
7709 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7710 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7711 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7712 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'
7716 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7718 case $cc_basename,$host_cpu in
7719 pgcc*) # Portland Group C compiler
7720 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'
7721 tmp_addflag=' $pic_flag'
7723 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7724 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'
7725 tmp_addflag=' $pic_flag -Mnomain' ;;
7726 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7727 tmp_addflag=' -i_dynamic' ;;
7728 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7729 tmp_addflag=' -i_dynamic -nofor_main' ;;
7730 ifc* | ifort*) # Intel Fortran compiler
7731 tmp_addflag=' -nofor_main' ;;
7733 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7735 if test $supports_anon_versioning = yes; then
7736 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7737 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7738 $echo "local: *; };" >> $output_objdir/$libname.ver~
7739 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7747 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7748 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7752 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7757 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7761 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7762 *** create shared libraries on Solaris systems. Therefore, libtool
7763 *** is disabling shared libraries support. We urge you to upgrade GNU
7764 *** binutils to release 2.9.1 or newer. Another option is to modify
7765 *** your PATH or compiler configuration so that the native linker is
7766 *** used, and then restart.
7769 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7771 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7777 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7778 case `$LD -v 2>&1` in
7779 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7783 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7784 *** reliably create shared libraries on SCO systems. Therefore, libtool
7785 *** is disabling shared libraries support. We urge you to upgrade GNU
7786 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7787 *** your PATH or compiler configuration so that the native linker is
7788 *** used, and then restart.
7793 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7794 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7805 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7808 hardcode_shlibpath_var=no
7812 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7814 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7821 if test "$ld_shlibs" = no; then
7823 hardcode_libdir_flag_spec=
7824 export_dynamic_flag_spec=
7825 whole_archive_flag_spec=
7828 # PORTME fill in a description of your system's linker (not GNU ld)
7831 allow_undefined_flag=unsupported
7832 always_export_symbols=yes
7833 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'
7834 # Note: this linker hardcodes the directories in LIBPATH if there
7835 # are no directories specified by -L.
7836 hardcode_minus_L=yes
7837 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7838 # Neither direct hardcoding nor static linking is supported with a
7840 hardcode_direct=unsupported
7845 if test "$host_cpu" = ia64; then
7846 # On IA64, the linker does run time linking by default, so we don't
7847 # have to do anything special.
7848 aix_use_runtimelinking=no
7849 exp_sym_flag='-Bexport'
7852 # If we're using GNU nm, then we don't want the "-C" option.
7853 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7854 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7855 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'
7857 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'
7859 aix_use_runtimelinking=no
7861 # Test if we are trying to use run time linking or normal
7862 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7863 # need to do runtime linking.
7864 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7865 for ld_flag in $LDFLAGS; do
7866 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7867 aix_use_runtimelinking=yes
7874 exp_sym_flag='-bexport'
7875 no_entry_flag='-bnoentry'
7878 # When large executables or shared objects are built, AIX ld can
7879 # have problems creating the table of contents. If linking a library
7880 # or program results in "error TOC overflow" add -mminimal-toc to
7881 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7882 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7886 hardcode_libdir_separator=':'
7887 link_all_deplibs=yes
7889 if test "$GCC" = yes; then
7890 case $host_os in aix4.[012]|aix4.[012].*)
7891 # We only want to do this on AIX 4.2 and lower, the check
7892 # below for broken collect2 doesn't work under 4.3+
7893 collect2name=`${CC} -print-prog-name=collect2`
7894 if test -f "$collect2name" && \
7895 strings "$collect2name" | grep resolve_lib_name >/dev/null
7897 # We have reworked collect2
7900 # We have old collect2
7901 hardcode_direct=unsupported
7902 # It fails to find uninstalled libraries when the uninstalled
7903 # path is not listed in the libpath. Setting hardcode_minus_L
7904 # to unsupported forces relinking
7905 hardcode_minus_L=yes
7906 hardcode_libdir_flag_spec='-L$libdir'
7907 hardcode_libdir_separator=
7911 shared_flag='-shared'
7912 if test "$aix_use_runtimelinking" = yes; then
7913 shared_flag="$shared_flag "'${wl}-G'
7917 if test "$host_cpu" = ia64; then
7918 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7919 # chokes on -Wl,-G. The following line is correct:
7922 if test "$aix_use_runtimelinking" = yes; then
7923 shared_flag='${wl}-G'
7925 shared_flag='${wl}-bM:SRE'
7930 # It seems that -bexpall does not export symbols beginning with
7931 # underscore (_), so it is better to generate a list of symbols to export.
7932 always_export_symbols=yes
7933 if test "$aix_use_runtimelinking" = yes; then
7934 # Warning - without using the other runtime loading flags (-brtl),
7935 # -berok will link without error, but may produce a broken library.
7936 allow_undefined_flag='-berok'
7937 # Determine the default libpath from the value encoded in an empty executable.
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7949 if ac_fn_c_try_link "$LINENO"; then :
7951 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7953 # Check for a 64-bit object if we didn't find anything.
7954 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7957 rm -f core conftest.err conftest.$ac_objext \
7958 conftest$ac_exeext conftest.$ac_ext
7959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7961 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7962 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"
7964 if test "$host_cpu" = ia64; then
7965 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7966 allow_undefined_flag="-z nodefs"
7967 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"
7969 # Determine the default libpath from the value encoded in an empty executable.
7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7981 if ac_fn_c_try_link "$LINENO"; then :
7983 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7985 # Check for a 64-bit object if we didn't find anything.
7986 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7989 rm -f core conftest.err conftest.$ac_objext \
7990 conftest$ac_exeext conftest.$ac_ext
7991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7993 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7994 # Warning - without using the other run time loading flags,
7995 # -berok will link without error, but may produce a broken library.
7996 no_undefined_flag=' ${wl}-bernotok'
7997 allow_undefined_flag=' ${wl}-berok'
7998 # Exported symbols can be pulled into shared objects from archives
7999 whole_archive_flag_spec='$convenience'
8000 archive_cmds_need_lc=yes
8001 # This is similar to how AIX traditionally builds its shared libraries.
8002 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'
8008 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)'
8009 hardcode_libdir_flag_spec='-L$libdir'
8010 hardcode_minus_L=yes
8011 # see comment about different semantics on the GNU ld section
8016 export_dynamic_flag_spec=-rdynamic
8019 cygwin* | mingw* | pw32*)
8020 # When not using gcc, we currently assume that we are using
8021 # Microsoft Visual C++.
8022 # hardcode_libdir_flag_spec is actually meaningless, as there is
8023 # no search path for DLLs.
8024 hardcode_libdir_flag_spec=' '
8025 allow_undefined_flag=unsupported
8026 # Tell ltmain to make .lib files, not .a files.
8028 # Tell ltmain to make .dll files, not .so files.
8030 # FIXME: Setting linknames here is a bad hack.
8031 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8032 # The linker will automatically build a .lib file if we build a DLL.
8033 old_archive_From_new_cmds='true'
8034 # FIXME: Should let the user specify the lib program.
8035 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8036 fix_srcfile_path='`cygpath -w "$srcfile"`'
8037 enable_shared_with_static_runtimes=yes
8040 darwin* | rhapsody*)
8042 rhapsody* | darwin1.[012])
8043 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8046 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8047 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8049 case ${MACOSX_DEPLOYMENT_TARGET} in
8051 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8054 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8060 archive_cmds_need_lc=no
8062 hardcode_automatic=yes
8063 hardcode_shlibpath_var=unsupported
8064 whole_archive_flag_spec=''
8065 link_all_deplibs=yes
8066 if test "$GCC" = yes ; then
8067 output_verbose_link_cmd='echo'
8068 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8069 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8070 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8071 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8072 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}'
8074 case $cc_basename in
8076 output_verbose_link_cmd='echo'
8077 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8078 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8079 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8080 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8081 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}'
8091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8092 hardcode_libdir_flag_spec='-L$libdir'
8093 hardcode_shlibpath_var=no
8100 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8101 # support. Future versions do this automatically, but an explicit c++rt0.o
8102 # does not break anything, and helps significantly (at the cost of a little
8105 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8106 hardcode_libdir_flag_spec='-R$libdir'
8108 hardcode_shlibpath_var=no
8111 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8115 hardcode_minus_L=yes
8116 hardcode_shlibpath_var=no
8119 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8120 freebsd* | kfreebsd*-gnu | dragonfly*)
8121 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8122 hardcode_libdir_flag_spec='-R$libdir'
8124 hardcode_shlibpath_var=no
8128 if test "$GCC" = yes; then
8129 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'
8131 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'
8133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8134 hardcode_libdir_separator=:
8137 # hardcode_minus_L: Not really in the search PATH,
8138 # but as the default location of the library.
8139 hardcode_minus_L=yes
8140 export_dynamic_flag_spec='${wl}-E'
8144 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8145 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8147 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8149 if test "$with_gnu_ld" = no; then
8150 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8151 hardcode_libdir_separator=:
8154 export_dynamic_flag_spec='${wl}-E'
8156 # hardcode_minus_L: Not really in the search PATH,
8157 # but as the default location of the library.
8158 hardcode_minus_L=yes
8163 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8166 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8169 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8172 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8178 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8181 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8184 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8188 if test "$with_gnu_ld" = no; then
8189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8190 hardcode_libdir_separator=:
8194 hardcode_libdir_flag_spec_ld='+b $libdir'
8196 hardcode_shlibpath_var=no
8200 export_dynamic_flag_spec='${wl}-E'
8202 # hardcode_minus_L: Not really in the search PATH,
8203 # but as the default location of the library.
8204 hardcode_minus_L=yes
8210 irix5* | irix6* | nonstopux*)
8211 if test "$GCC" = yes; then
8212 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'
8214 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'
8215 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8218 hardcode_libdir_separator=:
8219 link_all_deplibs=yes
8223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8226 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8228 hardcode_libdir_flag_spec='-R$libdir'
8230 hardcode_shlibpath_var=no
8234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8237 hardcode_libdir_separator=:
8238 hardcode_shlibpath_var=no
8243 hardcode_shlibpath_var=no
8244 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8245 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8246 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8247 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8248 export_dynamic_flag_spec='${wl}-E'
8251 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8252 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8253 hardcode_libdir_flag_spec='-R$libdir'
8256 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8264 hardcode_libdir_flag_spec='-L$libdir'
8265 hardcode_minus_L=yes
8266 allow_undefined_flag=unsupported
8267 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'
8268 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8272 if test "$GCC" = yes; then
8273 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8274 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'
8276 allow_undefined_flag=' -expect_unresolved \*'
8277 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'
8279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8280 hardcode_libdir_separator=:
8283 osf4* | osf5*) # as osf3* with the addition of -msym flag
8284 if test "$GCC" = yes; then
8285 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8286 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'
8287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8289 allow_undefined_flag=' -expect_unresolved \*'
8290 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'
8291 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8292 $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'
8294 # Both c and cxx compiler support -rpath directly
8295 hardcode_libdir_flag_spec='-rpath $libdir'
8297 hardcode_libdir_separator=:
8301 no_undefined_flag=' -z text'
8302 if test "$GCC" = yes; then
8304 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8305 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8306 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8309 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8310 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8311 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8313 hardcode_libdir_flag_spec='-R$libdir'
8314 hardcode_shlibpath_var=no
8316 solaris2.[0-5] | solaris2.[0-5].*) ;;
8318 # The compiler driver will combine linker options so we
8319 # cannot just pass the convience library names through
8320 # without $wl, iff we do not link with $LD.
8321 # Luckily, gcc supports the same syntax we need for Sun Studio.
8322 # Supported since Solaris 2.6 (maybe 2.5.1?)
8325 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8327 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8330 link_all_deplibs=yes
8334 if test "x$host_vendor" = xsequent; then
8335 # Use $CC to link under sequent, because it throws in some extra .o
8336 # files that make .init and .fini sections work.
8337 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8339 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8341 hardcode_libdir_flag_spec='-L$libdir'
8343 hardcode_minus_L=yes
8344 hardcode_shlibpath_var=no
8348 case $host_vendor in
8350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8351 hardcode_direct=yes # is this really true???
8354 ## LD is ld it makes a PLAMLIB
8355 ## CC just makes a GrossModule.
8356 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8357 reload_cmds='$CC -r -o $output$reload_objs'
8361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8362 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8365 runpath_var='LD_RUN_PATH'
8366 hardcode_shlibpath_var=no
8370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8371 hardcode_shlibpath_var=no
8372 export_dynamic_flag_spec='-Bexport'
8376 if test -d /usr/nec; then
8377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8378 hardcode_shlibpath_var=no
8379 runpath_var=LD_RUN_PATH
8380 hardcode_runpath_var=yes
8385 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8386 no_undefined_flag='${wl}-z,text'
8387 archive_cmds_need_lc=no
8388 hardcode_shlibpath_var=no
8389 runpath_var='LD_RUN_PATH'
8391 if test "$GCC" = yes; then
8392 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8393 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8395 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8396 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8400 sysv5* | sco3.2v5* | sco5v6*)
8401 # Note: We can NOT use -z defs as we might desire, because we do not
8402 # link with -lc, and that would cause any symbols used from libc to
8403 # always be unresolved, which means just about no library would
8404 # ever link correctly. If we're not using GNU ld we use -z text
8405 # though, which does catch some bad symbols but isn't as heavy-handed
8407 no_undefined_flag='${wl}-z,text'
8408 allow_undefined_flag='${wl}-z,nodefs'
8409 archive_cmds_need_lc=no
8410 hardcode_shlibpath_var=no
8411 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8412 hardcode_libdir_separator=':'
8413 link_all_deplibs=yes
8414 export_dynamic_flag_spec='${wl}-Bexport'
8415 runpath_var='LD_RUN_PATH'
8417 if test "$GCC" = yes; then
8418 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8419 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8421 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8422 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8428 hardcode_libdir_flag_spec='-L$libdir'
8429 hardcode_shlibpath_var=no
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8439 $as_echo "$ld_shlibs" >&6; }
8440 test "$ld_shlibs" = no && can_build_shared=no
8443 # Do we need to explicitly link libc?
8445 case "x$archive_cmds_need_lc" in
8447 # Assume -lc should be added
8448 archive_cmds_need_lc=yes
8450 if test "$enable_shared" = yes && test "$GCC" = yes; then
8451 case $archive_cmds in
8453 # FIXME: we may have to deal with multi-command sequences.
8456 # Test whether the compiler implicitly links with -lc since on some
8457 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8458 # to ld, don't add -lc before -lgcc.
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8460 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8462 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8465 (eval $ac_compile) 2>&5
8467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8468 test $ac_status = 0; } 2>conftest.err; then
8471 libobjs=conftest.$ac_objext
8473 wl=$lt_prog_compiler_wl
8474 pic_flag=$lt_prog_compiler_pic
8480 lt_save_allow_undefined_flag=$allow_undefined_flag
8481 allow_undefined_flag=
8482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8483 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8486 test $ac_status = 0; }
8488 archive_cmds_need_lc=no
8490 archive_cmds_need_lc=yes
8492 allow_undefined_flag=$lt_save_allow_undefined_flag
8494 cat conftest.err 1>&5
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8498 $as_echo "$archive_cmds_need_lc" >&6; }
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8506 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8508 libname_spec='lib$name'
8516 shlibpath_overrides_runpath=unknown
8518 dynamic_linker="$host_os ld.so"
8519 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8520 if test "$GCC" = yes; then
8521 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8522 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8523 # if the path contains ";" then we assume it to be the separator
8524 # otherwise default to the standard path separator (i.e. ":") - it is
8525 # assumed that no part of a normal pathname contains ";" but that should
8526 # okay in the real world where ";" in dirpaths is itself problematic.
8527 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8532 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8534 need_lib_prefix=unknown
8535 hardcode_into_libs=no
8537 # when you set need_version to no, make sure it does not cause -set_version
8538 # flags to be left without arguments
8539 need_version=unknown
8544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8545 shlibpath_var=LIBPATH
8547 # AIX 3 has no versioning support, so we append a major version to the name.
8548 soname_spec='${libname}${release}${shared_ext}$major'
8555 hardcode_into_libs=yes
8556 if test "$host_cpu" = ia64; then
8557 # AIX 5 supports IA64
8558 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8559 shlibpath_var=LD_LIBRARY_PATH
8561 # With GCC up to 2.95.x, collect2 would create an import file
8562 # for dependence libraries. The import file would start with
8563 # the line `#! .'. This would cause the generated library to
8564 # depend on `.', always an invalid library. This was fixed in
8565 # development snapshots of GCC prior to 3.0.
8567 aix4 | aix4.[01] | aix4.[01].*)
8568 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8570 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8577 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8578 # soname into executable. Probably we can add versioning support to
8579 # collect2, so additional links can be useful in future.
8580 if test "$aix_use_runtimelinking" = yes; then
8581 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8582 # instead of lib<name>.a to let people know that these are not
8583 # typical AIX shared libraries.
8584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8586 # We preserve .a as extension for shared libraries through AIX4.2
8587 # and later when we are not doing run time linking.
8588 library_names_spec='${libname}${release}.a $libname.a'
8589 soname_spec='${libname}${release}${shared_ext}$major'
8591 shlibpath_var=LIBPATH
8596 library_names_spec='$libname.ixlibrary $libname.a'
8597 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8598 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'
8602 library_names_spec='${libname}${shared_ext}'
8603 dynamic_linker="$host_os ld.so"
8604 shlibpath_var=LIBRARY_PATH
8610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8611 soname_spec='${libname}${release}${shared_ext}$major'
8612 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8613 shlibpath_var=LD_LIBRARY_PATH
8614 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8615 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8616 # the default ld.so.conf also contains /usr/contrib/lib and
8617 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8618 # libtool to hard-code these into programs
8621 cygwin* | mingw* | pw32*)
8622 version_type=windows
8627 case $GCC,$host_os in
8628 yes,cygwin* | yes,mingw* | yes,pw32*)
8629 library_names_spec='$libname.dll.a'
8630 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8631 postinstall_cmds='base_file=`basename \${file}`~
8632 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8633 dldir=$destdir/`dirname \$dlpath`~
8634 test -d \$dldir || mkdir -p \$dldir~
8635 $install_prog $dir/$dlname \$dldir/$dlname~
8636 chmod a+x \$dldir/$dlname'
8637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8638 dlpath=$dir/\$dldll~
8640 shlibpath_overrides_runpath=yes
8644 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8645 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8646 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8649 # MinGW DLLs use traditional 'lib' prefix
8650 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8651 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8652 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8653 # It is most probably a Windows format PATH printed by
8654 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8655 # path with ; separators, and with drive letters. We can handle the
8656 # drive letters (cygwin fileutils understands them), so leave them,
8657 # especially as we might pass files found there to a mingw objdump,
8658 # which wouldn't understand a cygwinified path. Ahh.
8659 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8661 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8665 # pw32 DLLs use 'pw' prefix rather than 'lib'
8666 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8672 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8675 dynamic_linker='Win32 ld.exe'
8676 # FIXME: first we should search . and the directory the executable is in
8680 darwin* | rhapsody*)
8681 dynamic_linker="$host_os dyld"
8685 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8686 soname_spec='${libname}${release}${major}$shared_ext'
8687 shlibpath_overrides_runpath=yes
8688 shlibpath_var=DYLD_LIBRARY_PATH
8689 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8690 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8691 if test "$GCC" = yes; then
8692 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8694 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8696 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8704 soname_spec='${libname}${release}${shared_ext}$major'
8705 shlibpath_var=LD_LIBRARY_PATH
8716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8717 soname_spec='${libname}${release}${shared_ext}$major'
8718 shlibpath_var=LD_LIBRARY_PATH
8719 shlibpath_overrides_runpath=no
8720 hardcode_into_libs=yes
8721 dynamic_linker='GNU ld.so'
8724 freebsd* | dragonfly*)
8725 # DragonFly does not have aout. When/if they implement a new
8726 # versioning mechanism, adjust this.
8727 if test -x /usr/bin/objformat; then
8728 objformat=`/usr/bin/objformat`
8731 freebsd[123]*) objformat=aout ;;
8735 version_type=freebsd-$objformat
8736 case $version_type in
8738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8743 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8747 shlibpath_var=LD_LIBRARY_PATH
8750 shlibpath_overrides_runpath=yes
8752 freebsd3.[01]* | freebsdelf3.[01]*)
8753 shlibpath_overrides_runpath=yes
8754 hardcode_into_libs=yes
8756 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8757 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8758 shlibpath_overrides_runpath=no
8759 hardcode_into_libs=yes
8761 freebsd*) # from 4.6 on
8762 shlibpath_overrides_runpath=yes
8763 hardcode_into_libs=yes
8772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8773 soname_spec='${libname}${release}${shared_ext}$major'
8774 shlibpath_var=LD_LIBRARY_PATH
8775 hardcode_into_libs=yes
8778 hpux9* | hpux10* | hpux11*)
8779 # Give a soname corresponding to the major version so that dld.sl refuses to
8780 # link against other versions.
8787 hardcode_into_libs=yes
8788 dynamic_linker="$host_os dld.so"
8789 shlibpath_var=LD_LIBRARY_PATH
8790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8792 soname_spec='${libname}${release}${shared_ext}$major'
8793 if test "X$HPUX_IA64_MODE" = X32; then
8794 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8796 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8802 hardcode_into_libs=yes
8803 dynamic_linker="$host_os dld.sl"
8804 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8807 soname_spec='${libname}${release}${shared_ext}$major'
8808 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8813 dynamic_linker="$host_os dld.sl"
8814 shlibpath_var=SHLIB_PATH
8815 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8817 soname_spec='${libname}${release}${shared_ext}$major'
8820 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8821 postinstall_cmds='chmod 555 $lib'
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8829 soname_spec='${libname}${release}${shared_ext}$major'
8830 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8831 shlibpath_var=LD_LIBRARY_PATH
8832 shlibpath_overrides_runpath=no
8833 hardcode_into_libs=yes
8836 irix5* | irix6* | nonstopux*)
8838 nonstopux*) version_type=nonstopux ;;
8840 if test "$lt_cv_prog_gnu_ld" = yes; then
8848 soname_spec='${libname}${release}${shared_ext}$major'
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8851 irix5* | nonstopux*)
8855 case $LD in # libtool.m4 will add one of these switches to LD
8856 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8857 libsuff= shlibsuff= libmagic=32-bit;;
8858 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8859 libsuff=32 shlibsuff=N32 libmagic=N32;;
8860 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8861 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8862 *) libsuff= shlibsuff= libmagic=never-match;;
8866 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8867 shlibpath_overrides_runpath=no
8868 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8869 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8870 hardcode_into_libs=yes
8873 # No shared lib support for Linux oldld, aout, or coff.
8874 linux*oldld* | linux*aout* | linux*coff*)
8878 # This must be Linux ELF.
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8884 soname_spec='${libname}${release}${shared_ext}$major'
8885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8886 shlibpath_var=LD_LIBRARY_PATH
8887 shlibpath_overrides_runpath=no
8888 # This implies no fast_install, which is unacceptable.
8889 # Some rework will be needed to allow for fast_install
8890 # before this can be enabled.
8891 hardcode_into_libs=yes
8893 # Append ld.so.conf contents to the search path
8894 if test -f /etc/ld.so.conf; then
8895 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8896 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8899 # We used to test for /lib/ld.so.1 and disable shared libraries on
8900 # powerpc, because MkLinux only supported shared libraries with the
8901 # GNU dynamic linker. Since this was broken with cross compilers,
8902 # most powerpc-linux boxes support dynamic linking these days and
8903 # people can always --disable-shared, the test was removed, and we
8904 # assume the GNU/Linux dynamic linker is in use.
8905 dynamic_linker='GNU/Linux ld.so'
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 shlibpath_var=LD_LIBRARY_PATH
8915 shlibpath_overrides_runpath=no
8916 hardcode_into_libs=yes
8917 dynamic_linker='GNU ld.so'
8924 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8927 dynamic_linker='NetBSD (a.out) ld.so'
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8930 soname_spec='${libname}${release}${shared_ext}$major'
8931 dynamic_linker='NetBSD ld.elf_so'
8933 shlibpath_var=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath=yes
8935 hardcode_into_libs=yes
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8941 shlibpath_var=LD_LIBRARY_PATH
8942 shlibpath_overrides_runpath=yes
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 shlibpath_overrides_runpath=yes
8957 sys_lib_dlsearch_path_spec="/usr/lib"
8959 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8961 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8962 *) need_version=no ;;
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8966 shlibpath_var=LD_LIBRARY_PATH
8967 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8969 openbsd2.[89] | openbsd2.[89].*)
8970 shlibpath_overrides_runpath=no
8973 shlibpath_overrides_runpath=yes
8977 shlibpath_overrides_runpath=yes
8982 libname_spec='$name'
8985 library_names_spec='$libname${shared_ext} $libname.a'
8986 dynamic_linker='OS/2 ld.exe'
8987 shlibpath_var=LIBPATH
8990 osf3* | osf4* | osf5*)
8994 soname_spec='${libname}${release}${shared_ext}$major'
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996 shlibpath_var=LD_LIBRARY_PATH
8997 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8998 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 shlibpath_overrides_runpath=yes
9009 hardcode_into_libs=yes
9010 # ldd complains unless libraries are executable
9011 postinstall_cmds='chmod +x $lib'
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9018 shlibpath_var=LD_LIBRARY_PATH
9019 shlibpath_overrides_runpath=yes
9020 if test "$with_gnu_ld" = yes; then
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 case $host_vendor in
9033 shlibpath_overrides_runpath=no
9035 export_dynamic_flag_spec='${wl}-Blargedynsym'
9036 runpath_var=LD_RUN_PATH
9044 shlibpath_overrides_runpath=no
9045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9051 if test -d /usr/nec ;then
9053 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9054 soname_spec='$libname${shared_ext}.$major'
9055 shlibpath_var=LD_LIBRARY_PATH
9059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9060 version_type=freebsd-elf
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 hardcode_into_libs=yes
9067 if test "$with_gnu_ld" = yes; then
9068 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9069 shlibpath_overrides_runpath=no
9071 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9072 shlibpath_overrides_runpath=yes
9075 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9079 sys_lib_dlsearch_path_spec='/usr/lib'
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9094 $as_echo "$dynamic_linker" >&6; }
9095 test "$dynamic_linker" = no && can_build_shared=no
9097 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9098 if test "$GCC" = yes; then
9099 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9103 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9105 if test -n "$hardcode_libdir_flag_spec" || \
9106 test -n "$runpath_var" || \
9107 test "X$hardcode_automatic" = "Xyes" ; then
9109 # We can hardcode non-existant directories.
9110 if test "$hardcode_direct" != no &&
9111 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9112 # have to relink, otherwise we might link with an installed library
9113 # when we should be linking with a yet-to-be-installed one
9114 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9115 test "$hardcode_minus_L" != no; then
9116 # Linking always hardcodes the temporary library directory.
9117 hardcode_action=relink
9119 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9120 hardcode_action=immediate
9123 # We cannot hardcode anything, or else we can only hardcode existing
9125 hardcode_action=unsupported
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9128 $as_echo "$hardcode_action" >&6; }
9130 if test "$hardcode_action" = relink; then
9131 # Fast installation is not supported
9132 enable_fast_install=no
9133 elif test "$shlibpath_overrides_runpath" = yes ||
9134 test "$enable_shared" = no; then
9135 # Fast installation is not necessary
9136 enable_fast_install=needless
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9142 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9143 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9144 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9145 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9147 $as_echo "yes" >&6; }
9149 # FIXME - insert some real tests, host_os isn't really good enough
9152 if test -n "$STRIP" ; then
9153 striplib="$STRIP -x"
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9155 $as_echo "yes" >&6; }
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158 $as_echo "no" >&6; }
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163 $as_echo "no" >&6; }
9168 if test "x$enable_dlopen" != xyes; then
9169 enable_dlopen=unknown
9170 enable_dlopen_self=unknown
9171 enable_dlopen_self_static=unknown
9178 lt_cv_dlopen="load_add_on"
9180 lt_cv_dlopen_self=yes
9184 lt_cv_dlopen="LoadLibrary"
9189 lt_cv_dlopen="dlopen"
9194 # if libdl is installed we need to link against it
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9196 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9197 if ${ac_cv_lib_dl_dlopen+:} false; then :
9198 $as_echo_n "(cached) " >&6
9200 ac_check_lib_save_LIBS=$LIBS
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h. */
9205 /* Override any GCC internal prototype to avoid an error.
9206 Use char because int might match the return type of a GCC
9207 builtin and then its argument prototype would still apply. */
9220 if ac_fn_c_try_link "$LINENO"; then :
9221 ac_cv_lib_dl_dlopen=yes
9223 ac_cv_lib_dl_dlopen=no
9225 rm -f core conftest.err conftest.$ac_objext \
9226 conftest$ac_exeext conftest.$ac_ext
9227 LIBS=$ac_check_lib_save_LIBS
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9230 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9231 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9232 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9237 lt_cv_dlopen_self=yes
9244 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9245 if test "x$ac_cv_func_shl_load" = xyes; then :
9246 lt_cv_dlopen="shl_load"
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9249 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9250 if ${ac_cv_lib_dld_shl_load+:} false; then :
9251 $as_echo_n "(cached) " >&6
9253 ac_check_lib_save_LIBS=$LIBS
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9258 /* Override any GCC internal prototype to avoid an error.
9259 Use char because int might match the return type of a GCC
9260 builtin and then its argument prototype would still apply. */
9273 if ac_fn_c_try_link "$LINENO"; then :
9274 ac_cv_lib_dld_shl_load=yes
9276 ac_cv_lib_dld_shl_load=no
9278 rm -f core conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9280 LIBS=$ac_check_lib_save_LIBS
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9283 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9284 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9285 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9287 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9288 if test "x$ac_cv_func_dlopen" = xyes; then :
9289 lt_cv_dlopen="dlopen"
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9292 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9293 if ${ac_cv_lib_dl_dlopen+:} false; then :
9294 $as_echo_n "(cached) " >&6
9296 ac_check_lib_save_LIBS=$LIBS
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9301 /* Override any GCC internal prototype to avoid an error.
9302 Use char because int might match the return type of a GCC
9303 builtin and then its argument prototype would still apply. */
9316 if ac_fn_c_try_link "$LINENO"; then :
9317 ac_cv_lib_dl_dlopen=yes
9319 ac_cv_lib_dl_dlopen=no
9321 rm -f core conftest.err conftest.$ac_objext \
9322 conftest$ac_exeext conftest.$ac_ext
9323 LIBS=$ac_check_lib_save_LIBS
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9326 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9327 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9328 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9331 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9332 if ${ac_cv_lib_svld_dlopen+:} false; then :
9333 $as_echo_n "(cached) " >&6
9335 ac_check_lib_save_LIBS=$LIBS
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9340 /* Override any GCC internal prototype to avoid an error.
9341 Use char because int might match the return type of a GCC
9342 builtin and then its argument prototype would still apply. */
9355 if ac_fn_c_try_link "$LINENO"; then :
9356 ac_cv_lib_svld_dlopen=yes
9358 ac_cv_lib_svld_dlopen=no
9360 rm -f core conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
9362 LIBS=$ac_check_lib_save_LIBS
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9365 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9366 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9367 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9370 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9371 if ${ac_cv_lib_dld_dld_link+:} false; then :
9372 $as_echo_n "(cached) " >&6
9374 ac_check_lib_save_LIBS=$LIBS
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9379 /* Override any GCC internal prototype to avoid an error.
9380 Use char because int might match the return type of a GCC
9381 builtin and then its argument prototype would still apply. */
9394 if ac_fn_c_try_link "$LINENO"; then :
9395 ac_cv_lib_dld_dld_link=yes
9397 ac_cv_lib_dld_dld_link=no
9399 rm -f core conftest.err conftest.$ac_objext \
9400 conftest$ac_exeext conftest.$ac_ext
9401 LIBS=$ac_check_lib_save_LIBS
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9404 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9405 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9406 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9427 if test "x$lt_cv_dlopen" != xno; then
9433 case $lt_cv_dlopen in
9435 save_CPPFLAGS="$CPPFLAGS"
9436 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9438 save_LDFLAGS="$LDFLAGS"
9439 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9442 LIBS="$lt_cv_dlopen_libs $LIBS"
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9445 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9446 if ${lt_cv_dlopen_self+:} false; then :
9447 $as_echo_n "(cached) " >&6
9449 if test "$cross_compiling" = yes; then :
9450 lt_cv_dlopen_self=cross
9452 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9453 lt_status=$lt_dlunknown
9454 cat > conftest.$ac_ext <<EOF
9455 #line 9455 "configure"
9456 #include "confdefs.h"
9465 # define LT_DLGLOBAL RTLD_GLOBAL
9468 # define LT_DLGLOBAL DL_GLOBAL
9470 # define LT_DLGLOBAL 0
9474 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9475 find out it does not work in some platform. */
9476 #ifndef LT_DLLAZY_OR_NOW
9478 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9481 # define LT_DLLAZY_OR_NOW DL_LAZY
9484 # define LT_DLLAZY_OR_NOW RTLD_NOW
9487 # define LT_DLLAZY_OR_NOW DL_NOW
9489 # define LT_DLLAZY_OR_NOW 0
9497 extern "C" void exit (int);
9500 void fnord() { int i=42;}
9503 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9504 int status = $lt_dlunknown;
9508 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9509 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9510 /* dlclose (self); */
9518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9519 (eval $ac_link) 2>&5
9521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9522 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9523 (./conftest; exit; ) >&5 2>/dev/null
9526 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9527 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9528 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9531 # compilation failed
9532 lt_cv_dlopen_self=no
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9540 $as_echo "$lt_cv_dlopen_self" >&6; }
9542 if test "x$lt_cv_dlopen_self" = xyes; then
9543 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9545 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9546 if ${lt_cv_dlopen_self_static+:} false; then :
9547 $as_echo_n "(cached) " >&6
9549 if test "$cross_compiling" = yes; then :
9550 lt_cv_dlopen_self_static=cross
9552 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9553 lt_status=$lt_dlunknown
9554 cat > conftest.$ac_ext <<EOF
9555 #line 9555 "configure"
9556 #include "confdefs.h"
9565 # define LT_DLGLOBAL RTLD_GLOBAL
9568 # define LT_DLGLOBAL DL_GLOBAL
9570 # define LT_DLGLOBAL 0
9574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9575 find out it does not work in some platform. */
9576 #ifndef LT_DLLAZY_OR_NOW
9578 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9581 # define LT_DLLAZY_OR_NOW DL_LAZY
9584 # define LT_DLLAZY_OR_NOW RTLD_NOW
9587 # define LT_DLLAZY_OR_NOW DL_NOW
9589 # define LT_DLLAZY_OR_NOW 0
9597 extern "C" void exit (int);
9600 void fnord() { int i=42;}
9603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9604 int status = $lt_dlunknown;
9608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9609 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9610 /* dlclose (self); */
9618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9619 (eval $ac_link) 2>&5
9621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9622 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9623 (./conftest; exit; ) >&5 2>/dev/null
9626 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9627 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9628 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9631 # compilation failed
9632 lt_cv_dlopen_self_static=no
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9640 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9643 CPPFLAGS="$save_CPPFLAGS"
9644 LDFLAGS="$save_LDFLAGS"
9649 case $lt_cv_dlopen_self in
9650 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9651 *) enable_dlopen_self=unknown ;;
9654 case $lt_cv_dlopen_self_static in
9655 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9656 *) enable_dlopen_self_static=unknown ;;
9661 # Report which library types will actually be built
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9663 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9665 $as_echo "$can_build_shared" >&6; }
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9668 $as_echo_n "checking whether to build shared libraries... " >&6; }
9669 test "$can_build_shared" = "no" && enable_shared=no
9671 # On AIX, shared libraries and static libraries use the same namespace, and
9672 # are all built from PIC.
9675 test "$enable_shared" = yes && enable_static=no
9676 if test -n "$RANLIB"; then
9677 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9678 postinstall_cmds='$RANLIB $lib'
9683 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9684 test "$enable_shared" = yes && enable_static=no
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9689 $as_echo "$enable_shared" >&6; }
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9692 $as_echo_n "checking whether to build static libraries... " >&6; }
9693 # Make sure either enable_shared or enable_static is yes.
9694 test "$enable_shared" = yes || enable_static=yes
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9696 $as_echo "$enable_static" >&6; }
9698 # The else clause should only fire when bootstrapping the
9699 # libtool distribution, otherwise you forgot to ship ltmain.sh
9700 # with your package, and you will get complaints that there are
9701 # no rules to generate ltmain.sh.
9702 if test -f "$ltmain"; then
9703 # See if we are running on zsh, and set the options which allow our commands through
9704 # without removal of \ escapes.
9705 if test -n "${ZSH_VERSION+set}" ; then
9706 setopt NO_GLOB_SUBST
9708 # Now quote all the things that may contain metacharacters while being
9709 # careful not to overquote the AC_SUBSTed values. We take copies of the
9710 # variables and quote the copies for generation of the libtool script.
9711 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9713 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9714 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9715 deplibs_check_method reload_flag reload_cmds need_locks \
9716 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9717 lt_cv_sys_global_symbol_to_c_name_address \
9718 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9719 old_postinstall_cmds old_postuninstall_cmds \
9723 lt_prog_compiler_wl \
9724 lt_prog_compiler_pic \
9725 lt_prog_compiler_static \
9726 lt_prog_compiler_no_builtin_flag \
9727 export_dynamic_flag_spec \
9728 thread_safe_flag_spec \
9729 whole_archive_flag_spec \
9730 enable_shared_with_static_runtimes \
9732 old_archive_from_new_cmds \
9737 compiler_lib_search_path \
9739 archive_expsym_cmds \
9741 postuninstall_cmds \
9742 old_archive_from_expsyms_cmds \
9743 allow_undefined_flag \
9745 export_symbols_cmds \
9746 hardcode_libdir_flag_spec \
9747 hardcode_libdir_flag_spec_ld \
9748 hardcode_libdir_separator \
9749 hardcode_automatic \
9751 module_expsym_cmds \
9752 lt_cv_prog_compiler_c_o \
9757 old_archive_cmds | \
9758 old_archive_from_new_cmds | \
9760 archive_expsym_cmds | \
9762 module_expsym_cmds | \
9763 old_archive_from_expsyms_cmds | \
9764 export_symbols_cmds | \
9765 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9766 postinstall_cmds | postuninstall_cmds | \
9767 old_postinstall_cmds | old_postuninstall_cmds | \
9768 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9769 # Double-quote double-evaled strings.
9770 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9773 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9779 *'\$0 --fallback-echo"')
9780 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9785 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9788 $as_echo "$as_me: creating $ofile" >&6;}
9790 cat <<__EOF__ >> "$cfgfile"
9793 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9794 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9795 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9797 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9798 # Free Software Foundation, Inc.
9800 # This file is part of GNU Libtool:
9801 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9803 # This program is free software; you can redistribute it and/or modify
9804 # it under the terms of the GNU General Public License as published by
9805 # the Free Software Foundation; either version 2 of the License, or
9806 # (at your option) any later version.
9808 # This program is distributed in the hope that it will be useful, but
9809 # WITHOUT ANY WARRANTY; without even the implied warranty of
9810 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9811 # General Public License for more details.
9813 # You should have received a copy of the GNU General Public License
9814 # along with this program; if not, write to the Free Software
9815 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9817 # As a special exception to the GNU General Public License, if you
9818 # distribute this file as part of a program that contains a
9819 # configuration script generated by Autoconf, you may include it under
9820 # the same distribution terms that you use for the rest of that program.
9822 # A sed program that does not truncate output.
9825 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9826 Xsed="$SED -e 1s/^X//"
9828 # The HP-UX ksh and POSIX shell print the target directory to stdout
9830 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9832 # The names of the tagged configurations supported by this script.
9835 # ### BEGIN LIBTOOL CONFIG
9837 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9839 # Shell to use when invoking shell scripts.
9842 # Whether or not to build shared libraries.
9843 build_libtool_libs=$enable_shared
9845 # Whether or not to build static libraries.
9846 build_old_libs=$enable_static
9848 # Whether or not to add -lc for building shared libraries.
9849 build_libtool_need_lc=$archive_cmds_need_lc
9851 # Whether or not to disallow shared libs when runtime libs are static
9852 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9854 # Whether or not to optimize for fast installation.
9855 fast_install=$enable_fast_install
9858 host_alias=$host_alias
9863 build_alias=$build_alias
9867 # An echo program that does not interpret backslashes.
9872 AR_FLAGS=$lt_AR_FLAGS
9877 # LTCC compiler flags.
9878 LTCFLAGS=$lt_LTCFLAGS
9880 # A language-specific compiler.
9883 # Is the compiler the GNU C compiler?
9889 # The linker used to build libraries.
9892 # Whether we need hard or soft links.
9895 # A BSD-compatible nm program.
9898 # A symbol stripping program
9901 # Used to examine libraries when file_magic_cmd begins "file"
9902 MAGIC_CMD=$MAGIC_CMD
9904 # Used on cygwin: DLL creation program.
9907 # Used on cygwin: object dumper.
9910 # Used on cygwin: assembler.
9913 # The name of the directory that contains temporary libtool files.
9916 # How to create reloadable object files.
9917 reload_flag=$lt_reload_flag
9918 reload_cmds=$lt_reload_cmds
9920 # How to pass a linker flag through the compiler.
9921 wl=$lt_lt_prog_compiler_wl
9923 # Object file suffix (normally "o").
9926 # Old archive suffix (normally "a").
9929 # Shared library suffix (normally ".so").
9930 shrext_cmds='$shrext_cmds'
9932 # Executable file suffix (normally "").
9935 # Additional compiler flags for building library objects.
9936 pic_flag=$lt_lt_prog_compiler_pic
9939 # What is the maximum length of a command?
9940 max_cmd_len=$lt_cv_sys_max_cmd_len
9942 # Does compiler simultaneously support -c and -o options?
9943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9945 # Must we lock files when doing compilation?
9946 need_locks=$lt_need_locks
9948 # Do we need the lib prefix for modules?
9949 need_lib_prefix=$need_lib_prefix
9951 # Do we need a version for libraries?
9952 need_version=$need_version
9954 # Whether dlopen is supported.
9955 dlopen_support=$enable_dlopen
9957 # Whether dlopen of programs is supported.
9958 dlopen_self=$enable_dlopen_self
9960 # Whether dlopen of statically linked programs is supported.
9961 dlopen_self_static=$enable_dlopen_self_static
9963 # Compiler flag to prevent dynamic linking.
9964 link_static_flag=$lt_lt_prog_compiler_static
9966 # Compiler flag to turn off builtin functions.
9967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9969 # Compiler flag to allow reflexive dlopens.
9970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9972 # Compiler flag to generate shared objects directly from archives.
9973 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9975 # Compiler flag to generate thread-safe objects.
9976 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9978 # Library versioning type.
9979 version_type=$version_type
9981 # Format of library name prefix.
9982 libname_spec=$lt_libname_spec
9984 # List of archive names. First name is the real one, the rest are links.
9985 # The last name is the one that the linker finds with -lNAME.
9986 library_names_spec=$lt_library_names_spec
9988 # The coded name of the library, if different from the real name.
9989 soname_spec=$lt_soname_spec
9991 # Commands used to build and install an old-style archive.
9993 old_archive_cmds=$lt_old_archive_cmds
9994 old_postinstall_cmds=$lt_old_postinstall_cmds
9995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9997 # Create an old-style archive from a shared archive.
9998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10000 # Create a temporary old-style archive to link instead of a shared archive.
10001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10003 # Commands used to build and install a shared archive.
10004 archive_cmds=$lt_archive_cmds
10005 archive_expsym_cmds=$lt_archive_expsym_cmds
10006 postinstall_cmds=$lt_postinstall_cmds
10007 postuninstall_cmds=$lt_postuninstall_cmds
10009 # Commands used to build a loadable module (assumed same as above if empty)
10010 module_cmds=$lt_module_cmds
10011 module_expsym_cmds=$lt_module_expsym_cmds
10013 # Commands to strip libraries.
10014 old_striplib=$lt_old_striplib
10015 striplib=$lt_striplib
10017 # Dependencies to place before the objects being linked to create a
10019 predep_objects=$lt_predep_objects
10021 # Dependencies to place after the objects being linked to create a
10023 postdep_objects=$lt_postdep_objects
10025 # Dependencies to place before the objects being linked to create a
10027 predeps=$lt_predeps
10029 # Dependencies to place after the objects being linked to create a
10031 postdeps=$lt_postdeps
10033 # The library search path used internally by the compiler when linking
10034 # a shared library.
10035 compiler_lib_search_path=$lt_compiler_lib_search_path
10037 # Method to check whether dependent libraries are shared objects.
10038 deplibs_check_method=$lt_deplibs_check_method
10040 # Command to use when deplibs_check_method == file_magic.
10041 file_magic_cmd=$lt_file_magic_cmd
10043 # Flag that allows shared libraries with undefined symbols to be built.
10044 allow_undefined_flag=$lt_allow_undefined_flag
10046 # Flag that forces no undefined symbols.
10047 no_undefined_flag=$lt_no_undefined_flag
10049 # Commands used to finish a libtool library installation in a directory.
10050 finish_cmds=$lt_finish_cmds
10052 # Same as above, but a single script fragment to be evaled but not shown.
10053 finish_eval=$lt_finish_eval
10055 # Take the output of nm and produce a listing of raw symbols and C names.
10056 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10058 # Transform the output of nm in a proper C declaration
10059 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10061 # Transform the output of nm in a C name address pair
10062 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10064 # This is the shared library runtime path variable.
10065 runpath_var=$runpath_var
10067 # This is the shared library path variable.
10068 shlibpath_var=$shlibpath_var
10070 # Is shlibpath searched before the hard-coded library search path?
10071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10073 # How to hardcode a shared library path into an executable.
10074 hardcode_action=$hardcode_action
10076 # Whether we should hardcode library paths into libraries.
10077 hardcode_into_libs=$hardcode_into_libs
10079 # Flag to hardcode \$libdir into a binary during linking.
10080 # This must work even if \$libdir does not exist.
10081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10083 # If ld is used when linking, flag to hardcode \$libdir into
10084 # a binary during linking. This must work even if \$libdir does
10086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10088 # Whether we need a single -rpath flag with a separated argument.
10089 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10091 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10092 # resulting binary.
10093 hardcode_direct=$hardcode_direct
10095 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10096 # resulting binary.
10097 hardcode_minus_L=$hardcode_minus_L
10099 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10100 # the resulting binary.
10101 hardcode_shlibpath_var=$hardcode_shlibpath_var
10103 # Set to yes if building a shared library automatically hardcodes DIR into the library
10104 # and all subsequent libraries and executables linked against it.
10105 hardcode_automatic=$hardcode_automatic
10107 # Variables whose values should be saved in libtool wrapper scripts and
10108 # restored at relink time.
10109 variables_saved_for_relink="$variables_saved_for_relink"
10111 # Whether libtool must link a program against all its dependency libraries.
10112 link_all_deplibs=$link_all_deplibs
10114 # Compile-time system search path for libraries
10115 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10117 # Run-time system search path for libraries
10118 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10120 # Fix the shell variable \$srcfile for the compiler.
10121 fix_srcfile_path="$fix_srcfile_path"
10123 # Set to yes if exported symbols are required.
10124 always_export_symbols=$always_export_symbols
10126 # The commands to list exported symbols.
10127 export_symbols_cmds=$lt_export_symbols_cmds
10129 # The commands to extract the exported symbol list from a shared archive.
10130 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10132 # Symbols that should not be listed in the preloaded symbols.
10133 exclude_expsyms=$lt_exclude_expsyms
10135 # Symbols that must always be exported.
10136 include_expsyms=$lt_include_expsyms
10138 # ### END LIBTOOL CONFIG
10145 cat <<\EOF >> "$cfgfile"
10147 # AIX sometimes has problems with the GCC collect2 program. For some
10148 # reason, if we set the COLLECT_NAMES environment variable, the problems
10149 # vanish in a puff of smoke.
10150 if test "X${COLLECT_NAMES+set}" != Xset; then
10152 export COLLECT_NAMES
10158 # We use sed instead of cat because bash on DJGPP gets confused if
10159 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10160 # text mode, it properly converts lines to CR/LF. This bash problem
10161 # is reportedly fixed, but why not run on old versions too?
10162 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10164 mv -f "$cfgfile" "$ofile" || \
10165 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10169 # If there is no Makefile yet, we rely on a make rule to execute
10170 # `config.status --recheck' to rerun these tests and create the
10171 # libtool script then.
10172 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10173 if test -f "$ltmain_in"; then
10174 test -f Makefile && make "$ltmain"
10180 ac_cpp='$CPP $CPPFLAGS'
10181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10188 # Check whether --with-tags was given.
10189 if test "${with_tags+set}" = set; then :
10190 withval=$with_tags; tagnames="$withval"
10194 if test -f "$ltmain" && test -n "$tagnames"; then
10195 if test ! -f "${ofile}"; then
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10197 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10200 if test -z "$LTCC"; then
10201 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10202 if test -z "$LTCC"; then
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10204 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10207 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10210 if test -z "$LTCFLAGS"; then
10211 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10214 # Extract list of available tagged configurations in $ofile.
10215 # Note that this assumes the entire list is on one line.
10216 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10219 for tagname in $tagnames; do
10221 # Check whether tagname contains only valid characters
10222 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10224 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10228 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10230 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10233 # Update the list of available tags.
10234 if test -n "$tagname"; then
10235 echo appending configuration tag \"$tagname\" to $ofile
10239 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10240 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10241 (test "X$CXX" != "Xg++"))) ; then
10243 ac_cpp='$CXXCPP $CPPFLAGS'
10244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10251 archive_cmds_need_lc_CXX=no
10252 allow_undefined_flag_CXX=
10253 always_export_symbols_CXX=no
10254 archive_expsym_cmds_CXX=
10255 export_dynamic_flag_spec_CXX=
10256 hardcode_direct_CXX=no
10257 hardcode_libdir_flag_spec_CXX=
10258 hardcode_libdir_flag_spec_ld_CXX=
10259 hardcode_libdir_separator_CXX=
10260 hardcode_minus_L_CXX=no
10261 hardcode_shlibpath_var_CXX=unsupported
10262 hardcode_automatic_CXX=no
10264 module_expsym_cmds_CXX=
10265 link_all_deplibs_CXX=unknown
10266 old_archive_cmds_CXX=$old_archive_cmds
10267 no_undefined_flag_CXX=
10268 whole_archive_flag_spec_CXX=
10269 enable_shared_with_static_runtimes_CXX=no
10271 # Dependencies to place before and after the object being linked:
10272 predep_objects_CXX=
10273 postdep_objects_CXX=
10276 compiler_lib_search_path_CXX=
10278 # Source file extension for C++ test sources.
10281 # Object file extension for compiled C++ test sources.
10285 # Code to be used in simple compile tests
10286 lt_simple_compile_test_code="int some_variable = 0;\n"
10288 # Code to be used in simple link tests
10289 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10291 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10293 # If no C compiler was specified, use CC.
10296 # If no C compiler flags were specified, use CFLAGS.
10297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10299 # Allow CC to be a program name with arguments.
10303 # save warnings/boilerplate of simple test code
10304 ac_outfile=conftest.$ac_objext
10305 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10307 _lt_compiler_boilerplate=`cat conftest.err`
10310 ac_outfile=conftest.$ac_objext
10311 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10313 _lt_linker_boilerplate=`cat conftest.err`
10317 # Allow CC to be a program name with arguments.
10322 lt_save_with_gnu_ld=$with_gnu_ld
10323 lt_save_path_LD=$lt_cv_path_LD
10324 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10325 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10327 $as_unset lt_cv_prog_gnu_ld
10329 if test -n "${lt_cv_path_LDCXX+set}"; then
10330 lt_cv_path_LD=$lt_cv_path_LDCXX
10332 $as_unset lt_cv_path_LD
10334 test -z "${LDCXX+set}" || LD=$LDCXX
10338 for cc_temp in $compiler""; do
10340 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10341 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10346 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10349 # We don't want -fno-exception wen compiling C++ code, so set the
10350 # no_builtin_flag separately
10351 if test "$GXX" = yes; then
10352 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10354 lt_prog_compiler_no_builtin_flag_CXX=
10357 if test "$GXX" = yes; then
10358 # Set up default GNU C++ configuration
10361 # Check whether --with-gnu-ld was given.
10362 if test "${with_gnu_ld+set}" = set; then :
10363 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10369 if test "$GCC" = yes; then
10370 # Check if gcc -print-prog-name=ld gives a path.
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10372 $as_echo_n "checking for ld used by $CC... " >&6; }
10375 # gcc leaves a trailing carriage return which upsets mingw
10376 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10378 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10381 # Accept absolute paths.
10383 re_direlt='/[^/][^/]*/\.\./'
10384 # Canonicalize the pathname of ld
10385 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10386 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10387 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10389 test -z "$LD" && LD="$ac_prog"
10392 # If it fails, then pretend we aren't using GCC.
10396 # If it is relative, then search for the first ld in PATH.
10397 with_gnu_ld=unknown
10400 elif test "$with_gnu_ld" = yes; then
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10402 $as_echo_n "checking for GNU ld... " >&6; }
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10405 $as_echo_n "checking for non-GNU ld... " >&6; }
10407 if ${lt_cv_path_LD+:} false; then :
10408 $as_echo_n "(cached) " >&6
10410 if test -z "$LD"; then
10411 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10412 for ac_dir in $PATH; do
10414 test -z "$ac_dir" && ac_dir=.
10415 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10416 lt_cv_path_LD="$ac_dir/$ac_prog"
10417 # Check to see if the program is GNU ld. I'd rather use --version,
10418 # but apparently some variants of GNU ld only accept -v.
10419 # Break only if it was the GNU/non-GNU ld that we prefer.
10420 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10421 *GNU* | *'with BFD'*)
10422 test "$with_gnu_ld" != no && break
10425 test "$with_gnu_ld" != yes && break
10432 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10436 LD="$lt_cv_path_LD"
10437 if test -n "$LD"; then
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10439 $as_echo "$LD" >&6; }
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442 $as_echo "no" >&6; }
10444 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10446 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10447 if ${lt_cv_prog_gnu_ld+:} false; then :
10448 $as_echo_n "(cached) " >&6
10450 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10451 case `$LD -v 2>&1 </dev/null` in
10452 *GNU* | *'with BFD'*)
10453 lt_cv_prog_gnu_ld=yes
10456 lt_cv_prog_gnu_ld=no
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10461 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10462 with_gnu_ld=$lt_cv_prog_gnu_ld
10466 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10467 # archiving commands below assume that GNU ld is being used.
10468 if test "$with_gnu_ld" = yes; then
10469 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10470 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'
10472 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10473 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10475 # If archive_cmds runs LD, not CC, wlarc should be empty
10476 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10477 # investigate it a little bit more. (MM)
10480 # ancient GNU ld didn't support --whole-archive et. al.
10481 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10482 grep 'no-whole-archive' > /dev/null; then
10483 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10485 whole_archive_flag_spec_CXX=
10491 # A generic and very simple default shared library creation
10492 # command for GNU C++ for the case where it uses the native
10493 # linker, instead of GNU ld. If possible, this setting should
10494 # overridden to take advantage of the native linker features on
10495 # the platform it is being used on.
10496 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10499 # Commands to make compiler produce verbose output that lists
10500 # what "hidden" libraries, object files and flags are used when
10501 # linking a shared library.
10502 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10510 # PORTME: fill in a description of your system's C++ link characteristics
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10512 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10516 # FIXME: insert proper C++ library support
10520 if test "$host_cpu" = ia64; then
10521 # On IA64, the linker does run time linking by default, so we don't
10522 # have to do anything special.
10523 aix_use_runtimelinking=no
10524 exp_sym_flag='-Bexport'
10527 aix_use_runtimelinking=no
10529 # Test if we are trying to use run time linking or normal
10530 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10531 # need to do runtime linking.
10532 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10533 for ld_flag in $LDFLAGS; do
10536 aix_use_runtimelinking=yes
10544 exp_sym_flag='-bexport'
10545 no_entry_flag='-bnoentry'
10548 # When large executables or shared objects are built, AIX ld can
10549 # have problems creating the table of contents. If linking a library
10550 # or program results in "error TOC overflow" add -mminimal-toc to
10551 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10552 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10554 archive_cmds_CXX=''
10555 hardcode_direct_CXX=yes
10556 hardcode_libdir_separator_CXX=':'
10557 link_all_deplibs_CXX=yes
10559 if test "$GXX" = yes; then
10560 case $host_os in aix4.[012]|aix4.[012].*)
10561 # We only want to do this on AIX 4.2 and lower, the check
10562 # below for broken collect2 doesn't work under 4.3+
10563 collect2name=`${CC} -print-prog-name=collect2`
10564 if test -f "$collect2name" && \
10565 strings "$collect2name" | grep resolve_lib_name >/dev/null
10567 # We have reworked collect2
10568 hardcode_direct_CXX=yes
10570 # We have old collect2
10571 hardcode_direct_CXX=unsupported
10572 # It fails to find uninstalled libraries when the uninstalled
10573 # path is not listed in the libpath. Setting hardcode_minus_L
10574 # to unsupported forces relinking
10575 hardcode_minus_L_CXX=yes
10576 hardcode_libdir_flag_spec_CXX='-L$libdir'
10577 hardcode_libdir_separator_CXX=
10581 shared_flag='-shared'
10582 if test "$aix_use_runtimelinking" = yes; then
10583 shared_flag="$shared_flag "'${wl}-G'
10587 if test "$host_cpu" = ia64; then
10588 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10589 # chokes on -Wl,-G. The following line is correct:
10592 if test "$aix_use_runtimelinking" = yes; then
10593 shared_flag='${wl}-G'
10595 shared_flag='${wl}-bM:SRE'
10600 # It seems that -bexpall does not export symbols beginning with
10601 # underscore (_), so it is better to generate a list of symbols to export.
10602 always_export_symbols_CXX=yes
10603 if test "$aix_use_runtimelinking" = yes; then
10604 # Warning - without using the other runtime loading flags (-brtl),
10605 # -berok will link without error, but may produce a broken library.
10606 allow_undefined_flag_CXX='-berok'
10607 # Determine the default libpath from the value encoded in an empty executable.
10608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10619 if ac_fn_cxx_try_link "$LINENO"; then :
10621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10623 # Check for a 64-bit object if we didn't find anything.
10624 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10627 rm -f core conftest.err conftest.$ac_objext \
10628 conftest$ac_exeext conftest.$ac_ext
10629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10631 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10633 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"
10635 if test "$host_cpu" = ia64; then
10636 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10637 allow_undefined_flag_CXX="-z nodefs"
10638 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"
10640 # Determine the default libpath from the value encoded in an empty executable.
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10652 if ac_fn_cxx_try_link "$LINENO"; then :
10654 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10656 # Check for a 64-bit object if we didn't find anything.
10657 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10660 rm -f core conftest.err conftest.$ac_objext \
10661 conftest$ac_exeext conftest.$ac_ext
10662 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10664 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10665 # Warning - without using the other run time loading flags,
10666 # -berok will link without error, but may produce a broken library.
10667 no_undefined_flag_CXX=' ${wl}-bernotok'
10668 allow_undefined_flag_CXX=' ${wl}-berok'
10669 # Exported symbols can be pulled into shared objects from archives
10670 whole_archive_flag_spec_CXX='$convenience'
10671 archive_cmds_need_lc_CXX=yes
10672 # This is similar to how AIX traditionally builds its shared libraries.
10673 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'
10679 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10680 allow_undefined_flag_CXX=unsupported
10681 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10682 # support --undefined. This deserves some investigation. FIXME
10683 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10690 case $cc_basename in
10692 # FIXME: insert proper C++ library support
10698 cygwin* | mingw* | pw32*)
10699 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10700 # as there is no search path for DLLs.
10701 hardcode_libdir_flag_spec_CXX='-L$libdir'
10702 allow_undefined_flag_CXX=unsupported
10703 always_export_symbols_CXX=no
10704 enable_shared_with_static_runtimes_CXX=yes
10706 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10707 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'
10708 # If the export-symbols file already is a .def file (1st line
10709 # is EXPORTS), use it as is; otherwise, prepend...
10710 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10711 cp $export_symbols $output_objdir/$soname.def;
10713 echo EXPORTS > $output_objdir/$soname.def;
10714 cat $export_symbols >> $output_objdir/$soname.def;
10716 $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'
10721 darwin* | rhapsody*)
10723 rhapsody* | darwin1.[012])
10724 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10727 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10728 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10730 case ${MACOSX_DEPLOYMENT_TARGET} in
10732 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10735 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10741 archive_cmds_need_lc_CXX=no
10742 hardcode_direct_CXX=no
10743 hardcode_automatic_CXX=yes
10744 hardcode_shlibpath_var_CXX=unsupported
10745 whole_archive_flag_spec_CXX=''
10746 link_all_deplibs_CXX=yes
10748 if test "$GXX" = yes ; then
10749 lt_int_apple_cc_single_mod=no
10750 output_verbose_link_cmd='echo'
10751 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10752 lt_int_apple_cc_single_mod=yes
10754 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10755 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10757 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'
10759 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10760 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10761 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10762 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10764 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10766 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}'
10768 case $cc_basename in
10770 output_verbose_link_cmd='echo'
10771 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10772 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10773 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10774 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10775 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}'
10785 case $cc_basename in
10787 # FIXME: insert proper C++ library support
10791 # Green Hills C++ Compiler
10792 # FIXME: insert proper C++ library support
10796 # FIXME: insert proper C++ library support
10802 # C++ shared libraries reported to be fairly broken before switch to ELF
10806 archive_cmds_need_lc_CXX=no
10808 freebsd* | kfreebsd*-gnu | dragonfly*)
10809 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10816 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10817 hardcode_libdir_separator_CXX=:
10818 export_dynamic_flag_spec_CXX='${wl}-E'
10819 hardcode_direct_CXX=yes
10820 hardcode_minus_L_CXX=yes # Not in the search PATH,
10821 # but as the default
10822 # location of the library.
10824 case $cc_basename in
10826 # FIXME: insert proper C++ library support
10830 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'
10831 # Commands to make compiler produce verbose output that lists
10832 # what "hidden" libraries, object files and flags are used when
10833 # linking a shared library.
10835 # There doesn't appear to be a way to prevent this compiler from
10836 # explicitly linking system object files so we need to strip them
10837 # from the output so that they don't get included in the library
10839 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'
10842 if test "$GXX" = yes; then
10843 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'
10845 # FIXME: insert proper C++ library support
10852 if test $with_gnu_ld = no; then
10853 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10854 hardcode_libdir_separator_CXX=:
10858 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10861 export_dynamic_flag_spec_CXX='${wl}-E'
10867 hardcode_direct_CXX=no
10868 hardcode_shlibpath_var_CXX=no
10871 hardcode_direct_CXX=yes
10872 hardcode_minus_L_CXX=yes # Not in the search PATH,
10873 # but as the default
10874 # location of the library.
10878 case $cc_basename in
10880 # FIXME: insert proper C++ library support
10886 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10889 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10892 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10895 # Commands to make compiler produce verbose output that lists
10896 # what "hidden" libraries, object files and flags are used when
10897 # linking a shared library.
10899 # There doesn't appear to be a way to prevent this compiler from
10900 # explicitly linking system object files so we need to strip them
10901 # from the output so that they don't get included in the library
10903 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'
10906 if test "$GXX" = yes; then
10907 if test $with_gnu_ld = no; then
10910 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10913 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10916 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'
10921 # FIXME: insert proper C++ library support
10928 hardcode_direct_CXX=no
10929 hardcode_shlibpath_var_CXX=no
10930 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10931 export_dynamic_flag_spec_CXX='${wl}-E'
10932 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10933 # Instead, shared libraries are loaded at an image base (0x10000000 by
10934 # default) and relocated if they conflict, which is a slow very memory
10935 # consuming and fragmenting process. To avoid this, we pick a random,
10936 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10937 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10938 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'
10939 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'
10942 case $cc_basename in
10945 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'
10947 # Archives containing C++ object files must be created using
10948 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10949 # necessary to make sure instantiated templates are included
10951 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10954 if test "$GXX" = yes; then
10955 if test "$with_gnu_ld" = no; then
10956 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'
10958 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'
10961 link_all_deplibs_CXX=yes
10964 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10965 hardcode_libdir_separator_CXX=:
10968 case $cc_basename in
10970 # Kuck and Associates, Inc. (KAI) C++ Compiler
10972 # KCC will only create a shared library if the output file
10973 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10974 # to its proper name (with version) after linking.
10975 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'
10976 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'
10977 # Commands to make compiler produce verbose output that lists
10978 # what "hidden" libraries, object files and flags are used when
10979 # linking a shared library.
10981 # There doesn't appear to be a way to prevent this compiler from
10982 # explicitly linking system object files so we need to strip them
10983 # from the output so that they don't get included in the library
10985 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'
10987 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10988 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10990 # Archives containing C++ object files must be created using
10991 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10992 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10997 # version 8.0 and above of icpc choke on multiply defined symbols
10998 # if we add $predep_objects and $postdep_objects, however 7.1 and
10999 # earlier do not add the objects themselves.
11000 case `$CC -V 2>&1` in
11002 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11003 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'
11005 *) # Version 8.0 or newer
11008 ia64*) tmp_idyn=' -i_dynamic';;
11010 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11011 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'
11014 archive_cmds_need_lc_CXX=no
11015 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11016 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11017 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11020 # Portland Group C++ compiler
11021 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11022 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'
11024 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11025 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11026 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'
11030 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11031 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'
11033 runpath_var=LD_RUN_PATH
11034 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11035 hardcode_libdir_separator_CXX=:
11037 # Commands to make compiler produce verbose output that lists
11038 # what "hidden" libraries, object files and flags are used when
11039 # linking a shared library.
11041 # There doesn't appear to be a way to prevent this compiler from
11042 # explicitly linking system object files so we need to strip them
11043 # from the output so that they don't get included in the library
11045 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'
11050 # FIXME: insert proper C++ library support
11054 # FIXME: insert proper C++ library support
11058 case $cc_basename in
11060 # FIXME: insert proper C++ library support
11064 # FIXME: insert proper C++ library support
11070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11071 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11073 hardcode_libdir_flag_spec_CXX='-R$libdir'
11074 hardcode_direct_CXX=yes
11075 hardcode_shlibpath_var_CXX=no
11077 # Workaround some broken pre-1.5 toolchains
11078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11081 # C++ shared libraries are fairly broken
11085 hardcode_direct_CXX=yes
11086 hardcode_shlibpath_var_CXX=no
11087 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11088 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11090 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11091 export_dynamic_flag_spec_CXX='${wl}-E'
11092 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11094 output_verbose_link_cmd='echo'
11097 case $cc_basename in
11099 # Kuck and Associates, Inc. (KAI) C++ Compiler
11101 # KCC will only create a shared library if the output file
11102 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11103 # to its proper name (with version) after linking.
11104 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'
11106 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11107 hardcode_libdir_separator_CXX=:
11109 # Archives containing C++ object files must be created using
11110 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11111 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11115 # Rational C++ 2.4.1
11116 # FIXME: insert proper C++ library support
11120 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11121 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'
11123 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11124 hardcode_libdir_separator_CXX=:
11126 # Commands to make compiler produce verbose output that lists
11127 # what "hidden" libraries, object files and flags are used when
11128 # linking a shared library.
11130 # There doesn't appear to be a way to prevent this compiler from
11131 # explicitly linking system object files so we need to strip them
11132 # from the output so that they don't get included in the library
11134 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'
11137 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11138 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11139 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'
11141 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11142 hardcode_libdir_separator_CXX=:
11144 # Commands to make compiler produce verbose output that lists
11145 # what "hidden" libraries, object files and flags are used when
11146 # linking a shared library.
11147 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11150 # FIXME: insert proper C++ library support
11157 case $cc_basename in
11159 # Kuck and Associates, Inc. (KAI) C++ Compiler
11161 # KCC will only create a shared library if the output file
11162 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11163 # to its proper name (with version) after linking.
11164 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'
11166 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11167 hardcode_libdir_separator_CXX=:
11169 # Archives containing C++ object files must be created using
11170 # the KAI C++ compiler.
11171 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11174 # Rational C++ 2.4.1
11175 # FIXME: insert proper C++ library support
11179 allow_undefined_flag_CXX=' -expect_unresolved \*'
11180 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'
11181 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11182 echo "-hidden">> $lib.exp~
11183 $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~
11186 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11187 hardcode_libdir_separator_CXX=:
11189 # Commands to make compiler produce verbose output that lists
11190 # what "hidden" libraries, object files and flags are used when
11191 # linking a shared library.
11193 # There doesn't appear to be a way to prevent this compiler from
11194 # explicitly linking system object files so we need to strip them
11195 # from the output so that they don't get included in the library
11197 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'
11200 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11201 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11202 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'
11204 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11205 hardcode_libdir_separator_CXX=:
11207 # Commands to make compiler produce verbose output that lists
11208 # what "hidden" libraries, object files and flags are used when
11209 # linking a shared library.
11210 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11213 # FIXME: insert proper C++ library support
11220 # FIXME: insert proper C++ library support
11224 case $cc_basename in
11227 # FIXME: insert proper C++ library support
11232 # FIXME: insert proper C++ library support
11236 # FIXME: insert proper C++ library support
11242 case $cc_basename in
11244 # Sun C++ 4.2, 5.x and Centerline C++
11245 archive_cmds_need_lc_CXX=yes
11246 no_undefined_flag_CXX=' -zdefs'
11247 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11248 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11249 $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'
11251 hardcode_libdir_flag_spec_CXX='-R$libdir'
11252 hardcode_shlibpath_var_CXX=no
11254 solaris2.[0-5] | solaris2.[0-5].*) ;;
11256 # The C++ compiler is used as linker so we must use $wl
11257 # flag to pass the commands to the underlying system
11258 # linker. We must also pass each convience library through
11259 # to the system linker between allextract/defaultextract.
11260 # The C++ compiler will combine linker options so we
11261 # cannot just pass the convience library names through
11263 # Supported since Solaris 2.6 (maybe 2.5.1?)
11264 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11267 link_all_deplibs_CXX=yes
11269 output_verbose_link_cmd='echo'
11271 # Archives containing C++ object files must be created using
11272 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11273 # necessary to make sure instantiated templates are included
11275 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11278 # Green Hills C++ Compiler
11279 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11281 # The C++ compiler must be used to create the archive.
11282 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11285 # GNU C++ compiler with Solaris linker
11286 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11287 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11288 if $CC --version | grep -v '^2\.7' > /dev/null; then
11289 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11290 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11291 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11293 # Commands to make compiler produce verbose output that lists
11294 # what "hidden" libraries, object files and flags are used when
11295 # linking a shared library.
11296 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11298 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11300 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11301 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11302 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11304 # Commands to make compiler produce verbose output that lists
11305 # what "hidden" libraries, object files and flags are used when
11306 # linking a shared library.
11307 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11310 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11315 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11316 no_undefined_flag_CXX='${wl}-z,text'
11317 archive_cmds_need_lc_CXX=no
11318 hardcode_shlibpath_var_CXX=no
11319 runpath_var='LD_RUN_PATH'
11321 case $cc_basename in
11323 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11324 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11327 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11328 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11332 sysv5* | sco3.2v5* | sco5v6*)
11333 # Note: We can NOT use -z defs as we might desire, because we do not
11334 # link with -lc, and that would cause any symbols used from libc to
11335 # always be unresolved, which means just about no library would
11336 # ever link correctly. If we're not using GNU ld we use -z text
11337 # though, which does catch some bad symbols but isn't as heavy-handed
11339 # For security reasons, it is highly recommended that you always
11340 # use absolute paths for naming shared libraries, and exclude the
11341 # DT_RUNPATH tag from executables and libraries. But doing so
11342 # requires that you compile everything twice, which is a pain.
11343 # So that behaviour is only enabled if SCOABSPATH is set to a
11344 # non-empty value in the environment. Most likely only useful for
11345 # creating official distributions of packages.
11346 # This is a hack until libtool officially supports absolute path
11347 # names for shared libraries.
11348 no_undefined_flag_CXX='${wl}-z,text'
11349 allow_undefined_flag_CXX='${wl}-z,nodefs'
11350 archive_cmds_need_lc_CXX=no
11351 hardcode_shlibpath_var_CXX=no
11352 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11353 hardcode_libdir_separator_CXX=':'
11354 link_all_deplibs_CXX=yes
11355 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11356 runpath_var='LD_RUN_PATH'
11358 case $cc_basename in
11360 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11361 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11364 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11365 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11370 case $cc_basename in
11372 # NonStop-UX NCC 3.20
11373 # FIXME: insert proper C++ library support
11377 # FIXME: insert proper C++ library support
11383 # FIXME: insert proper C++ library support
11387 # FIXME: insert proper C++ library support
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11392 $as_echo "$ld_shlibs_CXX" >&6; }
11393 test "$ld_shlibs_CXX" = no && can_build_shared=no
11399 cat > conftest.$ac_ext <<EOF
11403 Foo (void) { a = 0; }
11409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11410 (eval $ac_compile) 2>&5
11412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11413 test $ac_status = 0; }; then
11414 # Parse the compiler output and extract the necessary
11415 # objects, libraries and library flags.
11417 # Sentinel used to keep track of whether or not we are before
11418 # the conftest object file.
11419 pre_test_object_deps_done=no
11421 # The `*' in the case matches for architectures that use `case' in
11422 # $output_verbose_cmd can trigger glob expansion during the loop
11423 # eval without this substitution.
11424 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11426 for p in `eval $output_verbose_link_cmd`; do
11430 # Some compilers place space between "-{L,R}" and the path.
11431 # Remove the space.
11432 if test $p = "-L" \
11433 || test $p = "-R"; then
11440 if test "$pre_test_object_deps_done" = no; then
11443 # Internal compiler library paths should come after those
11444 # provided the user. The postdeps already come after the
11445 # user supplied libs so there is no need to process them.
11446 if test -z "$compiler_lib_search_path_CXX"; then
11447 compiler_lib_search_path_CXX="${prev}${p}"
11449 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11452 # The "-l" case would never come before the object being
11453 # linked, so don't bother handling this case.
11456 if test -z "$postdeps_CXX"; then
11457 postdeps_CXX="${prev}${p}"
11459 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11465 # This assumes that the test object file only shows up
11466 # once in the compiler output.
11467 if test "$p" = "conftest.$objext"; then
11468 pre_test_object_deps_done=yes
11472 if test "$pre_test_object_deps_done" = no; then
11473 if test -z "$predep_objects_CXX"; then
11474 predep_objects_CXX="$p"
11476 predep_objects_CXX="$predep_objects_CXX $p"
11479 if test -z "$postdep_objects_CXX"; then
11480 postdep_objects_CXX="$p"
11482 postdep_objects_CXX="$postdep_objects_CXX $p"
11487 *) ;; # Ignore the rest.
11495 echo "libtool.m4: error: problem compiling CXX test program"
11498 $rm -f confest.$objext
11500 # PORTME: override above test on systems where it is broken
11503 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11504 # hack all around it, let's just trust "g++" to DTRT.
11505 predep_objects_CXX=
11506 postdep_objects_CXX=
11511 case $cc_basename in
11513 # Adding this requires a known-good setup of shared libraries for
11514 # Sun compiler versions before 5.6, else PIC objects from an old
11515 # archive will be linked into the output, leading to subtle bugs.
11516 postdeps_CXX='-lCstd -lCrun'
11523 case " $postdeps_CXX " in
11524 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11527 lt_prog_compiler_wl_CXX=
11528 lt_prog_compiler_pic_CXX=
11529 lt_prog_compiler_static_CXX=
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11532 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11534 # C++ specific cases for pic, static, wl, etc.
11535 if test "$GXX" = yes; then
11536 lt_prog_compiler_wl_CXX='-Wl,'
11537 lt_prog_compiler_static_CXX='-static'
11541 # All AIX code is PIC.
11542 if test "$host_cpu" = ia64; then
11543 # AIX 5 now supports IA64 processor
11544 lt_prog_compiler_static_CXX='-Bstatic'
11548 # FIXME: we need at least 68020 code to build shared libraries, but
11549 # adding the `-m68020' flag to GCC prevents building anything better,
11551 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11553 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11554 # PIC is the default for these OSes.
11556 mingw* | os2* | pw32*)
11557 # This hack is so that the source file can tell whether it is being
11558 # built for inclusion in a dll (and should export symbols for example).
11559 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11561 darwin* | rhapsody*)
11562 # PIC is the default on this platform
11563 # Common symbols not allowed in MH_DYLIB files
11564 lt_prog_compiler_pic_CXX='-fno-common'
11567 # DJGPP does not support shared libraries at all
11568 lt_prog_compiler_pic_CXX=
11571 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11572 # Instead, we relocate shared libraries at runtime.
11575 if test -d /usr/nec; then
11576 lt_prog_compiler_pic_CXX=-Kconform_pic
11580 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11581 # not for PA HP-UX.
11586 lt_prog_compiler_pic_CXX='-fPIC'
11591 lt_prog_compiler_pic_CXX='-fPIC'
11597 # All AIX code is PIC.
11598 if test "$host_cpu" = ia64; then
11599 # AIX 5 now supports IA64 processor
11600 lt_prog_compiler_static_CXX='-Bstatic'
11602 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11606 case $cc_basename in
11608 # Green Hills C++ Compiler
11609 # _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"
11614 # PIC is the default on this platform
11615 # Common symbols not allowed in MH_DYLIB files
11616 case $cc_basename in
11618 lt_prog_compiler_pic_CXX='-qnocommon'
11619 lt_prog_compiler_wl_CXX='-Wl,'
11624 case $cc_basename in
11626 lt_prog_compiler_pic_CXX='-KPIC'
11629 # Green Hills C++ Compiler
11630 lt_prog_compiler_pic_CXX='-pic'
11636 freebsd* | kfreebsd*-gnu | dragonfly*)
11637 # FreeBSD uses GNU C++
11639 hpux9* | hpux10* | hpux11*)
11640 case $cc_basename in
11642 lt_prog_compiler_wl_CXX='-Wl,'
11643 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11644 if test "$host_cpu" != ia64; then
11645 lt_prog_compiler_pic_CXX='+Z'
11649 lt_prog_compiler_wl_CXX='-Wl,'
11650 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11656 lt_prog_compiler_pic_CXX='+Z'
11665 # This is c89, which is MS Visual C++ (no shared libs)
11666 # Anyone wants to do a port?
11668 irix5* | irix6* | nonstopux*)
11669 case $cc_basename in
11671 lt_prog_compiler_wl_CXX='-Wl,'
11672 lt_prog_compiler_static_CXX='-non_shared'
11673 # CC pic flag -KPIC is the default.
11680 case $cc_basename in
11683 lt_prog_compiler_wl_CXX='--backend -Wl,'
11684 lt_prog_compiler_pic_CXX='-fPIC'
11688 lt_prog_compiler_wl_CXX='-Wl,'
11689 lt_prog_compiler_pic_CXX='-KPIC'
11690 lt_prog_compiler_static_CXX='-static'
11693 # Portland Group C++ compiler.
11694 lt_prog_compiler_wl_CXX='-Wl,'
11695 lt_prog_compiler_pic_CXX='-fpic'
11696 lt_prog_compiler_static_CXX='-Bstatic'
11700 # Make sure the PIC flag is empty. It appears that all Alpha
11701 # Linux and Compaq Tru64 Unix objects are PIC.
11702 lt_prog_compiler_pic_CXX=
11703 lt_prog_compiler_static_CXX='-non_shared'
11714 case $cc_basename in
11716 lt_prog_compiler_pic_CXX='-W c,exportall'
11724 osf3* | osf4* | osf5*)
11725 case $cc_basename in
11727 lt_prog_compiler_wl_CXX='--backend -Wl,'
11730 # Rational C++ 2.4.1
11731 lt_prog_compiler_pic_CXX='-pic'
11734 # Digital/Compaq C++
11735 lt_prog_compiler_wl_CXX='-Wl,'
11736 # Make sure the PIC flag is empty. It appears that all Alpha
11737 # Linux and Compaq Tru64 Unix objects are PIC.
11738 lt_prog_compiler_pic_CXX=
11739 lt_prog_compiler_static_CXX='-non_shared'
11748 case $cc_basename in
11750 # Sun C++ 4.2, 5.x and Centerline C++
11751 lt_prog_compiler_pic_CXX='-KPIC'
11752 lt_prog_compiler_static_CXX='-Bstatic'
11753 lt_prog_compiler_wl_CXX='-Qoption ld '
11756 # Green Hills C++ Compiler
11757 lt_prog_compiler_pic_CXX='-PIC'
11764 case $cc_basename in
11767 lt_prog_compiler_pic_CXX='-pic'
11768 lt_prog_compiler_static_CXX='-Bstatic'
11772 lt_prog_compiler_pic_CXX='-pic'
11779 case $cc_basename in
11781 # NonStop-UX NCC 3.20
11782 lt_prog_compiler_pic_CXX='-KPIC'
11788 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11789 case $cc_basename in
11791 lt_prog_compiler_wl_CXX='-Wl,'
11792 lt_prog_compiler_pic_CXX='-KPIC'
11793 lt_prog_compiler_static_CXX='-Bstatic'
11800 lt_prog_compiler_can_build_shared_CXX=no
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11806 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11809 # Check to make sure the PIC flag actually works.
11811 if test -n "$lt_prog_compiler_pic_CXX"; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11814 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11815 if ${lt_prog_compiler_pic_works_CXX+:} false; then :
11816 $as_echo_n "(cached) " >&6
11818 lt_prog_compiler_pic_works_CXX=no
11819 ac_outfile=conftest.$ac_objext
11820 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11821 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11822 # Insert the option either (1) after the last *FLAGS variable, or
11823 # (2) before a word containing "conftest.", or (3) at the end.
11824 # Note that $ac_compile itself does not contain backslashes and begins
11825 # with a dollar sign (not a hyphen), so the echo should work correctly.
11826 # The option is referenced via a variable to avoid confusing sed.
11827 lt_compile=`echo "$ac_compile" | $SED \
11828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11830 -e 's:$: $lt_compiler_flag:'`
11831 (eval echo "\"\$as_me:11831: $lt_compile\"" >&5)
11832 (eval "$lt_compile" 2>conftest.err)
11834 cat conftest.err >&5
11835 echo "$as_me:11835: \$? = $ac_status" >&5
11836 if (exit $ac_status) && test -s "$ac_outfile"; then
11837 # The compiler can only warn and ignore the option if not recognized
11838 # So say no if there are warnings other than the usual output.
11839 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11841 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11842 lt_prog_compiler_pic_works_CXX=yes
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
11849 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
11851 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11852 case $lt_prog_compiler_pic_CXX in
11854 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11857 lt_prog_compiler_pic_CXX=
11858 lt_prog_compiler_can_build_shared_CXX=no
11863 # For platforms which do not support PIC, -DPIC is meaningless:
11865 lt_prog_compiler_pic_CXX=
11868 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11873 # Check to make sure the static flag actually works.
11875 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11877 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11878 if ${lt_prog_compiler_static_works_CXX+:} false; then :
11879 $as_echo_n "(cached) " >&6
11881 lt_prog_compiler_static_works_CXX=no
11882 save_LDFLAGS="$LDFLAGS"
11883 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11884 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11885 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11886 # The linker can only warn and ignore the option if not recognized
11887 # So say no if there are warnings
11888 if test -s conftest.err; then
11889 # Append any errors to the config.log.
11890 cat conftest.err 1>&5
11891 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11893 if diff conftest.exp conftest.er2 >/dev/null; then
11894 lt_prog_compiler_static_works_CXX=yes
11897 lt_prog_compiler_static_works_CXX=yes
11901 LDFLAGS="$save_LDFLAGS"
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_CXX" >&5
11905 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
11907 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11910 lt_prog_compiler_static_CXX=
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11915 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11916 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
11917 $as_echo_n "(cached) " >&6
11919 lt_cv_prog_compiler_c_o_CXX=no
11920 $rm -r conftest 2>/dev/null
11924 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11926 lt_compiler_flag="-o out/conftest2.$ac_objext"
11927 # Insert the option either (1) after the last *FLAGS variable, or
11928 # (2) before a word containing "conftest.", or (3) at the end.
11929 # Note that $ac_compile itself does not contain backslashes and begins
11930 # with a dollar sign (not a hyphen), so the echo should work correctly.
11931 lt_compile=`echo "$ac_compile" | $SED \
11932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11934 -e 's:$: $lt_compiler_flag:'`
11935 (eval echo "\"\$as_me:11935: $lt_compile\"" >&5)
11936 (eval "$lt_compile" 2>out/conftest.err)
11938 cat out/conftest.err >&5
11939 echo "$as_me:11939: \$? = $ac_status" >&5
11940 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11942 # The compiler can only warn and ignore the option if not recognized
11943 # So say no if there are warnings
11944 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11945 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11946 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11947 lt_cv_prog_compiler_c_o_CXX=yes
11952 # SGI C++ compiler will create directory out/ii_files/ for
11953 # template instantiation
11954 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11955 $rm out/* && rmdir out
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11962 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11965 hard_links="nottested"
11966 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11967 # do not overwrite the value of need_locks provided by the user
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11969 $as_echo_n "checking if we can lock with hard links... " >&6; }
11972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11974 ln conftest.a conftest.b 2>&5 || hard_links=no
11975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11977 $as_echo "$hard_links" >&6; }
11978 if test "$hard_links" = no; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11980 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11988 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11990 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11993 # If we're using GNU nm, then we don't want the "-C" option.
11994 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11995 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11996 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'
11998 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'
12002 export_symbols_cmds_CXX="$ltdll_cmds"
12005 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'
12008 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12013 $as_echo "$ld_shlibs_CXX" >&6; }
12014 test "$ld_shlibs_CXX" = no && can_build_shared=no
12017 # Do we need to explicitly link libc?
12019 case "x$archive_cmds_need_lc_CXX" in
12021 # Assume -lc should be added
12022 archive_cmds_need_lc_CXX=yes
12024 if test "$enable_shared" = yes && test "$GCC" = yes; then
12025 case $archive_cmds_CXX in
12027 # FIXME: we may have to deal with multi-command sequences.
12030 # Test whether the compiler implicitly links with -lc since on some
12031 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12032 # to ld, don't add -lc before -lgcc.
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12034 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12036 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12039 (eval $ac_compile) 2>&5
12041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12042 test $ac_status = 0; } 2>conftest.err; then
12045 libobjs=conftest.$ac_objext
12047 wl=$lt_prog_compiler_wl_CXX
12048 pic_flag=$lt_prog_compiler_pic_CXX
12054 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12055 allow_undefined_flag_CXX=
12056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12057 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12060 test $ac_status = 0; }
12062 archive_cmds_need_lc_CXX=no
12064 archive_cmds_need_lc_CXX=yes
12066 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12068 cat conftest.err 1>&5
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12072 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12080 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12081 library_names_spec=
12082 libname_spec='lib$name'
12086 postuninstall_cmds=
12090 shlibpath_overrides_runpath=unknown
12092 dynamic_linker="$host_os ld.so"
12093 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12094 if test "$GCC" = yes; then
12095 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12096 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12097 # if the path contains ";" then we assume it to be the separator
12098 # otherwise default to the standard path separator (i.e. ":") - it is
12099 # assumed that no part of a normal pathname contains ";" but that should
12100 # okay in the real world where ";" in dirpaths is itself problematic.
12101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12103 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12106 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12108 need_lib_prefix=unknown
12109 hardcode_into_libs=no
12111 # when you set need_version to no, make sure it does not cause -set_version
12112 # flags to be left without arguments
12113 need_version=unknown
12118 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12119 shlibpath_var=LIBPATH
12121 # AIX 3 has no versioning support, so we append a major version to the name.
12122 soname_spec='${libname}${release}${shared_ext}$major'
12129 hardcode_into_libs=yes
12130 if test "$host_cpu" = ia64; then
12131 # AIX 5 supports IA64
12132 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12133 shlibpath_var=LD_LIBRARY_PATH
12135 # With GCC up to 2.95.x, collect2 would create an import file
12136 # for dependence libraries. The import file would start with
12137 # the line `#! .'. This would cause the generated library to
12138 # depend on `.', always an invalid library. This was fixed in
12139 # development snapshots of GCC prior to 3.0.
12141 aix4 | aix4.[01] | aix4.[01].*)
12142 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12144 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12147 can_build_shared=no
12151 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12152 # soname into executable. Probably we can add versioning support to
12153 # collect2, so additional links can be useful in future.
12154 if test "$aix_use_runtimelinking" = yes; then
12155 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12156 # instead of lib<name>.a to let people know that these are not
12157 # typical AIX shared libraries.
12158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12160 # We preserve .a as extension for shared libraries through AIX4.2
12161 # and later when we are not doing run time linking.
12162 library_names_spec='${libname}${release}.a $libname.a'
12163 soname_spec='${libname}${release}${shared_ext}$major'
12165 shlibpath_var=LIBPATH
12170 library_names_spec='$libname.ixlibrary $libname.a'
12171 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12172 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'
12176 library_names_spec='${libname}${shared_ext}'
12177 dynamic_linker="$host_os ld.so"
12178 shlibpath_var=LIBRARY_PATH
12184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12185 soname_spec='${libname}${release}${shared_ext}$major'
12186 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12187 shlibpath_var=LD_LIBRARY_PATH
12188 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12189 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12190 # the default ld.so.conf also contains /usr/contrib/lib and
12191 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12192 # libtool to hard-code these into programs
12195 cygwin* | mingw* | pw32*)
12196 version_type=windows
12201 case $GCC,$host_os in
12202 yes,cygwin* | yes,mingw* | yes,pw32*)
12203 library_names_spec='$libname.dll.a'
12204 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12205 postinstall_cmds='base_file=`basename \${file}`~
12206 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12207 dldir=$destdir/`dirname \$dlpath`~
12208 test -d \$dldir || mkdir -p \$dldir~
12209 $install_prog $dir/$dlname \$dldir/$dlname~
12210 chmod a+x \$dldir/$dlname'
12211 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12212 dlpath=$dir/\$dldll~
12214 shlibpath_overrides_runpath=yes
12218 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12219 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12220 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12223 # MinGW DLLs use traditional 'lib' prefix
12224 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12225 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12226 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12227 # It is most probably a Windows format PATH printed by
12228 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12229 # path with ; separators, and with drive letters. We can handle the
12230 # drive letters (cygwin fileutils understands them), so leave them,
12231 # especially as we might pass files found there to a mingw objdump,
12232 # which wouldn't understand a cygwinified path. Ahh.
12233 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12235 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12239 # pw32 DLLs use 'pw' prefix rather than 'lib'
12240 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12246 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12249 dynamic_linker='Win32 ld.exe'
12250 # FIXME: first we should search . and the directory the executable is in
12254 darwin* | rhapsody*)
12255 dynamic_linker="$host_os dyld"
12256 version_type=darwin
12259 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12260 soname_spec='${libname}${release}${major}$shared_ext'
12261 shlibpath_overrides_runpath=yes
12262 shlibpath_var=DYLD_LIBRARY_PATH
12263 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12264 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12265 if test "$GCC" = yes; then
12266 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12268 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12270 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12278 soname_spec='${libname}${release}${shared_ext}$major'
12279 shlibpath_var=LD_LIBRARY_PATH
12290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12291 soname_spec='${libname}${release}${shared_ext}$major'
12292 shlibpath_var=LD_LIBRARY_PATH
12293 shlibpath_overrides_runpath=no
12294 hardcode_into_libs=yes
12295 dynamic_linker='GNU ld.so'
12298 freebsd* | dragonfly*)
12299 # DragonFly does not have aout. When/if they implement a new
12300 # versioning mechanism, adjust this.
12301 if test -x /usr/bin/objformat; then
12302 objformat=`/usr/bin/objformat`
12305 freebsd[123]*) objformat=aout ;;
12306 *) objformat=elf ;;
12309 version_type=freebsd-$objformat
12310 case $version_type in
12312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12321 shlibpath_var=LD_LIBRARY_PATH
12324 shlibpath_overrides_runpath=yes
12326 freebsd3.[01]* | freebsdelf3.[01]*)
12327 shlibpath_overrides_runpath=yes
12328 hardcode_into_libs=yes
12330 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12331 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12332 shlibpath_overrides_runpath=no
12333 hardcode_into_libs=yes
12335 freebsd*) # from 4.6 on
12336 shlibpath_overrides_runpath=yes
12337 hardcode_into_libs=yes
12346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12347 soname_spec='${libname}${release}${shared_ext}$major'
12348 shlibpath_var=LD_LIBRARY_PATH
12349 hardcode_into_libs=yes
12352 hpux9* | hpux10* | hpux11*)
12353 # Give a soname corresponding to the major version so that dld.sl refuses to
12354 # link against other versions.
12361 hardcode_into_libs=yes
12362 dynamic_linker="$host_os dld.so"
12363 shlibpath_var=LD_LIBRARY_PATH
12364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12366 soname_spec='${libname}${release}${shared_ext}$major'
12367 if test "X$HPUX_IA64_MODE" = X32; then
12368 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12370 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12376 hardcode_into_libs=yes
12377 dynamic_linker="$host_os dld.sl"
12378 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12379 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12381 soname_spec='${libname}${release}${shared_ext}$major'
12382 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12383 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12387 dynamic_linker="$host_os dld.sl"
12388 shlibpath_var=SHLIB_PATH
12389 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12391 soname_spec='${libname}${release}${shared_ext}$major'
12394 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12395 postinstall_cmds='chmod 555 $lib'
12402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12403 soname_spec='${libname}${release}${shared_ext}$major'
12404 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12405 shlibpath_var=LD_LIBRARY_PATH
12406 shlibpath_overrides_runpath=no
12407 hardcode_into_libs=yes
12410 irix5* | irix6* | nonstopux*)
12412 nonstopux*) version_type=nonstopux ;;
12414 if test "$lt_cv_prog_gnu_ld" = yes; then
12422 soname_spec='${libname}${release}${shared_ext}$major'
12423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12425 irix5* | nonstopux*)
12426 libsuff= shlibsuff=
12429 case $LD in # libtool.m4 will add one of these switches to LD
12430 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12431 libsuff= shlibsuff= libmagic=32-bit;;
12432 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12433 libsuff=32 shlibsuff=N32 libmagic=N32;;
12434 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12435 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12436 *) libsuff= shlibsuff= libmagic=never-match;;
12440 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12441 shlibpath_overrides_runpath=no
12442 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12443 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12444 hardcode_into_libs=yes
12447 # No shared lib support for Linux oldld, aout, or coff.
12448 linux*oldld* | linux*aout* | linux*coff*)
12452 # This must be Linux ELF.
12457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12458 soname_spec='${libname}${release}${shared_ext}$major'
12459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12460 shlibpath_var=LD_LIBRARY_PATH
12461 shlibpath_overrides_runpath=no
12462 # This implies no fast_install, which is unacceptable.
12463 # Some rework will be needed to allow for fast_install
12464 # before this can be enabled.
12465 hardcode_into_libs=yes
12467 # Append ld.so.conf contents to the search path
12468 if test -f /etc/ld.so.conf; then
12469 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12470 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12473 # We used to test for /lib/ld.so.1 and disable shared libraries on
12474 # powerpc, because MkLinux only supported shared libraries with the
12475 # GNU dynamic linker. Since this was broken with cross compilers,
12476 # most powerpc-linux boxes support dynamic linking these days and
12477 # people can always --disable-shared, the test was removed, and we
12478 # assume the GNU/Linux dynamic linker is in use.
12479 dynamic_linker='GNU/Linux ld.so'
12486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12487 soname_spec='${libname}${release}${shared_ext}$major'
12488 shlibpath_var=LD_LIBRARY_PATH
12489 shlibpath_overrides_runpath=no
12490 hardcode_into_libs=yes
12491 dynamic_linker='GNU ld.so'
12498 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12501 dynamic_linker='NetBSD (a.out) ld.so'
12503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12504 soname_spec='${libname}${release}${shared_ext}$major'
12505 dynamic_linker='NetBSD ld.elf_so'
12507 shlibpath_var=LD_LIBRARY_PATH
12508 shlibpath_overrides_runpath=yes
12509 hardcode_into_libs=yes
12514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12515 shlibpath_var=LD_LIBRARY_PATH
12516 shlibpath_overrides_runpath=yes
12523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12524 soname_spec='${libname}${release}${shared_ext}$major'
12525 shlibpath_var=LD_LIBRARY_PATH
12526 shlibpath_overrides_runpath=yes
12531 sys_lib_dlsearch_path_spec="/usr/lib"
12533 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12535 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12536 *) need_version=no ;;
12538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12540 shlibpath_var=LD_LIBRARY_PATH
12541 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12543 openbsd2.[89] | openbsd2.[89].*)
12544 shlibpath_overrides_runpath=no
12547 shlibpath_overrides_runpath=yes
12551 shlibpath_overrides_runpath=yes
12556 libname_spec='$name'
12559 library_names_spec='$libname${shared_ext} $libname.a'
12560 dynamic_linker='OS/2 ld.exe'
12561 shlibpath_var=LIBPATH
12564 osf3* | osf4* | osf5*)
12568 soname_spec='${libname}${release}${shared_ext}$major'
12569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12570 shlibpath_var=LD_LIBRARY_PATH
12571 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12572 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12580 soname_spec='${libname}${release}${shared_ext}$major'
12581 shlibpath_var=LD_LIBRARY_PATH
12582 shlibpath_overrides_runpath=yes
12583 hardcode_into_libs=yes
12584 # ldd complains unless libraries are executable
12585 postinstall_cmds='chmod +x $lib'
12590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12591 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12592 shlibpath_var=LD_LIBRARY_PATH
12593 shlibpath_overrides_runpath=yes
12594 if test "$with_gnu_ld" = yes; then
12602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12603 soname_spec='${libname}${release}${shared_ext}$major'
12604 shlibpath_var=LD_LIBRARY_PATH
12605 case $host_vendor in
12607 shlibpath_overrides_runpath=no
12609 export_dynamic_flag_spec='${wl}-Blargedynsym'
12610 runpath_var=LD_RUN_PATH
12618 shlibpath_overrides_runpath=no
12619 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12625 if test -d /usr/nec ;then
12627 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12628 soname_spec='$libname${shared_ext}.$major'
12629 shlibpath_var=LD_LIBRARY_PATH
12633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12634 version_type=freebsd-elf
12637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12638 soname_spec='${libname}${release}${shared_ext}$major'
12639 shlibpath_var=LD_LIBRARY_PATH
12640 hardcode_into_libs=yes
12641 if test "$with_gnu_ld" = yes; then
12642 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12643 shlibpath_overrides_runpath=no
12645 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12646 shlibpath_overrides_runpath=yes
12649 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12653 sys_lib_dlsearch_path_spec='/usr/lib'
12658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12659 soname_spec='${libname}${release}${shared_ext}$major'
12660 shlibpath_var=LD_LIBRARY_PATH
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12668 $as_echo "$dynamic_linker" >&6; }
12669 test "$dynamic_linker" = no && can_build_shared=no
12671 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12672 if test "$GCC" = yes; then
12673 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12677 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12678 hardcode_action_CXX=
12679 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12680 test -n "$runpath_var_CXX" || \
12681 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12683 # We can hardcode non-existant directories.
12684 if test "$hardcode_direct_CXX" != no &&
12685 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12686 # have to relink, otherwise we might link with an installed library
12687 # when we should be linking with a yet-to-be-installed one
12688 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12689 test "$hardcode_minus_L_CXX" != no; then
12690 # Linking always hardcodes the temporary library directory.
12691 hardcode_action_CXX=relink
12693 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12694 hardcode_action_CXX=immediate
12697 # We cannot hardcode anything, or else we can only hardcode existing
12699 hardcode_action_CXX=unsupported
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12702 $as_echo "$hardcode_action_CXX" >&6; }
12704 if test "$hardcode_action_CXX" = relink; then
12705 # Fast installation is not supported
12706 enable_fast_install=no
12707 elif test "$shlibpath_overrides_runpath" = yes ||
12708 test "$enable_shared" = no; then
12709 # Fast installation is not necessary
12710 enable_fast_install=needless
12714 # The else clause should only fire when bootstrapping the
12715 # libtool distribution, otherwise you forgot to ship ltmain.sh
12716 # with your package, and you will get complaints that there are
12717 # no rules to generate ltmain.sh.
12718 if test -f "$ltmain"; then
12719 # See if we are running on zsh, and set the options which allow our commands through
12720 # without removal of \ escapes.
12721 if test -n "${ZSH_VERSION+set}" ; then
12722 setopt NO_GLOB_SUBST
12724 # Now quote all the things that may contain metacharacters while being
12725 # careful not to overquote the AC_SUBSTed values. We take copies of the
12726 # variables and quote the copies for generation of the libtool script.
12727 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12729 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12730 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12731 deplibs_check_method reload_flag reload_cmds need_locks \
12732 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12733 lt_cv_sys_global_symbol_to_c_name_address \
12734 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12735 old_postinstall_cmds old_postuninstall_cmds \
12739 lt_prog_compiler_wl_CXX \
12740 lt_prog_compiler_pic_CXX \
12741 lt_prog_compiler_static_CXX \
12742 lt_prog_compiler_no_builtin_flag_CXX \
12743 export_dynamic_flag_spec_CXX \
12744 thread_safe_flag_spec_CXX \
12745 whole_archive_flag_spec_CXX \
12746 enable_shared_with_static_runtimes_CXX \
12747 old_archive_cmds_CXX \
12748 old_archive_from_new_cmds_CXX \
12749 predep_objects_CXX \
12750 postdep_objects_CXX \
12753 compiler_lib_search_path_CXX \
12755 archive_expsym_cmds_CXX \
12756 postinstall_cmds_CXX \
12757 postuninstall_cmds_CXX \
12758 old_archive_from_expsyms_cmds_CXX \
12759 allow_undefined_flag_CXX \
12760 no_undefined_flag_CXX \
12761 export_symbols_cmds_CXX \
12762 hardcode_libdir_flag_spec_CXX \
12763 hardcode_libdir_flag_spec_ld_CXX \
12764 hardcode_libdir_separator_CXX \
12765 hardcode_automatic_CXX \
12767 module_expsym_cmds_CXX \
12768 lt_cv_prog_compiler_c_o_CXX \
12769 exclude_expsyms_CXX \
12770 include_expsyms_CXX; do
12773 old_archive_cmds_CXX | \
12774 old_archive_from_new_cmds_CXX | \
12775 archive_cmds_CXX | \
12776 archive_expsym_cmds_CXX | \
12777 module_cmds_CXX | \
12778 module_expsym_cmds_CXX | \
12779 old_archive_from_expsyms_cmds_CXX | \
12780 export_symbols_cmds_CXX | \
12781 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12782 postinstall_cmds | postuninstall_cmds | \
12783 old_postinstall_cmds | old_postuninstall_cmds | \
12784 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12785 # Double-quote double-evaled strings.
12786 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12789 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12795 *'\$0 --fallback-echo"')
12796 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12802 cat <<__EOF__ >> "$cfgfile"
12803 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12805 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12807 # Shell to use when invoking shell scripts.
12810 # Whether or not to build shared libraries.
12811 build_libtool_libs=$enable_shared
12813 # Whether or not to build static libraries.
12814 build_old_libs=$enable_static
12816 # Whether or not to add -lc for building shared libraries.
12817 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12819 # Whether or not to disallow shared libs when runtime libs are static
12820 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12822 # Whether or not to optimize for fast installation.
12823 fast_install=$enable_fast_install
12826 host_alias=$host_alias
12830 # The build system.
12831 build_alias=$build_alias
12835 # An echo program that does not interpret backslashes.
12840 AR_FLAGS=$lt_AR_FLAGS
12845 # LTCC compiler flags.
12846 LTCFLAGS=$lt_LTCFLAGS
12848 # A language-specific compiler.
12849 CC=$lt_compiler_CXX
12851 # Is the compiler the GNU C compiler?
12857 # The linker used to build libraries.
12860 # Whether we need hard or soft links.
12863 # A BSD-compatible nm program.
12866 # A symbol stripping program
12869 # Used to examine libraries when file_magic_cmd begins "file"
12870 MAGIC_CMD=$MAGIC_CMD
12872 # Used on cygwin: DLL creation program.
12875 # Used on cygwin: object dumper.
12878 # Used on cygwin: assembler.
12881 # The name of the directory that contains temporary libtool files.
12884 # How to create reloadable object files.
12885 reload_flag=$lt_reload_flag
12886 reload_cmds=$lt_reload_cmds
12888 # How to pass a linker flag through the compiler.
12889 wl=$lt_lt_prog_compiler_wl_CXX
12891 # Object file suffix (normally "o").
12892 objext="$ac_objext"
12894 # Old archive suffix (normally "a").
12897 # Shared library suffix (normally ".so").
12898 shrext_cmds='$shrext_cmds'
12900 # Executable file suffix (normally "").
12903 # Additional compiler flags for building library objects.
12904 pic_flag=$lt_lt_prog_compiler_pic_CXX
12907 # What is the maximum length of a command?
12908 max_cmd_len=$lt_cv_sys_max_cmd_len
12910 # Does compiler simultaneously support -c and -o options?
12911 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12913 # Must we lock files when doing compilation?
12914 need_locks=$lt_need_locks
12916 # Do we need the lib prefix for modules?
12917 need_lib_prefix=$need_lib_prefix
12919 # Do we need a version for libraries?
12920 need_version=$need_version
12922 # Whether dlopen is supported.
12923 dlopen_support=$enable_dlopen
12925 # Whether dlopen of programs is supported.
12926 dlopen_self=$enable_dlopen_self
12928 # Whether dlopen of statically linked programs is supported.
12929 dlopen_self_static=$enable_dlopen_self_static
12931 # Compiler flag to prevent dynamic linking.
12932 link_static_flag=$lt_lt_prog_compiler_static_CXX
12934 # Compiler flag to turn off builtin functions.
12935 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12937 # Compiler flag to allow reflexive dlopens.
12938 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12940 # Compiler flag to generate shared objects directly from archives.
12941 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12943 # Compiler flag to generate thread-safe objects.
12944 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12946 # Library versioning type.
12947 version_type=$version_type
12949 # Format of library name prefix.
12950 libname_spec=$lt_libname_spec
12952 # List of archive names. First name is the real one, the rest are links.
12953 # The last name is the one that the linker finds with -lNAME.
12954 library_names_spec=$lt_library_names_spec
12956 # The coded name of the library, if different from the real name.
12957 soname_spec=$lt_soname_spec
12959 # Commands used to build and install an old-style archive.
12961 old_archive_cmds=$lt_old_archive_cmds_CXX
12962 old_postinstall_cmds=$lt_old_postinstall_cmds
12963 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12965 # Create an old-style archive from a shared archive.
12966 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12968 # Create a temporary old-style archive to link instead of a shared archive.
12969 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12971 # Commands used to build and install a shared archive.
12972 archive_cmds=$lt_archive_cmds_CXX
12973 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12974 postinstall_cmds=$lt_postinstall_cmds
12975 postuninstall_cmds=$lt_postuninstall_cmds
12977 # Commands used to build a loadable module (assumed same as above if empty)
12978 module_cmds=$lt_module_cmds_CXX
12979 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12981 # Commands to strip libraries.
12982 old_striplib=$lt_old_striplib
12983 striplib=$lt_striplib
12985 # Dependencies to place before the objects being linked to create a
12987 predep_objects=$lt_predep_objects_CXX
12989 # Dependencies to place after the objects being linked to create a
12991 postdep_objects=$lt_postdep_objects_CXX
12993 # Dependencies to place before the objects being linked to create a
12995 predeps=$lt_predeps_CXX
12997 # Dependencies to place after the objects being linked to create a
12999 postdeps=$lt_postdeps_CXX
13001 # The library search path used internally by the compiler when linking
13002 # a shared library.
13003 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13005 # Method to check whether dependent libraries are shared objects.
13006 deplibs_check_method=$lt_deplibs_check_method
13008 # Command to use when deplibs_check_method == file_magic.
13009 file_magic_cmd=$lt_file_magic_cmd
13011 # Flag that allows shared libraries with undefined symbols to be built.
13012 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13014 # Flag that forces no undefined symbols.
13015 no_undefined_flag=$lt_no_undefined_flag_CXX
13017 # Commands used to finish a libtool library installation in a directory.
13018 finish_cmds=$lt_finish_cmds
13020 # Same as above, but a single script fragment to be evaled but not shown.
13021 finish_eval=$lt_finish_eval
13023 # Take the output of nm and produce a listing of raw symbols and C names.
13024 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13026 # Transform the output of nm in a proper C declaration
13027 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13029 # Transform the output of nm in a C name address pair
13030 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13032 # This is the shared library runtime path variable.
13033 runpath_var=$runpath_var
13035 # This is the shared library path variable.
13036 shlibpath_var=$shlibpath_var
13038 # Is shlibpath searched before the hard-coded library search path?
13039 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13041 # How to hardcode a shared library path into an executable.
13042 hardcode_action=$hardcode_action_CXX
13044 # Whether we should hardcode library paths into libraries.
13045 hardcode_into_libs=$hardcode_into_libs
13047 # Flag to hardcode \$libdir into a binary during linking.
13048 # This must work even if \$libdir does not exist.
13049 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13051 # If ld is used when linking, flag to hardcode \$libdir into
13052 # a binary during linking. This must work even if \$libdir does
13054 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13056 # Whether we need a single -rpath flag with a separated argument.
13057 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13059 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13060 # resulting binary.
13061 hardcode_direct=$hardcode_direct_CXX
13063 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13064 # resulting binary.
13065 hardcode_minus_L=$hardcode_minus_L_CXX
13067 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13068 # the resulting binary.
13069 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13071 # Set to yes if building a shared library automatically hardcodes DIR into the library
13072 # and all subsequent libraries and executables linked against it.
13073 hardcode_automatic=$hardcode_automatic_CXX
13075 # Variables whose values should be saved in libtool wrapper scripts and
13076 # restored at relink time.
13077 variables_saved_for_relink="$variables_saved_for_relink"
13079 # Whether libtool must link a program against all its dependency libraries.
13080 link_all_deplibs=$link_all_deplibs_CXX
13082 # Compile-time system search path for libraries
13083 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13085 # Run-time system search path for libraries
13086 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13088 # Fix the shell variable \$srcfile for the compiler.
13089 fix_srcfile_path="$fix_srcfile_path_CXX"
13091 # Set to yes if exported symbols are required.
13092 always_export_symbols=$always_export_symbols_CXX
13094 # The commands to list exported symbols.
13095 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13097 # The commands to extract the exported symbol list from a shared archive.
13098 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13100 # Symbols that should not be listed in the preloaded symbols.
13101 exclude_expsyms=$lt_exclude_expsyms_CXX
13103 # Symbols that must always be exported.
13104 include_expsyms=$lt_include_expsyms_CXX
13106 # ### END LIBTOOL TAG CONFIG: $tagname
13112 # If there is no Makefile yet, we rely on a make rule to execute
13113 # `config.status --recheck' to rerun these tests and create the
13114 # libtool script then.
13115 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13116 if test -f "$ltmain_in"; then
13117 test -f Makefile && make "$ltmain"
13123 ac_cpp='$CPP $CPPFLAGS'
13124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13132 with_gnu_ldcxx=$with_gnu_ld
13133 with_gnu_ld=$lt_save_with_gnu_ld
13134 lt_cv_path_LDCXX=$lt_cv_path_LD
13135 lt_cv_path_LD=$lt_save_path_LD
13136 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13137 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13145 if test -n "$F77" && test "X$F77" != "Xno"; then
13148 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13149 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13150 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13153 archive_cmds_need_lc_F77=no
13154 allow_undefined_flag_F77=
13155 always_export_symbols_F77=no
13156 archive_expsym_cmds_F77=
13157 export_dynamic_flag_spec_F77=
13158 hardcode_direct_F77=no
13159 hardcode_libdir_flag_spec_F77=
13160 hardcode_libdir_flag_spec_ld_F77=
13161 hardcode_libdir_separator_F77=
13162 hardcode_minus_L_F77=no
13163 hardcode_automatic_F77=no
13165 module_expsym_cmds_F77=
13166 link_all_deplibs_F77=unknown
13167 old_archive_cmds_F77=$old_archive_cmds
13168 no_undefined_flag_F77=
13169 whole_archive_flag_spec_F77=
13170 enable_shared_with_static_runtimes_F77=no
13172 # Source file extension for f77 test sources.
13175 # Object file extension for compiled f77 test sources.
13179 # Code to be used in simple compile tests
13180 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13182 # Code to be used in simple link tests
13183 lt_simple_link_test_code=" program t\n end\n"
13185 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13187 # If no C compiler was specified, use CC.
13190 # If no C compiler flags were specified, use CFLAGS.
13191 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13193 # Allow CC to be a program name with arguments.
13197 # save warnings/boilerplate of simple test code
13198 ac_outfile=conftest.$ac_objext
13199 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13200 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13201 _lt_compiler_boilerplate=`cat conftest.err`
13204 ac_outfile=conftest.$ac_objext
13205 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13206 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13207 _lt_linker_boilerplate=`cat conftest.err`
13211 # Allow CC to be a program name with arguments.
13216 for cc_temp in $compiler""; do
13218 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13219 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13224 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13228 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13230 $as_echo "$can_build_shared" >&6; }
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13233 $as_echo_n "checking whether to build shared libraries... " >&6; }
13234 test "$can_build_shared" = "no" && enable_shared=no
13236 # On AIX, shared libraries and static libraries use the same namespace, and
13237 # are all built from PIC.
13240 test "$enable_shared" = yes && enable_static=no
13241 if test -n "$RANLIB"; then
13242 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13243 postinstall_cmds='$RANLIB $lib'
13247 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13248 test "$enable_shared" = yes && enable_static=no
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13253 $as_echo "$enable_shared" >&6; }
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13256 $as_echo_n "checking whether to build static libraries... " >&6; }
13257 # Make sure either enable_shared or enable_static is yes.
13258 test "$enable_shared" = yes || enable_static=yes
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13260 $as_echo "$enable_static" >&6; }
13265 lt_prog_compiler_wl_F77=
13266 lt_prog_compiler_pic_F77=
13267 lt_prog_compiler_static_F77=
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13270 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13272 if test "$GCC" = yes; then
13273 lt_prog_compiler_wl_F77='-Wl,'
13274 lt_prog_compiler_static_F77='-static'
13278 # All AIX code is PIC.
13279 if test "$host_cpu" = ia64; then
13280 # AIX 5 now supports IA64 processor
13281 lt_prog_compiler_static_F77='-Bstatic'
13286 # FIXME: we need at least 68020 code to build shared libraries, but
13287 # adding the `-m68020' flag to GCC prevents building anything better,
13289 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13292 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13293 # PIC is the default for these OSes.
13296 mingw* | pw32* | os2*)
13297 # This hack is so that the source file can tell whether it is being
13298 # built for inclusion in a dll (and should export symbols for example).
13299 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13302 darwin* | rhapsody*)
13303 # PIC is the default on this platform
13304 # Common symbols not allowed in MH_DYLIB files
13305 lt_prog_compiler_pic_F77='-fno-common'
13309 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13310 # Instead, we relocate shared libraries at runtime.
13314 # Just because we use GCC doesn't mean we suddenly get shared libraries
13315 # on systems that don't support them.
13316 lt_prog_compiler_can_build_shared_F77=no
13321 if test -d /usr/nec; then
13322 lt_prog_compiler_pic_F77=-Kconform_pic
13327 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13328 # not for PA HP-UX.
13334 lt_prog_compiler_pic_F77='-fPIC'
13340 lt_prog_compiler_pic_F77='-fPIC'
13344 # PORTME Check for flag to pass linker flags through the system compiler.
13347 lt_prog_compiler_wl_F77='-Wl,'
13348 if test "$host_cpu" = ia64; then
13349 # AIX 5 now supports IA64 processor
13350 lt_prog_compiler_static_F77='-Bstatic'
13352 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13356 # PIC is the default on this platform
13357 # Common symbols not allowed in MH_DYLIB files
13358 case $cc_basename in
13360 lt_prog_compiler_pic_F77='-qnocommon'
13361 lt_prog_compiler_wl_F77='-Wl,'
13366 mingw* | pw32* | os2*)
13367 # This hack is so that the source file can tell whether it is being
13368 # built for inclusion in a dll (and should export symbols for example).
13369 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13372 hpux9* | hpux10* | hpux11*)
13373 lt_prog_compiler_wl_F77='-Wl,'
13374 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13375 # not for PA HP-UX.
13381 lt_prog_compiler_pic_F77='+Z'
13384 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13385 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13388 irix5* | irix6* | nonstopux*)
13389 lt_prog_compiler_wl_F77='-Wl,'
13390 # PIC (with -KPIC) is the default.
13391 lt_prog_compiler_static_F77='-non_shared'
13395 lt_prog_compiler_pic_F77='-KPIC'
13396 lt_prog_compiler_static_F77='-Bstatic'
13400 case $cc_basename in
13402 lt_prog_compiler_wl_F77='-Wl,'
13403 lt_prog_compiler_pic_F77='-KPIC'
13404 lt_prog_compiler_static_F77='-static'
13406 pgcc* | pgf77* | pgf90* | pgf95*)
13407 # Portland Group compilers (*not* the Pentium gcc compiler,
13408 # which looks to be a dead project)
13409 lt_prog_compiler_wl_F77='-Wl,'
13410 lt_prog_compiler_pic_F77='-fpic'
13411 lt_prog_compiler_static_F77='-Bstatic'
13414 lt_prog_compiler_wl_F77='-Wl,'
13415 # All Alpha code is PIC.
13416 lt_prog_compiler_static_F77='-non_shared'
13421 osf3* | osf4* | osf5*)
13422 lt_prog_compiler_wl_F77='-Wl,'
13423 # All OSF/1 code is PIC.
13424 lt_prog_compiler_static_F77='-non_shared'
13428 lt_prog_compiler_pic_F77='-KPIC'
13429 lt_prog_compiler_static_F77='-Bstatic'
13430 case $cc_basename in
13431 f77* | f90* | f95*)
13432 lt_prog_compiler_wl_F77='-Qoption ld ';;
13434 lt_prog_compiler_wl_F77='-Wl,';;
13439 lt_prog_compiler_wl_F77='-Qoption ld '
13440 lt_prog_compiler_pic_F77='-PIC'
13441 lt_prog_compiler_static_F77='-Bstatic'
13444 sysv4 | sysv4.2uw2* | sysv4.3*)
13445 lt_prog_compiler_wl_F77='-Wl,'
13446 lt_prog_compiler_pic_F77='-KPIC'
13447 lt_prog_compiler_static_F77='-Bstatic'
13451 if test -d /usr/nec ;then
13452 lt_prog_compiler_pic_F77='-Kconform_pic'
13453 lt_prog_compiler_static_F77='-Bstatic'
13457 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13458 lt_prog_compiler_wl_F77='-Wl,'
13459 lt_prog_compiler_pic_F77='-KPIC'
13460 lt_prog_compiler_static_F77='-Bstatic'
13464 lt_prog_compiler_wl_F77='-Wl,'
13465 lt_prog_compiler_can_build_shared_F77=no
13469 lt_prog_compiler_pic_F77='-pic'
13470 lt_prog_compiler_static_F77='-Bstatic'
13474 lt_prog_compiler_can_build_shared_F77=no
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13480 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13483 # Check to make sure the PIC flag actually works.
13485 if test -n "$lt_prog_compiler_pic_F77"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13488 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13489 if ${lt_prog_compiler_pic_works_F77+:} false; then :
13490 $as_echo_n "(cached) " >&6
13492 lt_prog_compiler_pic_works_F77=no
13493 ac_outfile=conftest.$ac_objext
13494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13495 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13496 # Insert the option either (1) after the last *FLAGS variable, or
13497 # (2) before a word containing "conftest.", or (3) at the end.
13498 # Note that $ac_compile itself does not contain backslashes and begins
13499 # with a dollar sign (not a hyphen), so the echo should work correctly.
13500 # The option is referenced via a variable to avoid confusing sed.
13501 lt_compile=`echo "$ac_compile" | $SED \
13502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13504 -e 's:$: $lt_compiler_flag:'`
13505 (eval echo "\"\$as_me:13505: $lt_compile\"" >&5)
13506 (eval "$lt_compile" 2>conftest.err)
13508 cat conftest.err >&5
13509 echo "$as_me:13509: \$? = $ac_status" >&5
13510 if (exit $ac_status) && test -s "$ac_outfile"; then
13511 # The compiler can only warn and ignore the option if not recognized
13512 # So say no if there are warnings other than the usual output.
13513 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13515 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13516 lt_prog_compiler_pic_works_F77=yes
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
13523 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
13525 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13526 case $lt_prog_compiler_pic_F77 in
13528 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13531 lt_prog_compiler_pic_F77=
13532 lt_prog_compiler_can_build_shared_F77=no
13537 # For platforms which do not support PIC, -DPIC is meaningless:
13539 lt_prog_compiler_pic_F77=
13542 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13547 # Check to make sure the static flag actually works.
13549 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13551 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13552 if ${lt_prog_compiler_static_works_F77+:} false; then :
13553 $as_echo_n "(cached) " >&6
13555 lt_prog_compiler_static_works_F77=no
13556 save_LDFLAGS="$LDFLAGS"
13557 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13558 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13559 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13560 # The linker can only warn and ignore the option if not recognized
13561 # So say no if there are warnings
13562 if test -s conftest.err; then
13563 # Append any errors to the config.log.
13564 cat conftest.err 1>&5
13565 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13567 if diff conftest.exp conftest.er2 >/dev/null; then
13568 lt_prog_compiler_static_works_F77=yes
13571 lt_prog_compiler_static_works_F77=yes
13575 LDFLAGS="$save_LDFLAGS"
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_F77" >&5
13579 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
13581 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13584 lt_prog_compiler_static_F77=
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13589 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13590 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13591 $as_echo_n "(cached) " >&6
13593 lt_cv_prog_compiler_c_o_F77=no
13594 $rm -r conftest 2>/dev/null
13598 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13600 lt_compiler_flag="-o out/conftest2.$ac_objext"
13601 # Insert the option either (1) after the last *FLAGS variable, or
13602 # (2) before a word containing "conftest.", or (3) at the end.
13603 # Note that $ac_compile itself does not contain backslashes and begins
13604 # with a dollar sign (not a hyphen), so the echo should work correctly.
13605 lt_compile=`echo "$ac_compile" | $SED \
13606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13608 -e 's:$: $lt_compiler_flag:'`
13609 (eval echo "\"\$as_me:13609: $lt_compile\"" >&5)
13610 (eval "$lt_compile" 2>out/conftest.err)
13612 cat out/conftest.err >&5
13613 echo "$as_me:13613: \$? = $ac_status" >&5
13614 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13616 # The compiler can only warn and ignore the option if not recognized
13617 # So say no if there are warnings
13618 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13621 lt_cv_prog_compiler_c_o_F77=yes
13626 # SGI C++ compiler will create directory out/ii_files/ for
13627 # template instantiation
13628 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13629 $rm out/* && rmdir out
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13636 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13639 hard_links="nottested"
13640 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13641 # do not overwrite the value of need_locks provided by the user
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13643 $as_echo_n "checking if we can lock with hard links... " >&6; }
13646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13648 ln conftest.a conftest.b 2>&5 || hard_links=no
13649 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13651 $as_echo "$hard_links" >&6; }
13652 if test "$hard_links" = no; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13654 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13662 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13665 allow_undefined_flag_F77=
13666 enable_shared_with_static_runtimes_F77=no
13668 archive_expsym_cmds_F77=
13669 old_archive_From_new_cmds_F77=
13670 old_archive_from_expsyms_cmds_F77=
13671 export_dynamic_flag_spec_F77=
13672 whole_archive_flag_spec_F77=
13673 thread_safe_flag_spec_F77=
13674 hardcode_libdir_flag_spec_F77=
13675 hardcode_libdir_flag_spec_ld_F77=
13676 hardcode_libdir_separator_F77=
13677 hardcode_direct_F77=no
13678 hardcode_minus_L_F77=no
13679 hardcode_shlibpath_var_F77=unsupported
13680 link_all_deplibs_F77=unknown
13681 hardcode_automatic_F77=no
13683 module_expsym_cmds_F77=
13684 always_export_symbols_F77=no
13685 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13686 # include_expsyms should be a list of space-separated symbols to be *always*
13687 # included in the symbol list
13688 include_expsyms_F77=
13689 # exclude_expsyms can be an extended regexp of symbols to exclude
13690 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13691 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13692 # as well as any symbol that contains `d'.
13693 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13694 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13695 # platforms (ab)use it in PIC code, but their linkers get confused if
13696 # the symbol is explicitly referenced. Since portable code cannot
13697 # rely on this symbol name, it's probably fine to never include it in
13698 # preloaded symbol tables.
13699 extract_expsyms_cmds=
13700 # Just being paranoid about ensuring that cc_basename is set.
13701 for cc_temp in $compiler""; do
13703 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13704 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13709 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13712 cygwin* | mingw* | pw32*)
13713 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13714 # When not using gcc, we currently assume that we are using
13715 # Microsoft Visual C++.
13716 if test "$GCC" != yes; then
13721 # we just hope/assume this is gcc and not c89 (= MSVC++)
13730 if test "$with_gnu_ld" = yes; then
13731 # If archive_cmds runs LD, not CC, wlarc should be empty
13734 # Set some defaults for GNU ld with shared library support. These
13735 # are reset later if shared libraries are not supported. Putting them
13736 # here allows them to be overridden if necessary.
13737 runpath_var=LD_RUN_PATH
13738 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13739 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13740 # ancient GNU ld didn't support --whole-archive et. al.
13741 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13742 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13744 whole_archive_flag_spec_F77=
13746 supports_anon_versioning=no
13747 case `$LD -v 2>/dev/null` in
13748 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13749 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13750 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13751 *\ 2.11.*) ;; # other 2.11 versions
13752 *) supports_anon_versioning=yes ;;
13755 # See if GNU ld supports shared libraries.
13757 aix3* | aix4* | aix5*)
13758 # On AIX/PPC, the GNU linker is very broken
13759 if test "$host_cpu" != ia64; then
13763 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13764 *** to be unable to reliably create shared libraries on AIX.
13765 *** Therefore, libtool is disabling shared libraries support. If you
13766 *** really care for shared libraries, you may want to modify your PATH
13767 *** so that a non-GNU linker is found, and then restart.
13774 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)'
13775 hardcode_libdir_flag_spec_F77='-L$libdir'
13776 hardcode_minus_L_F77=yes
13778 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13779 # that the semantics of dynamic libraries on AmigaOS, at least up
13780 # to version 4, is to share data among multiple programs linked
13781 # with the same dynamic library. Since this doesn't match the
13782 # behavior of shared libraries on other platforms, we can't use
13788 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13789 allow_undefined_flag_F77=unsupported
13790 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13791 # support --undefined. This deserves some investigation. FIXME
13792 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13798 cygwin* | mingw* | pw32*)
13799 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13800 # as there is no search path for DLLs.
13801 hardcode_libdir_flag_spec_F77='-L$libdir'
13802 allow_undefined_flag_F77=unsupported
13803 always_export_symbols_F77=no
13804 enable_shared_with_static_runtimes_F77=yes
13805 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13807 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13808 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13809 # If the export-symbols file already is a .def file (1st line
13810 # is EXPORTS), use it as is; otherwise, prepend...
13811 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13812 cp $export_symbols $output_objdir/$soname.def;
13814 echo EXPORTS > $output_objdir/$soname.def;
13815 cat $export_symbols >> $output_objdir/$soname.def;
13817 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13824 hardcode_direct_F77=no
13825 hardcode_shlibpath_var_F77=no
13826 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13827 export_dynamic_flag_spec_F77='${wl}-E'
13828 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13829 # Instead, shared libraries are loaded at an image base (0x10000000 by
13830 # default) and relocated if they conflict, which is a slow very memory
13831 # consuming and fragmenting process. To avoid this, we pick a random,
13832 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13833 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13834 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'
13835 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'
13839 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13841 case $cc_basename,$host_cpu in
13842 pgcc*) # Portland Group C compiler
13843 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'
13844 tmp_addflag=' $pic_flag'
13846 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13847 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'
13848 tmp_addflag=' $pic_flag -Mnomain' ;;
13849 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13850 tmp_addflag=' -i_dynamic' ;;
13851 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13852 tmp_addflag=' -i_dynamic -nofor_main' ;;
13853 ifc* | ifort*) # Intel Fortran compiler
13854 tmp_addflag=' -nofor_main' ;;
13856 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13858 if test $supports_anon_versioning = yes; then
13859 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13860 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13861 $echo "local: *; };" >> $output_objdir/$libname.ver~
13862 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13870 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13871 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13874 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13875 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13880 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13884 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13885 *** create shared libraries on Solaris systems. Therefore, libtool
13886 *** is disabling shared libraries support. We urge you to upgrade GNU
13887 *** binutils to release 2.9.1 or newer. Another option is to modify
13888 *** your PATH or compiler configuration so that the native linker is
13889 *** used, and then restart.
13892 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13893 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13894 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13900 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13901 case `$LD -v 2>&1` in
13902 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13906 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13907 *** reliably create shared libraries on SCO systems. Therefore, libtool
13908 *** is disabling shared libraries support. We urge you to upgrade GNU
13909 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13910 *** your PATH or compiler configuration so that the native linker is
13911 *** used, and then restart.
13916 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13917 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13918 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13919 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13928 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13930 hardcode_direct_F77=yes
13931 hardcode_shlibpath_var_F77=no
13935 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13936 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13937 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13944 if test "$ld_shlibs_F77" = no; then
13946 hardcode_libdir_flag_spec_F77=
13947 export_dynamic_flag_spec_F77=
13948 whole_archive_flag_spec_F77=
13951 # PORTME fill in a description of your system's linker (not GNU ld)
13954 allow_undefined_flag_F77=unsupported
13955 always_export_symbols_F77=yes
13956 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'
13957 # Note: this linker hardcodes the directories in LIBPATH if there
13958 # are no directories specified by -L.
13959 hardcode_minus_L_F77=yes
13960 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13961 # Neither direct hardcoding nor static linking is supported with a
13963 hardcode_direct_F77=unsupported
13968 if test "$host_cpu" = ia64; then
13969 # On IA64, the linker does run time linking by default, so we don't
13970 # have to do anything special.
13971 aix_use_runtimelinking=no
13972 exp_sym_flag='-Bexport'
13975 # If we're using GNU nm, then we don't want the "-C" option.
13976 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13977 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13978 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'
13980 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'
13982 aix_use_runtimelinking=no
13984 # Test if we are trying to use run time linking or normal
13985 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13986 # need to do runtime linking.
13987 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13988 for ld_flag in $LDFLAGS; do
13989 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13990 aix_use_runtimelinking=yes
13997 exp_sym_flag='-bexport'
13998 no_entry_flag='-bnoentry'
14001 # When large executables or shared objects are built, AIX ld can
14002 # have problems creating the table of contents. If linking a library
14003 # or program results in "error TOC overflow" add -mminimal-toc to
14004 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14005 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14007 archive_cmds_F77=''
14008 hardcode_direct_F77=yes
14009 hardcode_libdir_separator_F77=':'
14010 link_all_deplibs_F77=yes
14012 if test "$GCC" = yes; then
14013 case $host_os in aix4.[012]|aix4.[012].*)
14014 # We only want to do this on AIX 4.2 and lower, the check
14015 # below for broken collect2 doesn't work under 4.3+
14016 collect2name=`${CC} -print-prog-name=collect2`
14017 if test -f "$collect2name" && \
14018 strings "$collect2name" | grep resolve_lib_name >/dev/null
14020 # We have reworked collect2
14021 hardcode_direct_F77=yes
14023 # We have old collect2
14024 hardcode_direct_F77=unsupported
14025 # It fails to find uninstalled libraries when the uninstalled
14026 # path is not listed in the libpath. Setting hardcode_minus_L
14027 # to unsupported forces relinking
14028 hardcode_minus_L_F77=yes
14029 hardcode_libdir_flag_spec_F77='-L$libdir'
14030 hardcode_libdir_separator_F77=
14034 shared_flag='-shared'
14035 if test "$aix_use_runtimelinking" = yes; then
14036 shared_flag="$shared_flag "'${wl}-G'
14040 if test "$host_cpu" = ia64; then
14041 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14042 # chokes on -Wl,-G. The following line is correct:
14045 if test "$aix_use_runtimelinking" = yes; then
14046 shared_flag='${wl}-G'
14048 shared_flag='${wl}-bM:SRE'
14053 # It seems that -bexpall does not export symbols beginning with
14054 # underscore (_), so it is better to generate a list of symbols to export.
14055 always_export_symbols_F77=yes
14056 if test "$aix_use_runtimelinking" = yes; then
14057 # Warning - without using the other runtime loading flags (-brtl),
14058 # -berok will link without error, but may produce a broken library.
14059 allow_undefined_flag_F77='-berok'
14060 # Determine the default libpath from the value encoded in an empty executable.
14061 cat > conftest.$ac_ext <<_ACEOF
14066 if ac_fn_f77_try_link "$LINENO"; then :
14068 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14070 # Check for a 64-bit object if we didn't find anything.
14071 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14074 rm -f core conftest.err conftest.$ac_objext \
14075 conftest$ac_exeext conftest.$ac_ext
14076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14078 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14079 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"
14081 if test "$host_cpu" = ia64; then
14082 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14083 allow_undefined_flag_F77="-z nodefs"
14084 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"
14086 # Determine the default libpath from the value encoded in an empty executable.
14087 cat > conftest.$ac_ext <<_ACEOF
14092 if ac_fn_f77_try_link "$LINENO"; then :
14094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14096 # Check for a 64-bit object if we didn't find anything.
14097 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14100 rm -f core conftest.err conftest.$ac_objext \
14101 conftest$ac_exeext conftest.$ac_ext
14102 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14104 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14105 # Warning - without using the other run time loading flags,
14106 # -berok will link without error, but may produce a broken library.
14107 no_undefined_flag_F77=' ${wl}-bernotok'
14108 allow_undefined_flag_F77=' ${wl}-berok'
14109 # Exported symbols can be pulled into shared objects from archives
14110 whole_archive_flag_spec_F77='$convenience'
14111 archive_cmds_need_lc_F77=yes
14112 # This is similar to how AIX traditionally builds its shared libraries.
14113 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'
14119 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)'
14120 hardcode_libdir_flag_spec_F77='-L$libdir'
14121 hardcode_minus_L_F77=yes
14122 # see comment about different semantics on the GNU ld section
14127 export_dynamic_flag_spec_F77=-rdynamic
14130 cygwin* | mingw* | pw32*)
14131 # When not using gcc, we currently assume that we are using
14132 # Microsoft Visual C++.
14133 # hardcode_libdir_flag_spec is actually meaningless, as there is
14134 # no search path for DLLs.
14135 hardcode_libdir_flag_spec_F77=' '
14136 allow_undefined_flag_F77=unsupported
14137 # Tell ltmain to make .lib files, not .a files.
14139 # Tell ltmain to make .dll files, not .so files.
14141 # FIXME: Setting linknames here is a bad hack.
14142 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14143 # The linker will automatically build a .lib file if we build a DLL.
14144 old_archive_From_new_cmds_F77='true'
14145 # FIXME: Should let the user specify the lib program.
14146 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14147 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14148 enable_shared_with_static_runtimes_F77=yes
14151 darwin* | rhapsody*)
14153 rhapsody* | darwin1.[012])
14154 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14157 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14158 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14160 case ${MACOSX_DEPLOYMENT_TARGET} in
14162 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14165 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14171 archive_cmds_need_lc_F77=no
14172 hardcode_direct_F77=no
14173 hardcode_automatic_F77=yes
14174 hardcode_shlibpath_var_F77=unsupported
14175 whole_archive_flag_spec_F77=''
14176 link_all_deplibs_F77=yes
14177 if test "$GCC" = yes ; then
14178 output_verbose_link_cmd='echo'
14179 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14180 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14181 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14182 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14183 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}'
14185 case $cc_basename in
14187 output_verbose_link_cmd='echo'
14188 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14189 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14190 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14191 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14192 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}'
14202 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14203 hardcode_libdir_flag_spec_F77='-L$libdir'
14204 hardcode_shlibpath_var_F77=no
14211 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14212 # support. Future versions do this automatically, but an explicit c++rt0.o
14213 # does not break anything, and helps significantly (at the cost of a little
14216 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14217 hardcode_libdir_flag_spec_F77='-R$libdir'
14218 hardcode_direct_F77=yes
14219 hardcode_shlibpath_var_F77=no
14222 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14224 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14225 hardcode_direct_F77=yes
14226 hardcode_minus_L_F77=yes
14227 hardcode_shlibpath_var_F77=no
14230 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14231 freebsd* | kfreebsd*-gnu | dragonfly*)
14232 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14233 hardcode_libdir_flag_spec_F77='-R$libdir'
14234 hardcode_direct_F77=yes
14235 hardcode_shlibpath_var_F77=no
14239 if test "$GCC" = yes; then
14240 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'
14242 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'
14244 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14245 hardcode_libdir_separator_F77=:
14246 hardcode_direct_F77=yes
14248 # hardcode_minus_L: Not really in the search PATH,
14249 # but as the default location of the library.
14250 hardcode_minus_L_F77=yes
14251 export_dynamic_flag_spec_F77='${wl}-E'
14255 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14256 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14258 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14260 if test "$with_gnu_ld" = no; then
14261 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14262 hardcode_libdir_separator_F77=:
14264 hardcode_direct_F77=yes
14265 export_dynamic_flag_spec_F77='${wl}-E'
14267 # hardcode_minus_L: Not really in the search PATH,
14268 # but as the default location of the library.
14269 hardcode_minus_L_F77=yes
14274 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14277 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14280 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14283 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14289 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14292 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14295 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14299 if test "$with_gnu_ld" = no; then
14300 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14301 hardcode_libdir_separator_F77=:
14305 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14306 hardcode_direct_F77=no
14307 hardcode_shlibpath_var_F77=no
14310 hardcode_direct_F77=yes
14311 export_dynamic_flag_spec_F77='${wl}-E'
14313 # hardcode_minus_L: Not really in the search PATH,
14314 # but as the default location of the library.
14315 hardcode_minus_L_F77=yes
14321 irix5* | irix6* | nonstopux*)
14322 if test "$GCC" = yes; then
14323 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'
14325 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'
14326 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14328 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14329 hardcode_libdir_separator_F77=:
14330 link_all_deplibs_F77=yes
14334 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14335 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14337 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14339 hardcode_libdir_flag_spec_F77='-R$libdir'
14340 hardcode_direct_F77=yes
14341 hardcode_shlibpath_var_F77=no
14345 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14346 hardcode_direct_F77=yes
14347 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14348 hardcode_libdir_separator_F77=:
14349 hardcode_shlibpath_var_F77=no
14353 hardcode_direct_F77=yes
14354 hardcode_shlibpath_var_F77=no
14355 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14356 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14357 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14358 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14359 export_dynamic_flag_spec_F77='${wl}-E'
14362 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14363 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14364 hardcode_libdir_flag_spec_F77='-R$libdir'
14367 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14368 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14375 hardcode_libdir_flag_spec_F77='-L$libdir'
14376 hardcode_minus_L_F77=yes
14377 allow_undefined_flag_F77=unsupported
14378 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'
14379 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14383 if test "$GCC" = yes; then
14384 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14385 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'
14387 allow_undefined_flag_F77=' -expect_unresolved \*'
14388 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'
14390 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14391 hardcode_libdir_separator_F77=:
14394 osf4* | osf5*) # as osf3* with the addition of -msym flag
14395 if test "$GCC" = yes; then
14396 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14397 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'
14398 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14400 allow_undefined_flag_F77=' -expect_unresolved \*'
14401 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'
14402 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~
14403 $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'
14405 # Both c and cxx compiler support -rpath directly
14406 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14408 hardcode_libdir_separator_F77=:
14412 no_undefined_flag_F77=' -z text'
14413 if test "$GCC" = yes; then
14415 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14416 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14417 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14420 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14421 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14422 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14424 hardcode_libdir_flag_spec_F77='-R$libdir'
14425 hardcode_shlibpath_var_F77=no
14427 solaris2.[0-5] | solaris2.[0-5].*) ;;
14429 # The compiler driver will combine linker options so we
14430 # cannot just pass the convience library names through
14431 # without $wl, iff we do not link with $LD.
14432 # Luckily, gcc supports the same syntax we need for Sun Studio.
14433 # Supported since Solaris 2.6 (maybe 2.5.1?)
14436 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14438 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14441 link_all_deplibs_F77=yes
14445 if test "x$host_vendor" = xsequent; then
14446 # Use $CC to link under sequent, because it throws in some extra .o
14447 # files that make .init and .fini sections work.
14448 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14450 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14452 hardcode_libdir_flag_spec_F77='-L$libdir'
14453 hardcode_direct_F77=yes
14454 hardcode_minus_L_F77=yes
14455 hardcode_shlibpath_var_F77=no
14459 case $host_vendor in
14461 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14462 hardcode_direct_F77=yes # is this really true???
14465 ## LD is ld it makes a PLAMLIB
14466 ## CC just makes a GrossModule.
14467 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14468 reload_cmds_F77='$CC -r -o $output$reload_objs'
14469 hardcode_direct_F77=no
14472 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14473 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14476 runpath_var='LD_RUN_PATH'
14477 hardcode_shlibpath_var_F77=no
14481 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14482 hardcode_shlibpath_var_F77=no
14483 export_dynamic_flag_spec_F77='-Bexport'
14487 if test -d /usr/nec; then
14488 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14489 hardcode_shlibpath_var_F77=no
14490 runpath_var=LD_RUN_PATH
14491 hardcode_runpath_var=yes
14496 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14497 no_undefined_flag_F77='${wl}-z,text'
14498 archive_cmds_need_lc_F77=no
14499 hardcode_shlibpath_var_F77=no
14500 runpath_var='LD_RUN_PATH'
14502 if test "$GCC" = yes; then
14503 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14504 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14506 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14507 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14511 sysv5* | sco3.2v5* | sco5v6*)
14512 # Note: We can NOT use -z defs as we might desire, because we do not
14513 # link with -lc, and that would cause any symbols used from libc to
14514 # always be unresolved, which means just about no library would
14515 # ever link correctly. If we're not using GNU ld we use -z text
14516 # though, which does catch some bad symbols but isn't as heavy-handed
14518 no_undefined_flag_F77='${wl}-z,text'
14519 allow_undefined_flag_F77='${wl}-z,nodefs'
14520 archive_cmds_need_lc_F77=no
14521 hardcode_shlibpath_var_F77=no
14522 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14523 hardcode_libdir_separator_F77=':'
14524 link_all_deplibs_F77=yes
14525 export_dynamic_flag_spec_F77='${wl}-Bexport'
14526 runpath_var='LD_RUN_PATH'
14528 if test "$GCC" = yes; then
14529 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14530 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14532 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14533 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14538 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14539 hardcode_libdir_flag_spec_F77='-L$libdir'
14540 hardcode_shlibpath_var_F77=no
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14550 $as_echo "$ld_shlibs_F77" >&6; }
14551 test "$ld_shlibs_F77" = no && can_build_shared=no
14554 # Do we need to explicitly link libc?
14556 case "x$archive_cmds_need_lc_F77" in
14558 # Assume -lc should be added
14559 archive_cmds_need_lc_F77=yes
14561 if test "$enable_shared" = yes && test "$GCC" = yes; then
14562 case $archive_cmds_F77 in
14564 # FIXME: we may have to deal with multi-command sequences.
14567 # Test whether the compiler implicitly links with -lc since on some
14568 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14569 # to ld, don't add -lc before -lgcc.
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14571 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14573 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14576 (eval $ac_compile) 2>&5
14578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14579 test $ac_status = 0; } 2>conftest.err; then
14582 libobjs=conftest.$ac_objext
14584 wl=$lt_prog_compiler_wl_F77
14585 pic_flag=$lt_prog_compiler_pic_F77
14591 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14592 allow_undefined_flag_F77=
14593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14594 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14597 test $ac_status = 0; }
14599 archive_cmds_need_lc_F77=no
14601 archive_cmds_need_lc_F77=yes
14603 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14605 cat conftest.err 1>&5
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14609 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14617 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14618 library_names_spec=
14619 libname_spec='lib$name'
14623 postuninstall_cmds=
14627 shlibpath_overrides_runpath=unknown
14629 dynamic_linker="$host_os ld.so"
14630 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14631 if test "$GCC" = yes; then
14632 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14633 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14634 # if the path contains ";" then we assume it to be the separator
14635 # otherwise default to the standard path separator (i.e. ":") - it is
14636 # assumed that no part of a normal pathname contains ";" but that should
14637 # okay in the real world where ";" in dirpaths is itself problematic.
14638 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14640 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14643 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14645 need_lib_prefix=unknown
14646 hardcode_into_libs=no
14648 # when you set need_version to no, make sure it does not cause -set_version
14649 # flags to be left without arguments
14650 need_version=unknown
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14656 shlibpath_var=LIBPATH
14658 # AIX 3 has no versioning support, so we append a major version to the name.
14659 soname_spec='${libname}${release}${shared_ext}$major'
14666 hardcode_into_libs=yes
14667 if test "$host_cpu" = ia64; then
14668 # AIX 5 supports IA64
14669 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14670 shlibpath_var=LD_LIBRARY_PATH
14672 # With GCC up to 2.95.x, collect2 would create an import file
14673 # for dependence libraries. The import file would start with
14674 # the line `#! .'. This would cause the generated library to
14675 # depend on `.', always an invalid library. This was fixed in
14676 # development snapshots of GCC prior to 3.0.
14678 aix4 | aix4.[01] | aix4.[01].*)
14679 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14681 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14684 can_build_shared=no
14688 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14689 # soname into executable. Probably we can add versioning support to
14690 # collect2, so additional links can be useful in future.
14691 if test "$aix_use_runtimelinking" = yes; then
14692 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14693 # instead of lib<name>.a to let people know that these are not
14694 # typical AIX shared libraries.
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697 # We preserve .a as extension for shared libraries through AIX4.2
14698 # and later when we are not doing run time linking.
14699 library_names_spec='${libname}${release}.a $libname.a'
14700 soname_spec='${libname}${release}${shared_ext}$major'
14702 shlibpath_var=LIBPATH
14707 library_names_spec='$libname.ixlibrary $libname.a'
14708 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14709 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'
14713 library_names_spec='${libname}${shared_ext}'
14714 dynamic_linker="$host_os ld.so"
14715 shlibpath_var=LIBRARY_PATH
14721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14722 soname_spec='${libname}${release}${shared_ext}$major'
14723 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14724 shlibpath_var=LD_LIBRARY_PATH
14725 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14726 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14727 # the default ld.so.conf also contains /usr/contrib/lib and
14728 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14729 # libtool to hard-code these into programs
14732 cygwin* | mingw* | pw32*)
14733 version_type=windows
14738 case $GCC,$host_os in
14739 yes,cygwin* | yes,mingw* | yes,pw32*)
14740 library_names_spec='$libname.dll.a'
14741 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14742 postinstall_cmds='base_file=`basename \${file}`~
14743 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14744 dldir=$destdir/`dirname \$dlpath`~
14745 test -d \$dldir || mkdir -p \$dldir~
14746 $install_prog $dir/$dlname \$dldir/$dlname~
14747 chmod a+x \$dldir/$dlname'
14748 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14749 dlpath=$dir/\$dldll~
14751 shlibpath_overrides_runpath=yes
14755 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14756 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14757 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14760 # MinGW DLLs use traditional 'lib' prefix
14761 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14762 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14763 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14764 # It is most probably a Windows format PATH printed by
14765 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14766 # path with ; separators, and with drive letters. We can handle the
14767 # drive letters (cygwin fileutils understands them), so leave them,
14768 # especially as we might pass files found there to a mingw objdump,
14769 # which wouldn't understand a cygwinified path. Ahh.
14770 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14772 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14776 # pw32 DLLs use 'pw' prefix rather than 'lib'
14777 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14783 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14786 dynamic_linker='Win32 ld.exe'
14787 # FIXME: first we should search . and the directory the executable is in
14791 darwin* | rhapsody*)
14792 dynamic_linker="$host_os dyld"
14793 version_type=darwin
14796 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14797 soname_spec='${libname}${release}${major}$shared_ext'
14798 shlibpath_overrides_runpath=yes
14799 shlibpath_var=DYLD_LIBRARY_PATH
14800 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14801 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14802 if test "$GCC" = yes; then
14803 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14805 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14807 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14815 soname_spec='${libname}${release}${shared_ext}$major'
14816 shlibpath_var=LD_LIBRARY_PATH
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14828 soname_spec='${libname}${release}${shared_ext}$major'
14829 shlibpath_var=LD_LIBRARY_PATH
14830 shlibpath_overrides_runpath=no
14831 hardcode_into_libs=yes
14832 dynamic_linker='GNU ld.so'
14835 freebsd* | dragonfly*)
14836 # DragonFly does not have aout. When/if they implement a new
14837 # versioning mechanism, adjust this.
14838 if test -x /usr/bin/objformat; then
14839 objformat=`/usr/bin/objformat`
14842 freebsd[123]*) objformat=aout ;;
14843 *) objformat=elf ;;
14846 version_type=freebsd-$objformat
14847 case $version_type in
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14858 shlibpath_var=LD_LIBRARY_PATH
14861 shlibpath_overrides_runpath=yes
14863 freebsd3.[01]* | freebsdelf3.[01]*)
14864 shlibpath_overrides_runpath=yes
14865 hardcode_into_libs=yes
14867 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14868 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14869 shlibpath_overrides_runpath=no
14870 hardcode_into_libs=yes
14872 freebsd*) # from 4.6 on
14873 shlibpath_overrides_runpath=yes
14874 hardcode_into_libs=yes
14883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14884 soname_spec='${libname}${release}${shared_ext}$major'
14885 shlibpath_var=LD_LIBRARY_PATH
14886 hardcode_into_libs=yes
14889 hpux9* | hpux10* | hpux11*)
14890 # Give a soname corresponding to the major version so that dld.sl refuses to
14891 # link against other versions.
14898 hardcode_into_libs=yes
14899 dynamic_linker="$host_os dld.so"
14900 shlibpath_var=LD_LIBRARY_PATH
14901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14903 soname_spec='${libname}${release}${shared_ext}$major'
14904 if test "X$HPUX_IA64_MODE" = X32; then
14905 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14907 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14913 hardcode_into_libs=yes
14914 dynamic_linker="$host_os dld.sl"
14915 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14918 soname_spec='${libname}${release}${shared_ext}$major'
14919 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14924 dynamic_linker="$host_os dld.sl"
14925 shlibpath_var=SHLIB_PATH
14926 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14928 soname_spec='${libname}${release}${shared_ext}$major'
14931 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14932 postinstall_cmds='chmod 555 $lib'
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14940 soname_spec='${libname}${release}${shared_ext}$major'
14941 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14942 shlibpath_var=LD_LIBRARY_PATH
14943 shlibpath_overrides_runpath=no
14944 hardcode_into_libs=yes
14947 irix5* | irix6* | nonstopux*)
14949 nonstopux*) version_type=nonstopux ;;
14951 if test "$lt_cv_prog_gnu_ld" = yes; then
14959 soname_spec='${libname}${release}${shared_ext}$major'
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14962 irix5* | nonstopux*)
14963 libsuff= shlibsuff=
14966 case $LD in # libtool.m4 will add one of these switches to LD
14967 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14968 libsuff= shlibsuff= libmagic=32-bit;;
14969 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14970 libsuff=32 shlibsuff=N32 libmagic=N32;;
14971 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14972 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14973 *) libsuff= shlibsuff= libmagic=never-match;;
14977 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14978 shlibpath_overrides_runpath=no
14979 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14980 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14981 hardcode_into_libs=yes
14984 # No shared lib support for Linux oldld, aout, or coff.
14985 linux*oldld* | linux*aout* | linux*coff*)
14989 # This must be Linux ELF.
14994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14995 soname_spec='${libname}${release}${shared_ext}$major'
14996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14997 shlibpath_var=LD_LIBRARY_PATH
14998 shlibpath_overrides_runpath=no
14999 # This implies no fast_install, which is unacceptable.
15000 # Some rework will be needed to allow for fast_install
15001 # before this can be enabled.
15002 hardcode_into_libs=yes
15004 # Append ld.so.conf contents to the search path
15005 if test -f /etc/ld.so.conf; then
15006 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15007 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15010 # We used to test for /lib/ld.so.1 and disable shared libraries on
15011 # powerpc, because MkLinux only supported shared libraries with the
15012 # GNU dynamic linker. Since this was broken with cross compilers,
15013 # most powerpc-linux boxes support dynamic linking these days and
15014 # people can always --disable-shared, the test was removed, and we
15015 # assume the GNU/Linux dynamic linker is in use.
15016 dynamic_linker='GNU/Linux ld.so'
15023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15024 soname_spec='${libname}${release}${shared_ext}$major'
15025 shlibpath_var=LD_LIBRARY_PATH
15026 shlibpath_overrides_runpath=no
15027 hardcode_into_libs=yes
15028 dynamic_linker='GNU ld.so'
15035 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15038 dynamic_linker='NetBSD (a.out) ld.so'
15040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15041 soname_spec='${libname}${release}${shared_ext}$major'
15042 dynamic_linker='NetBSD ld.elf_so'
15044 shlibpath_var=LD_LIBRARY_PATH
15045 shlibpath_overrides_runpath=yes
15046 hardcode_into_libs=yes
15051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15052 shlibpath_var=LD_LIBRARY_PATH
15053 shlibpath_overrides_runpath=yes
15060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15061 soname_spec='${libname}${release}${shared_ext}$major'
15062 shlibpath_var=LD_LIBRARY_PATH
15063 shlibpath_overrides_runpath=yes
15068 sys_lib_dlsearch_path_spec="/usr/lib"
15070 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15072 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15073 *) need_version=no ;;
15075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15077 shlibpath_var=LD_LIBRARY_PATH
15078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15080 openbsd2.[89] | openbsd2.[89].*)
15081 shlibpath_overrides_runpath=no
15084 shlibpath_overrides_runpath=yes
15088 shlibpath_overrides_runpath=yes
15093 libname_spec='$name'
15096 library_names_spec='$libname${shared_ext} $libname.a'
15097 dynamic_linker='OS/2 ld.exe'
15098 shlibpath_var=LIBPATH
15101 osf3* | osf4* | osf5*)
15105 soname_spec='${libname}${release}${shared_ext}$major'
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15107 shlibpath_var=LD_LIBRARY_PATH
15108 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15109 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15117 soname_spec='${libname}${release}${shared_ext}$major'
15118 shlibpath_var=LD_LIBRARY_PATH
15119 shlibpath_overrides_runpath=yes
15120 hardcode_into_libs=yes
15121 # ldd complains unless libraries are executable
15122 postinstall_cmds='chmod +x $lib'
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15128 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15129 shlibpath_var=LD_LIBRARY_PATH
15130 shlibpath_overrides_runpath=yes
15131 if test "$with_gnu_ld" = yes; then
15139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15140 soname_spec='${libname}${release}${shared_ext}$major'
15141 shlibpath_var=LD_LIBRARY_PATH
15142 case $host_vendor in
15144 shlibpath_overrides_runpath=no
15146 export_dynamic_flag_spec='${wl}-Blargedynsym'
15147 runpath_var=LD_RUN_PATH
15155 shlibpath_overrides_runpath=no
15156 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15162 if test -d /usr/nec ;then
15164 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15165 soname_spec='$libname${shared_ext}.$major'
15166 shlibpath_var=LD_LIBRARY_PATH
15170 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15171 version_type=freebsd-elf
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15175 soname_spec='${libname}${release}${shared_ext}$major'
15176 shlibpath_var=LD_LIBRARY_PATH
15177 hardcode_into_libs=yes
15178 if test "$with_gnu_ld" = yes; then
15179 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15180 shlibpath_overrides_runpath=no
15182 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15183 shlibpath_overrides_runpath=yes
15186 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15190 sys_lib_dlsearch_path_spec='/usr/lib'
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 soname_spec='${libname}${release}${shared_ext}$major'
15197 shlibpath_var=LD_LIBRARY_PATH
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15205 $as_echo "$dynamic_linker" >&6; }
15206 test "$dynamic_linker" = no && can_build_shared=no
15208 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15209 if test "$GCC" = yes; then
15210 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15214 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15215 hardcode_action_F77=
15216 if test -n "$hardcode_libdir_flag_spec_F77" || \
15217 test -n "$runpath_var_F77" || \
15218 test "X$hardcode_automatic_F77" = "Xyes" ; then
15220 # We can hardcode non-existant directories.
15221 if test "$hardcode_direct_F77" != no &&
15222 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15223 # have to relink, otherwise we might link with an installed library
15224 # when we should be linking with a yet-to-be-installed one
15225 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15226 test "$hardcode_minus_L_F77" != no; then
15227 # Linking always hardcodes the temporary library directory.
15228 hardcode_action_F77=relink
15230 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15231 hardcode_action_F77=immediate
15234 # We cannot hardcode anything, or else we can only hardcode existing
15236 hardcode_action_F77=unsupported
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15239 $as_echo "$hardcode_action_F77" >&6; }
15241 if test "$hardcode_action_F77" = relink; then
15242 # Fast installation is not supported
15243 enable_fast_install=no
15244 elif test "$shlibpath_overrides_runpath" = yes ||
15245 test "$enable_shared" = no; then
15246 # Fast installation is not necessary
15247 enable_fast_install=needless
15251 # The else clause should only fire when bootstrapping the
15252 # libtool distribution, otherwise you forgot to ship ltmain.sh
15253 # with your package, and you will get complaints that there are
15254 # no rules to generate ltmain.sh.
15255 if test -f "$ltmain"; then
15256 # See if we are running on zsh, and set the options which allow our commands through
15257 # without removal of \ escapes.
15258 if test -n "${ZSH_VERSION+set}" ; then
15259 setopt NO_GLOB_SUBST
15261 # Now quote all the things that may contain metacharacters while being
15262 # careful not to overquote the AC_SUBSTed values. We take copies of the
15263 # variables and quote the copies for generation of the libtool script.
15264 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15266 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15267 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15268 deplibs_check_method reload_flag reload_cmds need_locks \
15269 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15270 lt_cv_sys_global_symbol_to_c_name_address \
15271 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15272 old_postinstall_cmds old_postuninstall_cmds \
15276 lt_prog_compiler_wl_F77 \
15277 lt_prog_compiler_pic_F77 \
15278 lt_prog_compiler_static_F77 \
15279 lt_prog_compiler_no_builtin_flag_F77 \
15280 export_dynamic_flag_spec_F77 \
15281 thread_safe_flag_spec_F77 \
15282 whole_archive_flag_spec_F77 \
15283 enable_shared_with_static_runtimes_F77 \
15284 old_archive_cmds_F77 \
15285 old_archive_from_new_cmds_F77 \
15286 predep_objects_F77 \
15287 postdep_objects_F77 \
15290 compiler_lib_search_path_F77 \
15292 archive_expsym_cmds_F77 \
15293 postinstall_cmds_F77 \
15294 postuninstall_cmds_F77 \
15295 old_archive_from_expsyms_cmds_F77 \
15296 allow_undefined_flag_F77 \
15297 no_undefined_flag_F77 \
15298 export_symbols_cmds_F77 \
15299 hardcode_libdir_flag_spec_F77 \
15300 hardcode_libdir_flag_spec_ld_F77 \
15301 hardcode_libdir_separator_F77 \
15302 hardcode_automatic_F77 \
15304 module_expsym_cmds_F77 \
15305 lt_cv_prog_compiler_c_o_F77 \
15306 exclude_expsyms_F77 \
15307 include_expsyms_F77; do
15310 old_archive_cmds_F77 | \
15311 old_archive_from_new_cmds_F77 | \
15312 archive_cmds_F77 | \
15313 archive_expsym_cmds_F77 | \
15314 module_cmds_F77 | \
15315 module_expsym_cmds_F77 | \
15316 old_archive_from_expsyms_cmds_F77 | \
15317 export_symbols_cmds_F77 | \
15318 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15319 postinstall_cmds | postuninstall_cmds | \
15320 old_postinstall_cmds | old_postuninstall_cmds | \
15321 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15322 # Double-quote double-evaled strings.
15323 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15326 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15332 *'\$0 --fallback-echo"')
15333 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15339 cat <<__EOF__ >> "$cfgfile"
15340 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15342 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15344 # Shell to use when invoking shell scripts.
15347 # Whether or not to build shared libraries.
15348 build_libtool_libs=$enable_shared
15350 # Whether or not to build static libraries.
15351 build_old_libs=$enable_static
15353 # Whether or not to add -lc for building shared libraries.
15354 build_libtool_need_lc=$archive_cmds_need_lc_F77
15356 # Whether or not to disallow shared libs when runtime libs are static
15357 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15359 # Whether or not to optimize for fast installation.
15360 fast_install=$enable_fast_install
15363 host_alias=$host_alias
15367 # The build system.
15368 build_alias=$build_alias
15372 # An echo program that does not interpret backslashes.
15377 AR_FLAGS=$lt_AR_FLAGS
15382 # LTCC compiler flags.
15383 LTCFLAGS=$lt_LTCFLAGS
15385 # A language-specific compiler.
15386 CC=$lt_compiler_F77
15388 # Is the compiler the GNU C compiler?
15394 # The linker used to build libraries.
15397 # Whether we need hard or soft links.
15400 # A BSD-compatible nm program.
15403 # A symbol stripping program
15406 # Used to examine libraries when file_magic_cmd begins "file"
15407 MAGIC_CMD=$MAGIC_CMD
15409 # Used on cygwin: DLL creation program.
15412 # Used on cygwin: object dumper.
15415 # Used on cygwin: assembler.
15418 # The name of the directory that contains temporary libtool files.
15421 # How to create reloadable object files.
15422 reload_flag=$lt_reload_flag
15423 reload_cmds=$lt_reload_cmds
15425 # How to pass a linker flag through the compiler.
15426 wl=$lt_lt_prog_compiler_wl_F77
15428 # Object file suffix (normally "o").
15429 objext="$ac_objext"
15431 # Old archive suffix (normally "a").
15434 # Shared library suffix (normally ".so").
15435 shrext_cmds='$shrext_cmds'
15437 # Executable file suffix (normally "").
15440 # Additional compiler flags for building library objects.
15441 pic_flag=$lt_lt_prog_compiler_pic_F77
15444 # What is the maximum length of a command?
15445 max_cmd_len=$lt_cv_sys_max_cmd_len
15447 # Does compiler simultaneously support -c and -o options?
15448 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15450 # Must we lock files when doing compilation?
15451 need_locks=$lt_need_locks
15453 # Do we need the lib prefix for modules?
15454 need_lib_prefix=$need_lib_prefix
15456 # Do we need a version for libraries?
15457 need_version=$need_version
15459 # Whether dlopen is supported.
15460 dlopen_support=$enable_dlopen
15462 # Whether dlopen of programs is supported.
15463 dlopen_self=$enable_dlopen_self
15465 # Whether dlopen of statically linked programs is supported.
15466 dlopen_self_static=$enable_dlopen_self_static
15468 # Compiler flag to prevent dynamic linking.
15469 link_static_flag=$lt_lt_prog_compiler_static_F77
15471 # Compiler flag to turn off builtin functions.
15472 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15474 # Compiler flag to allow reflexive dlopens.
15475 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15477 # Compiler flag to generate shared objects directly from archives.
15478 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15480 # Compiler flag to generate thread-safe objects.
15481 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15483 # Library versioning type.
15484 version_type=$version_type
15486 # Format of library name prefix.
15487 libname_spec=$lt_libname_spec
15489 # List of archive names. First name is the real one, the rest are links.
15490 # The last name is the one that the linker finds with -lNAME.
15491 library_names_spec=$lt_library_names_spec
15493 # The coded name of the library, if different from the real name.
15494 soname_spec=$lt_soname_spec
15496 # Commands used to build and install an old-style archive.
15498 old_archive_cmds=$lt_old_archive_cmds_F77
15499 old_postinstall_cmds=$lt_old_postinstall_cmds
15500 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15502 # Create an old-style archive from a shared archive.
15503 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15505 # Create a temporary old-style archive to link instead of a shared archive.
15506 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15508 # Commands used to build and install a shared archive.
15509 archive_cmds=$lt_archive_cmds_F77
15510 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15511 postinstall_cmds=$lt_postinstall_cmds
15512 postuninstall_cmds=$lt_postuninstall_cmds
15514 # Commands used to build a loadable module (assumed same as above if empty)
15515 module_cmds=$lt_module_cmds_F77
15516 module_expsym_cmds=$lt_module_expsym_cmds_F77
15518 # Commands to strip libraries.
15519 old_striplib=$lt_old_striplib
15520 striplib=$lt_striplib
15522 # Dependencies to place before the objects being linked to create a
15524 predep_objects=$lt_predep_objects_F77
15526 # Dependencies to place after the objects being linked to create a
15528 postdep_objects=$lt_postdep_objects_F77
15530 # Dependencies to place before the objects being linked to create a
15532 predeps=$lt_predeps_F77
15534 # Dependencies to place after the objects being linked to create a
15536 postdeps=$lt_postdeps_F77
15538 # The library search path used internally by the compiler when linking
15539 # a shared library.
15540 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15542 # Method to check whether dependent libraries are shared objects.
15543 deplibs_check_method=$lt_deplibs_check_method
15545 # Command to use when deplibs_check_method == file_magic.
15546 file_magic_cmd=$lt_file_magic_cmd
15548 # Flag that allows shared libraries with undefined symbols to be built.
15549 allow_undefined_flag=$lt_allow_undefined_flag_F77
15551 # Flag that forces no undefined symbols.
15552 no_undefined_flag=$lt_no_undefined_flag_F77
15554 # Commands used to finish a libtool library installation in a directory.
15555 finish_cmds=$lt_finish_cmds
15557 # Same as above, but a single script fragment to be evaled but not shown.
15558 finish_eval=$lt_finish_eval
15560 # Take the output of nm and produce a listing of raw symbols and C names.
15561 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15563 # Transform the output of nm in a proper C declaration
15564 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15566 # Transform the output of nm in a C name address pair
15567 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15569 # This is the shared library runtime path variable.
15570 runpath_var=$runpath_var
15572 # This is the shared library path variable.
15573 shlibpath_var=$shlibpath_var
15575 # Is shlibpath searched before the hard-coded library search path?
15576 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15578 # How to hardcode a shared library path into an executable.
15579 hardcode_action=$hardcode_action_F77
15581 # Whether we should hardcode library paths into libraries.
15582 hardcode_into_libs=$hardcode_into_libs
15584 # Flag to hardcode \$libdir into a binary during linking.
15585 # This must work even if \$libdir does not exist.
15586 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15588 # If ld is used when linking, flag to hardcode \$libdir into
15589 # a binary during linking. This must work even if \$libdir does
15591 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15593 # Whether we need a single -rpath flag with a separated argument.
15594 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15596 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15597 # resulting binary.
15598 hardcode_direct=$hardcode_direct_F77
15600 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15601 # resulting binary.
15602 hardcode_minus_L=$hardcode_minus_L_F77
15604 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15605 # the resulting binary.
15606 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15608 # Set to yes if building a shared library automatically hardcodes DIR into the library
15609 # and all subsequent libraries and executables linked against it.
15610 hardcode_automatic=$hardcode_automatic_F77
15612 # Variables whose values should be saved in libtool wrapper scripts and
15613 # restored at relink time.
15614 variables_saved_for_relink="$variables_saved_for_relink"
15616 # Whether libtool must link a program against all its dependency libraries.
15617 link_all_deplibs=$link_all_deplibs_F77
15619 # Compile-time system search path for libraries
15620 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15622 # Run-time system search path for libraries
15623 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15625 # Fix the shell variable \$srcfile for the compiler.
15626 fix_srcfile_path="$fix_srcfile_path_F77"
15628 # Set to yes if exported symbols are required.
15629 always_export_symbols=$always_export_symbols_F77
15631 # The commands to list exported symbols.
15632 export_symbols_cmds=$lt_export_symbols_cmds_F77
15634 # The commands to extract the exported symbol list from a shared archive.
15635 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15637 # Symbols that should not be listed in the preloaded symbols.
15638 exclude_expsyms=$lt_exclude_expsyms_F77
15640 # Symbols that must always be exported.
15641 include_expsyms=$lt_include_expsyms_F77
15643 # ### END LIBTOOL TAG CONFIG: $tagname
15649 # If there is no Makefile yet, we rely on a make rule to execute
15650 # `config.status --recheck' to rerun these tests and create the
15651 # libtool script then.
15652 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15653 if test -f "$ltmain_in"; then
15654 test -f Makefile && make "$ltmain"
15660 ac_cpp='$CPP $CPPFLAGS'
15661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15673 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15676 # Source file extension for Java test sources.
15679 # Object file extension for compiled Java test sources.
15683 # Code to be used in simple compile tests
15684 lt_simple_compile_test_code="class foo {}\n"
15686 # Code to be used in simple link tests
15687 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15689 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15691 # If no C compiler was specified, use CC.
15694 # If no C compiler flags were specified, use CFLAGS.
15695 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15697 # Allow CC to be a program name with arguments.
15701 # save warnings/boilerplate of simple test code
15702 ac_outfile=conftest.$ac_objext
15703 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15704 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15705 _lt_compiler_boilerplate=`cat conftest.err`
15708 ac_outfile=conftest.$ac_objext
15709 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15710 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15711 _lt_linker_boilerplate=`cat conftest.err`
15715 # Allow CC to be a program name with arguments.
15720 for cc_temp in $compiler""; do
15722 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15723 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15728 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15731 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15732 archive_cmds_need_lc_GCJ=no
15734 old_archive_cmds_GCJ=$old_archive_cmds
15737 lt_prog_compiler_no_builtin_flag_GCJ=
15739 if test "$GCC" = yes; then
15740 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15744 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15745 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15746 $as_echo_n "(cached) " >&6
15748 lt_cv_prog_compiler_rtti_exceptions=no
15749 ac_outfile=conftest.$ac_objext
15750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15751 lt_compiler_flag="-fno-rtti -fno-exceptions"
15752 # Insert the option either (1) after the last *FLAGS variable, or
15753 # (2) before a word containing "conftest.", or (3) at the end.
15754 # Note that $ac_compile itself does not contain backslashes and begins
15755 # with a dollar sign (not a hyphen), so the echo should work correctly.
15756 # The option is referenced via a variable to avoid confusing sed.
15757 lt_compile=`echo "$ac_compile" | $SED \
15758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15760 -e 's:$: $lt_compiler_flag:'`
15761 (eval echo "\"\$as_me:15761: $lt_compile\"" >&5)
15762 (eval "$lt_compile" 2>conftest.err)
15764 cat conftest.err >&5
15765 echo "$as_me:15765: \$? = $ac_status" >&5
15766 if (exit $ac_status) && test -s "$ac_outfile"; then
15767 # The compiler can only warn and ignore the option if not recognized
15768 # So say no if there are warnings other than the usual output.
15769 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15772 lt_cv_prog_compiler_rtti_exceptions=yes
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15779 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15781 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15782 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15789 lt_prog_compiler_wl_GCJ=
15790 lt_prog_compiler_pic_GCJ=
15791 lt_prog_compiler_static_GCJ=
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15794 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15796 if test "$GCC" = yes; then
15797 lt_prog_compiler_wl_GCJ='-Wl,'
15798 lt_prog_compiler_static_GCJ='-static'
15802 # All AIX code is PIC.
15803 if test "$host_cpu" = ia64; then
15804 # AIX 5 now supports IA64 processor
15805 lt_prog_compiler_static_GCJ='-Bstatic'
15810 # FIXME: we need at least 68020 code to build shared libraries, but
15811 # adding the `-m68020' flag to GCC prevents building anything better,
15813 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15816 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15817 # PIC is the default for these OSes.
15820 mingw* | pw32* | os2*)
15821 # This hack is so that the source file can tell whether it is being
15822 # built for inclusion in a dll (and should export symbols for example).
15823 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15826 darwin* | rhapsody*)
15827 # PIC is the default on this platform
15828 # Common symbols not allowed in MH_DYLIB files
15829 lt_prog_compiler_pic_GCJ='-fno-common'
15833 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15834 # Instead, we relocate shared libraries at runtime.
15838 # Just because we use GCC doesn't mean we suddenly get shared libraries
15839 # on systems that don't support them.
15840 lt_prog_compiler_can_build_shared_GCJ=no
15845 if test -d /usr/nec; then
15846 lt_prog_compiler_pic_GCJ=-Kconform_pic
15851 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15852 # not for PA HP-UX.
15858 lt_prog_compiler_pic_GCJ='-fPIC'
15864 lt_prog_compiler_pic_GCJ='-fPIC'
15868 # PORTME Check for flag to pass linker flags through the system compiler.
15871 lt_prog_compiler_wl_GCJ='-Wl,'
15872 if test "$host_cpu" = ia64; then
15873 # AIX 5 now supports IA64 processor
15874 lt_prog_compiler_static_GCJ='-Bstatic'
15876 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15880 # PIC is the default on this platform
15881 # Common symbols not allowed in MH_DYLIB files
15882 case $cc_basename in
15884 lt_prog_compiler_pic_GCJ='-qnocommon'
15885 lt_prog_compiler_wl_GCJ='-Wl,'
15890 mingw* | pw32* | os2*)
15891 # This hack is so that the source file can tell whether it is being
15892 # built for inclusion in a dll (and should export symbols for example).
15893 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15896 hpux9* | hpux10* | hpux11*)
15897 lt_prog_compiler_wl_GCJ='-Wl,'
15898 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15899 # not for PA HP-UX.
15905 lt_prog_compiler_pic_GCJ='+Z'
15908 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15909 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15912 irix5* | irix6* | nonstopux*)
15913 lt_prog_compiler_wl_GCJ='-Wl,'
15914 # PIC (with -KPIC) is the default.
15915 lt_prog_compiler_static_GCJ='-non_shared'
15919 lt_prog_compiler_pic_GCJ='-KPIC'
15920 lt_prog_compiler_static_GCJ='-Bstatic'
15924 case $cc_basename in
15926 lt_prog_compiler_wl_GCJ='-Wl,'
15927 lt_prog_compiler_pic_GCJ='-KPIC'
15928 lt_prog_compiler_static_GCJ='-static'
15930 pgcc* | pgf77* | pgf90* | pgf95*)
15931 # Portland Group compilers (*not* the Pentium gcc compiler,
15932 # which looks to be a dead project)
15933 lt_prog_compiler_wl_GCJ='-Wl,'
15934 lt_prog_compiler_pic_GCJ='-fpic'
15935 lt_prog_compiler_static_GCJ='-Bstatic'
15938 lt_prog_compiler_wl_GCJ='-Wl,'
15939 # All Alpha code is PIC.
15940 lt_prog_compiler_static_GCJ='-non_shared'
15945 osf3* | osf4* | osf5*)
15946 lt_prog_compiler_wl_GCJ='-Wl,'
15947 # All OSF/1 code is PIC.
15948 lt_prog_compiler_static_GCJ='-non_shared'
15952 lt_prog_compiler_pic_GCJ='-KPIC'
15953 lt_prog_compiler_static_GCJ='-Bstatic'
15954 case $cc_basename in
15955 f77* | f90* | f95*)
15956 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15958 lt_prog_compiler_wl_GCJ='-Wl,';;
15963 lt_prog_compiler_wl_GCJ='-Qoption ld '
15964 lt_prog_compiler_pic_GCJ='-PIC'
15965 lt_prog_compiler_static_GCJ='-Bstatic'
15968 sysv4 | sysv4.2uw2* | sysv4.3*)
15969 lt_prog_compiler_wl_GCJ='-Wl,'
15970 lt_prog_compiler_pic_GCJ='-KPIC'
15971 lt_prog_compiler_static_GCJ='-Bstatic'
15975 if test -d /usr/nec ;then
15976 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15977 lt_prog_compiler_static_GCJ='-Bstatic'
15981 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15982 lt_prog_compiler_wl_GCJ='-Wl,'
15983 lt_prog_compiler_pic_GCJ='-KPIC'
15984 lt_prog_compiler_static_GCJ='-Bstatic'
15988 lt_prog_compiler_wl_GCJ='-Wl,'
15989 lt_prog_compiler_can_build_shared_GCJ=no
15993 lt_prog_compiler_pic_GCJ='-pic'
15994 lt_prog_compiler_static_GCJ='-Bstatic'
15998 lt_prog_compiler_can_build_shared_GCJ=no
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16004 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16007 # Check to make sure the PIC flag actually works.
16009 if test -n "$lt_prog_compiler_pic_GCJ"; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16012 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16013 if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
16014 $as_echo_n "(cached) " >&6
16016 lt_prog_compiler_pic_works_GCJ=no
16017 ac_outfile=conftest.$ac_objext
16018 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16019 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16020 # Insert the option either (1) after the last *FLAGS variable, or
16021 # (2) before a word containing "conftest.", or (3) at the end.
16022 # Note that $ac_compile itself does not contain backslashes and begins
16023 # with a dollar sign (not a hyphen), so the echo should work correctly.
16024 # The option is referenced via a variable to avoid confusing sed.
16025 lt_compile=`echo "$ac_compile" | $SED \
16026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16028 -e 's:$: $lt_compiler_flag:'`
16029 (eval echo "\"\$as_me:16029: $lt_compile\"" >&5)
16030 (eval "$lt_compile" 2>conftest.err)
16032 cat conftest.err >&5
16033 echo "$as_me:16033: \$? = $ac_status" >&5
16034 if (exit $ac_status) && test -s "$ac_outfile"; then
16035 # The compiler can only warn and ignore the option if not recognized
16036 # So say no if there are warnings other than the usual output.
16037 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16039 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16040 lt_prog_compiler_pic_works_GCJ=yes
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
16047 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16049 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16050 case $lt_prog_compiler_pic_GCJ in
16052 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16055 lt_prog_compiler_pic_GCJ=
16056 lt_prog_compiler_can_build_shared_GCJ=no
16061 # For platforms which do not support PIC, -DPIC is meaningless:
16063 lt_prog_compiler_pic_GCJ=
16066 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16071 # Check to make sure the static flag actually works.
16073 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16075 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16076 if ${lt_prog_compiler_static_works_GCJ+:} false; then :
16077 $as_echo_n "(cached) " >&6
16079 lt_prog_compiler_static_works_GCJ=no
16080 save_LDFLAGS="$LDFLAGS"
16081 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16082 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16083 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16084 # The linker can only warn and ignore the option if not recognized
16085 # So say no if there are warnings
16086 if test -s conftest.err; then
16087 # Append any errors to the config.log.
16088 cat conftest.err 1>&5
16089 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16091 if diff conftest.exp conftest.er2 >/dev/null; then
16092 lt_prog_compiler_static_works_GCJ=yes
16095 lt_prog_compiler_static_works_GCJ=yes
16099 LDFLAGS="$save_LDFLAGS"
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5
16103 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16105 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16108 lt_prog_compiler_static_GCJ=
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16113 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16114 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16115 $as_echo_n "(cached) " >&6
16117 lt_cv_prog_compiler_c_o_GCJ=no
16118 $rm -r conftest 2>/dev/null
16122 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16124 lt_compiler_flag="-o out/conftest2.$ac_objext"
16125 # Insert the option either (1) after the last *FLAGS variable, or
16126 # (2) before a word containing "conftest.", or (3) at the end.
16127 # Note that $ac_compile itself does not contain backslashes and begins
16128 # with a dollar sign (not a hyphen), so the echo should work correctly.
16129 lt_compile=`echo "$ac_compile" | $SED \
16130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16132 -e 's:$: $lt_compiler_flag:'`
16133 (eval echo "\"\$as_me:16133: $lt_compile\"" >&5)
16134 (eval "$lt_compile" 2>out/conftest.err)
16136 cat out/conftest.err >&5
16137 echo "$as_me:16137: \$? = $ac_status" >&5
16138 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16140 # The compiler can only warn and ignore the option if not recognized
16141 # So say no if there are warnings
16142 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16143 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16144 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16145 lt_cv_prog_compiler_c_o_GCJ=yes
16150 # SGI C++ compiler will create directory out/ii_files/ for
16151 # template instantiation
16152 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16153 $rm out/* && rmdir out
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16160 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16163 hard_links="nottested"
16164 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16165 # do not overwrite the value of need_locks provided by the user
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16167 $as_echo_n "checking if we can lock with hard links... " >&6; }
16170 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16172 ln conftest.a conftest.b 2>&5 || hard_links=no
16173 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16175 $as_echo "$hard_links" >&6; }
16176 if test "$hard_links" = no; then
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16178 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16186 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16189 allow_undefined_flag_GCJ=
16190 enable_shared_with_static_runtimes_GCJ=no
16192 archive_expsym_cmds_GCJ=
16193 old_archive_From_new_cmds_GCJ=
16194 old_archive_from_expsyms_cmds_GCJ=
16195 export_dynamic_flag_spec_GCJ=
16196 whole_archive_flag_spec_GCJ=
16197 thread_safe_flag_spec_GCJ=
16198 hardcode_libdir_flag_spec_GCJ=
16199 hardcode_libdir_flag_spec_ld_GCJ=
16200 hardcode_libdir_separator_GCJ=
16201 hardcode_direct_GCJ=no
16202 hardcode_minus_L_GCJ=no
16203 hardcode_shlibpath_var_GCJ=unsupported
16204 link_all_deplibs_GCJ=unknown
16205 hardcode_automatic_GCJ=no
16207 module_expsym_cmds_GCJ=
16208 always_export_symbols_GCJ=no
16209 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16210 # include_expsyms should be a list of space-separated symbols to be *always*
16211 # included in the symbol list
16212 include_expsyms_GCJ=
16213 # exclude_expsyms can be an extended regexp of symbols to exclude
16214 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16215 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16216 # as well as any symbol that contains `d'.
16217 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16218 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16219 # platforms (ab)use it in PIC code, but their linkers get confused if
16220 # the symbol is explicitly referenced. Since portable code cannot
16221 # rely on this symbol name, it's probably fine to never include it in
16222 # preloaded symbol tables.
16223 extract_expsyms_cmds=
16224 # Just being paranoid about ensuring that cc_basename is set.
16225 for cc_temp in $compiler""; do
16227 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16228 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16233 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16236 cygwin* | mingw* | pw32*)
16237 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16238 # When not using gcc, we currently assume that we are using
16239 # Microsoft Visual C++.
16240 if test "$GCC" != yes; then
16245 # we just hope/assume this is gcc and not c89 (= MSVC++)
16254 if test "$with_gnu_ld" = yes; then
16255 # If archive_cmds runs LD, not CC, wlarc should be empty
16258 # Set some defaults for GNU ld with shared library support. These
16259 # are reset later if shared libraries are not supported. Putting them
16260 # here allows them to be overridden if necessary.
16261 runpath_var=LD_RUN_PATH
16262 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16263 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16264 # ancient GNU ld didn't support --whole-archive et. al.
16265 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16266 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16268 whole_archive_flag_spec_GCJ=
16270 supports_anon_versioning=no
16271 case `$LD -v 2>/dev/null` in
16272 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16273 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16274 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16275 *\ 2.11.*) ;; # other 2.11 versions
16276 *) supports_anon_versioning=yes ;;
16279 # See if GNU ld supports shared libraries.
16281 aix3* | aix4* | aix5*)
16282 # On AIX/PPC, the GNU linker is very broken
16283 if test "$host_cpu" != ia64; then
16287 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16288 *** to be unable to reliably create shared libraries on AIX.
16289 *** Therefore, libtool is disabling shared libraries support. If you
16290 *** really care for shared libraries, you may want to modify your PATH
16291 *** so that a non-GNU linker is found, and then restart.
16298 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)'
16299 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16300 hardcode_minus_L_GCJ=yes
16302 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16303 # that the semantics of dynamic libraries on AmigaOS, at least up
16304 # to version 4, is to share data among multiple programs linked
16305 # with the same dynamic library. Since this doesn't match the
16306 # behavior of shared libraries on other platforms, we can't use
16312 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16313 allow_undefined_flag_GCJ=unsupported
16314 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16315 # support --undefined. This deserves some investigation. FIXME
16316 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16322 cygwin* | mingw* | pw32*)
16323 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16324 # as there is no search path for DLLs.
16325 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16326 allow_undefined_flag_GCJ=unsupported
16327 always_export_symbols_GCJ=no
16328 enable_shared_with_static_runtimes_GCJ=yes
16329 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16331 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16332 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16333 # If the export-symbols file already is a .def file (1st line
16334 # is EXPORTS), use it as is; otherwise, prepend...
16335 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16336 cp $export_symbols $output_objdir/$soname.def;
16338 echo EXPORTS > $output_objdir/$soname.def;
16339 cat $export_symbols >> $output_objdir/$soname.def;
16341 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16348 hardcode_direct_GCJ=no
16349 hardcode_shlibpath_var_GCJ=no
16350 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16351 export_dynamic_flag_spec_GCJ='${wl}-E'
16352 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16353 # Instead, shared libraries are loaded at an image base (0x10000000 by
16354 # default) and relocated if they conflict, which is a slow very memory
16355 # consuming and fragmenting process. To avoid this, we pick a random,
16356 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16357 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16358 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'
16359 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'
16363 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16365 case $cc_basename,$host_cpu in
16366 pgcc*) # Portland Group C compiler
16367 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'
16368 tmp_addflag=' $pic_flag'
16370 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16371 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'
16372 tmp_addflag=' $pic_flag -Mnomain' ;;
16373 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16374 tmp_addflag=' -i_dynamic' ;;
16375 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16376 tmp_addflag=' -i_dynamic -nofor_main' ;;
16377 ifc* | ifort*) # Intel Fortran compiler
16378 tmp_addflag=' -nofor_main' ;;
16380 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16382 if test $supports_anon_versioning = yes; then
16383 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16384 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16385 $echo "local: *; };" >> $output_objdir/$libname.ver~
16386 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16395 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16398 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16399 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16404 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16408 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16409 *** create shared libraries on Solaris systems. Therefore, libtool
16410 *** is disabling shared libraries support. We urge you to upgrade GNU
16411 *** binutils to release 2.9.1 or newer. Another option is to modify
16412 *** your PATH or compiler configuration so that the native linker is
16413 *** used, and then restart.
16416 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16417 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16418 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16425 case `$LD -v 2>&1` in
16426 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16430 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16431 *** reliably create shared libraries on SCO systems. Therefore, libtool
16432 *** is disabling shared libraries support. We urge you to upgrade GNU
16433 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16434 *** your PATH or compiler configuration so that the native linker is
16435 *** used, and then restart.
16440 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16441 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16442 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16443 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16452 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16454 hardcode_direct_GCJ=yes
16455 hardcode_shlibpath_var_GCJ=no
16459 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16460 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16461 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16468 if test "$ld_shlibs_GCJ" = no; then
16470 hardcode_libdir_flag_spec_GCJ=
16471 export_dynamic_flag_spec_GCJ=
16472 whole_archive_flag_spec_GCJ=
16475 # PORTME fill in a description of your system's linker (not GNU ld)
16478 allow_undefined_flag_GCJ=unsupported
16479 always_export_symbols_GCJ=yes
16480 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'
16481 # Note: this linker hardcodes the directories in LIBPATH if there
16482 # are no directories specified by -L.
16483 hardcode_minus_L_GCJ=yes
16484 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16485 # Neither direct hardcoding nor static linking is supported with a
16487 hardcode_direct_GCJ=unsupported
16492 if test "$host_cpu" = ia64; then
16493 # On IA64, the linker does run time linking by default, so we don't
16494 # have to do anything special.
16495 aix_use_runtimelinking=no
16496 exp_sym_flag='-Bexport'
16499 # If we're using GNU nm, then we don't want the "-C" option.
16500 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16501 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16502 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'
16504 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'
16506 aix_use_runtimelinking=no
16508 # Test if we are trying to use run time linking or normal
16509 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16510 # need to do runtime linking.
16511 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16512 for ld_flag in $LDFLAGS; do
16513 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16514 aix_use_runtimelinking=yes
16521 exp_sym_flag='-bexport'
16522 no_entry_flag='-bnoentry'
16525 # When large executables or shared objects are built, AIX ld can
16526 # have problems creating the table of contents. If linking a library
16527 # or program results in "error TOC overflow" add -mminimal-toc to
16528 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16529 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16531 archive_cmds_GCJ=''
16532 hardcode_direct_GCJ=yes
16533 hardcode_libdir_separator_GCJ=':'
16534 link_all_deplibs_GCJ=yes
16536 if test "$GCC" = yes; then
16537 case $host_os in aix4.[012]|aix4.[012].*)
16538 # We only want to do this on AIX 4.2 and lower, the check
16539 # below for broken collect2 doesn't work under 4.3+
16540 collect2name=`${CC} -print-prog-name=collect2`
16541 if test -f "$collect2name" && \
16542 strings "$collect2name" | grep resolve_lib_name >/dev/null
16544 # We have reworked collect2
16545 hardcode_direct_GCJ=yes
16547 # We have old collect2
16548 hardcode_direct_GCJ=unsupported
16549 # It fails to find uninstalled libraries when the uninstalled
16550 # path is not listed in the libpath. Setting hardcode_minus_L
16551 # to unsupported forces relinking
16552 hardcode_minus_L_GCJ=yes
16553 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16554 hardcode_libdir_separator_GCJ=
16558 shared_flag='-shared'
16559 if test "$aix_use_runtimelinking" = yes; then
16560 shared_flag="$shared_flag "'${wl}-G'
16564 if test "$host_cpu" = ia64; then
16565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16566 # chokes on -Wl,-G. The following line is correct:
16569 if test "$aix_use_runtimelinking" = yes; then
16570 shared_flag='${wl}-G'
16572 shared_flag='${wl}-bM:SRE'
16577 # It seems that -bexpall does not export symbols beginning with
16578 # underscore (_), so it is better to generate a list of symbols to export.
16579 always_export_symbols_GCJ=yes
16580 if test "$aix_use_runtimelinking" = yes; then
16581 # Warning - without using the other runtime loading flags (-brtl),
16582 # -berok will link without error, but may produce a broken library.
16583 allow_undefined_flag_GCJ='-berok'
16584 # Determine the default libpath from the value encoded in an empty executable.
16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h. */
16596 if ac_fn_c_try_link "$LINENO"; then :
16598 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16600 # Check for a 64-bit object if we didn't find anything.
16601 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16604 rm -f core conftest.err conftest.$ac_objext \
16605 conftest$ac_exeext conftest.$ac_ext
16606 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16608 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16609 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"
16611 if test "$host_cpu" = ia64; then
16612 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16613 allow_undefined_flag_GCJ="-z nodefs"
16614 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"
16616 # Determine the default libpath from the value encoded in an empty executable.
16617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16618 /* end confdefs.h. */
16628 if ac_fn_c_try_link "$LINENO"; then :
16630 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16632 # Check for a 64-bit object if we didn't find anything.
16633 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16636 rm -f core conftest.err conftest.$ac_objext \
16637 conftest$ac_exeext conftest.$ac_ext
16638 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16640 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16641 # Warning - without using the other run time loading flags,
16642 # -berok will link without error, but may produce a broken library.
16643 no_undefined_flag_GCJ=' ${wl}-bernotok'
16644 allow_undefined_flag_GCJ=' ${wl}-berok'
16645 # Exported symbols can be pulled into shared objects from archives
16646 whole_archive_flag_spec_GCJ='$convenience'
16647 archive_cmds_need_lc_GCJ=yes
16648 # This is similar to how AIX traditionally builds its shared libraries.
16649 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'
16655 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)'
16656 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16657 hardcode_minus_L_GCJ=yes
16658 # see comment about different semantics on the GNU ld section
16663 export_dynamic_flag_spec_GCJ=-rdynamic
16666 cygwin* | mingw* | pw32*)
16667 # When not using gcc, we currently assume that we are using
16668 # Microsoft Visual C++.
16669 # hardcode_libdir_flag_spec is actually meaningless, as there is
16670 # no search path for DLLs.
16671 hardcode_libdir_flag_spec_GCJ=' '
16672 allow_undefined_flag_GCJ=unsupported
16673 # Tell ltmain to make .lib files, not .a files.
16675 # Tell ltmain to make .dll files, not .so files.
16677 # FIXME: Setting linknames here is a bad hack.
16678 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16679 # The linker will automatically build a .lib file if we build a DLL.
16680 old_archive_From_new_cmds_GCJ='true'
16681 # FIXME: Should let the user specify the lib program.
16682 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16683 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16684 enable_shared_with_static_runtimes_GCJ=yes
16687 darwin* | rhapsody*)
16689 rhapsody* | darwin1.[012])
16690 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16693 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16694 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16696 case ${MACOSX_DEPLOYMENT_TARGET} in
16698 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16701 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16707 archive_cmds_need_lc_GCJ=no
16708 hardcode_direct_GCJ=no
16709 hardcode_automatic_GCJ=yes
16710 hardcode_shlibpath_var_GCJ=unsupported
16711 whole_archive_flag_spec_GCJ=''
16712 link_all_deplibs_GCJ=yes
16713 if test "$GCC" = yes ; then
16714 output_verbose_link_cmd='echo'
16715 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16716 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16717 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16718 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16719 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}'
16721 case $cc_basename in
16723 output_verbose_link_cmd='echo'
16724 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16725 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16726 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16727 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16728 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}'
16738 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16739 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16740 hardcode_shlibpath_var_GCJ=no
16747 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16748 # support. Future versions do this automatically, but an explicit c++rt0.o
16749 # does not break anything, and helps significantly (at the cost of a little
16752 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16753 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16754 hardcode_direct_GCJ=yes
16755 hardcode_shlibpath_var_GCJ=no
16758 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16760 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16761 hardcode_direct_GCJ=yes
16762 hardcode_minus_L_GCJ=yes
16763 hardcode_shlibpath_var_GCJ=no
16766 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16767 freebsd* | kfreebsd*-gnu | dragonfly*)
16768 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16769 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16770 hardcode_direct_GCJ=yes
16771 hardcode_shlibpath_var_GCJ=no
16775 if test "$GCC" = yes; then
16776 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'
16778 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'
16780 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16781 hardcode_libdir_separator_GCJ=:
16782 hardcode_direct_GCJ=yes
16784 # hardcode_minus_L: Not really in the search PATH,
16785 # but as the default location of the library.
16786 hardcode_minus_L_GCJ=yes
16787 export_dynamic_flag_spec_GCJ='${wl}-E'
16791 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16792 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16794 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16796 if test "$with_gnu_ld" = no; then
16797 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16798 hardcode_libdir_separator_GCJ=:
16800 hardcode_direct_GCJ=yes
16801 export_dynamic_flag_spec_GCJ='${wl}-E'
16803 # hardcode_minus_L: Not really in the search PATH,
16804 # but as the default location of the library.
16805 hardcode_minus_L_GCJ=yes
16810 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16813 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16816 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16819 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16825 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16828 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16831 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16835 if test "$with_gnu_ld" = no; then
16836 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16837 hardcode_libdir_separator_GCJ=:
16841 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16842 hardcode_direct_GCJ=no
16843 hardcode_shlibpath_var_GCJ=no
16846 hardcode_direct_GCJ=yes
16847 export_dynamic_flag_spec_GCJ='${wl}-E'
16849 # hardcode_minus_L: Not really in the search PATH,
16850 # but as the default location of the library.
16851 hardcode_minus_L_GCJ=yes
16857 irix5* | irix6* | nonstopux*)
16858 if test "$GCC" = yes; then
16859 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'
16861 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'
16862 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16864 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16865 hardcode_libdir_separator_GCJ=:
16866 link_all_deplibs_GCJ=yes
16870 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16871 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16873 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16875 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16876 hardcode_direct_GCJ=yes
16877 hardcode_shlibpath_var_GCJ=no
16881 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16882 hardcode_direct_GCJ=yes
16883 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16884 hardcode_libdir_separator_GCJ=:
16885 hardcode_shlibpath_var_GCJ=no
16889 hardcode_direct_GCJ=yes
16890 hardcode_shlibpath_var_GCJ=no
16891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16892 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16893 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16894 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16895 export_dynamic_flag_spec_GCJ='${wl}-E'
16898 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16899 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16900 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16903 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16911 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16912 hardcode_minus_L_GCJ=yes
16913 allow_undefined_flag_GCJ=unsupported
16914 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'
16915 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16919 if test "$GCC" = yes; then
16920 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16921 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'
16923 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16924 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'
16926 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16927 hardcode_libdir_separator_GCJ=:
16930 osf4* | osf5*) # as osf3* with the addition of -msym flag
16931 if test "$GCC" = yes; then
16932 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16933 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'
16934 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16936 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16937 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'
16938 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~
16939 $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'
16941 # Both c and cxx compiler support -rpath directly
16942 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16944 hardcode_libdir_separator_GCJ=:
16948 no_undefined_flag_GCJ=' -z text'
16949 if test "$GCC" = yes; then
16951 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16952 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16953 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16956 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16957 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16958 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16960 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16961 hardcode_shlibpath_var_GCJ=no
16963 solaris2.[0-5] | solaris2.[0-5].*) ;;
16965 # The compiler driver will combine linker options so we
16966 # cannot just pass the convience library names through
16967 # without $wl, iff we do not link with $LD.
16968 # Luckily, gcc supports the same syntax we need for Sun Studio.
16969 # Supported since Solaris 2.6 (maybe 2.5.1?)
16972 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16974 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16977 link_all_deplibs_GCJ=yes
16981 if test "x$host_vendor" = xsequent; then
16982 # Use $CC to link under sequent, because it throws in some extra .o
16983 # files that make .init and .fini sections work.
16984 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16986 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16988 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16989 hardcode_direct_GCJ=yes
16990 hardcode_minus_L_GCJ=yes
16991 hardcode_shlibpath_var_GCJ=no
16995 case $host_vendor in
16997 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16998 hardcode_direct_GCJ=yes # is this really true???
17001 ## LD is ld it makes a PLAMLIB
17002 ## CC just makes a GrossModule.
17003 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17004 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17005 hardcode_direct_GCJ=no
17008 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17009 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17012 runpath_var='LD_RUN_PATH'
17013 hardcode_shlibpath_var_GCJ=no
17017 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17018 hardcode_shlibpath_var_GCJ=no
17019 export_dynamic_flag_spec_GCJ='-Bexport'
17023 if test -d /usr/nec; then
17024 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17025 hardcode_shlibpath_var_GCJ=no
17026 runpath_var=LD_RUN_PATH
17027 hardcode_runpath_var=yes
17032 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17033 no_undefined_flag_GCJ='${wl}-z,text'
17034 archive_cmds_need_lc_GCJ=no
17035 hardcode_shlibpath_var_GCJ=no
17036 runpath_var='LD_RUN_PATH'
17038 if test "$GCC" = yes; then
17039 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17040 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17042 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17043 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17047 sysv5* | sco3.2v5* | sco5v6*)
17048 # Note: We can NOT use -z defs as we might desire, because we do not
17049 # link with -lc, and that would cause any symbols used from libc to
17050 # always be unresolved, which means just about no library would
17051 # ever link correctly. If we're not using GNU ld we use -z text
17052 # though, which does catch some bad symbols but isn't as heavy-handed
17054 no_undefined_flag_GCJ='${wl}-z,text'
17055 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17056 archive_cmds_need_lc_GCJ=no
17057 hardcode_shlibpath_var_GCJ=no
17058 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17059 hardcode_libdir_separator_GCJ=':'
17060 link_all_deplibs_GCJ=yes
17061 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17062 runpath_var='LD_RUN_PATH'
17064 if test "$GCC" = yes; then
17065 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17066 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17068 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17069 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17074 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17075 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17076 hardcode_shlibpath_var_GCJ=no
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17086 $as_echo "$ld_shlibs_GCJ" >&6; }
17087 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17090 # Do we need to explicitly link libc?
17092 case "x$archive_cmds_need_lc_GCJ" in
17094 # Assume -lc should be added
17095 archive_cmds_need_lc_GCJ=yes
17097 if test "$enable_shared" = yes && test "$GCC" = yes; then
17098 case $archive_cmds_GCJ in
17100 # FIXME: we may have to deal with multi-command sequences.
17103 # Test whether the compiler implicitly links with -lc since on some
17104 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17105 # to ld, don't add -lc before -lgcc.
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17107 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17109 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17112 (eval $ac_compile) 2>&5
17114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17115 test $ac_status = 0; } 2>conftest.err; then
17118 libobjs=conftest.$ac_objext
17120 wl=$lt_prog_compiler_wl_GCJ
17121 pic_flag=$lt_prog_compiler_pic_GCJ
17127 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17128 allow_undefined_flag_GCJ=
17129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17130 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17133 test $ac_status = 0; }
17135 archive_cmds_need_lc_GCJ=no
17137 archive_cmds_need_lc_GCJ=yes
17139 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17141 cat conftest.err 1>&5
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17145 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17153 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17154 library_names_spec=
17155 libname_spec='lib$name'
17159 postuninstall_cmds=
17163 shlibpath_overrides_runpath=unknown
17165 dynamic_linker="$host_os ld.so"
17166 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17167 if test "$GCC" = yes; then
17168 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17169 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17170 # if the path contains ";" then we assume it to be the separator
17171 # otherwise default to the standard path separator (i.e. ":") - it is
17172 # assumed that no part of a normal pathname contains ";" but that should
17173 # okay in the real world where ";" in dirpaths is itself problematic.
17174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17179 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17181 need_lib_prefix=unknown
17182 hardcode_into_libs=no
17184 # when you set need_version to no, make sure it does not cause -set_version
17185 # flags to be left without arguments
17186 need_version=unknown
17191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17192 shlibpath_var=LIBPATH
17194 # AIX 3 has no versioning support, so we append a major version to the name.
17195 soname_spec='${libname}${release}${shared_ext}$major'
17202 hardcode_into_libs=yes
17203 if test "$host_cpu" = ia64; then
17204 # AIX 5 supports IA64
17205 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17206 shlibpath_var=LD_LIBRARY_PATH
17208 # With GCC up to 2.95.x, collect2 would create an import file
17209 # for dependence libraries. The import file would start with
17210 # the line `#! .'. This would cause the generated library to
17211 # depend on `.', always an invalid library. This was fixed in
17212 # development snapshots of GCC prior to 3.0.
17214 aix4 | aix4.[01] | aix4.[01].*)
17215 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17217 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17220 can_build_shared=no
17224 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17225 # soname into executable. Probably we can add versioning support to
17226 # collect2, so additional links can be useful in future.
17227 if test "$aix_use_runtimelinking" = yes; then
17228 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17229 # instead of lib<name>.a to let people know that these are not
17230 # typical AIX shared libraries.
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17233 # We preserve .a as extension for shared libraries through AIX4.2
17234 # and later when we are not doing run time linking.
17235 library_names_spec='${libname}${release}.a $libname.a'
17236 soname_spec='${libname}${release}${shared_ext}$major'
17238 shlibpath_var=LIBPATH
17243 library_names_spec='$libname.ixlibrary $libname.a'
17244 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17245 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'
17249 library_names_spec='${libname}${shared_ext}'
17250 dynamic_linker="$host_os ld.so"
17251 shlibpath_var=LIBRARY_PATH
17257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17258 soname_spec='${libname}${release}${shared_ext}$major'
17259 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17260 shlibpath_var=LD_LIBRARY_PATH
17261 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17262 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17263 # the default ld.so.conf also contains /usr/contrib/lib and
17264 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17265 # libtool to hard-code these into programs
17268 cygwin* | mingw* | pw32*)
17269 version_type=windows
17274 case $GCC,$host_os in
17275 yes,cygwin* | yes,mingw* | yes,pw32*)
17276 library_names_spec='$libname.dll.a'
17277 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17278 postinstall_cmds='base_file=`basename \${file}`~
17279 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17280 dldir=$destdir/`dirname \$dlpath`~
17281 test -d \$dldir || mkdir -p \$dldir~
17282 $install_prog $dir/$dlname \$dldir/$dlname~
17283 chmod a+x \$dldir/$dlname'
17284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17285 dlpath=$dir/\$dldll~
17287 shlibpath_overrides_runpath=yes
17291 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17292 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17293 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17296 # MinGW DLLs use traditional 'lib' prefix
17297 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17298 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17299 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17300 # It is most probably a Windows format PATH printed by
17301 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17302 # path with ; separators, and with drive letters. We can handle the
17303 # drive letters (cygwin fileutils understands them), so leave them,
17304 # especially as we might pass files found there to a mingw objdump,
17305 # which wouldn't understand a cygwinified path. Ahh.
17306 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17312 # pw32 DLLs use 'pw' prefix rather than 'lib'
17313 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17319 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17322 dynamic_linker='Win32 ld.exe'
17323 # FIXME: first we should search . and the directory the executable is in
17327 darwin* | rhapsody*)
17328 dynamic_linker="$host_os dyld"
17329 version_type=darwin
17332 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17333 soname_spec='${libname}${release}${major}$shared_ext'
17334 shlibpath_overrides_runpath=yes
17335 shlibpath_var=DYLD_LIBRARY_PATH
17336 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17337 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17338 if test "$GCC" = yes; then
17339 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17341 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17343 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17351 soname_spec='${libname}${release}${shared_ext}$major'
17352 shlibpath_var=LD_LIBRARY_PATH
17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17364 soname_spec='${libname}${release}${shared_ext}$major'
17365 shlibpath_var=LD_LIBRARY_PATH
17366 shlibpath_overrides_runpath=no
17367 hardcode_into_libs=yes
17368 dynamic_linker='GNU ld.so'
17371 freebsd* | dragonfly*)
17372 # DragonFly does not have aout. When/if they implement a new
17373 # versioning mechanism, adjust this.
17374 if test -x /usr/bin/objformat; then
17375 objformat=`/usr/bin/objformat`
17378 freebsd[123]*) objformat=aout ;;
17379 *) objformat=elf ;;
17382 version_type=freebsd-$objformat
17383 case $version_type in
17385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17394 shlibpath_var=LD_LIBRARY_PATH
17397 shlibpath_overrides_runpath=yes
17399 freebsd3.[01]* | freebsdelf3.[01]*)
17400 shlibpath_overrides_runpath=yes
17401 hardcode_into_libs=yes
17403 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17404 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17405 shlibpath_overrides_runpath=no
17406 hardcode_into_libs=yes
17408 freebsd*) # from 4.6 on
17409 shlibpath_overrides_runpath=yes
17410 hardcode_into_libs=yes
17419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17420 soname_spec='${libname}${release}${shared_ext}$major'
17421 shlibpath_var=LD_LIBRARY_PATH
17422 hardcode_into_libs=yes
17425 hpux9* | hpux10* | hpux11*)
17426 # Give a soname corresponding to the major version so that dld.sl refuses to
17427 # link against other versions.
17434 hardcode_into_libs=yes
17435 dynamic_linker="$host_os dld.so"
17436 shlibpath_var=LD_LIBRARY_PATH
17437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17439 soname_spec='${libname}${release}${shared_ext}$major'
17440 if test "X$HPUX_IA64_MODE" = X32; then
17441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17449 hardcode_into_libs=yes
17450 dynamic_linker="$host_os dld.sl"
17451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17454 soname_spec='${libname}${release}${shared_ext}$major'
17455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17460 dynamic_linker="$host_os dld.sl"
17461 shlibpath_var=SHLIB_PATH
17462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17464 soname_spec='${libname}${release}${shared_ext}$major'
17467 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17468 postinstall_cmds='chmod 555 $lib'
17475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17476 soname_spec='${libname}${release}${shared_ext}$major'
17477 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17478 shlibpath_var=LD_LIBRARY_PATH
17479 shlibpath_overrides_runpath=no
17480 hardcode_into_libs=yes
17483 irix5* | irix6* | nonstopux*)
17485 nonstopux*) version_type=nonstopux ;;
17487 if test "$lt_cv_prog_gnu_ld" = yes; then
17495 soname_spec='${libname}${release}${shared_ext}$major'
17496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17498 irix5* | nonstopux*)
17499 libsuff= shlibsuff=
17502 case $LD in # libtool.m4 will add one of these switches to LD
17503 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17504 libsuff= shlibsuff= libmagic=32-bit;;
17505 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17506 libsuff=32 shlibsuff=N32 libmagic=N32;;
17507 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17508 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17509 *) libsuff= shlibsuff= libmagic=never-match;;
17513 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17514 shlibpath_overrides_runpath=no
17515 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17516 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17517 hardcode_into_libs=yes
17520 # No shared lib support for Linux oldld, aout, or coff.
17521 linux*oldld* | linux*aout* | linux*coff*)
17525 # This must be Linux ELF.
17530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17531 soname_spec='${libname}${release}${shared_ext}$major'
17532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17533 shlibpath_var=LD_LIBRARY_PATH
17534 shlibpath_overrides_runpath=no
17535 # This implies no fast_install, which is unacceptable.
17536 # Some rework will be needed to allow for fast_install
17537 # before this can be enabled.
17538 hardcode_into_libs=yes
17540 # Append ld.so.conf contents to the search path
17541 if test -f /etc/ld.so.conf; then
17542 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17543 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17546 # We used to test for /lib/ld.so.1 and disable shared libraries on
17547 # powerpc, because MkLinux only supported shared libraries with the
17548 # GNU dynamic linker. Since this was broken with cross compilers,
17549 # most powerpc-linux boxes support dynamic linking these days and
17550 # people can always --disable-shared, the test was removed, and we
17551 # assume the GNU/Linux dynamic linker is in use.
17552 dynamic_linker='GNU/Linux ld.so'
17559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17560 soname_spec='${libname}${release}${shared_ext}$major'
17561 shlibpath_var=LD_LIBRARY_PATH
17562 shlibpath_overrides_runpath=no
17563 hardcode_into_libs=yes
17564 dynamic_linker='GNU ld.so'
17571 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17574 dynamic_linker='NetBSD (a.out) ld.so'
17576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17577 soname_spec='${libname}${release}${shared_ext}$major'
17578 dynamic_linker='NetBSD ld.elf_so'
17580 shlibpath_var=LD_LIBRARY_PATH
17581 shlibpath_overrides_runpath=yes
17582 hardcode_into_libs=yes
17587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17588 shlibpath_var=LD_LIBRARY_PATH
17589 shlibpath_overrides_runpath=yes
17596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17597 soname_spec='${libname}${release}${shared_ext}$major'
17598 shlibpath_var=LD_LIBRARY_PATH
17599 shlibpath_overrides_runpath=yes
17604 sys_lib_dlsearch_path_spec="/usr/lib"
17606 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17608 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17609 *) need_version=no ;;
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17613 shlibpath_var=LD_LIBRARY_PATH
17614 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17616 openbsd2.[89] | openbsd2.[89].*)
17617 shlibpath_overrides_runpath=no
17620 shlibpath_overrides_runpath=yes
17624 shlibpath_overrides_runpath=yes
17629 libname_spec='$name'
17632 library_names_spec='$libname${shared_ext} $libname.a'
17633 dynamic_linker='OS/2 ld.exe'
17634 shlibpath_var=LIBPATH
17637 osf3* | osf4* | osf5*)
17641 soname_spec='${libname}${release}${shared_ext}$major'
17642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17643 shlibpath_var=LD_LIBRARY_PATH
17644 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17645 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17653 soname_spec='${libname}${release}${shared_ext}$major'
17654 shlibpath_var=LD_LIBRARY_PATH
17655 shlibpath_overrides_runpath=yes
17656 hardcode_into_libs=yes
17657 # ldd complains unless libraries are executable
17658 postinstall_cmds='chmod +x $lib'
17663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17664 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17665 shlibpath_var=LD_LIBRARY_PATH
17666 shlibpath_overrides_runpath=yes
17667 if test "$with_gnu_ld" = yes; then
17675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17676 soname_spec='${libname}${release}${shared_ext}$major'
17677 shlibpath_var=LD_LIBRARY_PATH
17678 case $host_vendor in
17680 shlibpath_overrides_runpath=no
17682 export_dynamic_flag_spec='${wl}-Blargedynsym'
17683 runpath_var=LD_RUN_PATH
17691 shlibpath_overrides_runpath=no
17692 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17698 if test -d /usr/nec ;then
17700 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17701 soname_spec='$libname${shared_ext}.$major'
17702 shlibpath_var=LD_LIBRARY_PATH
17706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17707 version_type=freebsd-elf
17710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17711 soname_spec='${libname}${release}${shared_ext}$major'
17712 shlibpath_var=LD_LIBRARY_PATH
17713 hardcode_into_libs=yes
17714 if test "$with_gnu_ld" = yes; then
17715 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17716 shlibpath_overrides_runpath=no
17718 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17719 shlibpath_overrides_runpath=yes
17722 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17726 sys_lib_dlsearch_path_spec='/usr/lib'
17731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17732 soname_spec='${libname}${release}${shared_ext}$major'
17733 shlibpath_var=LD_LIBRARY_PATH
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17741 $as_echo "$dynamic_linker" >&6; }
17742 test "$dynamic_linker" = no && can_build_shared=no
17744 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17745 if test "$GCC" = yes; then
17746 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17750 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17751 hardcode_action_GCJ=
17752 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17753 test -n "$runpath_var_GCJ" || \
17754 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17756 # We can hardcode non-existant directories.
17757 if test "$hardcode_direct_GCJ" != no &&
17758 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17759 # have to relink, otherwise we might link with an installed library
17760 # when we should be linking with a yet-to-be-installed one
17761 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17762 test "$hardcode_minus_L_GCJ" != no; then
17763 # Linking always hardcodes the temporary library directory.
17764 hardcode_action_GCJ=relink
17766 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17767 hardcode_action_GCJ=immediate
17770 # We cannot hardcode anything, or else we can only hardcode existing
17772 hardcode_action_GCJ=unsupported
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
17775 $as_echo "$hardcode_action_GCJ" >&6; }
17777 if test "$hardcode_action_GCJ" = relink; then
17778 # Fast installation is not supported
17779 enable_fast_install=no
17780 elif test "$shlibpath_overrides_runpath" = yes ||
17781 test "$enable_shared" = no; then
17782 # Fast installation is not necessary
17783 enable_fast_install=needless
17787 # The else clause should only fire when bootstrapping the
17788 # libtool distribution, otherwise you forgot to ship ltmain.sh
17789 # with your package, and you will get complaints that there are
17790 # no rules to generate ltmain.sh.
17791 if test -f "$ltmain"; then
17792 # See if we are running on zsh, and set the options which allow our commands through
17793 # without removal of \ escapes.
17794 if test -n "${ZSH_VERSION+set}" ; then
17795 setopt NO_GLOB_SUBST
17797 # Now quote all the things that may contain metacharacters while being
17798 # careful not to overquote the AC_SUBSTed values. We take copies of the
17799 # variables and quote the copies for generation of the libtool script.
17800 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17802 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17803 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17804 deplibs_check_method reload_flag reload_cmds need_locks \
17805 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17806 lt_cv_sys_global_symbol_to_c_name_address \
17807 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17808 old_postinstall_cmds old_postuninstall_cmds \
17812 lt_prog_compiler_wl_GCJ \
17813 lt_prog_compiler_pic_GCJ \
17814 lt_prog_compiler_static_GCJ \
17815 lt_prog_compiler_no_builtin_flag_GCJ \
17816 export_dynamic_flag_spec_GCJ \
17817 thread_safe_flag_spec_GCJ \
17818 whole_archive_flag_spec_GCJ \
17819 enable_shared_with_static_runtimes_GCJ \
17820 old_archive_cmds_GCJ \
17821 old_archive_from_new_cmds_GCJ \
17822 predep_objects_GCJ \
17823 postdep_objects_GCJ \
17826 compiler_lib_search_path_GCJ \
17828 archive_expsym_cmds_GCJ \
17829 postinstall_cmds_GCJ \
17830 postuninstall_cmds_GCJ \
17831 old_archive_from_expsyms_cmds_GCJ \
17832 allow_undefined_flag_GCJ \
17833 no_undefined_flag_GCJ \
17834 export_symbols_cmds_GCJ \
17835 hardcode_libdir_flag_spec_GCJ \
17836 hardcode_libdir_flag_spec_ld_GCJ \
17837 hardcode_libdir_separator_GCJ \
17838 hardcode_automatic_GCJ \
17840 module_expsym_cmds_GCJ \
17841 lt_cv_prog_compiler_c_o_GCJ \
17842 exclude_expsyms_GCJ \
17843 include_expsyms_GCJ; do
17846 old_archive_cmds_GCJ | \
17847 old_archive_from_new_cmds_GCJ | \
17848 archive_cmds_GCJ | \
17849 archive_expsym_cmds_GCJ | \
17850 module_cmds_GCJ | \
17851 module_expsym_cmds_GCJ | \
17852 old_archive_from_expsyms_cmds_GCJ | \
17853 export_symbols_cmds_GCJ | \
17854 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17855 postinstall_cmds | postuninstall_cmds | \
17856 old_postinstall_cmds | old_postuninstall_cmds | \
17857 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17858 # Double-quote double-evaled strings.
17859 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17862 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17868 *'\$0 --fallback-echo"')
17869 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17875 cat <<__EOF__ >> "$cfgfile"
17876 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17878 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17880 # Shell to use when invoking shell scripts.
17883 # Whether or not to build shared libraries.
17884 build_libtool_libs=$enable_shared
17886 # Whether or not to build static libraries.
17887 build_old_libs=$enable_static
17889 # Whether or not to add -lc for building shared libraries.
17890 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17892 # Whether or not to disallow shared libs when runtime libs are static
17893 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17895 # Whether or not to optimize for fast installation.
17896 fast_install=$enable_fast_install
17899 host_alias=$host_alias
17903 # The build system.
17904 build_alias=$build_alias
17908 # An echo program that does not interpret backslashes.
17913 AR_FLAGS=$lt_AR_FLAGS
17918 # LTCC compiler flags.
17919 LTCFLAGS=$lt_LTCFLAGS
17921 # A language-specific compiler.
17922 CC=$lt_compiler_GCJ
17924 # Is the compiler the GNU C compiler?
17930 # The linker used to build libraries.
17933 # Whether we need hard or soft links.
17936 # A BSD-compatible nm program.
17939 # A symbol stripping program
17942 # Used to examine libraries when file_magic_cmd begins "file"
17943 MAGIC_CMD=$MAGIC_CMD
17945 # Used on cygwin: DLL creation program.
17948 # Used on cygwin: object dumper.
17951 # Used on cygwin: assembler.
17954 # The name of the directory that contains temporary libtool files.
17957 # How to create reloadable object files.
17958 reload_flag=$lt_reload_flag
17959 reload_cmds=$lt_reload_cmds
17961 # How to pass a linker flag through the compiler.
17962 wl=$lt_lt_prog_compiler_wl_GCJ
17964 # Object file suffix (normally "o").
17965 objext="$ac_objext"
17967 # Old archive suffix (normally "a").
17970 # Shared library suffix (normally ".so").
17971 shrext_cmds='$shrext_cmds'
17973 # Executable file suffix (normally "").
17976 # Additional compiler flags for building library objects.
17977 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17980 # What is the maximum length of a command?
17981 max_cmd_len=$lt_cv_sys_max_cmd_len
17983 # Does compiler simultaneously support -c and -o options?
17984 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17986 # Must we lock files when doing compilation?
17987 need_locks=$lt_need_locks
17989 # Do we need the lib prefix for modules?
17990 need_lib_prefix=$need_lib_prefix
17992 # Do we need a version for libraries?
17993 need_version=$need_version
17995 # Whether dlopen is supported.
17996 dlopen_support=$enable_dlopen
17998 # Whether dlopen of programs is supported.
17999 dlopen_self=$enable_dlopen_self
18001 # Whether dlopen of statically linked programs is supported.
18002 dlopen_self_static=$enable_dlopen_self_static
18004 # Compiler flag to prevent dynamic linking.
18005 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18007 # Compiler flag to turn off builtin functions.
18008 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18010 # Compiler flag to allow reflexive dlopens.
18011 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18013 # Compiler flag to generate shared objects directly from archives.
18014 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18016 # Compiler flag to generate thread-safe objects.
18017 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18019 # Library versioning type.
18020 version_type=$version_type
18022 # Format of library name prefix.
18023 libname_spec=$lt_libname_spec
18025 # List of archive names. First name is the real one, the rest are links.
18026 # The last name is the one that the linker finds with -lNAME.
18027 library_names_spec=$lt_library_names_spec
18029 # The coded name of the library, if different from the real name.
18030 soname_spec=$lt_soname_spec
18032 # Commands used to build and install an old-style archive.
18034 old_archive_cmds=$lt_old_archive_cmds_GCJ
18035 old_postinstall_cmds=$lt_old_postinstall_cmds
18036 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18038 # Create an old-style archive from a shared archive.
18039 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18041 # Create a temporary old-style archive to link instead of a shared archive.
18042 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18044 # Commands used to build and install a shared archive.
18045 archive_cmds=$lt_archive_cmds_GCJ
18046 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18047 postinstall_cmds=$lt_postinstall_cmds
18048 postuninstall_cmds=$lt_postuninstall_cmds
18050 # Commands used to build a loadable module (assumed same as above if empty)
18051 module_cmds=$lt_module_cmds_GCJ
18052 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18054 # Commands to strip libraries.
18055 old_striplib=$lt_old_striplib
18056 striplib=$lt_striplib
18058 # Dependencies to place before the objects being linked to create a
18060 predep_objects=$lt_predep_objects_GCJ
18062 # Dependencies to place after the objects being linked to create a
18064 postdep_objects=$lt_postdep_objects_GCJ
18066 # Dependencies to place before the objects being linked to create a
18068 predeps=$lt_predeps_GCJ
18070 # Dependencies to place after the objects being linked to create a
18072 postdeps=$lt_postdeps_GCJ
18074 # The library search path used internally by the compiler when linking
18075 # a shared library.
18076 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18078 # Method to check whether dependent libraries are shared objects.
18079 deplibs_check_method=$lt_deplibs_check_method
18081 # Command to use when deplibs_check_method == file_magic.
18082 file_magic_cmd=$lt_file_magic_cmd
18084 # Flag that allows shared libraries with undefined symbols to be built.
18085 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18087 # Flag that forces no undefined symbols.
18088 no_undefined_flag=$lt_no_undefined_flag_GCJ
18090 # Commands used to finish a libtool library installation in a directory.
18091 finish_cmds=$lt_finish_cmds
18093 # Same as above, but a single script fragment to be evaled but not shown.
18094 finish_eval=$lt_finish_eval
18096 # Take the output of nm and produce a listing of raw symbols and C names.
18097 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18099 # Transform the output of nm in a proper C declaration
18100 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18102 # Transform the output of nm in a C name address pair
18103 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18105 # This is the shared library runtime path variable.
18106 runpath_var=$runpath_var
18108 # This is the shared library path variable.
18109 shlibpath_var=$shlibpath_var
18111 # Is shlibpath searched before the hard-coded library search path?
18112 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18114 # How to hardcode a shared library path into an executable.
18115 hardcode_action=$hardcode_action_GCJ
18117 # Whether we should hardcode library paths into libraries.
18118 hardcode_into_libs=$hardcode_into_libs
18120 # Flag to hardcode \$libdir into a binary during linking.
18121 # This must work even if \$libdir does not exist.
18122 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18124 # If ld is used when linking, flag to hardcode \$libdir into
18125 # a binary during linking. This must work even if \$libdir does
18127 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18129 # Whether we need a single -rpath flag with a separated argument.
18130 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18132 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18133 # resulting binary.
18134 hardcode_direct=$hardcode_direct_GCJ
18136 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18137 # resulting binary.
18138 hardcode_minus_L=$hardcode_minus_L_GCJ
18140 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18141 # the resulting binary.
18142 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18144 # Set to yes if building a shared library automatically hardcodes DIR into the library
18145 # and all subsequent libraries and executables linked against it.
18146 hardcode_automatic=$hardcode_automatic_GCJ
18148 # Variables whose values should be saved in libtool wrapper scripts and
18149 # restored at relink time.
18150 variables_saved_for_relink="$variables_saved_for_relink"
18152 # Whether libtool must link a program against all its dependency libraries.
18153 link_all_deplibs=$link_all_deplibs_GCJ
18155 # Compile-time system search path for libraries
18156 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18158 # Run-time system search path for libraries
18159 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18161 # Fix the shell variable \$srcfile for the compiler.
18162 fix_srcfile_path="$fix_srcfile_path_GCJ"
18164 # Set to yes if exported symbols are required.
18165 always_export_symbols=$always_export_symbols_GCJ
18167 # The commands to list exported symbols.
18168 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18170 # The commands to extract the exported symbol list from a shared archive.
18171 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18173 # Symbols that should not be listed in the preloaded symbols.
18174 exclude_expsyms=$lt_exclude_expsyms_GCJ
18176 # Symbols that must always be exported.
18177 include_expsyms=$lt_include_expsyms_GCJ
18179 # ### END LIBTOOL TAG CONFIG: $tagname
18185 # If there is no Makefile yet, we rely on a make rule to execute
18186 # `config.status --recheck' to rerun these tests and create the
18187 # libtool script then.
18188 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18189 if test -f "$ltmain_in"; then
18190 test -f Makefile && make "$ltmain"
18196 ac_cpp='$CPP $CPPFLAGS'
18197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18211 # Source file extension for RC test sources.
18214 # Object file extension for compiled RC test sources.
18218 # Code to be used in simple compile tests
18219 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18221 # Code to be used in simple link tests
18222 lt_simple_link_test_code="$lt_simple_compile_test_code"
18224 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18226 # If no C compiler was specified, use CC.
18229 # If no C compiler flags were specified, use CFLAGS.
18230 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18232 # Allow CC to be a program name with arguments.
18236 # save warnings/boilerplate of simple test code
18237 ac_outfile=conftest.$ac_objext
18238 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18239 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18240 _lt_compiler_boilerplate=`cat conftest.err`
18243 ac_outfile=conftest.$ac_objext
18244 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18245 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18246 _lt_linker_boilerplate=`cat conftest.err`
18250 # Allow CC to be a program name with arguments.
18255 for cc_temp in $compiler""; do
18257 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18258 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18263 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18265 lt_cv_prog_compiler_c_o_RC=yes
18267 # The else clause should only fire when bootstrapping the
18268 # libtool distribution, otherwise you forgot to ship ltmain.sh
18269 # with your package, and you will get complaints that there are
18270 # no rules to generate ltmain.sh.
18271 if test -f "$ltmain"; then
18272 # See if we are running on zsh, and set the options which allow our commands through
18273 # without removal of \ escapes.
18274 if test -n "${ZSH_VERSION+set}" ; then
18275 setopt NO_GLOB_SUBST
18277 # Now quote all the things that may contain metacharacters while being
18278 # careful not to overquote the AC_SUBSTed values. We take copies of the
18279 # variables and quote the copies for generation of the libtool script.
18280 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18282 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18283 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18284 deplibs_check_method reload_flag reload_cmds need_locks \
18285 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18286 lt_cv_sys_global_symbol_to_c_name_address \
18287 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18288 old_postinstall_cmds old_postuninstall_cmds \
18292 lt_prog_compiler_wl_RC \
18293 lt_prog_compiler_pic_RC \
18294 lt_prog_compiler_static_RC \
18295 lt_prog_compiler_no_builtin_flag_RC \
18296 export_dynamic_flag_spec_RC \
18297 thread_safe_flag_spec_RC \
18298 whole_archive_flag_spec_RC \
18299 enable_shared_with_static_runtimes_RC \
18300 old_archive_cmds_RC \
18301 old_archive_from_new_cmds_RC \
18302 predep_objects_RC \
18303 postdep_objects_RC \
18306 compiler_lib_search_path_RC \
18308 archive_expsym_cmds_RC \
18309 postinstall_cmds_RC \
18310 postuninstall_cmds_RC \
18311 old_archive_from_expsyms_cmds_RC \
18312 allow_undefined_flag_RC \
18313 no_undefined_flag_RC \
18314 export_symbols_cmds_RC \
18315 hardcode_libdir_flag_spec_RC \
18316 hardcode_libdir_flag_spec_ld_RC \
18317 hardcode_libdir_separator_RC \
18318 hardcode_automatic_RC \
18320 module_expsym_cmds_RC \
18321 lt_cv_prog_compiler_c_o_RC \
18322 exclude_expsyms_RC \
18323 include_expsyms_RC; do
18326 old_archive_cmds_RC | \
18327 old_archive_from_new_cmds_RC | \
18328 archive_cmds_RC | \
18329 archive_expsym_cmds_RC | \
18331 module_expsym_cmds_RC | \
18332 old_archive_from_expsyms_cmds_RC | \
18333 export_symbols_cmds_RC | \
18334 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18335 postinstall_cmds | postuninstall_cmds | \
18336 old_postinstall_cmds | old_postuninstall_cmds | \
18337 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18338 # Double-quote double-evaled strings.
18339 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18342 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18348 *'\$0 --fallback-echo"')
18349 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18355 cat <<__EOF__ >> "$cfgfile"
18356 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18358 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18360 # Shell to use when invoking shell scripts.
18363 # Whether or not to build shared libraries.
18364 build_libtool_libs=$enable_shared
18366 # Whether or not to build static libraries.
18367 build_old_libs=$enable_static
18369 # Whether or not to add -lc for building shared libraries.
18370 build_libtool_need_lc=$archive_cmds_need_lc_RC
18372 # Whether or not to disallow shared libs when runtime libs are static
18373 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18375 # Whether or not to optimize for fast installation.
18376 fast_install=$enable_fast_install
18379 host_alias=$host_alias
18383 # The build system.
18384 build_alias=$build_alias
18388 # An echo program that does not interpret backslashes.
18393 AR_FLAGS=$lt_AR_FLAGS
18398 # LTCC compiler flags.
18399 LTCFLAGS=$lt_LTCFLAGS
18401 # A language-specific compiler.
18404 # Is the compiler the GNU C compiler?
18410 # The linker used to build libraries.
18413 # Whether we need hard or soft links.
18416 # A BSD-compatible nm program.
18419 # A symbol stripping program
18422 # Used to examine libraries when file_magic_cmd begins "file"
18423 MAGIC_CMD=$MAGIC_CMD
18425 # Used on cygwin: DLL creation program.
18428 # Used on cygwin: object dumper.
18431 # Used on cygwin: assembler.
18434 # The name of the directory that contains temporary libtool files.
18437 # How to create reloadable object files.
18438 reload_flag=$lt_reload_flag
18439 reload_cmds=$lt_reload_cmds
18441 # How to pass a linker flag through the compiler.
18442 wl=$lt_lt_prog_compiler_wl_RC
18444 # Object file suffix (normally "o").
18445 objext="$ac_objext"
18447 # Old archive suffix (normally "a").
18450 # Shared library suffix (normally ".so").
18451 shrext_cmds='$shrext_cmds'
18453 # Executable file suffix (normally "").
18456 # Additional compiler flags for building library objects.
18457 pic_flag=$lt_lt_prog_compiler_pic_RC
18460 # What is the maximum length of a command?
18461 max_cmd_len=$lt_cv_sys_max_cmd_len
18463 # Does compiler simultaneously support -c and -o options?
18464 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18466 # Must we lock files when doing compilation?
18467 need_locks=$lt_need_locks
18469 # Do we need the lib prefix for modules?
18470 need_lib_prefix=$need_lib_prefix
18472 # Do we need a version for libraries?
18473 need_version=$need_version
18475 # Whether dlopen is supported.
18476 dlopen_support=$enable_dlopen
18478 # Whether dlopen of programs is supported.
18479 dlopen_self=$enable_dlopen_self
18481 # Whether dlopen of statically linked programs is supported.
18482 dlopen_self_static=$enable_dlopen_self_static
18484 # Compiler flag to prevent dynamic linking.
18485 link_static_flag=$lt_lt_prog_compiler_static_RC
18487 # Compiler flag to turn off builtin functions.
18488 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18490 # Compiler flag to allow reflexive dlopens.
18491 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18493 # Compiler flag to generate shared objects directly from archives.
18494 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18496 # Compiler flag to generate thread-safe objects.
18497 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18499 # Library versioning type.
18500 version_type=$version_type
18502 # Format of library name prefix.
18503 libname_spec=$lt_libname_spec
18505 # List of archive names. First name is the real one, the rest are links.
18506 # The last name is the one that the linker finds with -lNAME.
18507 library_names_spec=$lt_library_names_spec
18509 # The coded name of the library, if different from the real name.
18510 soname_spec=$lt_soname_spec
18512 # Commands used to build and install an old-style archive.
18514 old_archive_cmds=$lt_old_archive_cmds_RC
18515 old_postinstall_cmds=$lt_old_postinstall_cmds
18516 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18518 # Create an old-style archive from a shared archive.
18519 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18521 # Create a temporary old-style archive to link instead of a shared archive.
18522 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18524 # Commands used to build and install a shared archive.
18525 archive_cmds=$lt_archive_cmds_RC
18526 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18527 postinstall_cmds=$lt_postinstall_cmds
18528 postuninstall_cmds=$lt_postuninstall_cmds
18530 # Commands used to build a loadable module (assumed same as above if empty)
18531 module_cmds=$lt_module_cmds_RC
18532 module_expsym_cmds=$lt_module_expsym_cmds_RC
18534 # Commands to strip libraries.
18535 old_striplib=$lt_old_striplib
18536 striplib=$lt_striplib
18538 # Dependencies to place before the objects being linked to create a
18540 predep_objects=$lt_predep_objects_RC
18542 # Dependencies to place after the objects being linked to create a
18544 postdep_objects=$lt_postdep_objects_RC
18546 # Dependencies to place before the objects being linked to create a
18548 predeps=$lt_predeps_RC
18550 # Dependencies to place after the objects being linked to create a
18552 postdeps=$lt_postdeps_RC
18554 # The library search path used internally by the compiler when linking
18555 # a shared library.
18556 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18558 # Method to check whether dependent libraries are shared objects.
18559 deplibs_check_method=$lt_deplibs_check_method
18561 # Command to use when deplibs_check_method == file_magic.
18562 file_magic_cmd=$lt_file_magic_cmd
18564 # Flag that allows shared libraries with undefined symbols to be built.
18565 allow_undefined_flag=$lt_allow_undefined_flag_RC
18567 # Flag that forces no undefined symbols.
18568 no_undefined_flag=$lt_no_undefined_flag_RC
18570 # Commands used to finish a libtool library installation in a directory.
18571 finish_cmds=$lt_finish_cmds
18573 # Same as above, but a single script fragment to be evaled but not shown.
18574 finish_eval=$lt_finish_eval
18576 # Take the output of nm and produce a listing of raw symbols and C names.
18577 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18579 # Transform the output of nm in a proper C declaration
18580 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18582 # Transform the output of nm in a C name address pair
18583 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18585 # This is the shared library runtime path variable.
18586 runpath_var=$runpath_var
18588 # This is the shared library path variable.
18589 shlibpath_var=$shlibpath_var
18591 # Is shlibpath searched before the hard-coded library search path?
18592 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18594 # How to hardcode a shared library path into an executable.
18595 hardcode_action=$hardcode_action_RC
18597 # Whether we should hardcode library paths into libraries.
18598 hardcode_into_libs=$hardcode_into_libs
18600 # Flag to hardcode \$libdir into a binary during linking.
18601 # This must work even if \$libdir does not exist.
18602 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18604 # If ld is used when linking, flag to hardcode \$libdir into
18605 # a binary during linking. This must work even if \$libdir does
18607 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18609 # Whether we need a single -rpath flag with a separated argument.
18610 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18612 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18613 # resulting binary.
18614 hardcode_direct=$hardcode_direct_RC
18616 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18617 # resulting binary.
18618 hardcode_minus_L=$hardcode_minus_L_RC
18620 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18621 # the resulting binary.
18622 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18624 # Set to yes if building a shared library automatically hardcodes DIR into the library
18625 # and all subsequent libraries and executables linked against it.
18626 hardcode_automatic=$hardcode_automatic_RC
18628 # Variables whose values should be saved in libtool wrapper scripts and
18629 # restored at relink time.
18630 variables_saved_for_relink="$variables_saved_for_relink"
18632 # Whether libtool must link a program against all its dependency libraries.
18633 link_all_deplibs=$link_all_deplibs_RC
18635 # Compile-time system search path for libraries
18636 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18638 # Run-time system search path for libraries
18639 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18641 # Fix the shell variable \$srcfile for the compiler.
18642 fix_srcfile_path="$fix_srcfile_path_RC"
18644 # Set to yes if exported symbols are required.
18645 always_export_symbols=$always_export_symbols_RC
18647 # The commands to list exported symbols.
18648 export_symbols_cmds=$lt_export_symbols_cmds_RC
18650 # The commands to extract the exported symbol list from a shared archive.
18651 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18653 # Symbols that should not be listed in the preloaded symbols.
18654 exclude_expsyms=$lt_exclude_expsyms_RC
18656 # Symbols that must always be exported.
18657 include_expsyms=$lt_include_expsyms_RC
18659 # ### END LIBTOOL TAG CONFIG: $tagname
18665 # If there is no Makefile yet, we rely on a make rule to execute
18666 # `config.status --recheck' to rerun these tests and create the
18667 # libtool script then.
18668 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18669 if test -f "$ltmain_in"; then
18670 test -f Makefile && make "$ltmain"
18676 ac_cpp='$CPP $CPPFLAGS'
18677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18686 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
18690 # Append the new tag name to the list of available tags.
18691 if test -n "$tagname" ; then
18692 available_tags="$available_tags $tagname"
18698 # Now substitute the updated list of available tags.
18699 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18700 mv "${ofile}T" "$ofile"
18704 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
18710 # This can be used to rebuild libtool when needed
18711 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18713 # Always use our own libtool.
18714 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18716 # Prevent multiple expansion
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18741 $as_echo_n "checking for ANSI C header files... " >&6; }
18742 if ${ac_cv_header_stdc+:} false; then :
18743 $as_echo_n "(cached) " >&6
18745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18746 /* end confdefs.h. */
18747 #include <stdlib.h>
18748 #include <stdarg.h>
18749 #include <string.h>
18760 if ac_fn_c_try_compile "$LINENO"; then :
18761 ac_cv_header_stdc=yes
18763 ac_cv_header_stdc=no
18765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18767 if test $ac_cv_header_stdc = yes; then
18768 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18770 /* end confdefs.h. */
18771 #include <string.h>
18774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18775 $EGREP "memchr" >/dev/null 2>&1; then :
18778 ac_cv_header_stdc=no
18784 if test $ac_cv_header_stdc = yes; then
18785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18787 /* end confdefs.h. */
18788 #include <stdlib.h>
18791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18792 $EGREP "free" >/dev/null 2>&1; then :
18795 ac_cv_header_stdc=no
18801 if test $ac_cv_header_stdc = yes; then
18802 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18803 if test "$cross_compiling" = yes; then :
18806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18807 /* end confdefs.h. */
18809 #include <stdlib.h>
18810 #if ((' ' & 0x0FF) == 0x020)
18811 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18812 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18814 # define ISLOWER(c) \
18815 (('a' <= (c) && (c) <= 'i') \
18816 || ('j' <= (c) && (c) <= 'r') \
18817 || ('s' <= (c) && (c) <= 'z'))
18818 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18821 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18826 for (i = 0; i < 256; i++)
18827 if (XOR (islower (i), ISLOWER (i))
18828 || toupper (i) != TOUPPER (i))
18833 if ac_fn_c_try_run "$LINENO"; then :
18836 ac_cv_header_stdc=no
18838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18839 conftest.$ac_objext conftest.beam conftest.$ac_ext
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18845 $as_echo "$ac_cv_header_stdc" >&6; }
18846 if test $ac_cv_header_stdc = yes; then
18848 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18852 ac_config_headers="$ac_config_headers include/config.h"
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18856 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18857 if ${ac_cv_c_const+:} false; then :
18858 $as_echo_n "(cached) " >&6
18860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18861 /* end confdefs.h. */
18866 /* FIXME: Include the comments suggested by Paul. */
18867 #ifndef __cplusplus
18868 /* Ultrix mips cc rejects this. */
18869 typedef int charset[2];
18871 /* SunOS 4.1.1 cc rejects this. */
18872 char const *const *pcpcc;
18874 /* NEC SVR4.0.2 mips cc rejects this. */
18875 struct point {int x, y;};
18876 static struct point const zero = {0,0};
18877 /* AIX XL C 1.02.0.0 rejects this.
18878 It does not let you subtract one const X* pointer from another in
18879 an arm of an if-expression whose if-part is not a constant
18881 const char *g = "string";
18882 pcpcc = &g + (g ? g-g : 0);
18883 /* HPUX 7.0 cc rejects these. */
18885 ppc = (char**) pcpcc;
18886 pcpcc = (char const *const *) ppc;
18887 { /* SCO 3.2v4 cc rejects this. */
18889 char const *s = 0 ? (char *) 0 : (char const *) 0;
18894 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18895 int x[] = {25, 17};
18896 const int *foo = &x[0];
18899 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18900 typedef const int *iptr;
18904 { /* AIX XL C 1.02.0.0 rejects this saying
18905 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18906 struct s { int j; const int *ap[3]; };
18907 struct s *b; b->j = 5;
18909 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18910 const int foo = 10;
18911 if (!foo) return 0;
18913 return !cs[0] && !zero.x;
18920 if ac_fn_c_try_compile "$LINENO"; then :
18925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18928 $as_echo "$ac_cv_c_const" >&6; }
18929 if test $ac_cv_c_const = no; then
18931 $as_echo "#define const /**/" >>confdefs.h
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18936 $as_echo_n "checking for inline... " >&6; }
18937 if ${ac_cv_c_inline+:} false; then :
18938 $as_echo_n "(cached) " >&6
18941 for ac_kw in inline __inline__ __inline; do
18942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18943 /* end confdefs.h. */
18944 #ifndef __cplusplus
18946 static $ac_kw foo_t static_foo () {return 0; }
18947 $ac_kw foo_t foo () {return 0; }
18951 if ac_fn_c_try_compile "$LINENO"; then :
18952 ac_cv_c_inline=$ac_kw
18954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18955 test "$ac_cv_c_inline" != no && break
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18960 $as_echo "$ac_cv_c_inline" >&6; }
18962 case $ac_cv_c_inline in
18965 case $ac_cv_c_inline in
18967 *) ac_val=$ac_cv_c_inline;;
18969 cat >>confdefs.h <<_ACEOF
18970 #ifndef __cplusplus
18971 #define inline $ac_val
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18978 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18979 if ${ac_cv_header_time+:} false; then :
18980 $as_echo_n "(cached) " >&6
18982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18983 /* end confdefs.h. */
18984 #include <sys/types.h>
18985 #include <sys/time.h>
18991 if ((struct tm *) 0)
18997 if ac_fn_c_try_compile "$LINENO"; then :
18998 ac_cv_header_time=yes
19000 ac_cv_header_time=no
19002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19005 $as_echo "$ac_cv_header_time" >&6; }
19006 if test $ac_cv_header_time = yes; then
19008 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19013 if test $ac_cv_c_compiler_gnu = yes; then
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
19015 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
19016 if ${ac_cv_prog_gcc_traditional+:} false; then :
19017 $as_echo_n "(cached) " >&6
19019 ac_pattern="Autoconf.*'x'"
19020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19021 /* end confdefs.h. */
19025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19026 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19027 ac_cv_prog_gcc_traditional=yes
19029 ac_cv_prog_gcc_traditional=no
19034 if test $ac_cv_prog_gcc_traditional = no; then
19035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19036 /* end confdefs.h. */
19037 #include <termio.h>
19040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19041 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19042 ac_cv_prog_gcc_traditional=yes
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
19049 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19050 if test $ac_cv_prog_gcc_traditional = yes; then
19051 CC="$CC -traditional"
19055 ac_fn_c_check_func "$LINENO" "hsearch_r" "ac_cv_func_hsearch_r"
19056 if test "x$ac_cv_func_hsearch_r" = xyes; then :
19060 if test "x$HAVE_HSEARCH_R" != xyes; then
19061 ALSA_HSEARCH_R_TRUE=
19062 ALSA_HSEARCH_R_FALSE='#'
19064 ALSA_HSEARCH_R_TRUE='#'
19065 ALSA_HSEARCH_R_FALSE=
19068 for ac_func in uselocale
19070 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
19071 if test "x$ac_cv_func_uselocale" = xyes; then :
19072 cat >>confdefs.h <<_ACEOF
19073 #define HAVE_USELOCALE 1
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library version" >&5
19082 $as_echo_n "checking for library version... " >&6; }
19083 SND_LIB_VERSION=$VERSION
19084 echo $VERSION > $srcdir/version
19086 cat >>confdefs.h <<_ACEOF
19087 #define VERSION "$SND_LIB_VERSION"
19091 SND_LIB_MAJOR=`echo $VERSION | cut -d . -f 1`
19093 SND_LIB_MINOR=`echo $VERSION | cut -d . -f 2`
19095 SND_LIB_SUBMINOR=`echo $VERSION | cut -d . -f 3 | sed -e 's/^\([^[:alpha:]]*\)\(.*\)$/\1/g'`
19097 SND_LIB_EXTRASTR=`echo $VERSION | cut -d . -f 3 | sed -e 's/^\([^[:alpha:]]*\)\([[:alpha:]]*\)\([[:digit:]]*\)\(.*\)$/\2/g'`
19098 SND_LIB_EXTRAVER=`echo $VERSION | cut -d . -f 3 | sed -e 's/^\([^[:alpha:]]*\)\([[:alpha:]]*\)\([[:digit:]]*\)\(.*\)$/\3/g'`
19099 case "$SND_LIB_EXTRASTR" in
19100 pre) SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 00000` ;;
19101 alpha) SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 10000` ;;
19102 beta) SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 20000` ;;
19103 rc) SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 100000` ;;
19104 *) SND_LIB_EXTRAVER=1000000 ;;
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: major $SND_LIB_MAJOR minor $SND_LIB_MINOR subminor $SND_LIB_SUBMINOR extrastr $SND_LIB_EXTRASTR extraver $SND_LIB_EXTRAVER" >&5
19107 $as_echo "major $SND_LIB_MAJOR minor $SND_LIB_MINOR subminor $SND_LIB_SUBMINOR extrastr $SND_LIB_EXTRASTR extraver $SND_LIB_EXTRAVER" >&6; }
19112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19114 if test "$enable_static" = "$enable_shared" -a "$enable_static" = "yes"; then
19116 Please, do not try to compile static and shared libraries together.
19117 See INSTALL file for more details (do not use --enable-shared=yes with
19118 --enable-static=yes).
19124 # Check whether --with-configdir was given.
19125 if test "${with_configdir+set}" = set; then :
19126 withval=$with_configdir; confdir="$withval"
19131 if test -z "$confdir"; then
19132 eval dir="$datadir"
19135 *) dir="$prefix/share"
19137 confdir="$dir/alsa"
19139 ALSA_CONFIG_DIR="$confdir"
19141 cat >>confdefs.h <<_ACEOF
19142 #define ALSA_CONFIG_DIR "$confdir"
19147 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
19150 # Check whether --with-plugindir was given.
19151 if test "${with_plugindir+set}" = set; then :
19152 withval=$with_plugindir; plugindir="$withval"
19157 if test -z "$plugindir"; then
19163 plugindir="$dir/$PACKAGE"
19166 cat >>confdefs.h <<_ACEOF
19167 #define ALSA_PLUGIN_DIR "$plugindir"
19170 ALSA_PLUGIN_DIR="$plugindir"
19174 # Check whether --with-pkgconfdir was given.
19175 if test "${with_pkgconfdir+set}" = set; then :
19176 withval=$with_pkgconfdir; pkgconfdir="$withval"
19181 if test -z "$pkgconfdir"; then
19187 pkgconfdir="$dir/pkgconfig"
19190 cat >>confdefs.h <<_ACEOF
19191 #define ALSA_PKGCONF_DIR "$pkgconfdir"
19194 ALSA_PKGCONF_DIR="$pkgconfdir"
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for versioned symbols" >&5
19198 $as_echo_n "checking for versioned symbols... " >&6; }
19200 # Check whether --with-versioned was given.
19201 if test "${with_versioned+set}" = set; then :
19202 withval=$with_versioned; versioned="$withval"
19207 if test "$versioned" = "yes"; then
19208 # it seems that GNU ld versions since 2.10 are not broken
19209 xres=`grep '^VERSION=' ${srcdir}/ltmain.sh | cut -d = -f 2 | cut -d \" -f 2`
19210 major=`echo $xres | cut -d . -f 1`
19211 minor=`echo $xres | cut -d . -f 2`
19213 if test $major -eq 1 && test $minor -gt 3; then
19216 if test $major -gt 1; then
19220 if test $pass -eq 1; then
19222 $as_echo "#define VERSIONED_SYMBOLS /**/" >>confdefs.h
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19225 $as_echo "yes" >&6; }
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken libtool - use libtool v1.4+; no versions" >&5
19228 $as_echo "broken libtool - use libtool v1.4+; no versions" >&6; }
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19232 $as_echo "no" >&6; }
19234 if test x$versioned = xyes; then
19235 VERSIONED_SYMBOLS_TRUE=
19236 VERSIONED_SYMBOLS_FALSE='#'
19238 VERSIONED_SYMBOLS_TRUE='#'
19239 VERSIONED_SYMBOLS_FALSE=
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbolic-functions" >&5
19244 $as_echo_n "checking for symbolic-functions... " >&6; }
19245 # Check whether --enable-symbolic-functions was given.
19246 if test "${enable_symbolic_functions+set}" = set; then :
19247 enableval=$enable_symbolic_functions; symfuncs="$enableval"
19252 if test "$symfuncs" = "yes"; then
19253 if ld --help | grep -q -- '-Bsymbolic-functions'; then
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19255 $as_echo "yes" >&6; }
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported by ld" >&5
19258 $as_echo "not supported by ld" >&6; }
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19263 $as_echo "no" >&6; }
19265 if test x"$symfuncs" = xyes; then
19266 SYMBOLIC_FUNCTIONS_TRUE=
19267 SYMBOLIC_FUNCTIONS_FALSE='#'
19269 SYMBOLIC_FUNCTIONS_TRUE='#'
19270 SYMBOLIC_FUNCTIONS_FALSE=
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for custom symbol prefixes" >&5
19275 $as_echo_n "checking for custom symbol prefixes... " >&6; }
19277 echo "PREFIX=__USER_LABEL_PREFIX__" \
19278 | ${CPP-${CC-gcc} -E} - 2>&1 \
19279 | ${EGREP-grep} "^PREFIX=" \
19280 | ${SED-sed} "s:^PREFIX=::"`
19282 cat >>confdefs.h <<_ACEOF
19283 #define __SYMBOL_PREFIX "$SYMBOL_PREFIX"
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
19288 $as_echo "$SYMBOL_PREFIX" >&6; }
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug" >&5
19291 $as_echo_n "checking for debug... " >&6; }
19293 # Check whether --with-debug was given.
19294 if test "${with_debug+set}" = set; then :
19295 withval=$with_debug; debug="$withval"
19300 if test "$debug" = "yes"; then
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19302 $as_echo "yes" >&6; }
19305 $as_echo "#define NDEBUG /**/" >>confdefs.h
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19308 $as_echo "no" >&6; }
19311 if test "$debug" = "yes"; then
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug assert" >&5
19313 $as_echo_n "checking for debug assert... " >&6; }
19314 # Check whether --enable-debug-assert was given.
19315 if test "${enable_debug_assert+set}" = set; then :
19316 enableval=$enable_debug_assert; debug_assert="$enableval"
19321 if test "$debug_assert" = "yes"; then
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19323 $as_echo "yes" >&6; }
19325 $as_echo "#define ALSA_DEBUG_ASSERT /**/" >>confdefs.h
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19329 $as_echo "no" >&6; }
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tmpdir" >&5
19334 $as_echo_n "checking for tmpdir... " >&6; }
19336 # Check whether --with-tmpdir was given.
19337 if test "${with_tmpdir+set}" = set; then :
19338 withval=$with_tmpdir; tmpdir="$withval"
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tmpdir" >&5
19344 $as_echo "$tmpdir" >&6; }
19346 cat >>confdefs.h <<_ACEOF
19347 #define TMPDIR "$tmpdir"
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for softfloat" >&5
19352 $as_echo_n "checking for softfloat... " >&6; }
19354 # Check whether --with-softfloat was given.
19355 if test "${with_softfloat+set}" = set; then :
19356 withval=$with_softfloat; case "$withval" in
19357 y|yes) softfloat=yes ;;
19362 if test "$softfloat" = "yes" ; then
19364 $as_echo "#define HAVE_SOFT_FLOAT \"1\"" >>confdefs.h
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19367 $as_echo "yes" >&6; }
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19370 $as_echo "no" >&6; }
19374 if test "$softfloat" != "yes"; then
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdl" >&5
19379 $as_echo_n "checking for libdl... " >&6; }
19381 # Check whether --with-libdl was given.
19382 if test "${with_libdl+set}" = set; then :
19383 withval=$with_libdl; have_libdl="$withval"
19388 if test "$have_libdl" = "yes"; then
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
19390 $as_echo_n "checking for dlsym in -ldl... " >&6; }
19391 if ${ac_cv_lib_dl_dlsym+:} false; then :
19392 $as_echo_n "(cached) " >&6
19394 ac_check_lib_save_LIBS=$LIBS
19396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19397 /* end confdefs.h. */
19399 /* Override any GCC internal prototype to avoid an error.
19400 Use char because int might match the return type of a GCC
19401 builtin and then its argument prototype would still apply. */
19414 if ac_fn_c_try_link "$LINENO"; then :
19415 ac_cv_lib_dl_dlsym=yes
19417 ac_cv_lib_dl_dlsym=no
19419 rm -f core conftest.err conftest.$ac_objext \
19420 conftest$ac_exeext conftest.$ac_ext
19421 LIBS=$ac_check_lib_save_LIBS
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
19424 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
19425 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
19429 if test "$HAVE_LIBDL" = "yes" ; then
19430 ALSA_DEPLIBS="$ALSA_DEPLIBS -ldl"
19432 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19437 $as_echo "no" >&6; }
19439 if test "$HAVE_LIBDL"="yes"; then
19440 BUILD_MODULES_TRUE=
19441 BUILD_MODULES_FALSE='#'
19443 BUILD_MODULES_TRUE='#'
19444 BUILD_MODULES_FALSE=
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread" >&5
19449 $as_echo_n "checking for pthread... " >&6; }
19451 # Check whether --with-pthread was given.
19452 if test "${with_pthread+set}" = set; then :
19453 withval=$with_pthread; have_pthread="$withval"
19458 if test "$have_pthread" = "yes"; then
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
19460 $as_echo_n "checking for pthread_join in -lpthread... " >&6; }
19461 if ${ac_cv_lib_pthread_pthread_join+:} false; then :
19462 $as_echo_n "(cached) " >&6
19464 ac_check_lib_save_LIBS=$LIBS
19465 LIBS="-lpthread $LIBS"
19466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19467 /* end confdefs.h. */
19469 /* Override any GCC internal prototype to avoid an error.
19470 Use char because int might match the return type of a GCC
19471 builtin and then its argument prototype would still apply. */
19475 char pthread_join ();
19479 return pthread_join ();
19484 if ac_fn_c_try_link "$LINENO"; then :
19485 ac_cv_lib_pthread_pthread_join=yes
19487 ac_cv_lib_pthread_pthread_join=no
19489 rm -f core conftest.err conftest.$ac_objext \
19490 conftest$ac_exeext conftest.$ac_ext
19491 LIBS=$ac_check_lib_save_LIBS
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
19494 $as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
19495 if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
19496 HAVE_LIBPTHREAD="yes"
19499 if test "$HAVE_LIBPTHREAD" = "yes"; then
19500 ALSA_DEPLIBS="$ALSA_DEPLIBS -lpthread"
19502 $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19507 $as_echo "no" >&6; }
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
19511 $as_echo_n "checking for librt... " >&6; }
19513 # Check whether --with-librt was given.
19514 if test "${with_librt+set}" = set; then :
19515 withval=$with_librt; have_librt="$withval"
19520 if test "$have_librt" = "yes"; then
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
19522 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
19523 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
19524 $as_echo_n "(cached) " >&6
19526 ac_check_lib_save_LIBS=$LIBS
19528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19529 /* end confdefs.h. */
19531 /* Override any GCC internal prototype to avoid an error.
19532 Use char because int might match the return type of a GCC
19533 builtin and then its argument prototype would still apply. */
19537 char clock_gettime ();
19541 return clock_gettime ();
19546 if ac_fn_c_try_link "$LINENO"; then :
19547 ac_cv_lib_rt_clock_gettime=yes
19549 ac_cv_lib_rt_clock_gettime=no
19551 rm -f core conftest.err conftest.$ac_objext \
19552 conftest$ac_exeext conftest.$ac_ext
19553 LIBS=$ac_check_lib_save_LIBS
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
19556 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
19557 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
19561 if test "$HAVE_LIBRT" = "yes" ; then
19562 ALSA_DEPLIBS="$ALSA_DEPLIBS -lrt"
19564 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
19567 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19572 $as_echo "no" >&6; }
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for architecture" >&5
19578 $as_echo_n "checking for architecture... " >&6; }
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86" >&5
19582 $as_echo "x86" >&6; }
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86" >&5
19586 $as_echo "x86" >&6; }
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alpha" >&5
19590 $as_echo "alpha" >&6; }
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ppc" >&5
19594 $as_echo "ppc" >&6; }
19595 CPPFLAGS="$CPPFLAGS -D__ppc__"
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ia64" >&5
19599 $as_echo "ia64" >&6; }
19600 CPPFLAGS="$CPPFLAGS -D__ia64__"
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mips" >&5
19604 $as_echo "mips" >&6; }
19605 CPPFLAGS="$CPPFLAGS -D__mips__"
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arm" >&5
19609 $as_echo "arm" >&6; }
19610 CPPFLAGS="$CPPFLAGS -D__arm__"
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
19614 $as_echo "$host_cpu" >&6; }
19615 echo "No atomic operations supported.."
19619 for ac_header in wordexp.h
19621 ac_fn_c_check_header_mongrel "$LINENO" "wordexp.h" "ac_cv_header_wordexp_h" "$ac_includes_default"
19622 if test "x$ac_cv_header_wordexp_h" = xyes; then :
19623 cat >>confdefs.h <<_ACEOF
19624 #define HAVE_WORDEXP_H 1
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resmgr support" >&5
19633 $as_echo_n "checking for resmgr support... " >&6; }
19634 # Check whether --enable-resmgr was given.
19635 if test "${enable_resmgr+set}" = set; then :
19636 enableval=$enable_resmgr; resmgr="$enableval"
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $resmgr" >&5
19642 $as_echo "$resmgr" >&6; }
19643 if test "$resmgr" = "yes"; then
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rsm_open_device in -lresmgr" >&5
19645 $as_echo_n "checking for rsm_open_device in -lresmgr... " >&6; }
19646 if ${ac_cv_lib_resmgr_rsm_open_device+:} false; then :
19647 $as_echo_n "(cached) " >&6
19649 ac_check_lib_save_LIBS=$LIBS
19650 LIBS="-lresmgr $LIBS"
19651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19652 /* end confdefs.h. */
19654 /* Override any GCC internal prototype to avoid an error.
19655 Use char because int might match the return type of a GCC
19656 builtin and then its argument prototype would still apply. */
19660 char rsm_open_device ();
19664 return rsm_open_device ();
19669 if ac_fn_c_try_link "$LINENO"; then :
19670 ac_cv_lib_resmgr_rsm_open_device=yes
19672 ac_cv_lib_resmgr_rsm_open_device=no
19674 rm -f core conftest.err conftest.$ac_objext \
19675 conftest$ac_exeext conftest.$ac_ext
19676 LIBS=$ac_check_lib_save_LIBS
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resmgr_rsm_open_device" >&5
19679 $as_echo "$ac_cv_lib_resmgr_rsm_open_device" >&6; }
19680 if test "x$ac_cv_lib_resmgr_rsm_open_device" = xyes; then :
19681 cat >>confdefs.h <<_ACEOF
19682 #define HAVE_LIBRESMGR 1
19685 LIBS="-lresmgr $LIBS"
19688 as_fn_error $? "Cannot find libresmgr" "$LINENO" 5
19692 $as_echo "#define SUPPORT_RESMGR \"1\"" >>confdefs.h
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aload* support" >&5
19697 $as_echo_n "checking for aload* support... " >&6; }
19698 # Check whether --enable-aload was given.
19699 if test "${enable_aload+set}" = set; then :
19700 enableval=$enable_aload; aload="$enableval"
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aload" >&5
19706 $as_echo "$aload" >&6; }
19707 if test "$aload" = "yes"; then
19709 $as_echo "#define SUPPORT_ALOAD \"1\"" >>confdefs.h
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA device file directory" >&5
19714 $as_echo_n "checking for ALSA device file directory... " >&6; }
19716 # Check whether --with-alsa-devdir was given.
19717 if test "${with_alsa_devdir+set}" = set; then :
19718 withval=$with_alsa_devdir; alsa_dev_dir="$withval"
19720 alsa_dev_dir="/dev/snd"
19723 if echo "$alsa_dev_dir" | grep -v '/$' > /dev/null; then
19724 alsa_dev_dir="$alsa_dev_dir/"
19727 cat >>confdefs.h <<_ACEOF
19728 #define ALSA_DEVICE_DIRECTORY "$alsa_dev_dir"
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alsa_dev_dir" >&5
19732 $as_echo "$alsa_dev_dir" >&6; }
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aload* device file directory" >&5
19735 $as_echo_n "checking for aload* device file directory... " >&6; }
19737 # Check whether --with-aload-devdir was given.
19738 if test "${with_aload_devdir+set}" = set; then :
19739 withval=$with_aload_devdir; aload_dev_dir="$withval"
19741 aload_dev_dir="/dev"
19744 if echo "$aload_dev_dir" | grep -v '/$' > /dev/null; then
19745 aload_dev_dir="$aload_dev_dir/"
19748 cat >>confdefs.h <<_ACEOF
19749 #define ALOAD_DEVICE_DIRECTORY "$aload_dev_dir"
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aload_dev_dir" >&5
19753 $as_echo "$aload_dev_dir" >&6; }
19755 # Check whether --enable-mixer was given.
19756 if test "${enable_mixer+set}" = set; then :
19757 enableval=$enable_mixer; build_mixer="$enableval"
19762 # Check whether --enable-pcm was given.
19763 if test "${enable_pcm+set}" = set; then :
19764 enableval=$enable_pcm; build_pcm="$enableval"
19769 # Check whether --enable-rawmidi was given.
19770 if test "${enable_rawmidi+set}" = set; then :
19771 enableval=$enable_rawmidi; build_rawmidi="$enableval"
19773 build_rawmidi="yes"
19776 # Check whether --enable-hwdep was given.
19777 if test "${enable_hwdep+set}" = set; then :
19778 enableval=$enable_hwdep; build_hwdep="$enableval"
19783 # Check whether --enable-seq was given.
19784 if test "${enable_seq+set}" = set; then :
19785 enableval=$enable_seq; build_seq="$enableval"
19790 # Check whether --enable-ucm was given.
19791 if test "${enable_ucm+set}" = set; then :
19792 enableval=$enable_ucm; build_ucm="$enableval"
19797 # Check whether --enable-alisp was given.
19798 if test "${enable_alisp+set}" = set; then :
19799 enableval=$enable_alisp; build_alisp="$enableval"
19804 test "$softfloat" = "yes" && build_alisp="no"
19805 # Check whether --enable-old-symbols was given.
19806 if test "${enable_old_symbols+set}" = set; then :
19807 enableval=$enable_old_symbols; keep_old_symbols="$enableval"
19809 keep_old_symbols="yes"
19812 if test x$keep_old_symbols = xyes; then
19813 KEEP_OLD_SYMBOLS_TRUE=
19814 KEEP_OLD_SYMBOLS_FALSE='#'
19816 KEEP_OLD_SYMBOLS_TRUE='#'
19817 KEEP_OLD_SYMBOLS_FALSE=
19821 # Check whether --enable-python was given.
19822 if test "${enable_python+set}" = set; then :
19823 enableval=$enable_python; build_python="$enableval"
19830 if test "$build_python" = "yes"; then
19832 # Check whether --with-pythonlibs was given.
19833 if test "${with_pythonlibs+set}" = set; then :
19834 withval=$with_pythonlibs; pythonlibs="$withval"
19836 pythonlibs=`python-config --libs`
19840 # Check whether --with-pythonincludes was given.
19841 if test "${with_pythonincludes+set}" = set; then :
19842 withval=$with_pythonincludes; pythonincludes="$withval"
19844 pythonincludes=`python-config --includes`
19847 if test -z "$pythonlibs"; then
19848 echo "Unable to determine python libraries! Probably python-config is not"
19849 echo "available on this system. Please, use --with-pythonlibs and"
19850 echo "--with-pythonincludes options. Python components are disabled in this build."
19853 PYTHON_LIBS="$pythonlibs"
19854 PYTHON_INCLUDES="$pythonincludes"
19860 if test x$build_mixer = xyes; then
19862 BUILD_MIXER_FALSE='#'
19864 BUILD_MIXER_TRUE='#'
19868 if test x$build_pcm = xyes; then
19870 BUILD_PCM_FALSE='#'
19876 if test x$build_rawmidi = xyes; then
19877 BUILD_RAWMIDI_TRUE=
19878 BUILD_RAWMIDI_FALSE='#'
19880 BUILD_RAWMIDI_TRUE='#'
19881 BUILD_RAWMIDI_FALSE=
19884 if test x$build_hwdep = xyes; then
19886 BUILD_HWDEP_FALSE='#'
19888 BUILD_HWDEP_TRUE='#'
19892 if test x$build_seq = xyes; then
19894 BUILD_SEQ_FALSE='#'
19900 if test x$build_ucm = xyes; then
19902 BUILD_UCM_FALSE='#'
19908 if test x$build_alisp = xyes; then
19910 BUILD_ALISP_FALSE='#'
19912 BUILD_ALISP_TRUE='#'
19916 if test x$build_python = xyes; then
19918 BUILD_PYTHON_FALSE='#'
19920 BUILD_PYTHON_TRUE='#'
19921 BUILD_PYTHON_FALSE=
19925 if test "$build_mixer" = "yes"; then
19927 $as_echo "#define BUILD_MIXER \"1\"" >>confdefs.h
19930 if test "$build_pcm" = "yes"; then
19932 $as_echo "#define BUILD_PCM \"1\"" >>confdefs.h
19935 if test "$build_rawmidi" = "yes"; then
19937 $as_echo "#define BUILD_RAWMIDI \"1\"" >>confdefs.h
19940 if test "$build_hwdep" = "yes"; then
19942 $as_echo "#define BUILD_HWDEP \"1\"" >>confdefs.h
19945 if test "$build_seq" = "yes"; then
19947 $as_echo "#define BUILD_SEQ \"1\"" >>confdefs.h
19950 if test "$build_ucm" = "yes"; then
19952 $as_echo "#define BUILD_UCM \"1\"" >>confdefs.h
19957 if test "$build_pcm" = "yes"; then
19959 # Check whether --with-pcm-plugins was given.
19960 if test "${with_pcm_plugins+set}" = set; then :
19961 withval=$with_pcm_plugins; pcm_plugins="$withval"
19970 PCM_PLUGIN_LIST="copy linear route mulaw alaw adpcm rate plug multi shm file null empty share meter hooks lfloat ladspa dmix dshare dsnoop asym iec958 softvol extplug ioplug mmap_emul"
19972 build_pcm_plugin="no"
19973 for t in $PCM_PLUGIN_LIST; do
19974 eval build_pcm_$t="no"
19977 pcm_plugins=`echo $pcm_plugins | sed 's/,/ /g'`
19978 for p in $pcm_plugins; do
19979 for t in $PCM_PLUGIN_LIST; do
19980 if test "$p" = "$t" -o "$p" = "all"; then
19981 eval build_pcm_$t="yes"
19982 build_pcm_plugin="yes"
19987 if test "$build_pcm_plug" = "yes"; then
19988 build_pcm_linear="yes"
19989 build_pcm_copy="yes"
19992 if test "$build_pcm_ioplug" = "yes"; then
19993 build_pcm_extplug="yes"
19996 if test "$HAVE_LIBDL" != "yes"; then
19997 build_pcm_meter="no"
19998 build_pcm_ladspa="no"
19999 build_pcm_pcm_ioplug="no"
20000 build_pcm_pcm_extplug="no"
20003 if test "$HAVE_LIBPTHREAD" != "yes"; then
20004 build_pcm_share="no"
20007 if test "$softfloat" = "yes"; then
20008 build_pcm_lfloat="no"
20009 build_pcm_ladspa="no"
20012 if test x$build_pcm_plugin = xyes; then
20013 BUILD_PCM_PLUGIN_TRUE=
20014 BUILD_PCM_PLUGIN_FALSE='#'
20016 BUILD_PCM_PLUGIN_TRUE='#'
20017 BUILD_PCM_PLUGIN_FALSE=
20020 if test x$build_pcm_copy = xyes; then
20021 BUILD_PCM_PLUGIN_COPY_TRUE=
20022 BUILD_PCM_PLUGIN_COPY_FALSE='#'
20024 BUILD_PCM_PLUGIN_COPY_TRUE='#'
20025 BUILD_PCM_PLUGIN_COPY_FALSE=
20028 if test x$build_pcm_linear = xyes; then
20029 BUILD_PCM_PLUGIN_LINEAR_TRUE=
20030 BUILD_PCM_PLUGIN_LINEAR_FALSE='#'
20032 BUILD_PCM_PLUGIN_LINEAR_TRUE='#'
20033 BUILD_PCM_PLUGIN_LINEAR_FALSE=
20036 if test x$build_pcm_route = xyes; then
20037 BUILD_PCM_PLUGIN_ROUTE_TRUE=
20038 BUILD_PCM_PLUGIN_ROUTE_FALSE='#'
20040 BUILD_PCM_PLUGIN_ROUTE_TRUE='#'
20041 BUILD_PCM_PLUGIN_ROUTE_FALSE=
20044 if test x$build_pcm_mulaw = xyes; then
20045 BUILD_PCM_PLUGIN_MULAW_TRUE=
20046 BUILD_PCM_PLUGIN_MULAW_FALSE='#'
20048 BUILD_PCM_PLUGIN_MULAW_TRUE='#'
20049 BUILD_PCM_PLUGIN_MULAW_FALSE=
20052 if test x$build_pcm_alaw = xyes; then
20053 BUILD_PCM_PLUGIN_ALAW_TRUE=
20054 BUILD_PCM_PLUGIN_ALAW_FALSE='#'
20056 BUILD_PCM_PLUGIN_ALAW_TRUE='#'
20057 BUILD_PCM_PLUGIN_ALAW_FALSE=
20060 if test x$build_pcm_adpcm = xyes; then
20061 BUILD_PCM_PLUGIN_ADPCM_TRUE=
20062 BUILD_PCM_PLUGIN_ADPCM_FALSE='#'
20064 BUILD_PCM_PLUGIN_ADPCM_TRUE='#'
20065 BUILD_PCM_PLUGIN_ADPCM_FALSE=
20068 if test x$build_pcm_rate = xyes; then
20069 BUILD_PCM_PLUGIN_RATE_TRUE=
20070 BUILD_PCM_PLUGIN_RATE_FALSE='#'
20072 BUILD_PCM_PLUGIN_RATE_TRUE='#'
20073 BUILD_PCM_PLUGIN_RATE_FALSE=
20076 if test x$build_pcm_plug = xyes; then
20077 BUILD_PCM_PLUGIN_PLUG_TRUE=
20078 BUILD_PCM_PLUGIN_PLUG_FALSE='#'
20080 BUILD_PCM_PLUGIN_PLUG_TRUE='#'
20081 BUILD_PCM_PLUGIN_PLUG_FALSE=
20084 if test x$build_pcm_multi = xyes; then
20085 BUILD_PCM_PLUGIN_MULTI_TRUE=
20086 BUILD_PCM_PLUGIN_MULTI_FALSE='#'
20088 BUILD_PCM_PLUGIN_MULTI_TRUE='#'
20089 BUILD_PCM_PLUGIN_MULTI_FALSE=
20092 if test x$build_pcm_shm = xyes; then
20093 BUILD_PCM_PLUGIN_SHM_TRUE=
20094 BUILD_PCM_PLUGIN_SHM_FALSE='#'
20096 BUILD_PCM_PLUGIN_SHM_TRUE='#'
20097 BUILD_PCM_PLUGIN_SHM_FALSE=
20100 if test x$build_pcm_file = xyes; then
20101 BUILD_PCM_PLUGIN_FILE_TRUE=
20102 BUILD_PCM_PLUGIN_FILE_FALSE='#'
20104 BUILD_PCM_PLUGIN_FILE_TRUE='#'
20105 BUILD_PCM_PLUGIN_FILE_FALSE=
20108 if test x$build_pcm_null = xyes; then
20109 BUILD_PCM_PLUGIN_NULL_TRUE=
20110 BUILD_PCM_PLUGIN_NULL_FALSE='#'
20112 BUILD_PCM_PLUGIN_NULL_TRUE='#'
20113 BUILD_PCM_PLUGIN_NULL_FALSE=
20116 if test x$build_pcm_empty = xyes; then
20117 BUILD_PCM_PLUGIN_EMPTY_TRUE=
20118 BUILD_PCM_PLUGIN_EMPTY_FALSE='#'
20120 BUILD_PCM_PLUGIN_EMPTY_TRUE='#'
20121 BUILD_PCM_PLUGIN_EMPTY_FALSE=
20124 if test x$build_pcm_share = xyes; then
20125 BUILD_PCM_PLUGIN_SHARE_TRUE=
20126 BUILD_PCM_PLUGIN_SHARE_FALSE='#'
20128 BUILD_PCM_PLUGIN_SHARE_TRUE='#'
20129 BUILD_PCM_PLUGIN_SHARE_FALSE=
20132 if test x$build_pcm_meter = xyes; then
20133 BUILD_PCM_PLUGIN_METER_TRUE=
20134 BUILD_PCM_PLUGIN_METER_FALSE='#'
20136 BUILD_PCM_PLUGIN_METER_TRUE='#'
20137 BUILD_PCM_PLUGIN_METER_FALSE=
20140 if test x$build_pcm_hooks = xyes; then
20141 BUILD_PCM_PLUGIN_HOOKS_TRUE=
20142 BUILD_PCM_PLUGIN_HOOKS_FALSE='#'
20144 BUILD_PCM_PLUGIN_HOOKS_TRUE='#'
20145 BUILD_PCM_PLUGIN_HOOKS_FALSE=
20148 if test x$build_pcm_lfloat = xyes; then
20149 BUILD_PCM_PLUGIN_LFLOAT_TRUE=
20150 BUILD_PCM_PLUGIN_LFLOAT_FALSE='#'
20152 BUILD_PCM_PLUGIN_LFLOAT_TRUE='#'
20153 BUILD_PCM_PLUGIN_LFLOAT_FALSE=
20156 if test x$build_pcm_ladspa = xyes; then
20157 BUILD_PCM_PLUGIN_LADSPA_TRUE=
20158 BUILD_PCM_PLUGIN_LADSPA_FALSE='#'
20160 BUILD_PCM_PLUGIN_LADSPA_TRUE='#'
20161 BUILD_PCM_PLUGIN_LADSPA_FALSE=
20164 if test x$build_pcm_dmix = xyes; then
20165 BUILD_PCM_PLUGIN_DMIX_TRUE=
20166 BUILD_PCM_PLUGIN_DMIX_FALSE='#'
20168 BUILD_PCM_PLUGIN_DMIX_TRUE='#'
20169 BUILD_PCM_PLUGIN_DMIX_FALSE=
20172 if test x$build_pcm_dshare = xyes; then
20173 BUILD_PCM_PLUGIN_DSHARE_TRUE=
20174 BUILD_PCM_PLUGIN_DSHARE_FALSE='#'
20176 BUILD_PCM_PLUGIN_DSHARE_TRUE='#'
20177 BUILD_PCM_PLUGIN_DSHARE_FALSE=
20180 if test x$build_pcm_dsnoop = xyes; then
20181 BUILD_PCM_PLUGIN_DSNOOP_TRUE=
20182 BUILD_PCM_PLUGIN_DSNOOP_FALSE='#'
20184 BUILD_PCM_PLUGIN_DSNOOP_TRUE='#'
20185 BUILD_PCM_PLUGIN_DSNOOP_FALSE=
20188 if test x$build_pcm_asym = xyes; then
20189 BUILD_PCM_PLUGIN_ASYM_TRUE=
20190 BUILD_PCM_PLUGIN_ASYM_FALSE='#'
20192 BUILD_PCM_PLUGIN_ASYM_TRUE='#'
20193 BUILD_PCM_PLUGIN_ASYM_FALSE=
20196 if test x$build_pcm_iec958 = xyes; then
20197 BUILD_PCM_PLUGIN_IEC958_TRUE=
20198 BUILD_PCM_PLUGIN_IEC958_FALSE='#'
20200 BUILD_PCM_PLUGIN_IEC958_TRUE='#'
20201 BUILD_PCM_PLUGIN_IEC958_FALSE=
20204 if test x$build_pcm_softvol = xyes; then
20205 BUILD_PCM_PLUGIN_SOFTVOL_TRUE=
20206 BUILD_PCM_PLUGIN_SOFTVOL_FALSE='#'
20208 BUILD_PCM_PLUGIN_SOFTVOL_TRUE='#'
20209 BUILD_PCM_PLUGIN_SOFTVOL_FALSE=
20212 if test x$build_pcm_extplug = xyes; then
20213 BUILD_PCM_PLUGIN_EXTPLUG_TRUE=
20214 BUILD_PCM_PLUGIN_EXTPLUG_FALSE='#'
20216 BUILD_PCM_PLUGIN_EXTPLUG_TRUE='#'
20217 BUILD_PCM_PLUGIN_EXTPLUG_FALSE=
20220 if test x$build_pcm_ioplug = xyes; then
20221 BUILD_PCM_PLUGIN_IOPLUG_TRUE=
20222 BUILD_PCM_PLUGIN_IOPLUG_FALSE='#'
20224 BUILD_PCM_PLUGIN_IOPLUG_TRUE='#'
20225 BUILD_PCM_PLUGIN_IOPLUG_FALSE=
20228 if test x$build_pcm_mmap_emul = xyes; then
20229 BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE=
20230 BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE='#'
20232 BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE='#'
20233 BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE=
20237 if test "$build_pcm_rate" = "yes"; then
20239 $as_echo "#define BUILD_PCM_PLUGIN_RATE \"1\"" >>confdefs.h
20242 if test "$build_pcm_route" = "yes"; then
20244 $as_echo "#define BUILD_PCM_PLUGIN_ROUTE \"1\"" >>confdefs.h
20247 if test "$build_pcm_lfloat" = "yes"; then
20249 $as_echo "#define BUILD_PCM_PLUGIN_LFLOAT \"1\"" >>confdefs.h
20252 if test "$build_pcm_adpcm" = "yes"; then
20254 $as_echo "#define BUILD_PCM_PLUGIN_ADPCM \"1\"" >>confdefs.h
20257 if test "$build_pcm_mulaw" = "yes"; then
20259 $as_echo "#define BUILD_PCM_PLUGIN_MULAW \"1\"" >>confdefs.h
20262 if test "$build_pcm_alaw" = "yes"; then
20264 $as_echo "#define BUILD_PCM_PLUGIN_ALAW \"1\"" >>confdefs.h
20267 if test "$build_pcm_mmap_emul" = "yes"; then
20269 $as_echo "#define BUILD_PCM_PLUGIN_MMAP_EMUL \"1\"" >>confdefs.h
20274 rm -f "$srcdir"/src/pcm/pcm_symbols_list.c
20275 touch "$srcdir"/src/pcm/pcm_symbols_list.c
20276 for t in $PCM_PLUGIN_LIST; do
20277 if eval test \$build_pcm_$t = yes; then
20278 echo \&_snd_module_pcm_$t, >> "$srcdir"/src/pcm/pcm_symbols_list.c
20284 # Check whether --with-ctl-plugins was given.
20285 if test "${with_ctl_plugins+set}" = set; then :
20286 withval=$with_ctl_plugins; ctl_plugins="$withval"
20292 CTL_PLUGIN_LIST="shm ext"
20294 build_ctl_plugin="no"
20295 for t in $CTL_PLUGIN_LIST; do
20296 eval build_ctl_$t="no"
20299 ctl_plugins=`echo $ctl_plugins | sed 's/,/ /g'`
20300 for p in $ctl_plugins; do
20301 for t in $CTL_PLUGIN_LIST; do
20302 if test "$p" = "$t" -o "$p" = "all"; then
20303 eval build_ctl_$t="yes"
20304 build_ctl_plugin="yes"
20309 if test x$build_ctl_plugin = xyes; then
20310 BUILD_CTL_PLUGIN_TRUE=
20311 BUILD_CTL_PLUGIN_FALSE='#'
20313 BUILD_CTL_PLUGIN_TRUE='#'
20314 BUILD_CTL_PLUGIN_FALSE=
20317 if test x$build_ctl_shm = xyes; then
20318 BUILD_CTL_PLUGIN_SHM_TRUE=
20319 BUILD_CTL_PLUGIN_SHM_FALSE='#'
20321 BUILD_CTL_PLUGIN_SHM_TRUE='#'
20322 BUILD_CTL_PLUGIN_SHM_FALSE=
20325 if test x$build_ctl_ext = xyes; then
20326 BUILD_CTL_PLUGIN_EXT_TRUE=
20327 BUILD_CTL_PLUGIN_EXT_FALSE='#'
20329 BUILD_CTL_PLUGIN_EXT_TRUE='#'
20330 BUILD_CTL_PLUGIN_EXT_FALSE=
20334 rm -f "$srcdir"/src/control/ctl_symbols_list.c
20335 touch "$srcdir"/src/control/ctl_symbols_list.c
20336 for t in $CTL_PLUGIN_LIST; do
20337 if eval test \$build_ctl_$t = yes; then
20338 echo \&_snd_module_control_$t, >> "$srcdir"/src/control/ctl_symbols_list.c
20342 if test ! -L "$srcdir"/include/alsa ; then
20343 echo "Making a symlink include/alsa"
20344 rm -f "$srcdir"/include/alsa
20345 ln -sf . "$srcdir"/include/alsa
20348 ac_config_files="$ac_config_files Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg include/Makefile include/sound/Makefile src/Versions src/Makefile src/control/Makefile src/mixer/Makefile src/pcm/Makefile src/pcm/scopes/Makefile src/rawmidi/Makefile src/timer/Makefile src/hwdep/Makefile src/seq/Makefile src/ucm/Makefile src/compat/Makefile src/alisp/Makefile src/conf/Makefile src/conf/alsa.conf.d/Makefile src/conf/cards/Makefile src/conf/pcm/Makefile modules/Makefile modules/mixer/Makefile modules/mixer/simple/Makefile alsalisp/Makefile aserver/Makefile test/Makefile test/lsb/Makefile utils/Makefile utils/alsa-lib.spec utils/alsa.pc"
20350 cat >confcache <<\_ACEOF
20351 # This file is a shell script that caches the results of configure
20352 # tests run on this system so they can be shared between configure
20353 # scripts and configure runs, see configure's option --config-cache.
20354 # It is not useful on other systems. If it contains results you don't
20355 # want to keep, you may remove or edit it.
20357 # config.status only pays attention to the cache file if you give it
20358 # the --recheck option to rerun configure.
20360 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20361 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20362 # following values.
20366 # The following way of writing the cache mishandles newlines in values,
20367 # but we know of no workaround that is simple, portable, and efficient.
20368 # So, we kill variables containing newlines.
20369 # Ultrix sh set writes to stderr and can't be redirected directly,
20370 # and sets the high bit in the cache file unless we assign to the vars.
20372 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20373 eval ac_val=\$$ac_var
20377 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20378 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20381 _ | IFS | as_nl) ;; #(
20382 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20383 *) { eval $ac_var=; unset $ac_var;} ;;
20389 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20390 *${as_nl}ac_space=\ *)
20391 # `set' does not quote correctly, so add quotes: double-quote
20392 # substitution turns \\\\ into \\, and sed turns \\ into \.
20395 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20398 # `set' quotes correctly as required by POSIX, so do not add quotes.
20399 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20408 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20410 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20412 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20413 if test -w "$cache_file"; then
20414 if test "x$cache_file" != "x/dev/null"; then
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20416 $as_echo "$as_me: updating cache $cache_file" >&6;}
20417 if test ! -f "$cache_file" || test -h "$cache_file"; then
20418 cat confcache >"$cache_file"
20420 case $cache_file in #(
20422 mv -f confcache "$cache_file"$$ &&
20423 mv -f "$cache_file"$$ "$cache_file" ;; #(
20425 mv -f confcache "$cache_file" ;;
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20431 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20436 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20437 # Let make expand exec_prefix.
20438 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20440 DEFS=-DHAVE_CONFIG_H
20445 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20446 # 1. Remove the extension, and $U if already installed.
20447 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20448 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20449 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20450 # will be set to the directory where LIBOBJS objects are built.
20451 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20452 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20454 LIBOBJS=$ac_libobjs
20456 LTLIBOBJS=$ac_ltlibobjs
20459 if test -n "$EXEEXT"; then
20461 am__EXEEXT_FALSE='#'
20463 am__EXEEXT_TRUE='#'
20467 if test -z "${INSTALL_M4_TRUE}" && test -z "${INSTALL_M4_FALSE}"; then
20468 as_fn_error $? "conditional \"INSTALL_M4\" was never defined.
20469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20471 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20472 as_fn_error $? "conditional \"AMDEP\" was never defined.
20473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20475 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20476 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20479 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20480 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20483 if test -z "${ALSA_HSEARCH_R_TRUE}" && test -z "${ALSA_HSEARCH_R_FALSE}"; then
20484 as_fn_error $? "conditional \"ALSA_HSEARCH_R\" was never defined.
20485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20487 if test -z "${VERSIONED_SYMBOLS_TRUE}" && test -z "${VERSIONED_SYMBOLS_FALSE}"; then
20488 as_fn_error $? "conditional \"VERSIONED_SYMBOLS\" was never defined.
20489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20491 if test -z "${SYMBOLIC_FUNCTIONS_TRUE}" && test -z "${SYMBOLIC_FUNCTIONS_FALSE}"; then
20492 as_fn_error $? "conditional \"SYMBOLIC_FUNCTIONS\" was never defined.
20493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20495 if test -z "${BUILD_MODULES_TRUE}" && test -z "${BUILD_MODULES_FALSE}"; then
20496 as_fn_error $? "conditional \"BUILD_MODULES\" was never defined.
20497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20499 if test -z "${KEEP_OLD_SYMBOLS_TRUE}" && test -z "${KEEP_OLD_SYMBOLS_FALSE}"; then
20500 as_fn_error $? "conditional \"KEEP_OLD_SYMBOLS\" was never defined.
20501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20503 if test -z "${BUILD_MIXER_TRUE}" && test -z "${BUILD_MIXER_FALSE}"; then
20504 as_fn_error $? "conditional \"BUILD_MIXER\" was never defined.
20505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20507 if test -z "${BUILD_PCM_TRUE}" && test -z "${BUILD_PCM_FALSE}"; then
20508 as_fn_error $? "conditional \"BUILD_PCM\" was never defined.
20509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20511 if test -z "${BUILD_RAWMIDI_TRUE}" && test -z "${BUILD_RAWMIDI_FALSE}"; then
20512 as_fn_error $? "conditional \"BUILD_RAWMIDI\" was never defined.
20513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20515 if test -z "${BUILD_HWDEP_TRUE}" && test -z "${BUILD_HWDEP_FALSE}"; then
20516 as_fn_error $? "conditional \"BUILD_HWDEP\" was never defined.
20517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20519 if test -z "${BUILD_SEQ_TRUE}" && test -z "${BUILD_SEQ_FALSE}"; then
20520 as_fn_error $? "conditional \"BUILD_SEQ\" was never defined.
20521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20523 if test -z "${BUILD_UCM_TRUE}" && test -z "${BUILD_UCM_FALSE}"; then
20524 as_fn_error $? "conditional \"BUILD_UCM\" was never defined.
20525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20527 if test -z "${BUILD_ALISP_TRUE}" && test -z "${BUILD_ALISP_FALSE}"; then
20528 as_fn_error $? "conditional \"BUILD_ALISP\" was never defined.
20529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20531 if test -z "${BUILD_PYTHON_TRUE}" && test -z "${BUILD_PYTHON_FALSE}"; then
20532 as_fn_error $? "conditional \"BUILD_PYTHON\" was never defined.
20533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20535 if test -z "${BUILD_PCM_PLUGIN_TRUE}" && test -z "${BUILD_PCM_PLUGIN_FALSE}"; then
20536 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN\" was never defined.
20537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20539 if test -z "${BUILD_PCM_PLUGIN_COPY_TRUE}" && test -z "${BUILD_PCM_PLUGIN_COPY_FALSE}"; then
20540 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_COPY\" was never defined.
20541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20543 if test -z "${BUILD_PCM_PLUGIN_LINEAR_TRUE}" && test -z "${BUILD_PCM_PLUGIN_LINEAR_FALSE}"; then
20544 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_LINEAR\" was never defined.
20545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20547 if test -z "${BUILD_PCM_PLUGIN_ROUTE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ROUTE_FALSE}"; then
20548 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ROUTE\" was never defined.
20549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20551 if test -z "${BUILD_PCM_PLUGIN_MULAW_TRUE}" && test -z "${BUILD_PCM_PLUGIN_MULAW_FALSE}"; then
20552 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_MULAW\" was never defined.
20553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20555 if test -z "${BUILD_PCM_PLUGIN_ALAW_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ALAW_FALSE}"; then
20556 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ALAW\" was never defined.
20557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20559 if test -z "${BUILD_PCM_PLUGIN_ADPCM_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ADPCM_FALSE}"; then
20560 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ADPCM\" was never defined.
20561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20563 if test -z "${BUILD_PCM_PLUGIN_RATE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_RATE_FALSE}"; then
20564 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_RATE\" was never defined.
20565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20567 if test -z "${BUILD_PCM_PLUGIN_PLUG_TRUE}" && test -z "${BUILD_PCM_PLUGIN_PLUG_FALSE}"; then
20568 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_PLUG\" was never defined.
20569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20571 if test -z "${BUILD_PCM_PLUGIN_MULTI_TRUE}" && test -z "${BUILD_PCM_PLUGIN_MULTI_FALSE}"; then
20572 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_MULTI\" was never defined.
20573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20575 if test -z "${BUILD_PCM_PLUGIN_SHM_TRUE}" && test -z "${BUILD_PCM_PLUGIN_SHM_FALSE}"; then
20576 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_SHM\" was never defined.
20577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20579 if test -z "${BUILD_PCM_PLUGIN_FILE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_FILE_FALSE}"; then
20580 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_FILE\" was never defined.
20581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20583 if test -z "${BUILD_PCM_PLUGIN_NULL_TRUE}" && test -z "${BUILD_PCM_PLUGIN_NULL_FALSE}"; then
20584 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_NULL\" was never defined.
20585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20587 if test -z "${BUILD_PCM_PLUGIN_EMPTY_TRUE}" && test -z "${BUILD_PCM_PLUGIN_EMPTY_FALSE}"; then
20588 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_EMPTY\" was never defined.
20589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20591 if test -z "${BUILD_PCM_PLUGIN_SHARE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_SHARE_FALSE}"; then
20592 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_SHARE\" was never defined.
20593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20595 if test -z "${BUILD_PCM_PLUGIN_METER_TRUE}" && test -z "${BUILD_PCM_PLUGIN_METER_FALSE}"; then
20596 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_METER\" was never defined.
20597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20599 if test -z "${BUILD_PCM_PLUGIN_HOOKS_TRUE}" && test -z "${BUILD_PCM_PLUGIN_HOOKS_FALSE}"; then
20600 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_HOOKS\" was never defined.
20601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20603 if test -z "${BUILD_PCM_PLUGIN_LFLOAT_TRUE}" && test -z "${BUILD_PCM_PLUGIN_LFLOAT_FALSE}"; then
20604 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_LFLOAT\" was never defined.
20605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20607 if test -z "${BUILD_PCM_PLUGIN_LADSPA_TRUE}" && test -z "${BUILD_PCM_PLUGIN_LADSPA_FALSE}"; then
20608 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_LADSPA\" was never defined.
20609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20611 if test -z "${BUILD_PCM_PLUGIN_DMIX_TRUE}" && test -z "${BUILD_PCM_PLUGIN_DMIX_FALSE}"; then
20612 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_DMIX\" was never defined.
20613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20615 if test -z "${BUILD_PCM_PLUGIN_DSHARE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_DSHARE_FALSE}"; then
20616 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_DSHARE\" was never defined.
20617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20619 if test -z "${BUILD_PCM_PLUGIN_DSNOOP_TRUE}" && test -z "${BUILD_PCM_PLUGIN_DSNOOP_FALSE}"; then
20620 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_DSNOOP\" was never defined.
20621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20623 if test -z "${BUILD_PCM_PLUGIN_ASYM_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ASYM_FALSE}"; then
20624 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ASYM\" was never defined.
20625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20627 if test -z "${BUILD_PCM_PLUGIN_IEC958_TRUE}" && test -z "${BUILD_PCM_PLUGIN_IEC958_FALSE}"; then
20628 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_IEC958\" was never defined.
20629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20631 if test -z "${BUILD_PCM_PLUGIN_SOFTVOL_TRUE}" && test -z "${BUILD_PCM_PLUGIN_SOFTVOL_FALSE}"; then
20632 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_SOFTVOL\" was never defined.
20633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20635 if test -z "${BUILD_PCM_PLUGIN_EXTPLUG_TRUE}" && test -z "${BUILD_PCM_PLUGIN_EXTPLUG_FALSE}"; then
20636 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_EXTPLUG\" was never defined.
20637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20639 if test -z "${BUILD_PCM_PLUGIN_IOPLUG_TRUE}" && test -z "${BUILD_PCM_PLUGIN_IOPLUG_FALSE}"; then
20640 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_IOPLUG\" was never defined.
20641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20643 if test -z "${BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE}" && test -z "${BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE}"; then
20644 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_MMAP_EMUL\" was never defined.
20645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20647 if test -z "${BUILD_CTL_PLUGIN_TRUE}" && test -z "${BUILD_CTL_PLUGIN_FALSE}"; then
20648 as_fn_error $? "conditional \"BUILD_CTL_PLUGIN\" was never defined.
20649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20651 if test -z "${BUILD_CTL_PLUGIN_SHM_TRUE}" && test -z "${BUILD_CTL_PLUGIN_SHM_FALSE}"; then
20652 as_fn_error $? "conditional \"BUILD_CTL_PLUGIN_SHM\" was never defined.
20653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20655 if test -z "${BUILD_CTL_PLUGIN_EXT_TRUE}" && test -z "${BUILD_CTL_PLUGIN_EXT_FALSE}"; then
20656 as_fn_error $? "conditional \"BUILD_CTL_PLUGIN_EXT\" was never defined.
20657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20660 : "${CONFIG_STATUS=./config.status}"
20662 ac_clean_files_save=$ac_clean_files
20663 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20665 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20667 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20669 # Generated by $as_me.
20670 # Run this file to recreate the current configuration.
20671 # Compiler output produced by configure, useful for debugging
20672 # configure, is in config.log if it exists.
20675 ac_cs_recheck=false
20678 SHELL=\${CONFIG_SHELL-$SHELL}
20681 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20682 ## -------------------- ##
20683 ## M4sh Initialization. ##
20684 ## -------------------- ##
20686 # Be more Bourne compatible
20687 DUALCASE=1; export DUALCASE # for MKS sh
20688 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20691 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20692 # is contrary to our usage. Disable this feature.
20693 alias -g '${1+"$@"}'='"$@"'
20694 setopt NO_GLOB_SUBST
20696 case `(set -o) 2>/dev/null` in #(
20708 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20709 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20710 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20711 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20712 # Prefer a ksh shell builtin over an external printf program on Solaris,
20713 # but without wasting forks for bash or zsh.
20714 if test -z "$BASH_VERSION$ZSH_VERSION" \
20715 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20716 as_echo='print -r --'
20717 as_echo_n='print -rn --'
20718 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20719 as_echo='printf %s\n'
20720 as_echo_n='printf %s'
20722 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20723 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20724 as_echo_n='/usr/ucb/echo -n'
20726 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20727 as_echo_n_body='eval
20731 expr "X$arg" : "X\\(.*\\)$as_nl";
20732 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20734 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20736 export as_echo_n_body
20737 as_echo_n='sh -c $as_echo_n_body as_echo'
20739 export as_echo_body
20740 as_echo='sh -c $as_echo_body as_echo'
20743 # The user is always right.
20744 if test "${PATH_SEPARATOR+set}" != set; then
20746 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20747 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20754 # We need space, tab and new line, in precisely that order. Quoting is
20755 # there to prevent editors from complaining about space-tab.
20756 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20757 # splitting by setting IFS to empty value.)
20760 # Find who we are. Look in the path if we contain no directory separator.
20763 *[\\/]* ) as_myself=$0 ;;
20764 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20765 for as_dir in $PATH
20768 test -z "$as_dir" && as_dir=.
20769 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20775 # We did not find ourselves, most probably we were run as `sh COMMAND'
20776 # in which case we are not to be found in the path.
20777 if test "x$as_myself" = x; then
20780 if test ! -f "$as_myself"; then
20781 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20785 # Unset variables that we do not need and which cause bugs (e.g. in
20786 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20787 # suppresses any "Segmentation fault" message there. '((' could
20788 # trigger a bug in pdksh 5.2.14.
20789 for as_var in BASH_ENV ENV MAIL MAILPATH
20790 do eval test x\${$as_var+set} = xset \
20791 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20804 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20807 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20808 # ----------------------------------------
20809 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20810 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20811 # script with STATUS, using 1 if that was 0.
20814 as_status=$1; test $as_status -eq 0 && as_status=1
20816 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20817 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20819 $as_echo "$as_me: error: $2" >&2
20820 as_fn_exit $as_status
20824 # as_fn_set_status STATUS
20825 # -----------------------
20826 # Set $? to STATUS, without forking.
20827 as_fn_set_status ()
20830 } # as_fn_set_status
20832 # as_fn_exit STATUS
20833 # -----------------
20834 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20838 as_fn_set_status $1
20844 # Portably unset VAR.
20847 { eval $1=; unset $1;}
20849 as_unset=as_fn_unset
20850 # as_fn_append VAR VALUE
20851 # ----------------------
20852 # Append the text in VALUE to the end of the definition contained in VAR. Take
20853 # advantage of any shell optimizations that allow amortized linear growth over
20854 # repeated appends, instead of the typical quadratic growth present in naive
20856 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20857 eval 'as_fn_append ()
20868 # as_fn_arith ARG...
20869 # ------------------
20870 # Perform arithmetic evaluation on the ARGs, and store the result in the
20871 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20872 # must be portable across $(()) and expr.
20873 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20874 eval 'as_fn_arith ()
20881 as_val=`expr "$@" || test $? -eq 1`
20886 if expr a : '\(a\)' >/dev/null 2>&1 &&
20887 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20893 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20894 as_basename=basename
20899 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20905 as_me=`$as_basename -- "$0" ||
20906 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20907 X"$0" : 'X\(//\)$' \| \
20908 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20910 sed '/^.*\/\([^/][^/]*\)\/*$/{
20924 # Avoid depending upon Character Ranges.
20925 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20926 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20927 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20928 as_cr_digits='0123456789'
20929 as_cr_alnum=$as_cr_Letters$as_cr_digits
20931 ECHO_C= ECHO_N= ECHO_T=
20932 case `echo -n x` in #(((((
20934 case `echo 'xy\c'` in
20935 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20937 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20944 rm -f conf$$ conf$$.exe conf$$.file
20945 if test -d conf$$.dir; then
20946 rm -f conf$$.dir/conf$$.file
20949 mkdir conf$$.dir 2>/dev/null
20951 if (echo >conf$$.file) 2>/dev/null; then
20952 if ln -s conf$$.file conf$$ 2>/dev/null; then
20954 # ... but there are two gotchas:
20955 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20956 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20957 # In both cases, we have to default to `cp -p'.
20958 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20960 elif ln conf$$.file conf$$ 2>/dev/null; then
20968 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20969 rmdir conf$$.dir 2>/dev/null
20974 # Create "$as_dir" as a directory, including parents if necessary.
20979 -*) as_dir=./$as_dir;;
20981 test -d "$as_dir" || eval $as_mkdir_p || {
20985 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20986 *) as_qdir=$as_dir;;
20988 as_dirs="'$as_qdir' $as_dirs"
20989 as_dir=`$as_dirname -- "$as_dir" ||
20990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20991 X"$as_dir" : 'X\(//\)[^/]' \| \
20992 X"$as_dir" : 'X\(//\)$' \| \
20993 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20994 $as_echo X"$as_dir" |
20995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20999 /^X\(\/\/\)[^/].*/{
21012 test -d "$as_dir" && break
21014 test -z "$as_dirs" || eval "mkdir $as_dirs"
21015 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21019 if mkdir -p . 2>/dev/null; then
21020 as_mkdir_p='mkdir -p "$as_dir"'
21022 test -d ./-p && rmdir ./-p
21026 if test -x / >/dev/null 2>&1; then
21027 as_test_x='test -x'
21029 if ls -dL / >/dev/null 2>&1; then
21036 if test -d "$1"; then
21042 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21043 ???[sx]*):;;*)false;;esac;fi
21047 as_executable_p=$as_test_x
21049 # Sed expression to map a string onto a valid CPP name.
21050 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21052 # Sed expression to map a string onto a valid variable name.
21053 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21057 ## ----------------------------------- ##
21058 ## Main body of $CONFIG_STATUS script. ##
21059 ## ----------------------------------- ##
21061 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21064 # Save the log message, to keep $0 and so on meaningful, and to
21065 # report actual input values of CONFIG_FILES etc. instead of their
21066 # values after options handling.
21068 This file was extended by $as_me, which was
21069 generated by GNU Autoconf 2.68. Invocation command line was
21071 CONFIG_FILES = $CONFIG_FILES
21072 CONFIG_HEADERS = $CONFIG_HEADERS
21073 CONFIG_LINKS = $CONFIG_LINKS
21074 CONFIG_COMMANDS = $CONFIG_COMMANDS
21077 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21082 case $ac_config_files in *"
21083 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21086 case $ac_config_headers in *"
21087 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21092 # Files that config.status was made for.
21093 config_files="$ac_config_files"
21094 config_headers="$ac_config_headers"
21095 config_commands="$ac_config_commands"
21099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21101 \`$as_me' instantiates files and other configuration actions
21102 from templates according to the current configuration. Unless the files
21103 and actions are specified as TAGs, all are instantiated by default.
21105 Usage: $0 [OPTION]... [TAG]...
21107 -h, --help print this help, then exit
21108 -V, --version print version number and configuration settings, then exit
21109 --config print configuration, then exit
21110 -q, --quiet, --silent
21111 do not print progress messages
21112 -d, --debug don't remove temporary files
21113 --recheck update $as_me by reconfiguring in the same conditions
21114 --file=FILE[:TEMPLATE]
21115 instantiate the configuration file FILE
21116 --header=FILE[:TEMPLATE]
21117 instantiate the configuration header FILE
21119 Configuration files:
21122 Configuration headers:
21125 Configuration commands:
21128 Report bugs to the package provider."
21131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21132 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21135 configured by $0, generated by GNU Autoconf 2.68,
21136 with options \\"\$ac_cs_config\\"
21138 Copyright (C) 2010 Free Software Foundation, Inc.
21139 This config.status script is free software; the Free Software Foundation
21140 gives unlimited permission to copy, distribute and modify it."
21147 test -n "\$AWK" || AWK=awk
21150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21151 # The default lists apply if the user does not specify any file.
21157 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21158 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21162 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21174 # Handling of the options.
21175 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21177 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21178 $as_echo "$ac_cs_version"; exit ;;
21179 --config | --confi | --conf | --con | --co | --c )
21180 $as_echo "$ac_cs_config"; exit ;;
21181 --debug | --debu | --deb | --de | --d | -d )
21183 --file | --fil | --fi | --f )
21186 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21187 '') as_fn_error $? "missing file argument" ;;
21189 as_fn_append CONFIG_FILES " '$ac_optarg'"
21190 ac_need_defaults=false;;
21191 --header | --heade | --head | --hea )
21194 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21196 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21197 ac_need_defaults=false;;
21199 # Conflict between --help and --header
21200 as_fn_error $? "ambiguous option: \`$1'
21201 Try \`$0 --help' for more information.";;
21202 --help | --hel | -h )
21203 $as_echo "$ac_cs_usage"; exit ;;
21204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21205 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21208 # This is an error.
21209 -*) as_fn_error $? "unrecognized option: \`$1'
21210 Try \`$0 --help' for more information." ;;
21212 *) as_fn_append ac_config_targets " $1"
21213 ac_need_defaults=false ;;
21219 ac_configure_extra_args=
21221 if $ac_cs_silent; then
21223 ac_configure_extra_args="$ac_configure_extra_args --silent"
21227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21228 if \$ac_cs_recheck; then
21229 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21231 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21232 CONFIG_SHELL='$SHELL'
21233 export CONFIG_SHELL
21238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21242 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21243 ## Running $as_me. ##
21249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21253 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21259 # Handling of arguments.
21260 for ac_config_target in $ac_config_targets
21262 case $ac_config_target in
21263 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21264 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21265 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21266 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21267 "doc/pictures/Makefile") CONFIG_FILES="$CONFIG_FILES doc/pictures/Makefile" ;;
21268 "doc/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen.cfg" ;;
21269 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21270 "include/sound/Makefile") CONFIG_FILES="$CONFIG_FILES include/sound/Makefile" ;;
21271 "src/Versions") CONFIG_FILES="$CONFIG_FILES src/Versions" ;;
21272 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21273 "src/control/Makefile") CONFIG_FILES="$CONFIG_FILES src/control/Makefile" ;;
21274 "src/mixer/Makefile") CONFIG_FILES="$CONFIG_FILES src/mixer/Makefile" ;;
21275 "src/pcm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pcm/Makefile" ;;
21276 "src/pcm/scopes/Makefile") CONFIG_FILES="$CONFIG_FILES src/pcm/scopes/Makefile" ;;
21277 "src/rawmidi/Makefile") CONFIG_FILES="$CONFIG_FILES src/rawmidi/Makefile" ;;
21278 "src/timer/Makefile") CONFIG_FILES="$CONFIG_FILES src/timer/Makefile" ;;
21279 "src/hwdep/Makefile") CONFIG_FILES="$CONFIG_FILES src/hwdep/Makefile" ;;
21280 "src/seq/Makefile") CONFIG_FILES="$CONFIG_FILES src/seq/Makefile" ;;
21281 "src/ucm/Makefile") CONFIG_FILES="$CONFIG_FILES src/ucm/Makefile" ;;
21282 "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
21283 "src/alisp/Makefile") CONFIG_FILES="$CONFIG_FILES src/alisp/Makefile" ;;
21284 "src/conf/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/Makefile" ;;
21285 "src/conf/alsa.conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/alsa.conf.d/Makefile" ;;
21286 "src/conf/cards/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/cards/Makefile" ;;
21287 "src/conf/pcm/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/pcm/Makefile" ;;
21288 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
21289 "modules/mixer/Makefile") CONFIG_FILES="$CONFIG_FILES modules/mixer/Makefile" ;;
21290 "modules/mixer/simple/Makefile") CONFIG_FILES="$CONFIG_FILES modules/mixer/simple/Makefile" ;;
21291 "alsalisp/Makefile") CONFIG_FILES="$CONFIG_FILES alsalisp/Makefile" ;;
21292 "aserver/Makefile") CONFIG_FILES="$CONFIG_FILES aserver/Makefile" ;;
21293 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21294 "test/lsb/Makefile") CONFIG_FILES="$CONFIG_FILES test/lsb/Makefile" ;;
21295 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
21296 "utils/alsa-lib.spec") CONFIG_FILES="$CONFIG_FILES utils/alsa-lib.spec" ;;
21297 "utils/alsa.pc") CONFIG_FILES="$CONFIG_FILES utils/alsa.pc" ;;
21299 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21304 # If the user did not use the arguments to specify the items to instantiate,
21305 # then the envvar interface is used. Set only those that are not.
21306 # We use the long form for the default assignment because of an extremely
21307 # bizarre bug on SunOS 4.1.3.
21308 if $ac_need_defaults; then
21309 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21310 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21311 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21314 # Have a temporary directory for convenience. Make it in the build tree
21315 # simply because there is no reason against having it here, and in addition,
21316 # creating and moving files from /tmp can sometimes cause problems.
21317 # Hook for its removal unless debugging.
21318 # Note that there is a small window in which the directory will not be cleaned:
21319 # after its creation but before its name has been assigned to `$tmp'.
21323 trap 'exit_status=$?
21324 : "${ac_tmp:=$tmp}"
21325 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21327 trap 'as_fn_exit 1' 1 2 13 15
21329 # Create a (secure) tmp directory for tmp files.
21332 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21336 tmp=./conf$$-$RANDOM
21337 (umask 077 && mkdir "$tmp")
21338 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21341 # Set up the scripts for CONFIG_FILES section.
21342 # No need to generate them if there are no CONFIG_FILES.
21343 # This happens for instance with `./config.status config.h'.
21344 if test -n "$CONFIG_FILES"; then
21347 ac_cr=`echo X | tr X '\015'`
21348 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21349 # But we know of no other shell where ac_cr would be empty at this
21350 # point, so we can use a bashism as a fallback.
21351 if test "x$ac_cr" = x; then
21352 eval ac_cr=\$\'\\r\'
21354 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21355 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21358 ac_cs_awk_cr=$ac_cr
21361 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21366 echo "cat >conf$$subs.awk <<_ACEOF" &&
21367 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21369 } >conf$$subs.sh ||
21370 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21371 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21373 for ac_last_try in false false false false false :; do
21374 . ./conf$$subs.sh ||
21375 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21377 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21378 if test $ac_delim_n = $ac_delim_num; then
21380 elif $ac_last_try; then
21381 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21383 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21386 rm -f conf$$subs.sh
21388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21389 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21393 s/^/S["/; s/!.*/"]=/
21403 s/\(.\{148\}\)..*/\1/
21405 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21410 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21417 s/\(.\{148\}\)..*/\1/
21419 s/["\\]/\\&/g; s/^/"/; s/$/"/
21423 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21428 ' <conf$$subs.awk | sed '
21433 ' >>$CONFIG_STATUS || ac_write_fail=1
21434 rm -f conf$$subs.awk
21435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21437 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21438 for (key in S) S_is_set[key] = 1
21444 nfields = split(line, field, "@")
21446 len = length(field[1])
21447 for (i = 2; i < nfields; i++) {
21449 keylen = length(key)
21450 if (S_is_set[key]) {
21452 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21453 len += length(value) + length(field[++i])
21464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21465 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21466 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21469 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21470 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21473 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21474 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21475 # trailing colons and then remove the whole line if VPATH becomes empty
21476 # (actually we leave an empty line to preserve line numbers).
21477 if test "x$srcdir" = x.; then
21478 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21497 fi # test -n "$CONFIG_FILES"
21499 # Set up the scripts for CONFIG_HEADERS section.
21500 # No need to generate them if there are no CONFIG_HEADERS.
21501 # This happens for instance with `./config.status Makefile'.
21502 if test -n "$CONFIG_HEADERS"; then
21503 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21507 # Transform confdefs.h into an awk script `defines.awk', embedded as
21508 # here-document in config.status, that substitutes the proper values into
21509 # config.h.in to produce config.h.
21511 # Create a delimiter string that does not exist in confdefs.h, to ease
21512 # handling of long lines.
21514 for ac_last_try in false false :; do
21515 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21516 if test -z "$ac_tt"; then
21518 elif $ac_last_try; then
21519 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21521 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21525 # For the awk script, D is an array of macro values keyed by name,
21526 # likewise P contains macro parameters if any. Preserve backslash
21527 # newline sequences.
21529 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21531 s/.\{148\}/&'"$ac_delim"'/g
21534 s/^[ ]*#[ ]*define[ ][ ]*/ /
21541 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21543 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21547 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21548 D["\1"]=" \3\\\\\\n"\\/p
21550 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21555 s/.\{148\}/&'"$ac_delim"'/g
21560 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21563 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21565 ' <confdefs.h | sed '
21566 s/'"$ac_delim"'/"\\\
21567 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21570 for (key in D) D_is_set[key] = 1
21573 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21575 split(line, arg, " ")
21576 if (arg[1] == "#") {
21580 defundef = substr(arg[1], 2)
21583 split(mac1, mac2, "(") #)
21585 prefix = substr(line, 1, index(line, defundef) - 1)
21586 if (D_is_set[macro]) {
21587 # Preserve the white space surrounding the "#".
21588 print prefix "define", macro P[macro] D[macro]
21591 # Replace #undef with comments. This is necessary, for example,
21592 # in the case of _POSIX_SOURCE, which is predefined and required
21593 # on some systems where configure will not decide to define it.
21594 if (defundef == "undef") {
21595 print "/*", prefix defundef, macro, "*/"
21603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21604 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21605 fi # test -n "$CONFIG_HEADERS"
21608 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21613 :[FHLC]) ac_mode=$ac_tag; continue;;
21615 case $ac_mode$ac_tag in
21617 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21618 :[FH]-) ac_tag=-:-;;
21619 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21636 -) ac_f="$ac_tmp/stdin";;
21637 *) # Look for the file first in the build tree, then in the source tree
21638 # (if the path is not absolute). The absolute path cannot be DOS-style,
21639 # because $ac_f cannot contain `:'.
21643 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21645 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21647 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21648 as_fn_append ac_file_inputs " '$ac_f'"
21651 # Let's still pretend it is `configure' which instantiates (i.e., don't
21652 # use $as_me), people would be surprised to read:
21653 # /* config.h. Generated by config.status. */
21654 configure_input='Generated from '`
21655 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21657 if test x"$ac_file" != x-; then
21658 configure_input="$ac_file. $configure_input"
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21660 $as_echo "$as_me: creating $ac_file" >&6;}
21662 # Neutralize special characters interpreted by sed in replacement strings.
21663 case $configure_input in #(
21664 *\&* | *\|* | *\\* )
21665 ac_sed_conf_input=`$as_echo "$configure_input" |
21666 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21667 *) ac_sed_conf_input=$configure_input;;
21671 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21672 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21677 ac_dir=`$as_dirname -- "$ac_file" ||
21678 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21679 X"$ac_file" : 'X\(//\)[^/]' \| \
21680 X"$ac_file" : 'X\(//\)$' \| \
21681 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21682 $as_echo X"$ac_file" |
21683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21687 /^X\(\/\/\)[^/].*/{
21700 as_dir="$ac_dir"; as_fn_mkdir_p
21704 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21706 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21707 # A ".." for each directory in $ac_dir_suffix.
21708 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21709 case $ac_top_builddir_sub in
21710 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21711 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21714 ac_abs_top_builddir=$ac_pwd
21715 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21716 # for backward compatibility:
21717 ac_top_builddir=$ac_top_build_prefix
21720 .) # We are building in place.
21722 ac_top_srcdir=$ac_top_builddir_sub
21723 ac_abs_top_srcdir=$ac_pwd ;;
21724 [\\/]* | ?:[\\/]* ) # Absolute name.
21725 ac_srcdir=$srcdir$ac_dir_suffix;
21726 ac_top_srcdir=$srcdir
21727 ac_abs_top_srcdir=$srcdir ;;
21728 *) # Relative name.
21729 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21730 ac_top_srcdir=$ac_top_build_prefix$srcdir
21731 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21733 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21743 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21744 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21746 ac_MKDIR_P=$MKDIR_P
21748 [\\/$]* | ?:[\\/]* ) ;;
21749 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21754 # If the template does not know about datarootdir, expand it.
21755 # FIXME: This hack should be removed a few years after 2.60.
21756 ac_datarootdir_hack=; ac_datarootdir_seen=
21767 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21768 *datarootdir*) ac_datarootdir_seen=yes;;
21769 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21771 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21774 ac_datarootdir_hack='
21775 s&@datadir@&$datadir&g
21776 s&@docdir@&$docdir&g
21777 s&@infodir@&$infodir&g
21778 s&@localedir@&$localedir&g
21779 s&@mandir@&$mandir&g
21780 s&\\\${datarootdir}&$datarootdir&g' ;;
21784 # Neutralize VPATH when `$srcdir' = `.'.
21785 # Shell code in configure.ac might set extrasub.
21786 # FIXME: do we really want to maintain this feature?
21787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21788 ac_sed_extra="$ac_vpsub
21791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21794 s|@configure_input@|$ac_sed_conf_input|;t t
21795 s&@top_builddir@&$ac_top_builddir_sub&;t t
21796 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21797 s&@srcdir@&$ac_srcdir&;t t
21798 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21799 s&@top_srcdir@&$ac_top_srcdir&;t t
21800 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21801 s&@builddir@&$ac_builddir&;t t
21802 s&@abs_builddir@&$ac_abs_builddir&;t t
21803 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21804 s&@INSTALL@&$ac_INSTALL&;t t
21805 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21806 $ac_datarootdir_hack
21808 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21809 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21811 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21812 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21813 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21814 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21816 which seems to be undefined. Please make sure it is defined" >&5
21817 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21818 which seems to be undefined. Please make sure it is defined" >&2;}
21820 rm -f "$ac_tmp/stdin"
21822 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21823 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21825 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21831 if test x"$ac_file" != x-; then
21833 $as_echo "/* $configure_input */" \
21834 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21835 } >"$ac_tmp/config.h" \
21836 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21837 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21839 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21842 mv "$ac_tmp/config.h" "$ac_file" \
21843 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21846 $as_echo "/* $configure_input */" \
21847 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21848 || as_fn_error $? "could not create -" "$LINENO" 5
21850 # Compute "$ac_file"'s index in $config_headers.
21853 for _am_header in $config_headers :; do
21854 case $_am_header in
21855 $_am_arg | $_am_arg:* )
21858 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21861 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21862 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21863 X"$_am_arg" : 'X\(//\)[^/]' \| \
21864 X"$_am_arg" : 'X\(//\)$' \| \
21865 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21866 $as_echo X"$_am_arg" |
21867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21871 /^X\(\/\/\)[^/].*/{
21883 s/.*/./; q'`/stamp-h$_am_stamp_count
21886 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21887 $as_echo "$as_me: executing $ac_file commands" >&6;}
21892 case $ac_file$ac_mode in
21893 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21894 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21895 # are listed without --file. Let's play safe and only enable the eval
21896 # if we detect the quoting.
21897 case $CONFIG_FILES in
21898 *\'*) eval set x "$CONFIG_FILES" ;;
21899 *) set x $CONFIG_FILES ;;
21904 # Strip MF so we end up with the name of the file.
21905 mf=`echo "$mf" | sed -e 's/:.*$//'`
21906 # Check whether this is an Automake generated Makefile or not.
21907 # We used to match only the files named `Makefile.in', but
21908 # some people rename them; so instead we look at the file content.
21909 # Grep'ing the first line is not enough: some people post-process
21910 # each Makefile.in and add a new line on top of each file to say so.
21911 # Grep'ing the whole file is not good either: AIX grep has a line
21912 # limit of 2048, but all sed's we know have understand at least 4000.
21913 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21914 dirpart=`$as_dirname -- "$mf" ||
21915 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21916 X"$mf" : 'X\(//\)[^/]' \| \
21917 X"$mf" : 'X\(//\)$' \| \
21918 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21924 /^X\(\/\/\)[^/].*/{
21940 # Extract the definition of DEPDIR, am__include, and am__quote
21941 # from the Makefile without running `make'.
21942 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21943 test -z "$DEPDIR" && continue
21944 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21945 test -z "am__include" && continue
21946 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21947 # When using ansi2knr, U may be empty or an underscore; expand it
21948 U=`sed -n 's/^U = //p' < "$mf"`
21949 # Find all dependency output files, they are included files with
21950 # $(DEPDIR) in their names. We invoke sed twice because it is the
21951 # simplest approach to changing $(DEPDIR) to its actual value in the
21953 for file in `sed -n "
21954 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21955 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21956 # Make sure the directory exists.
21957 test -f "$dirpart/$file" && continue
21958 fdir=`$as_dirname -- "$file" ||
21959 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21960 X"$file" : 'X\(//\)[^/]' \| \
21961 X"$file" : 'X\(//\)$' \| \
21962 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21963 $as_echo X"$file" |
21964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21968 /^X\(\/\/\)[^/].*/{
21981 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21982 # echo "creating $dirpart/$file"
21983 echo '# dummy' > "$dirpart/$file"
21995 ac_clean_files=$ac_clean_files_save
21997 test $ac_write_fail = 0 ||
21998 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22001 # configure is writing to config.log, and then calls config.status.
22002 # config.status does its own redirection, appending to config.log.
22003 # Unfortunately, on DOS this fails, as config.log is still kept open
22004 # by configure, so config.status won't be able to write to it; its
22005 # output is simply discarded. So we exec the FD to /dev/null,
22006 # effectively closing config.log, so it can be properly (re)opened and
22007 # appended to by config.status. When coming back to configure, we
22008 # need to make the FD available again.
22009 if test "$no_create" != yes; then
22011 ac_config_status_args=
22012 test "$silent" = yes &&
22013 ac_config_status_args="$ac_config_status_args --quiet"
22015 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22017 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22018 # would make configure fail if this is the last instruction.
22019 $ac_cs_success || as_fn_exit 1
22021 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22023 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22027 echo "Creating asoundlib.h..."
22028 cp "$srcdir"/include/asoundlib-head.h include/asoundlib.h
22029 test "$build_pcm" = "yes" && echo "#include <alsa/pcm.h>" >> include/asoundlib.h
22030 test "$build_rawmidi" = "yes" && echo "#include <alsa/rawmidi.h>" >> include/asoundlib.h
22031 test "$build_pcm" = "yes" && echo "#include <alsa/timer.h>" >> include/asoundlib.h
22032 test "$build_hwdep" = "yes" && echo "#include <alsa/hwdep.h>" >> include/asoundlib.h
22033 echo "#include <alsa/control.h>" >> include/asoundlib.h
22034 test "$build_mixer" = "yes" && echo "#include <alsa/mixer.h>" >> include/asoundlib.h
22035 test "$build_seq" = "yes" && echo "#include <alsa/seq_event.h>" >> include/asoundlib.h
22036 test "$build_seq" = "yes" && echo "#include <alsa/seq.h>" >> include/asoundlib.h
22037 test "$build_seq" = "yes" && echo "#include <alsa/seqmid.h>" >> include/asoundlib.h
22038 test "$build_seq" = "yes" && echo "#include <alsa/seq_midi_event.h>" >> include/asoundlib.h
22039 cat "$srcdir"/include/asoundlib-tail.h >> include/asoundlib.h