2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for sharing-plugin-cli 0.1.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
588 # So, first we look for a working echo in the user's PATH.
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 # maybe with a smaller string...
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657 # Oops. We lost completely, so just stick with echo.
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 exec 7<&0 </dev/null 6>&1
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
686 ac_default_prefix=/usr/local
688 ac_config_libobj_dir=.
695 # Identity of this package.
696 PACKAGE_NAME='sharing-plugin-cli'
697 PACKAGE_TARNAME='sharing-plugin-cli'
698 PACKAGE_VERSION='0.1'
699 PACKAGE_STRING='sharing-plugin-cli 0.1'
703 # Factoring default headers for most tests.
704 ac_includes_default="\
706 #ifdef HAVE_SYS_TYPES_H
707 # include <sys/types.h>
709 #ifdef HAVE_SYS_STAT_H
710 # include <sys/stat.h>
716 # ifdef HAVE_STDLIB_H
721 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 #ifdef HAVE_STRINGS_H
727 # include <strings.h>
729 #ifdef HAVE_INTTYPES_H
730 # include <inttypes.h>
739 ac_subst_vars='am__EXEEXT_FALSE
805 MAINTAINER_MODE_FALSE
815 INSTALL_STRIP_PROGRAM
857 program_transform_name
870 enable_option_checking
871 enable_maintainer_mode
874 enable_dependency_tracking
881 ac_precious_vars='build_alias
901 # Initialize some variables set by options.
903 ac_init_version=false
904 ac_unrecognized_opts=
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
915 program_transform_name=s,x,x,
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940 infodir='${datarootdir}/info'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\$ac_option
961 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 # Accept the important Cygnus configure options, so we can diagnose typos.
967 case $ac_dashdash$ac_option in
971 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976 -build | --build | --buil | --bui | --bu)
977 ac_prev=build_alias ;;
978 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979 build_alias=$ac_optarg ;;
981 -cache-file | --cache-file | --cache-fil | --cache-fi \
982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983 ac_prev=cache_file ;;
984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986 cache_file=$ac_optarg ;;
989 cache_file=config.cache ;;
991 -datadir | --datadir | --datadi | --datad)
993 -datadir=* | --datadir=* | --datadi=* | --datad=*)
994 datadir=$ac_optarg ;;
996 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997 | --dataroo | --dataro | --datar)
998 ac_prev=datarootdir ;;
999 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001 datarootdir=$ac_optarg ;;
1003 -disable-* | --disable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1012 "enable_$ac_useropt"
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1017 eval enable_$ac_useropt=no ;;
1019 -docdir | --docdir | --docdi | --doc | --do)
1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022 docdir=$ac_optarg ;;
1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027 dvidir=$ac_optarg ;;
1029 -enable-* | --enable-*)
1030 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033 as_fn_error "invalid feature name: $ac_useropt"
1034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1038 "enable_$ac_useropt"
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
1043 eval enable_$ac_useropt=\$ac_optarg ;;
1045 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047 | --exec | --exe | --ex)
1048 ac_prev=exec_prefix ;;
1049 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051 | --exec=* | --exe=* | --ex=*)
1052 exec_prefix=$ac_optarg ;;
1054 -gas | --gas | --ga | --g)
1055 # Obsolete; use --with-gas.
1058 -help | --help | --hel | --he | -h)
1059 ac_init_help=long ;;
1060 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061 ac_init_help=recursive ;;
1062 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063 ac_init_help=short ;;
1065 -host | --host | --hos | --ho)
1066 ac_prev=host_alias ;;
1067 -host=* | --host=* | --hos=* | --ho=*)
1068 host_alias=$ac_optarg ;;
1070 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 htmldir=$ac_optarg ;;
1076 -includedir | --includedir | --includedi | --included | --include \
1077 | --includ | --inclu | --incl | --inc)
1078 ac_prev=includedir ;;
1079 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080 | --includ=* | --inclu=* | --incl=* | --inc=*)
1081 includedir=$ac_optarg ;;
1083 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086 infodir=$ac_optarg ;;
1088 -libdir | --libdir | --libdi | --libd)
1090 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091 libdir=$ac_optarg ;;
1093 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094 | --libexe | --libex | --libe)
1095 ac_prev=libexecdir ;;
1096 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097 | --libexe=* | --libex=* | --libe=*)
1098 libexecdir=$ac_optarg ;;
1100 -localedir | --localedir | --localedi | --localed | --locale)
1101 ac_prev=localedir ;;
1102 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103 localedir=$ac_optarg ;;
1105 -localstatedir | --localstatedir | --localstatedi | --localstated \
1106 | --localstate | --localstat | --localsta | --localst | --locals)
1107 ac_prev=localstatedir ;;
1108 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110 localstatedir=$ac_optarg ;;
1112 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115 mandir=$ac_optarg ;;
1117 -nfp | --nfp | --nf)
1118 # Obsolete; use --without-fp.
1121 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122 | --no-cr | --no-c | -n)
1125 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131 | --oldin | --oldi | --old | --ol | --o)
1132 ac_prev=oldincludedir ;;
1133 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136 oldincludedir=$ac_optarg ;;
1138 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141 prefix=$ac_optarg ;;
1143 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144 | --program-pre | --program-pr | --program-p)
1145 ac_prev=program_prefix ;;
1146 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148 program_prefix=$ac_optarg ;;
1150 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151 | --program-suf | --program-su | --program-s)
1152 ac_prev=program_suffix ;;
1153 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155 program_suffix=$ac_optarg ;;
1157 -program-transform-name | --program-transform-name \
1158 | --program-transform-nam | --program-transform-na \
1159 | --program-transform-n | --program-transform- \
1160 | --program-transform | --program-transfor \
1161 | --program-transfo | --program-transf \
1162 | --program-trans | --program-tran \
1163 | --progr-tra | --program-tr | --program-t)
1164 ac_prev=program_transform_name ;;
1165 -program-transform-name=* | --program-transform-name=* \
1166 | --program-transform-nam=* | --program-transform-na=* \
1167 | --program-transform-n=* | --program-transform-=* \
1168 | --program-transform=* | --program-transfor=* \
1169 | --program-transfo=* | --program-transf=* \
1170 | --program-trans=* | --program-tran=* \
1171 | --progr-tra=* | --program-tr=* | --program-t=*)
1172 program_transform_name=$ac_optarg ;;
1174 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177 pdfdir=$ac_optarg ;;
1179 -psdir | --psdir | --psdi | --psd | --ps)
1181 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185 | -silent | --silent | --silen | --sile | --sil)
1188 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 sbindir=$ac_optarg ;;
1194 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196 | --sharedst | --shareds | --shared | --share | --shar \
1198 ac_prev=sharedstatedir ;;
1199 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 sharedstatedir=$ac_optarg ;;
1205 -site | --site | --sit)
1207 -site=* | --site=* | --sit=*)
1210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213 srcdir=$ac_optarg ;;
1215 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216 | --syscon | --sysco | --sysc | --sys | --sy)
1217 ac_prev=sysconfdir ;;
1218 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220 sysconfdir=$ac_optarg ;;
1222 -target | --target | --targe | --targ | --tar | --ta | --t)
1223 ac_prev=target_alias ;;
1224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225 target_alias=$ac_optarg ;;
1227 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230 -version | --version | --versio | --versi | --vers | -V)
1231 ac_init_version=: ;;
1234 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237 as_fn_error "invalid package name: $ac_useropt"
1238 ac_useropt_orig=$ac_useropt
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245 ac_unrecognized_sep=', ';;
1247 eval with_$ac_useropt=\$ac_optarg ;;
1249 -without-* | --without-*)
1250 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253 as_fn_error "invalid package name: $ac_useropt"
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1263 eval with_$ac_useropt=no ;;
1266 # Obsolete; use --with-x.
1269 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1270 | --x-incl | --x-inc | --x-in | --x-i)
1271 ac_prev=x_includes ;;
1272 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1273 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1274 x_includes=$ac_optarg ;;
1276 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1277 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1278 ac_prev=x_libraries ;;
1279 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1280 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1281 x_libraries=$ac_optarg ;;
1283 -*) as_fn_error "unrecognized option: \`$ac_option'
1284 Try \`$0 --help' for more information."
1288 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289 # Reject names that are not valid shell variable names.
1290 case $ac_envvar in #(
1291 '' | [0-9]* | *[!_$as_cr_alnum]* )
1292 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1294 eval $ac_envvar=\$ac_optarg
1295 export $ac_envvar ;;
1298 # FIXME: should be removed in autoconf 3.0.
1299 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1300 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1302 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1308 if test -n "$ac_prev"; then
1309 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1310 as_fn_error "missing argument to $ac_option"
1313 if test -n "$ac_unrecognized_opts"; then
1314 case $enable_option_checking in
1316 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1317 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321 # Check all directory arguments for consistency.
1322 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323 datadir sysconfdir sharedstatedir localstatedir includedir \
1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325 libdir localedir mandir
1327 eval ac_val=\$$ac_var
1328 # Remove trailing slashes.
1331 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332 eval $ac_var=\$ac_val;;
1334 # Be sure to have absolute directory names.
1336 [\\/$]* | ?:[\\/]* ) continue;;
1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1342 # There might be people who depend on the old broken behavior: `$host'
1343 # used to hold the argument of --host etc.
1344 # FIXME: To remove some day.
1347 target=$target_alias
1349 # FIXME: To remove some day.
1350 if test "x$host_alias" != x; then
1351 if test "x$build_alias" = x; then
1352 cross_compiling=maybe
1353 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1354 If a cross compiler is detected then cross compile mode will be used." >&2
1355 elif test "x$build_alias" != "x$host_alias"; then
1361 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363 test "$silent" = yes && exec 6>/dev/null
1366 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1367 ac_ls_di=`ls -di .` &&
1368 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1369 as_fn_error "working directory cannot be determined"
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371 as_fn_error "pwd does not report name of working directory"
1374 # Find the source files, if location was not specified.
1375 if test -z "$srcdir"; then
1376 ac_srcdir_defaulted=yes
1377 # Try the directory containing this script, then the parent directory.
1378 ac_confdir=`$as_dirname -- "$as_myself" ||
1379 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1380 X"$as_myself" : 'X\(//\)[^/]' \| \
1381 X"$as_myself" : 'X\(//\)$' \| \
1382 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1383 $as_echo X"$as_myself" |
1384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1406 ac_srcdir_defaulted=no
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1410 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1412 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1416 # When building in place, set srcdir=.
1417 if test "$ac_abs_confdir" = "$ac_pwd"; then
1420 # Remove unnecessary trailing slashes from srcdir.
1421 # Double slashes in file names in object file debugging info
1422 # mess up M-x gdb in Emacs.
1424 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426 for ac_var in $ac_precious_vars; do
1427 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_env_${ac_var}_value=\$${ac_var}
1429 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434 # Report the --help message.
1436 if test "$ac_init_help" = "long"; then
1437 # Omit some internal or obsolete options to make the list less imposing.
1438 # This message is too long to be a string in the A/UX 3.1 sh.
1440 \`configure' configures sharing-plugin-cli 0.1 to adapt to many kinds of systems.
1442 Usage: $0 [OPTION]... [VAR=VALUE]...
1444 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445 VAR=VALUE. See below for descriptions of some of the useful variables.
1447 Defaults for the options are specified in brackets.
1450 -h, --help display this help and exit
1451 --help=short display options specific to this package
1452 --help=recursive display the short help of all the included packages
1453 -V, --version display version information and exit
1454 -q, --quiet, --silent do not print \`checking...' messages
1455 --cache-file=FILE cache test results in FILE [disabled]
1456 -C, --config-cache alias for \`--cache-file=config.cache'
1457 -n, --no-create do not create output files
1458 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1460 Installation directories:
1461 --prefix=PREFIX install architecture-independent files in PREFIX
1462 [$ac_default_prefix]
1463 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1466 By default, \`make install' will install all the files in
1467 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1468 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469 for instance \`--prefix=\$HOME'.
1471 For better control, use the options below.
1473 Fine tuning of the installation directories:
1474 --bindir=DIR user executables [EPREFIX/bin]
1475 --sbindir=DIR system admin executables [EPREFIX/sbin]
1476 --libexecdir=DIR program executables [EPREFIX/libexec]
1477 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1478 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1479 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1480 --libdir=DIR object code libraries [EPREFIX/lib]
1481 --includedir=DIR C header files [PREFIX/include]
1482 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1485 --infodir=DIR info documentation [DATAROOTDIR/info]
1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1487 --mandir=DIR man documentation [DATAROOTDIR/man]
1488 --docdir=DIR documentation root
1489 [DATAROOTDIR/doc/sharing-plugin-cli]
1490 --htmldir=DIR html documentation [DOCDIR]
1491 --dvidir=DIR dvi documentation [DOCDIR]
1492 --pdfdir=DIR pdf documentation [DOCDIR]
1493 --psdir=DIR ps documentation [DOCDIR]
1499 --program-prefix=PREFIX prepend PREFIX to installed program names
1500 --program-suffix=SUFFIX append SUFFIX to installed program names
1501 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1504 --build=BUILD configure for building on BUILD [guessed]
1505 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1509 if test -n "$ac_init_help"; then
1510 case $ac_init_help in
1511 short | recursive ) echo "Configuration of sharing-plugin-cli 0.1:";;
1516 --disable-option-checking ignore unrecognized --enable/--with options
1517 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1518 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1519 --enable-maintainer-mode enable make rules and dependencies not useful
1520 (and sometimes confusing) to the casual installer
1521 --enable-shared[=PKGS] build shared libraries [default=yes]
1522 --enable-static[=PKGS] build static libraries [default=no]
1523 --disable-dependency-tracking speeds up one-time build
1524 --enable-dependency-tracking do not reject slow dependency extractors
1525 --enable-fast-install[=PKGS]
1526 optimize for fast installation [default=yes]
1527 --disable-libtool-lock avoid locking (might break parallel builds)
1528 --enable-debug Turn on debug messages
1531 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1532 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1533 --with-pic try to use only PIC/non-PIC objects [default=use
1535 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1537 Some influential environment variables:
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1541 nonstandard directory <lib dir>
1542 LIBS libraries to pass to the linker, e.g. -l<library>
1543 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1544 you have headers in a nonstandard directory <include dir>
1545 CXX C++ compiler command
1546 CXXFLAGS C++ compiler flags
1548 CXXCPP C++ preprocessor
1549 PKG_CONFIG path to pkg-config utility
1551 C compiler flags for PACKAGE, overriding pkg-config
1553 linker flags for PACKAGE, overriding pkg-config
1555 C compiler flags for SHARING, overriding pkg-config
1557 linker flags for SHARING, overriding pkg-config
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1562 Report bugs to the package provider.
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" ||
1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579 # A ".." for each directory in $ac_dir_suffix.
1580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581 case $ac_top_builddir_sub in
1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1592 .) # We are building in place.
1594 ac_top_srcdir=$ac_top_builddir_sub
1595 ac_abs_top_srcdir=$ac_pwd ;;
1596 [\\/]* | ?:[\\/]* ) # Absolute name.
1597 ac_srcdir=$srcdir$ac_dir_suffix;
1598 ac_top_srcdir=$srcdir
1599 ac_abs_top_srcdir=$srcdir ;;
1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602 ac_top_srcdir=$ac_top_build_prefix$srcdir
1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607 cd "$ac_dir" || { ac_status=$?; continue; }
1608 # Check for guested configure.
1609 if test -f "$ac_srcdir/configure.gnu"; then
1611 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612 elif test -f "$ac_srcdir/configure"; then
1614 $SHELL "$ac_srcdir/configure" --help=recursive
1616 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 cd "$ac_pwd" || { ac_status=$?; break; }
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1625 sharing-plugin-cli configure 0.1
1626 generated by GNU Autoconf 2.64
1628 Copyright (C) 2009 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1635 ## ------------------------ ##
1636 ## Autoconf initialization. ##
1637 ## ------------------------ ##
1639 # ac_fn_c_try_compile LINENO
1640 # --------------------------
1641 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_compile ()
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 rm -f conftest.$ac_objext
1646 if { { ac_try="$ac_compile"
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_compile") 2>conftest.err
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && {
1662 test -z "$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 } && test -s conftest.$ac_objext; then :
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1672 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 } # ac_fn_c_try_compile
1677 # ac_fn_c_try_link LINENO
1678 # -----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded.
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext conftest$ac_exeext
1684 if { { ac_try="$ac_link"
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>conftest.err
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest$ac_exeext && {
1703 test "$cross_compiling" = yes ||
1704 $as_test_x conftest$ac_exeext
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715 # interfere with the next link command; also delete a directory that is
1716 # left behind by Apple's compiler. We do this before executing the actions.
1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 } # ac_fn_c_try_link
1723 # ac_fn_cxx_try_compile LINENO
1724 # ----------------------------
1725 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_cxx_try_compile ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext
1730 if { { ac_try="$ac_compile"
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_compile") 2>conftest.err
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_cxx_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest.$ac_objext; then :
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 } # ac_fn_cxx_try_compile
1761 # ac_fn_c_try_cpp LINENO
1762 # ----------------------
1763 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 if { { ac_try="$ac_cpp conftest.$ac_ext"
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } >/dev/null && {
1783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801 # that executables *can* be run.
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_link"
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_link") 2>&5
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }; then :
1828 $as_echo "$as_me: program exited with status $ac_status" >&5
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 ac_retval=$ac_status
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1850 $as_echo_n "(cached) " >&6
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1857 if ac_fn_c_try_compile "$LINENO"; then :
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 } # ac_fn_c_check_header_compile
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880 $as_echo_n "(cached) " >&6
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1886 #define $2 innocuous_$2
1888 /* System header to define __stub macros and hopefully few prototypes,
1889 which can conflict with char $2 (); below.
1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891 <limits.h> exists even on freestanding compilers. */
1894 # include <limits.h>
1896 # include <assert.h>
1901 /* Override any GCC internal prototype to avoid an error.
1902 Use char because int might match the return type of a GCC
1903 builtin and then its argument prototype would still apply. */
1908 /* The GNU C library defines this for functions which it implements
1909 to always fail with ENOSYS. Some functions are actually named
1910 something starting with __ and the normal name is an alias. */
1911 #if defined __stub_$2 || defined __stub___$2
1923 if ac_fn_c_try_link "$LINENO"; then :
1928 rm -f core conftest.err conftest.$ac_objext \
1929 conftest$ac_exeext conftest.$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936 } # ac_fn_c_check_func
1938 # ac_fn_cxx_try_cpp LINENO
1939 # ------------------------
1940 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_cxx_try_cpp ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 if { { ac_try="$ac_cpp conftest.$ac_ext"
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1953 if test -s conftest.err; then
1954 grep -v '^ *+' conftest.err >conftest.er1
1955 cat conftest.er1 >&5
1956 mv -f conftest.er1 conftest.err
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } >/dev/null && {
1960 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1961 test ! -s conftest.err
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973 } # ac_fn_cxx_try_cpp
1975 # ac_fn_cxx_try_link LINENO
1976 # -------------------------
1977 # Try to link conftest.$ac_ext, and return whether this succeeded.
1978 ac_fn_cxx_try_link ()
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 rm -f conftest.$ac_objext conftest$ac_exeext
1982 if { { ac_try="$ac_link"
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_link") 2>conftest.err
1991 if test -s conftest.err; then
1992 grep -v '^ *+' conftest.err >conftest.er1
1993 cat conftest.er1 >&5
1994 mv -f conftest.er1 conftest.err
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } && {
1998 test -z "$ac_cxx_werror_flag" ||
1999 test ! -s conftest.err
2000 } && test -s conftest$ac_exeext && {
2001 test "$cross_compiling" = yes ||
2002 $as_test_x conftest$ac_exeext
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2011 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2012 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2013 # interfere with the next link command; also delete a directory that is
2014 # left behind by Apple's compiler. We do this before executing the actions.
2015 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2016 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019 } # ac_fn_cxx_try_link
2020 cat >config.log <<_ACEOF
2021 This file contains any messages produced by compilers while
2022 running configure, to aid debugging if configure makes a mistake.
2024 It was created by sharing-plugin-cli $as_me 0.1, which was
2025 generated by GNU Autoconf 2.64. Invocation command line was
2037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2044 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2046 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2047 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2049 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2050 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2051 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2052 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 $as_echo "PATH: $as_dir"
2077 # Keep a trace of the command line.
2078 # Strip out --no-create and --no-recursion so they do not pile up.
2079 # Strip out --silent because we don't want to record it for future runs.
2080 # Also quote any args containing shell meta-characters.
2081 # Make two passes to allow for proper duplicate-argument suppression.
2085 ac_must_keep_next=false
2091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2093 | -silent | --silent | --silen | --sile | --sil)
2096 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2099 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2101 as_fn_append ac_configure_args1 " '$ac_arg'"
2102 if test $ac_must_keep_next = true; then
2103 ac_must_keep_next=false # Got value, back to normal.
2106 *=* | --config-cache | -C | -disable-* | --disable-* \
2107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2109 | -with-* | --with-* | -without-* | --without-* | --x)
2110 case "$ac_configure_args0 " in
2111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2114 -* ) ac_must_keep_next=true ;;
2117 as_fn_append ac_configure_args " '$ac_arg'"
2122 { ac_configure_args0=; unset ac_configure_args0;}
2123 { ac_configure_args1=; unset ac_configure_args1;}
2125 # When interrupted or exit'd, cleanup temporary files, and complete
2126 # config.log. We remove comments because anyway the quotes in there
2127 # would cause problems or look ugly.
2128 # WARNING: Use '\'' to represent an apostrophe within the trap.
2129 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2130 trap 'exit_status=$?
2131 # Save into config.log some information that might help in debugging.
2136 ## ---------------- ##
2137 ## Cache variables. ##
2138 ## ---------------- ##
2141 # The following way of writing the cache mishandles newlines in values,
2143 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2144 eval ac_val=\$$ac_var
2148 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2149 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2152 _ | IFS | as_nl) ;; #(
2153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2154 *) { eval $ac_var=; unset $ac_var;} ;;
2159 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2160 *${as_nl}ac_space=\ *)
2162 "s/'\''/'\''\\\\'\'''\''/g;
2163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2174 ## ----------------- ##
2175 ## Output variables. ##
2176 ## ----------------- ##
2179 for ac_var in $ac_subst_vars
2181 eval ac_val=\$$ac_var
2183 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2185 $as_echo "$ac_var='\''$ac_val'\''"
2189 if test -n "$ac_subst_files"; then
2191 ## ------------------- ##
2192 ## File substitutions. ##
2193 ## ------------------- ##
2196 for ac_var in $ac_subst_files
2198 eval ac_val=\$$ac_var
2200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2202 $as_echo "$ac_var='\''$ac_val'\''"
2207 if test -s confdefs.h; then
2217 test "$ac_signal" != 0 &&
2218 $as_echo "$as_me: caught signal $ac_signal"
2219 $as_echo "$as_me: exit $exit_status"
2221 rm -f core *.core core.conftest.* &&
2222 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2225 for ac_signal in 1 2 13 15; do
2226 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2230 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2231 rm -f -r conftest* confdefs.h
2233 $as_echo "/* confdefs.h */" > confdefs.h
2235 # Predefined preprocessor variables.
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_NAME "$PACKAGE_NAME"
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_STRING "$PACKAGE_STRING"
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_URL "$PACKAGE_URL"
2262 # Let the site file select an alternate cache file if it wants to.
2263 # Prefer an explicitly selected file to automatically selected ones.
2266 if test -n "$CONFIG_SITE"; then
2267 ac_site_file1=$CONFIG_SITE
2268 elif test "x$prefix" != xNONE; then
2269 ac_site_file1=$prefix/share/config.site
2270 ac_site_file2=$prefix/etc/config.site
2272 ac_site_file1=$ac_default_prefix/share/config.site
2273 ac_site_file2=$ac_default_prefix/etc/config.site
2275 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2277 test "x$ac_site_file" = xNONE && continue
2278 if test -r "$ac_site_file"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2280 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2281 sed 's/^/| /' "$ac_site_file" >&5
2286 if test -r "$cache_file"; then
2287 # Some versions of bash will fail to source /dev/null (special
2288 # files actually), so we avoid doing that.
2289 if test -f "$cache_file"; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2291 $as_echo "$as_me: loading cache $cache_file" >&6;}
2293 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2294 *) . "./$cache_file";;
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2299 $as_echo "$as_me: creating cache $cache_file" >&6;}
2303 # Check that the precious variables saved in the cache have kept the same
2305 ac_cache_corrupted=false
2306 for ac_var in $ac_precious_vars; do
2307 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2308 eval ac_new_set=\$ac_env_${ac_var}_set
2309 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2310 eval ac_new_val=\$ac_env_${ac_var}_value
2311 case $ac_old_set,$ac_new_set in
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2314 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2315 ac_cache_corrupted=: ;;
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2318 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2319 ac_cache_corrupted=: ;;
2322 if test "x$ac_old_val" != "x$ac_new_val"; then
2323 # differences in whitespace do not lead to failure.
2324 ac_old_val_w=`echo x $ac_old_val`
2325 ac_new_val_w=`echo x $ac_new_val`
2326 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2328 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2329 ac_cache_corrupted=:
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2332 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2333 eval $ac_var=\$ac_old_val
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2336 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2338 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2341 # Pass precious variables to config.status.
2342 if test "$ac_new_set" = set; then
2344 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2345 *) ac_arg=$ac_var=$ac_new_val ;;
2347 case " $ac_configure_args " in
2348 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2349 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2353 if $ac_cache_corrupted; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2357 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2358 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2360 ## -------------------- ##
2361 ## Main body of script. ##
2362 ## -------------------- ##
2365 ac_cpp='$CPP $CPPFLAGS'
2366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2371 am__api_version='1.11'
2374 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2375 for ac_t in install-sh install.sh shtool; do
2376 if test -f "$ac_dir/$ac_t"; then
2378 ac_install_sh="$ac_aux_dir/$ac_t -c"
2383 if test -z "$ac_aux_dir"; then
2384 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2387 # These three variables are undocumented and unsupported,
2388 # and are intended to be withdrawn in a future Autoconf release.
2389 # They can cause serious problems if a builder's source tree is in a directory
2390 # whose full name contains unusual characters.
2391 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2392 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2393 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2396 # Find a good install program. We prefer a C program (faster),
2397 # so one script is as good as another. But avoid the broken or
2398 # incompatible versions:
2399 # SysV /etc/install, /usr/sbin/install
2400 # SunOS /usr/etc/install
2401 # IRIX /sbin/install
2403 # AmigaOS /C/install, which installs bootblocks on floppy discs
2404 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2405 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2406 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2407 # OS/2's system install, which has a completely different semantic
2408 # ./install, which can be erroneously created by make from ./install.sh.
2409 # Reject install programs that cannot install multiple files.
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2411 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2412 if test -z "$INSTALL"; then
2413 if test "${ac_cv_path_install+set}" = set; then :
2414 $as_echo_n "(cached) " >&6
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 test -z "$as_dir" && as_dir=.
2421 # Account for people who put trailing slashes in PATH elements.
2422 case $as_dir/ in #((
2423 ./ | .// | /[cC]/* | \
2424 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2425 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2428 # OSF1 and SCO ODT 3.0 have their own names for install.
2429 # Don't use installbsd from OSF since it installs stuff as root
2431 for ac_prog in ginstall scoinst install; do
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2434 if test $ac_prog = install &&
2435 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2436 # AIX install. It has an incompatible calling convention.
2438 elif test $ac_prog = install &&
2439 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2440 # program-specific install script used by HP pwplus--don't use.
2443 rm -rf conftest.one conftest.two conftest.dir
2444 echo one > conftest.one
2445 echo two > conftest.two
2447 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2448 test -s conftest.one && test -s conftest.two &&
2449 test -s conftest.dir/conftest.one &&
2450 test -s conftest.dir/conftest.two
2452 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2465 rm -rf conftest.one conftest.two conftest.dir
2468 if test "${ac_cv_path_install+set}" = set; then
2469 INSTALL=$ac_cv_path_install
2471 # As a last resort, use the slow shell script. Don't cache a
2472 # value for INSTALL within a source directory, because that will
2473 # break other packages using the cache if that directory is
2474 # removed, or if the value is a relative name.
2475 INSTALL=$ac_install_sh
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2479 $as_echo "$INSTALL" >&6; }
2481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2482 # It thinks the first close brace ends the variable substitution.
2483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2490 $as_echo_n "checking whether build environment is sane... " >&6; }
2493 echo timestamp > conftest.file
2494 # Reject unsafe characters in $srcdir or the absolute working directory
2495 # name. Accept space and tab only in the latter.
2499 *[\\\"\#\$\&\'\`$am_lf]*)
2500 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2503 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2504 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2507 # Do `set' in a subshell so we don't clobber the current shell's
2508 # arguments. Must try -L first in case configure is actually a
2509 # symlink; some systems play weird games with the mod time of symlinks
2510 # (eg FreeBSD returns the mod time of the symlink's containing
2513 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2514 if test "$*" = "X"; then
2516 set X `ls -t "$srcdir/configure" conftest.file`
2519 if test "$*" != "X $srcdir/configure conftest.file" \
2520 && test "$*" != "X conftest.file $srcdir/configure"; then
2522 # If neither matched, then we have a broken ls. This can happen
2523 # if, for instance, CONFIG_SHELL is bash and it inherits a
2524 # broken ls alias from the environment. This has actually
2525 # happened. Such a system could not be considered "sane".
2526 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2527 alias in your environment" "$LINENO" 5
2530 test "$2" = conftest.file
2536 as_fn_error "newly created file is older than distributed files!
2537 Check your system clock" "$LINENO" 5
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2540 $as_echo "yes" >&6; }
2541 test "$program_prefix" != NONE &&
2542 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2543 # Use a double $ so make ignores it.
2544 test "$program_suffix" != NONE &&
2545 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2546 # Double any \ or $.
2547 # By default was `s,x,x', remove it if useless.
2548 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2549 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2551 # expand $ac_aux_dir to an absolute path
2552 am_aux_dir=`cd $ac_aux_dir && pwd`
2554 if test x"${MISSING+set}" != xset; then
2557 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2559 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2562 # Use eval to expand $SHELL
2563 if eval "$MISSING --run true"; then
2564 am_missing_run="$MISSING --run "
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2568 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2571 if test x"${install_sh}" != xset; then
2574 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2576 install_sh="\${SHELL} $am_aux_dir/install-sh"
2580 # Installed binaries are usually stripped using `strip' when the user
2581 # run `make install-strip'. However `strip' might not be the right
2582 # tool to use in cross-compilation environments, therefore Automake
2583 # will honor the `STRIP' environment variable to overrule this program.
2584 if test "$cross_compiling" != no; then
2585 if test -n "$ac_tool_prefix"; then
2586 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2587 set dummy ${ac_tool_prefix}strip; ac_word=$2
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589 $as_echo_n "checking for $ac_word... " >&6; }
2590 if test "${ac_cv_prog_STRIP+set}" = set; then :
2591 $as_echo_n "(cached) " >&6
2593 if test -n "$STRIP"; then
2594 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 STRIP=$ac_cv_prog_STRIP
2614 if test -n "$STRIP"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2616 $as_echo "$STRIP" >&6; }
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619 $as_echo "no" >&6; }
2624 if test -z "$ac_cv_prog_STRIP"; then
2626 # Extract the first word of "strip", so it can be a program name with args.
2627 set dummy strip; ac_word=$2
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2631 $as_echo_n "(cached) " >&6
2633 if test -n "$ac_ct_STRIP"; then
2634 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_ac_ct_STRIP="strip"
2644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2654 if test -n "$ac_ct_STRIP"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2656 $as_echo "$ac_ct_STRIP" >&6; }
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659 $as_echo "no" >&6; }
2662 if test "x$ac_ct_STRIP" = x; then
2665 case $cross_compiling:$ac_tool_warned in
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2669 ac_tool_warned=yes ;;
2674 STRIP="$ac_cv_prog_STRIP"
2678 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2681 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2682 if test -z "$MKDIR_P"; then
2683 if test "${ac_cv_path_mkdir+set}" = set; then :
2684 $as_echo_n "(cached) " >&6
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2690 test -z "$as_dir" && as_dir=.
2691 for ac_prog in mkdir gmkdir; do
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2694 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2695 'mkdir (GNU coreutils) '* | \
2696 'mkdir (coreutils) '* | \
2697 'mkdir (fileutils) '4.1*)
2698 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2708 if test "${ac_cv_path_mkdir+set}" = set; then
2709 MKDIR_P="$ac_cv_path_mkdir -p"
2711 # As a last resort, use the slow shell script. Don't cache a
2712 # value for MKDIR_P within a source directory, because that will
2713 # break other packages using the cache if that directory is
2714 # removed, or if the value is a relative name.
2715 test -d ./--version && rmdir ./--version
2716 MKDIR_P="$ac_install_sh -d"
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2720 $as_echo "$MKDIR_P" >&6; }
2724 [\\/$]* | ?:[\\/]*) ;;
2725 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2728 for ac_prog in gawk mawk nawk awk
2730 # Extract the first word of "$ac_prog", so it can be a program name with args.
2731 set dummy $ac_prog; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if test "${ac_cv_prog_AWK+set}" = set; then :
2735 $as_echo_n "(cached) " >&6
2737 if test -n "$AWK"; then
2738 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 ac_cv_prog_AWK="$ac_prog"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 if test -n "$AWK"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2760 $as_echo "$AWK" >&6; }
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2767 test -n "$AWK" && break
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2771 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2773 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2774 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2775 $as_echo_n "(cached) " >&6
2777 cat >conftest.make <<\_ACEOF
2780 @echo '@@@%%%=$(MAKE)=@@@%%%'
2782 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2783 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2785 eval ac_cv_prog_make_${ac_make}_set=yes;;
2787 eval ac_cv_prog_make_${ac_make}_set=no;;
2791 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2793 $as_echo "yes" >&6; }
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 SET_MAKE="MAKE=${MAKE-make}"
2801 rm -rf .tst 2>/dev/null
2802 mkdir .tst 2>/dev/null
2803 if test -d .tst; then
2808 rmdir .tst 2>/dev/null
2810 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2811 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2812 # is not polluted with repeated "-I."
2813 am__isrc=' -I$(srcdir)'
2814 # test to see if srcdir already configured
2815 if test -f $srcdir/config.status; then
2816 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2820 # test whether we have cygpath
2821 if test -z "$CYGPATH_W"; then
2822 if (cygpath --version) >/dev/null 2>/dev/null; then
2823 CYGPATH_W='cygpath -w'
2830 # Define the identity of the package.
2831 PACKAGE='sharing-plugin-cli'
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE "$PACKAGE"
2840 cat >>confdefs.h <<_ACEOF
2841 #define VERSION "$VERSION"
2844 # Some tools Automake needs.
2846 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2849 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2852 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2855 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2858 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2860 # We need awk for the "check" target. The system "awk" is bad on
2862 # Always define AMTAR for backward compatibility.
2864 AMTAR=${AMTAR-"${am_missing_run}tar"}
2866 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2875 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2876 # Check whether --enable-maintainer-mode was given.
2877 if test "${enable_maintainer_mode+set}" = set; then :
2878 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2880 USE_MAINTAINER_MODE=no
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2884 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2885 if test $USE_MAINTAINER_MODE = yes; then
2886 MAINTAINER_MODE_TRUE=
2887 MAINTAINER_MODE_FALSE='#'
2889 MAINTAINER_MODE_TRUE='#'
2890 MAINTAINER_MODE_FALSE=
2893 MAINT=$MAINTAINER_MODE_TRUE
2896 ac_config_headers="$ac_config_headers config.h"
2901 # Check whether --enable-shared was given.
2902 if test "${enable_shared+set}" = set; then :
2903 enableval=$enable_shared; p=${PACKAGE-default}
2905 yes) enable_shared=yes ;;
2906 no) enable_shared=no ;;
2909 # Look at the argument we got. We use all the common list separators.
2910 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2911 for pkg in $enableval; do
2913 if test "X$pkg" = "X$p"; then
2932 # Check whether --enable-static was given.
2933 if test "${enable_static+set}" = set; then :
2934 enableval=$enable_static; p=${PACKAGE-default}
2936 yes) enable_static=yes ;;
2937 no) enable_static=no ;;
2940 # Look at the argument we got. We use all the common list separators.
2941 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2942 for pkg in $enableval; do
2944 if test "X$pkg" = "X$p"; then
2963 DEPDIR="${am__leading_dot}deps"
2965 ac_config_commands="$ac_config_commands depfiles"
2968 am_make=${MAKE-make}
2969 cat > confinc << 'END'
2971 @echo this is the am__doit target
2974 # If we don't find an include directive, just comment out the code.
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2976 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2980 # First try GNU make style include.
2981 echo "include confinc" > confmf
2982 # Ignore all kinds of additional output from `make'.
2983 case `$am_make -s -f confmf 2> /dev/null` in #(
2984 *the\ am__doit\ target*)
2990 # Now try BSD make style include.
2991 if test "$am__include" = "#"; then
2992 echo '.include "confinc"' > confmf
2993 case `$am_make -s -f confmf 2> /dev/null` in #(
2994 *the\ am__doit\ target*)
2995 am__include=.include
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3004 $as_echo "$_am_result" >&6; }
3005 rm -f confinc confmf
3007 # Check whether --enable-dependency-tracking was given.
3008 if test "${enable_dependency_tracking+set}" = set; then :
3009 enableval=$enable_dependency_tracking;
3012 if test "x$enable_dependency_tracking" != xno; then
3013 am_depcomp="$ac_aux_dir/depcomp"
3016 if test "x$enable_dependency_tracking" != xno; then
3026 ac_cpp='$CPP $CPPFLAGS'
3027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030 if test -n "$ac_tool_prefix"; then
3031 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3032 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if test "${ac_cv_prog_CC+set}" = set; then :
3036 $as_echo_n "(cached) " >&6
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 if test -n "$CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3069 if test -z "$ac_cv_prog_CC"; then
3071 # Extract the first word of "gcc", so it can be a program name with args.
3072 set dummy gcc; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3076 $as_echo_n "(cached) " >&6
3078 if test -n "$ac_ct_CC"; then
3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088 ac_cv_prog_ac_ct_CC="gcc"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3099 if test -n "$ac_ct_CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3101 $as_echo "$ac_ct_CC" >&6; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3107 if test "x$ac_ct_CC" = x; then
3110 case $cross_compiling:$ac_tool_warned in
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3114 ac_tool_warned=yes ;;
3122 if test -z "$CC"; then
3123 if test -n "$ac_tool_prefix"; then
3124 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}cc; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if test "${ac_cv_prog_CC+set}" = set; then :
3129 $as_echo_n "(cached) " >&6
3131 if test -n "$CC"; then
3132 ac_cv_prog_CC="$CC" # Let the user override the test.
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3141 ac_cv_prog_CC="${ac_tool_prefix}cc"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 if test -n "$CC"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3154 $as_echo "$CC" >&6; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3163 if test -z "$CC"; then
3164 # Extract the first word of "cc", so it can be a program name with args.
3165 set dummy cc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if test "${ac_cv_prog_CC+set}" = set; then :
3169 $as_echo_n "(cached) " >&6
3171 if test -n "$CC"; then
3172 ac_cv_prog_CC="$CC" # Let the user override the test.
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3182 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3183 ac_prog_rejected=yes
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 if test $ac_prog_rejected = yes; then
3195 # We found a bogon in the path, so make sure we never use it.
3196 set dummy $ac_cv_prog_CC
3198 if test $# != 0; then
3199 # We chose a different compiler from the bogus one.
3200 # However, it has the same basename, so the bogon will be chosen
3201 # first if we set CC to just the basename; use the full file name.
3203 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3209 if test -n "$CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3211 $as_echo "$CC" >&6; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3219 if test -z "$CC"; then
3220 if test -n "$ac_tool_prefix"; then
3221 for ac_prog in cl.exe
3223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if test "${ac_cv_prog_CC+set}" = set; then :
3228 $as_echo_n "(cached) " >&6
3230 if test -n "$CC"; then
3231 ac_cv_prog_CC="$CC" # Let the user override the test.
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3240 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 if test -n "$CC"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3253 $as_echo "$CC" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3260 test -n "$CC" && break
3263 if test -z "$CC"; then
3265 for ac_prog in cl.exe
3267 # Extract the first word of "$ac_prog", so it can be a program name with args.
3268 set dummy $ac_prog; ac_word=$2
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 $as_echo_n "checking for $ac_word... " >&6; }
3271 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3272 $as_echo_n "(cached) " >&6
3274 if test -n "$ac_ct_CC"; then
3275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284 ac_cv_prog_ac_ct_CC="$ac_prog"
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3295 if test -n "$ac_ct_CC"; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3297 $as_echo "$ac_ct_CC" >&6; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3304 test -n "$ac_ct_CC" && break
3307 if test "x$ac_ct_CC" = x; then
3310 case $cross_compiling:$ac_tool_warned in
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3314 ac_tool_warned=yes ;;
3323 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325 as_fn_error "no acceptable C compiler found in \$PATH
3326 See \`config.log' for more details." "$LINENO" 5; }
3328 # Provide some information about the compiler.
3329 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3332 for ac_option in --version -v -V -qversion; do
3333 { { ac_try="$ac_compiler $ac_option >&5"
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339 $as_echo "$ac_try_echo"; } >&5
3340 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3342 if test -s conftest.err; then
3344 ... rest of stderr output deleted ...
3345 10q' conftest.err >conftest.er1
3346 cat conftest.er1 >&5
3347 rm -f conftest.er1 conftest.err
3349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350 test $ac_status = 0; }
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3359 FILE *f = fopen ("conftest.out", "w");
3360 return ferror (f) || fclose (f) != 0;
3366 ac_clean_files_save=$ac_clean_files
3367 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3368 # Try to create an executable without -o first, disregard a.out.
3369 # It will help us diagnose broken compilers, and finding out an intuition
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3372 $as_echo_n "checking for C compiler default output file name... " >&6; }
3373 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3375 # The possible output files:
3376 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3379 for ac_file in $ac_files
3382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3383 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3388 if { { ac_try="$ac_link_default"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_link_default") 2>&5
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; then :
3399 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3400 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3401 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3402 # so that the user can short-circuit this test for compilers unknown to
3404 for ac_file in $ac_files ''
3406 test -f "$ac_file" || continue
3408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3411 # We found the default executable, but exeext='' is most
3415 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3417 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3419 # We set ac_cv_exeext here because the later test for it is not
3420 # safe: cross compilers may not add the suffix if given an `-o'
3421 # argument, so we may need to know it at that point already.
3422 # Even if this section looks crufty: it has the advantage of
3429 test "$ac_cv_exeext" = no && ac_cv_exeext=
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3435 $as_echo "$ac_file" >&6; }
3436 if test -z "$ac_file"; then :
3437 $as_echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 { as_fn_set_status 77
3443 as_fn_error "C compiler cannot create executables
3444 See \`config.log' for more details." "$LINENO" 5; }; }
3446 ac_exeext=$ac_cv_exeext
3448 # Check that the compiler produces executables we can run. If not, either
3449 # the compiler is broken, or we cross compile.
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3451 $as_echo_n "checking whether the C compiler works... " >&6; }
3452 # If not cross compiling, check that we can run a simple program.
3453 if test "$cross_compiling" != yes; then
3454 if { ac_try='./$ac_file'
3455 { { case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_try") 2>&5
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }; }; then
3467 if test "$cross_compiling" = maybe; then
3470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error "cannot run C compiled programs.
3473 If you meant to cross compile, use \`--host'.
3474 See \`config.log' for more details." "$LINENO" 5; }
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3479 $as_echo "yes" >&6; }
3481 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3482 ac_clean_files=$ac_clean_files_save
3483 # Check that the compiler produces executables we can run. If not, either
3484 # the compiler is broken, or we cross compile.
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3486 $as_echo_n "checking whether we are cross compiling... " >&6; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3488 $as_echo "$cross_compiling" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3491 $as_echo_n "checking for suffix of executables... " >&6; }
3492 if { { ac_try="$ac_link"
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_link") 2>&5
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }; then :
3503 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3504 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3505 # work properly (i.e., refer to `conftest.exe'), while it won't with
3507 for ac_file in conftest.exe conftest conftest.*; do
3508 test -f "$ac_file" || continue
3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3511 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error "cannot compute suffix of executables: cannot compile and link
3520 See \`config.log' for more details." "$LINENO" 5; }
3522 rm -f conftest$ac_cv_exeext
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3524 $as_echo "$ac_cv_exeext" >&6; }
3526 rm -f conftest.$ac_ext
3527 EXEEXT=$ac_cv_exeext
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3530 $as_echo_n "checking for suffix of object files... " >&6; }
3531 if test "${ac_cv_objext+set}" = set; then :
3532 $as_echo_n "(cached) " >&6
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3545 rm -f conftest.o conftest.obj
3546 if { { ac_try="$ac_compile"
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552 $as_echo "$ac_try_echo"; } >&5
3553 (eval "$ac_compile") 2>&5
3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556 test $ac_status = 0; }; then :
3557 for ac_file in conftest.o conftest.obj conftest.*; do
3558 test -f "$ac_file" || continue;
3560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3561 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3566 $as_echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571 as_fn_error "cannot compute suffix of object files: cannot compile
3572 See \`config.log' for more details." "$LINENO" 5; }
3574 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3577 $as_echo "$ac_cv_objext" >&6; }
3578 OBJEXT=$ac_cv_objext
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3581 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3582 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3583 $as_echo_n "(cached) " >&6
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3599 if ac_fn_c_try_compile "$LINENO"; then :
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3609 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3610 if test $ac_compiler_gnu = yes; then
3615 ac_test_CFLAGS=${CFLAGS+set}
3616 ac_save_CFLAGS=$CFLAGS
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3618 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3619 if test "${ac_cv_prog_cc_g+set}" = set; then :
3620 $as_echo_n "(cached) " >&6
3622 ac_save_c_werror_flag=$ac_c_werror_flag
3623 ac_c_werror_flag=yes
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3637 if ac_fn_c_try_compile "$LINENO"; then :
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3652 if ac_fn_c_try_compile "$LINENO"; then :
3655 ac_c_werror_flag=$ac_save_c_werror_flag
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3668 if ac_fn_c_try_compile "$LINENO"; then :
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 ac_c_werror_flag=$ac_save_c_werror_flag
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3679 $as_echo "$ac_cv_prog_cc_g" >&6; }
3680 if test "$ac_test_CFLAGS" = set; then
3681 CFLAGS=$ac_save_CFLAGS
3682 elif test $ac_cv_prog_cc_g = yes; then
3683 if test "$GCC" = yes; then
3689 if test "$GCC" = yes; then
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3696 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3697 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3698 $as_echo_n "(cached) " >&6
3700 ac_cv_prog_cc_c89=no
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3706 #include <sys/types.h>
3707 #include <sys/stat.h>
3708 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3709 struct buf { int x; };
3710 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3711 static char *e (p, i)
3717 static char *f (char * (*g) (char **, int), char **p, ...)
3722 s = g (p, va_arg (v,int));
3727 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3728 function prototypes and stuff, but not '\xHH' hex character constants.
3729 These don't provoke an error unfortunately, instead are silently treated
3730 as 'x'. The following induces an error, until -std is added to get
3731 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3732 array size at least. It's necessary to write '\x00'==0 to get something
3733 that's true only with -std. */
3734 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3736 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3737 inside strings and character constants. */
3739 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3741 int test (int i, double x);
3742 struct s1 {int (*f) (int a);};
3743 struct s2 {int (*f) (double a);};
3744 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3750 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3755 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3756 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3758 CC="$ac_save_CC $ac_arg"
3759 if ac_fn_c_try_compile "$LINENO"; then :
3760 ac_cv_prog_cc_c89=$ac_arg
3762 rm -f core conftest.err conftest.$ac_objext
3763 test "x$ac_cv_prog_cc_c89" != "xno" && break
3765 rm -f conftest.$ac_ext
3770 case "x$ac_cv_prog_cc_c89" in
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3773 $as_echo "none needed" >&6; } ;;
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3776 $as_echo "unsupported" >&6; } ;;
3778 CC="$CC $ac_cv_prog_cc_c89"
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3780 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3782 if test "x$ac_cv_prog_cc_c89" != xno; then :
3787 ac_cpp='$CPP $CPPFLAGS'
3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792 depcc="$CC" am_compiler_list=
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3795 $as_echo_n "checking dependency style of $depcc... " >&6; }
3796 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3797 $as_echo_n "(cached) " >&6
3799 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3800 # We make a subdir and do the tests there. Otherwise we can end up
3801 # making bogus files that we don't know about and never remove. For
3802 # instance it was reported that on HP-UX the gcc test will end up
3803 # making a dummy file named `D' -- because `-MD' means `put the output
3806 # Copy depcomp to subdir because otherwise we won't find it if we're
3807 # using a relative directory.
3808 cp "$am_depcomp" conftest.dir
3810 # We will build objects and dependencies in a subdirectory because
3811 # it helps to detect inapplicable dependency modes. For instance
3812 # both Tru64's cc and ICC support -MD to output dependencies as a
3813 # side effect of compilation, but ICC will put the dependencies in
3814 # the current directory while Tru64 will put them in the object
3818 am_cv_CC_dependencies_compiler_type=none
3819 if test "$am_compiler_list" = ""; then
3820 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3823 case " $depcc " in #(
3824 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3827 for depmode in $am_compiler_list; do
3828 # Setup a source with many dependencies, because some compilers
3829 # like to wrap large dependency lists on column 80 (with \), and
3830 # we should not choose a depcomp mode which is confused by this.
3832 # We need to recreate these files for each test, as the compiler may
3833 # overwrite some of them when testing with obscure command lines.
3834 # This happens at least with the AIX C compiler.
3836 for i in 1 2 3 4 5 6; do
3837 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3838 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3839 # Solaris 8's {/usr,}/bin/sh.
3840 touch sub/conftst$i.h
3842 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3844 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3845 # mode. It turns out that the SunPro C++ compiler does not properly
3846 # handle `-M -o', and we need to detect this. Also, some Intel
3847 # versions had trouble with output in subdirs
3848 am__obj=sub/conftest.${OBJEXT-o}
3849 am__minus_obj="-o $am__obj"
3852 # This depmode causes a compiler race in universal mode.
3853 test "$am__universal" = false || continue
3856 # after this tag, mechanisms are not by side-effect, so they'll
3857 # only be used when explicitly requested
3858 if test "x$enable_dependency_tracking" = xyes; then
3864 msvisualcpp | msvcmsys)
3865 # This compiler won't grok `-c -o', but also, the minuso test has
3866 # not run yet. These depmodes are late enough in the game, and
3867 # so weak that their functioning should not be impacted.
3868 am__obj=conftest.${OBJEXT-o}
3873 if depmode=$depmode \
3874 source=sub/conftest.c object=$am__obj \
3875 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3876 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3877 >/dev/null 2>conftest.err &&
3878 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3879 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3880 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3881 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3882 # icc doesn't choke on unknown options, it will just issue warnings
3883 # or remarks (even with -Werror). So we grep stderr for any message
3884 # that says an option was ignored or not supported.
3885 # When given -MP, icc 7.0 and 7.1 complain thusly:
3886 # icc: Command line warning: ignoring option '-M'; no argument required
3887 # The diagnosis changed in icc 8.0:
3888 # icc: Command line remark: option '-MP' not supported
3889 if (grep 'ignoring option' conftest.err ||
3890 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3891 am_cv_CC_dependencies_compiler_type=$depmode
3900 am_cv_CC_dependencies_compiler_type=none
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3905 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3906 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3909 test "x$enable_dependency_tracking" != xno \
3910 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3912 am__fastdepCC_FALSE='#'
3914 am__fastdepCC_TRUE='#'
3915 am__fastdepCC_FALSE=
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3921 $as_echo_n "checking for library containing strerror... " >&6; }
3922 if test "${ac_cv_search_strerror+set}" = set; then :
3923 $as_echo_n "(cached) " >&6
3925 ac_func_search_save_LIBS=$LIBS
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3929 /* Override any GCC internal prototype to avoid an error.
3930 Use char because int might match the return type of a GCC
3931 builtin and then its argument prototype would still apply. */
3944 for ac_lib in '' cposix; do
3945 if test -z "$ac_lib"; then
3946 ac_res="none required"
3949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3951 if ac_fn_c_try_link "$LINENO"; then :
3952 ac_cv_search_strerror=$ac_res
3954 rm -f core conftest.err conftest.$ac_objext \
3956 if test "${ac_cv_search_strerror+set}" = set; then :
3960 if test "${ac_cv_search_strerror+set}" = set; then :
3963 ac_cv_search_strerror=no
3966 LIBS=$ac_func_search_save_LIBS
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3969 $as_echo "$ac_cv_search_strerror" >&6; }
3970 ac_res=$ac_cv_search_strerror
3971 if test "$ac_res" != no; then :
3972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3977 ac_cpp='$CXXCPP $CPPFLAGS'
3978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3981 if test -z "$CXX"; then
3982 if test -n "$CCC"; then
3985 if test -n "$ac_tool_prefix"; then
3986 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991 $as_echo_n "checking for $ac_word... " >&6; }
3992 if test "${ac_cv_prog_CXX+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3995 if test -n "$CXX"; then
3996 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 if test -n "$CXX"; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4018 $as_echo "$CXX" >&6; }
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 $as_echo "no" >&6; }
4025 test -n "$CXX" && break
4028 if test -z "$CXX"; then
4030 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4032 # Extract the first word of "$ac_prog", so it can be a program name with args.
4033 set dummy $ac_prog; ac_word=$2
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4039 if test -n "$ac_ct_CXX"; then
4040 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049 ac_cv_prog_ac_ct_CXX="$ac_prog"
4050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4060 if test -n "$ac_ct_CXX"; then
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4062 $as_echo "$ac_ct_CXX" >&6; }
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065 $as_echo "no" >&6; }
4069 test -n "$ac_ct_CXX" && break
4072 if test "x$ac_ct_CXX" = x; then
4075 case $cross_compiling:$ac_tool_warned in
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079 ac_tool_warned=yes ;;
4087 # Provide some information about the compiler.
4088 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4091 for ac_option in --version -v -V -qversion; do
4092 { { ac_try="$ac_compiler $ac_option >&5"
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4098 $as_echo "$ac_try_echo"; } >&5
4099 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4101 if test -s conftest.err; then
4103 ... rest of stderr output deleted ...
4104 10q' conftest.err >conftest.er1
4105 cat conftest.er1 >&5
4106 rm -f conftest.er1 conftest.err
4108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4109 test $ac_status = 0; }
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4113 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4114 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4115 $as_echo_n "(cached) " >&6
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4131 if ac_fn_cxx_try_compile "$LINENO"; then :
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4141 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4142 if test $ac_compiler_gnu = yes; then
4147 ac_test_CXXFLAGS=${CXXFLAGS+set}
4148 ac_save_CXXFLAGS=$CXXFLAGS
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4150 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4151 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4152 $as_echo_n "(cached) " >&6
4154 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4155 ac_cxx_werror_flag=yes
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4169 if ac_fn_cxx_try_compile "$LINENO"; then :
4170 ac_cv_prog_cxx_g=yes
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4184 if ac_fn_cxx_try_compile "$LINENO"; then :
4187 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4200 if ac_fn_cxx_try_compile "$LINENO"; then :
4201 ac_cv_prog_cxx_g=yes
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4211 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4212 if test "$ac_test_CXXFLAGS" = set; then
4213 CXXFLAGS=$ac_save_CXXFLAGS
4214 elif test $ac_cv_prog_cxx_g = yes; then
4215 if test "$GXX" = yes; then
4221 if test "$GXX" = yes; then
4228 ac_cpp='$CPP $CPPFLAGS'
4229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233 depcc="$CXX" am_compiler_list=
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4236 $as_echo_n "checking dependency style of $depcc... " >&6; }
4237 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4238 $as_echo_n "(cached) " >&6
4240 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4241 # We make a subdir and do the tests there. Otherwise we can end up
4242 # making bogus files that we don't know about and never remove. For
4243 # instance it was reported that on HP-UX the gcc test will end up
4244 # making a dummy file named `D' -- because `-MD' means `put the output
4247 # Copy depcomp to subdir because otherwise we won't find it if we're
4248 # using a relative directory.
4249 cp "$am_depcomp" conftest.dir
4251 # We will build objects and dependencies in a subdirectory because
4252 # it helps to detect inapplicable dependency modes. For instance
4253 # both Tru64's cc and ICC support -MD to output dependencies as a
4254 # side effect of compilation, but ICC will put the dependencies in
4255 # the current directory while Tru64 will put them in the object
4259 am_cv_CXX_dependencies_compiler_type=none
4260 if test "$am_compiler_list" = ""; then
4261 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4264 case " $depcc " in #(
4265 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4268 for depmode in $am_compiler_list; do
4269 # Setup a source with many dependencies, because some compilers
4270 # like to wrap large dependency lists on column 80 (with \), and
4271 # we should not choose a depcomp mode which is confused by this.
4273 # We need to recreate these files for each test, as the compiler may
4274 # overwrite some of them when testing with obscure command lines.
4275 # This happens at least with the AIX C compiler.
4277 for i in 1 2 3 4 5 6; do
4278 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4279 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4280 # Solaris 8's {/usr,}/bin/sh.
4281 touch sub/conftst$i.h
4283 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4285 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4286 # mode. It turns out that the SunPro C++ compiler does not properly
4287 # handle `-M -o', and we need to detect this. Also, some Intel
4288 # versions had trouble with output in subdirs
4289 am__obj=sub/conftest.${OBJEXT-o}
4290 am__minus_obj="-o $am__obj"
4293 # This depmode causes a compiler race in universal mode.
4294 test "$am__universal" = false || continue
4297 # after this tag, mechanisms are not by side-effect, so they'll
4298 # only be used when explicitly requested
4299 if test "x$enable_dependency_tracking" = xyes; then
4305 msvisualcpp | msvcmsys)
4306 # This compiler won't grok `-c -o', but also, the minuso test has
4307 # not run yet. These depmodes are late enough in the game, and
4308 # so weak that their functioning should not be impacted.
4309 am__obj=conftest.${OBJEXT-o}
4314 if depmode=$depmode \
4315 source=sub/conftest.c object=$am__obj \
4316 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4317 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4318 >/dev/null 2>conftest.err &&
4319 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4320 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4321 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4322 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4323 # icc doesn't choke on unknown options, it will just issue warnings
4324 # or remarks (even with -Werror). So we grep stderr for any message
4325 # that says an option was ignored or not supported.
4326 # When given -MP, icc 7.0 and 7.1 complain thusly:
4327 # icc: Command line warning: ignoring option '-M'; no argument required
4328 # The diagnosis changed in icc 8.0:
4329 # icc: Command line remark: option '-MP' not supported
4330 if (grep 'ignoring option' conftest.err ||
4331 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4332 am_cv_CXX_dependencies_compiler_type=$depmode
4341 am_cv_CXX_dependencies_compiler_type=none
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4346 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4347 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4350 test "x$enable_dependency_tracking" != xno \
4351 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4352 am__fastdepCXX_TRUE=
4353 am__fastdepCXX_FALSE='#'
4355 am__fastdepCXX_TRUE='#'
4356 am__fastdepCXX_FALSE=
4361 ac_cpp='$CPP $CPPFLAGS'
4362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4366 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4367 # On Suns, sometimes $CPP names a directory.
4368 if test -n "$CPP" && test -d "$CPP"; then
4371 if test -z "$CPP"; then
4372 if test "${ac_cv_prog_CPP+set}" = set; then :
4373 $as_echo_n "(cached) " >&6
4375 # Double quotes because CPP needs to be expanded
4376 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4379 for ac_c_preproc_warn_flag in '' yes
4381 # Use a header file that comes with gcc, so configuring glibc
4382 # with a fresh cross-compiler works.
4383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4384 # <limits.h> exists even on freestanding compilers.
4385 # On the NeXT, cc -E runs the code through the compiler's parser,
4386 # not just through cpp. "Syntax error" is here to catch this case.
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4390 # include <limits.h>
4392 # include <assert.h>
4396 if ac_fn_c_try_cpp "$LINENO"; then :
4399 # Broken: fails on valid input.
4402 rm -f conftest.err conftest.$ac_ext
4404 # OK, works on sane cases. Now check whether nonexistent headers
4405 # can be detected and how.
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408 #include <ac_nonexistent.h>
4410 if ac_fn_c_try_cpp "$LINENO"; then :
4411 # Broken: success on invalid input.
4414 # Passes both tests.
4418 rm -f conftest.err conftest.$ac_ext
4421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422 rm -f conftest.err conftest.$ac_ext
4423 if $ac_preproc_ok; then :
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4436 $as_echo "$CPP" >&6; }
4438 for ac_c_preproc_warn_flag in '' yes
4440 # Use a header file that comes with gcc, so configuring glibc
4441 # with a fresh cross-compiler works.
4442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4443 # <limits.h> exists even on freestanding compilers.
4444 # On the NeXT, cc -E runs the code through the compiler's parser,
4445 # not just through cpp. "Syntax error" is here to catch this case.
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4449 # include <limits.h>
4451 # include <assert.h>
4455 if ac_fn_c_try_cpp "$LINENO"; then :
4458 # Broken: fails on valid input.
4461 rm -f conftest.err conftest.$ac_ext
4463 # OK, works on sane cases. Now check whether nonexistent headers
4464 # can be detected and how.
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467 #include <ac_nonexistent.h>
4469 if ac_fn_c_try_cpp "$LINENO"; then :
4470 # Broken: success on invalid input.
4473 # Passes both tests.
4477 rm -f conftest.err conftest.$ac_ext
4480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4481 rm -f conftest.err conftest.$ac_ext
4482 if $ac_preproc_ok; then :
4485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4487 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4488 See \`config.log' for more details." "$LINENO" 5; }
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4498 ac_cpp='$CPP $CPPFLAGS'
4499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502 if test -n "$ac_tool_prefix"; then
4503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4504 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506 $as_echo_n "checking for $ac_word... " >&6; }
4507 if test "${ac_cv_prog_CC+set}" = set; then :
4508 $as_echo_n "(cached) " >&6
4510 if test -n "$CC"; then
4511 ac_cv_prog_CC="$CC" # Let the user override the test.
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 if test -n "$CC"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4533 $as_echo "$CC" >&6; }
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4541 if test -z "$ac_cv_prog_CC"; then
4543 # Extract the first word of "gcc", so it can be a program name with args.
4544 set dummy gcc; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4548 $as_echo_n "(cached) " >&6
4550 if test -n "$ac_ct_CC"; then
4551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_ac_ct_CC="gcc"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4571 if test -n "$ac_ct_CC"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4573 $as_echo "$ac_ct_CC" >&6; }
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4579 if test "x$ac_ct_CC" = x; then
4582 case $cross_compiling:$ac_tool_warned in
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4586 ac_tool_warned=yes ;;
4594 if test -z "$CC"; then
4595 if test -n "$ac_tool_prefix"; then
4596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4597 set dummy ${ac_tool_prefix}cc; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if test "${ac_cv_prog_CC+set}" = set; then :
4601 $as_echo_n "(cached) " >&6
4603 if test -n "$CC"; then
4604 ac_cv_prog_CC="$CC" # Let the user override the test.
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4613 ac_cv_prog_CC="${ac_tool_prefix}cc"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 if test -n "$CC"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4626 $as_echo "$CC" >&6; }
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4635 if test -z "$CC"; then
4636 # Extract the first word of "cc", so it can be a program name with args.
4637 set dummy cc; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if test "${ac_cv_prog_CC+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
4643 if test -n "$CC"; then
4644 ac_cv_prog_CC="$CC" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4655 ac_prog_rejected=yes
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 if test $ac_prog_rejected = yes; then
4667 # We found a bogon in the path, so make sure we never use it.
4668 set dummy $ac_cv_prog_CC
4670 if test $# != 0; then
4671 # We chose a different compiler from the bogus one.
4672 # However, it has the same basename, so the bogon will be chosen
4673 # first if we set CC to just the basename; use the full file name.
4675 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4681 if test -n "$CC"; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4683 $as_echo "$CC" >&6; }
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4691 if test -z "$CC"; then
4692 if test -n "$ac_tool_prefix"; then
4693 for ac_prog in cl.exe
4695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_CC+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4702 if test -n "$CC"; then
4703 ac_cv_prog_CC="$CC" # Let the user override the test.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 if test -n "$CC"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4725 $as_echo "$CC" >&6; }
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4732 test -n "$CC" && break
4735 if test -z "$CC"; then
4737 for ac_prog in cl.exe
4739 # Extract the first word of "$ac_prog", so it can be a program name with args.
4740 set dummy $ac_prog; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4746 if test -n "$ac_ct_CC"; then
4747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_prog_ac_ct_CC="$ac_prog"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4767 if test -n "$ac_ct_CC"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4769 $as_echo "$ac_ct_CC" >&6; }
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4776 test -n "$ac_ct_CC" && break
4779 if test "x$ac_ct_CC" = x; then
4782 case $cross_compiling:$ac_tool_warned in
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4786 ac_tool_warned=yes ;;
4795 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4797 as_fn_error "no acceptable C compiler found in \$PATH
4798 See \`config.log' for more details." "$LINENO" 5; }
4800 # Provide some information about the compiler.
4801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4804 for ac_option in --version -v -V -qversion; do
4805 { { ac_try="$ac_compiler $ac_option >&5"
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4811 $as_echo "$ac_try_echo"; } >&5
4812 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4814 if test -s conftest.err; then
4816 ... rest of stderr output deleted ...
4817 10q' conftest.err >conftest.er1
4818 cat conftest.er1 >&5
4819 rm -f conftest.er1 conftest.err
4821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4822 test $ac_status = 0; }
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4826 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4827 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4844 if ac_fn_c_try_compile "$LINENO"; then :
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4854 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4855 if test $ac_compiler_gnu = yes; then
4860 ac_test_CFLAGS=${CFLAGS+set}
4861 ac_save_CFLAGS=$CFLAGS
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4863 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4864 if test "${ac_cv_prog_cc_g+set}" = set; then :
4865 $as_echo_n "(cached) " >&6
4867 ac_save_c_werror_flag=$ac_c_werror_flag
4868 ac_c_werror_flag=yes
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4882 if ac_fn_c_try_compile "$LINENO"; then :
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4897 if ac_fn_c_try_compile "$LINENO"; then :
4900 ac_c_werror_flag=$ac_save_c_werror_flag
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4913 if ac_fn_c_try_compile "$LINENO"; then :
4916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921 ac_c_werror_flag=$ac_save_c_werror_flag
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4924 $as_echo "$ac_cv_prog_cc_g" >&6; }
4925 if test "$ac_test_CFLAGS" = set; then
4926 CFLAGS=$ac_save_CFLAGS
4927 elif test $ac_cv_prog_cc_g = yes; then
4928 if test "$GCC" = yes; then
4934 if test "$GCC" = yes; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4941 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4942 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4943 $as_echo_n "(cached) " >&6
4945 ac_cv_prog_cc_c89=no
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4951 #include <sys/types.h>
4952 #include <sys/stat.h>
4953 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4954 struct buf { int x; };
4955 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4956 static char *e (p, i)
4962 static char *f (char * (*g) (char **, int), char **p, ...)
4967 s = g (p, va_arg (v,int));
4972 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4973 function prototypes and stuff, but not '\xHH' hex character constants.
4974 These don't provoke an error unfortunately, instead are silently treated
4975 as 'x'. The following induces an error, until -std is added to get
4976 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4977 array size at least. It's necessary to write '\x00'==0 to get something
4978 that's true only with -std. */
4979 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4981 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4982 inside strings and character constants. */
4984 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4986 int test (int i, double x);
4987 struct s1 {int (*f) (int a);};
4988 struct s2 {int (*f) (double a);};
4989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4995 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5000 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5001 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5003 CC="$ac_save_CC $ac_arg"
5004 if ac_fn_c_try_compile "$LINENO"; then :
5005 ac_cv_prog_cc_c89=$ac_arg
5007 rm -f core conftest.err conftest.$ac_objext
5008 test "x$ac_cv_prog_cc_c89" != "xno" && break
5010 rm -f conftest.$ac_ext
5015 case "x$ac_cv_prog_cc_c89" in
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5018 $as_echo "none needed" >&6; } ;;
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5021 $as_echo "unsupported" >&6; } ;;
5023 CC="$CC $ac_cv_prog_cc_c89"
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5025 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5027 if test "x$ac_cv_prog_cc_c89" != xno; then :
5032 ac_cpp='$CPP $CPPFLAGS'
5033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037 depcc="$CC" am_compiler_list=
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5040 $as_echo_n "checking dependency style of $depcc... " >&6; }
5041 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5042 $as_echo_n "(cached) " >&6
5044 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5045 # We make a subdir and do the tests there. Otherwise we can end up
5046 # making bogus files that we don't know about and never remove. For
5047 # instance it was reported that on HP-UX the gcc test will end up
5048 # making a dummy file named `D' -- because `-MD' means `put the output
5051 # Copy depcomp to subdir because otherwise we won't find it if we're
5052 # using a relative directory.
5053 cp "$am_depcomp" conftest.dir
5055 # We will build objects and dependencies in a subdirectory because
5056 # it helps to detect inapplicable dependency modes. For instance
5057 # both Tru64's cc and ICC support -MD to output dependencies as a
5058 # side effect of compilation, but ICC will put the dependencies in
5059 # the current directory while Tru64 will put them in the object
5063 am_cv_CC_dependencies_compiler_type=none
5064 if test "$am_compiler_list" = ""; then
5065 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5068 case " $depcc " in #(
5069 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5072 for depmode in $am_compiler_list; do
5073 # Setup a source with many dependencies, because some compilers
5074 # like to wrap large dependency lists on column 80 (with \), and
5075 # we should not choose a depcomp mode which is confused by this.
5077 # We need to recreate these files for each test, as the compiler may
5078 # overwrite some of them when testing with obscure command lines.
5079 # This happens at least with the AIX C compiler.
5081 for i in 1 2 3 4 5 6; do
5082 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5083 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5084 # Solaris 8's {/usr,}/bin/sh.
5085 touch sub/conftst$i.h
5087 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5089 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5090 # mode. It turns out that the SunPro C++ compiler does not properly
5091 # handle `-M -o', and we need to detect this. Also, some Intel
5092 # versions had trouble with output in subdirs
5093 am__obj=sub/conftest.${OBJEXT-o}
5094 am__minus_obj="-o $am__obj"
5097 # This depmode causes a compiler race in universal mode.
5098 test "$am__universal" = false || continue
5101 # after this tag, mechanisms are not by side-effect, so they'll
5102 # only be used when explicitly requested
5103 if test "x$enable_dependency_tracking" = xyes; then
5109 msvisualcpp | msvcmsys)
5110 # This compiler won't grok `-c -o', but also, the minuso test has
5111 # not run yet. These depmodes are late enough in the game, and
5112 # so weak that their functioning should not be impacted.
5113 am__obj=conftest.${OBJEXT-o}
5118 if depmode=$depmode \
5119 source=sub/conftest.c object=$am__obj \
5120 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5121 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5122 >/dev/null 2>conftest.err &&
5123 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5124 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5125 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5126 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5127 # icc doesn't choke on unknown options, it will just issue warnings
5128 # or remarks (even with -Werror). So we grep stderr for any message
5129 # that says an option was ignored or not supported.
5130 # When given -MP, icc 7.0 and 7.1 complain thusly:
5131 # icc: Command line warning: ignoring option '-M'; no argument required
5132 # The diagnosis changed in icc 8.0:
5133 # icc: Command line remark: option '-MP' not supported
5134 if (grep 'ignoring option' conftest.err ||
5135 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5136 am_cv_CC_dependencies_compiler_type=$depmode
5145 am_cv_CC_dependencies_compiler_type=none
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5150 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5151 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5154 test "x$enable_dependency_tracking" != xno \
5155 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5157 am__fastdepCC_FALSE='#'
5159 am__fastdepCC_TRUE='#'
5160 am__fastdepCC_FALSE=
5165 ac_cpp='$CPP $CPPFLAGS'
5166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5169 if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if test "${ac_cv_prog_CC+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5177 if test -n "$CC"; then
5178 ac_cv_prog_CC="$CC" # Let the user override the test.
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 if test -n "$CC"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5200 $as_echo "$CC" >&6; }
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5208 if test -z "$ac_cv_prog_CC"; then
5210 # Extract the first word of "gcc", so it can be a program name with args.
5211 set dummy gcc; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5215 $as_echo_n "(cached) " >&6
5217 if test -n "$ac_ct_CC"; then
5218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_prog_ac_ct_CC="gcc"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5238 if test -n "$ac_ct_CC"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5240 $as_echo "$ac_ct_CC" >&6; }
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5246 if test "x$ac_ct_CC" = x; then
5249 case $cross_compiling:$ac_tool_warned in
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5253 ac_tool_warned=yes ;;
5261 if test -z "$CC"; then
5262 if test -n "$ac_tool_prefix"; then
5263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5264 set dummy ${ac_tool_prefix}cc; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if test "${ac_cv_prog_CC+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5270 if test -n "$CC"; then
5271 ac_cv_prog_CC="$CC" # Let the user override the test.
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280 ac_cv_prog_CC="${ac_tool_prefix}cc"
5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 if test -n "$CC"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5293 $as_echo "$CC" >&6; }
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5302 if test -z "$CC"; then
5303 # Extract the first word of "cc", so it can be a program name with args.
5304 set dummy cc; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if test "${ac_cv_prog_CC+set}" = set; then :
5308 $as_echo_n "(cached) " >&6
5310 if test -n "$CC"; then
5311 ac_cv_prog_CC="$CC" # Let the user override the test.
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5321 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5322 ac_prog_rejected=yes
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 if test $ac_prog_rejected = yes; then
5334 # We found a bogon in the path, so make sure we never use it.
5335 set dummy $ac_cv_prog_CC
5337 if test $# != 0; then
5338 # We chose a different compiler from the bogus one.
5339 # However, it has the same basename, so the bogon will be chosen
5340 # first if we set CC to just the basename; use the full file name.
5342 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5348 if test -n "$CC"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5350 $as_echo "$CC" >&6; }
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5358 if test -z "$CC"; then
5359 if test -n "$ac_tool_prefix"; then
5360 for ac_prog in cl.exe
5362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if test "${ac_cv_prog_CC+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5369 if test -n "$CC"; then
5370 ac_cv_prog_CC="$CC" # Let the user override the test.
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 if test -n "$CC"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5392 $as_echo "$CC" >&6; }
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5399 test -n "$CC" && break
5402 if test -z "$CC"; then
5404 for ac_prog in cl.exe
5406 # Extract the first word of "$ac_prog", so it can be a program name with args.
5407 set dummy $ac_prog; ac_word=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5413 if test -n "$ac_ct_CC"; then
5414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 test -z "$as_dir" && as_dir=.
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423 ac_cv_prog_ac_ct_CC="$ac_prog"
5424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5434 if test -n "$ac_ct_CC"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5436 $as_echo "$ac_ct_CC" >&6; }
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5443 test -n "$ac_ct_CC" && break
5446 if test "x$ac_ct_CC" = x; then
5449 case $cross_compiling:$ac_tool_warned in
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5453 ac_tool_warned=yes ;;
5462 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464 as_fn_error "no acceptable C compiler found in \$PATH
5465 See \`config.log' for more details." "$LINENO" 5; }
5467 # Provide some information about the compiler.
5468 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5471 for ac_option in --version -v -V -qversion; do
5472 { { ac_try="$ac_compiler $ac_option >&5"
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5478 $as_echo "$ac_try_echo"; } >&5
5479 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5481 if test -s conftest.err; then
5483 ... rest of stderr output deleted ...
5484 10q' conftest.err >conftest.er1
5485 cat conftest.er1 >&5
5486 rm -f conftest.er1 conftest.err
5488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5489 test $ac_status = 0; }
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5493 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5494 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5495 $as_echo_n "(cached) " >&6
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5511 if ac_fn_c_try_compile "$LINENO"; then :
5516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5521 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5522 if test $ac_compiler_gnu = yes; then
5527 ac_test_CFLAGS=${CFLAGS+set}
5528 ac_save_CFLAGS=$CFLAGS
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5530 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5531 if test "${ac_cv_prog_cc_g+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
5534 ac_save_c_werror_flag=$ac_c_werror_flag
5535 ac_c_werror_flag=yes
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5549 if ac_fn_c_try_compile "$LINENO"; then :
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5564 if ac_fn_c_try_compile "$LINENO"; then :
5567 ac_c_werror_flag=$ac_save_c_werror_flag
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5580 if ac_fn_c_try_compile "$LINENO"; then :
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 ac_c_werror_flag=$ac_save_c_werror_flag
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5591 $as_echo "$ac_cv_prog_cc_g" >&6; }
5592 if test "$ac_test_CFLAGS" = set; then
5593 CFLAGS=$ac_save_CFLAGS
5594 elif test $ac_cv_prog_cc_g = yes; then
5595 if test "$GCC" = yes; then
5601 if test "$GCC" = yes; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5608 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5609 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5612 ac_cv_prog_cc_c89=no
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5618 #include <sys/types.h>
5619 #include <sys/stat.h>
5620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5621 struct buf { int x; };
5622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5623 static char *e (p, i)
5629 static char *f (char * (*g) (char **, int), char **p, ...)
5634 s = g (p, va_arg (v,int));
5639 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5640 function prototypes and stuff, but not '\xHH' hex character constants.
5641 These don't provoke an error unfortunately, instead are silently treated
5642 as 'x'. The following induces an error, until -std is added to get
5643 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5644 array size at least. It's necessary to write '\x00'==0 to get something
5645 that's true only with -std. */
5646 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5648 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5649 inside strings and character constants. */
5651 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5653 int test (int i, double x);
5654 struct s1 {int (*f) (int a);};
5655 struct s2 {int (*f) (double a);};
5656 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5662 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5667 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5668 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5670 CC="$ac_save_CC $ac_arg"
5671 if ac_fn_c_try_compile "$LINENO"; then :
5672 ac_cv_prog_cc_c89=$ac_arg
5674 rm -f core conftest.err conftest.$ac_objext
5675 test "x$ac_cv_prog_cc_c89" != "xno" && break
5677 rm -f conftest.$ac_ext
5682 case "x$ac_cv_prog_cc_c89" in
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5685 $as_echo "none needed" >&6; } ;;
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5688 $as_echo "unsupported" >&6; } ;;
5690 CC="$CC $ac_cv_prog_cc_c89"
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5692 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5694 if test "x$ac_cv_prog_cc_c89" != xno; then :
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5704 depcc="$CC" am_compiler_list=
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5707 $as_echo_n "checking dependency style of $depcc... " >&6; }
5708 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5709 $as_echo_n "(cached) " >&6
5711 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5712 # We make a subdir and do the tests there. Otherwise we can end up
5713 # making bogus files that we don't know about and never remove. For
5714 # instance it was reported that on HP-UX the gcc test will end up
5715 # making a dummy file named `D' -- because `-MD' means `put the output
5718 # Copy depcomp to subdir because otherwise we won't find it if we're
5719 # using a relative directory.
5720 cp "$am_depcomp" conftest.dir
5722 # We will build objects and dependencies in a subdirectory because
5723 # it helps to detect inapplicable dependency modes. For instance
5724 # both Tru64's cc and ICC support -MD to output dependencies as a
5725 # side effect of compilation, but ICC will put the dependencies in
5726 # the current directory while Tru64 will put them in the object
5730 am_cv_CC_dependencies_compiler_type=none
5731 if test "$am_compiler_list" = ""; then
5732 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5735 case " $depcc " in #(
5736 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5739 for depmode in $am_compiler_list; do
5740 # Setup a source with many dependencies, because some compilers
5741 # like to wrap large dependency lists on column 80 (with \), and
5742 # we should not choose a depcomp mode which is confused by this.
5744 # We need to recreate these files for each test, as the compiler may
5745 # overwrite some of them when testing with obscure command lines.
5746 # This happens at least with the AIX C compiler.
5748 for i in 1 2 3 4 5 6; do
5749 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5750 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5751 # Solaris 8's {/usr,}/bin/sh.
5752 touch sub/conftst$i.h
5754 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5756 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5757 # mode. It turns out that the SunPro C++ compiler does not properly
5758 # handle `-M -o', and we need to detect this. Also, some Intel
5759 # versions had trouble with output in subdirs
5760 am__obj=sub/conftest.${OBJEXT-o}
5761 am__minus_obj="-o $am__obj"
5764 # This depmode causes a compiler race in universal mode.
5765 test "$am__universal" = false || continue
5768 # after this tag, mechanisms are not by side-effect, so they'll
5769 # only be used when explicitly requested
5770 if test "x$enable_dependency_tracking" = xyes; then
5776 msvisualcpp | msvcmsys)
5777 # This compiler won't grok `-c -o', but also, the minuso test has
5778 # not run yet. These depmodes are late enough in the game, and
5779 # so weak that their functioning should not be impacted.
5780 am__obj=conftest.${OBJEXT-o}
5785 if depmode=$depmode \
5786 source=sub/conftest.c object=$am__obj \
5787 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5788 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5789 >/dev/null 2>conftest.err &&
5790 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5791 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5792 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5793 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5794 # icc doesn't choke on unknown options, it will just issue warnings
5795 # or remarks (even with -Werror). So we grep stderr for any message
5796 # that says an option was ignored or not supported.
5797 # When given -MP, icc 7.0 and 7.1 complain thusly:
5798 # icc: Command line warning: ignoring option '-M'; no argument required
5799 # The diagnosis changed in icc 8.0:
5800 # icc: Command line remark: option '-MP' not supported
5801 if (grep 'ignoring option' conftest.err ||
5802 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5803 am_cv_CC_dependencies_compiler_type=$depmode
5812 am_cv_CC_dependencies_compiler_type=none
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5817 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5818 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5821 test "x$enable_dependency_tracking" != xno \
5822 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5824 am__fastdepCC_FALSE='#'
5826 am__fastdepCC_TRUE='#'
5827 am__fastdepCC_FALSE=
5832 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5836 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5837 if test "${ac_cv_path_GREP+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5840 if test -z "$GREP"; then
5841 ac_path_GREP_found=false
5842 # Loop through the user's path and test for each of PROGNAME-LIST
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5847 test -z "$as_dir" && as_dir=.
5848 for ac_prog in grep ggrep; do
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5851 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5852 # Check for GNU ac_path_GREP and select it if it is found.
5853 # Check for GNU $ac_path_GREP
5854 case `"$ac_path_GREP" --version 2>&1` in
5856 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5859 $as_echo_n 0123456789 >"conftest.in"
5862 cat "conftest.in" "conftest.in" >"conftest.tmp"
5863 mv "conftest.tmp" "conftest.in"
5864 cp "conftest.in" "conftest.nl"
5865 $as_echo 'GREP' >> "conftest.nl"
5866 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5868 as_fn_arith $ac_count + 1 && ac_count=$as_val
5869 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5870 # Best one so far, save it but keep looking for a better one
5871 ac_cv_path_GREP="$ac_path_GREP"
5872 ac_path_GREP_max=$ac_count
5874 # 10*(2^10) chars as input seems more than enough
5875 test $ac_count -gt 10 && break
5877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5880 $ac_path_GREP_found && break 3
5885 if test -z "$ac_cv_path_GREP"; then
5886 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5889 ac_cv_path_GREP=$GREP
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5894 $as_echo "$ac_cv_path_GREP" >&6; }
5895 GREP="$ac_cv_path_GREP"
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5899 $as_echo_n "checking for egrep... " >&6; }
5900 if test "${ac_cv_path_EGREP+set}" = set; then :
5901 $as_echo_n "(cached) " >&6
5903 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5904 then ac_cv_path_EGREP="$GREP -E"
5906 if test -z "$EGREP"; then
5907 ac_path_EGREP_found=false
5908 # Loop through the user's path and test for each of PROGNAME-LIST
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5913 test -z "$as_dir" && as_dir=.
5914 for ac_prog in egrep; do
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5917 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5918 # Check for GNU ac_path_EGREP and select it if it is found.
5919 # Check for GNU $ac_path_EGREP
5920 case `"$ac_path_EGREP" --version 2>&1` in
5922 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5925 $as_echo_n 0123456789 >"conftest.in"
5928 cat "conftest.in" "conftest.in" >"conftest.tmp"
5929 mv "conftest.tmp" "conftest.in"
5930 cp "conftest.in" "conftest.nl"
5931 $as_echo 'EGREP' >> "conftest.nl"
5932 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5933 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5934 as_fn_arith $ac_count + 1 && ac_count=$as_val
5935 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5936 # Best one so far, save it but keep looking for a better one
5937 ac_cv_path_EGREP="$ac_path_EGREP"
5938 ac_path_EGREP_max=$ac_count
5940 # 10*(2^10) chars as input seems more than enough
5941 test $ac_count -gt 10 && break
5943 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5946 $ac_path_EGREP_found && break 3
5951 if test -z "$ac_cv_path_EGREP"; then
5952 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5955 ac_cv_path_EGREP=$EGREP
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5961 $as_echo "$ac_cv_path_EGREP" >&6; }
5962 EGREP="$ac_cv_path_EGREP"
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5966 $as_echo_n "checking for ANSI C header files... " >&6; }
5967 if test "${ac_cv_header_stdc+set}" = set; then :
5968 $as_echo_n "(cached) " >&6
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5985 if ac_fn_c_try_compile "$LINENO"; then :
5986 ac_cv_header_stdc=yes
5988 ac_cv_header_stdc=no
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 if test $ac_cv_header_stdc = yes; then
5993 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
5999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6000 $EGREP "memchr" >/dev/null 2>&1; then :
6003 ac_cv_header_stdc=no
6009 if test $ac_cv_header_stdc = yes; then
6010 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6017 $EGREP "free" >/dev/null 2>&1; then :
6020 ac_cv_header_stdc=no
6026 if test $ac_cv_header_stdc = yes; then
6027 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6028 if test "$cross_compiling" = yes; then :
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6035 #if ((' ' & 0x0FF) == 0x020)
6036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6039 # define ISLOWER(c) \
6040 (('a' <= (c) && (c) <= 'i') \
6041 || ('j' <= (c) && (c) <= 'r') \
6042 || ('s' <= (c) && (c) <= 'z'))
6043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6051 for (i = 0; i < 256; i++)
6052 if (XOR (islower (i), ISLOWER (i))
6053 || toupper (i) != TOUPPER (i))
6058 if ac_fn_c_try_run "$LINENO"; then :
6061 ac_cv_header_stdc=no
6063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6064 conftest.$ac_objext conftest.beam conftest.$ac_ext
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6070 $as_echo "$ac_cv_header_stdc" >&6; }
6071 if test $ac_cv_header_stdc = yes; then
6073 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6079 $as_echo_n "checking whether ln -s works... " >&6; }
6081 if test "$LN_S" = "ln -s"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6083 $as_echo "yes" >&6; }
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6086 $as_echo "no, using $LN_S" >&6; }
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6090 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6092 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6093 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6094 $as_echo_n "(cached) " >&6
6096 cat >conftest.make <<\_ACEOF
6099 @echo '@@@%%%=$(MAKE)=@@@%%%'
6101 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6102 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6104 eval ac_cv_prog_make_${ac_make}_set=yes;;
6106 eval ac_cv_prog_make_${ac_make}_set=no;;
6110 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6112 $as_echo "yes" >&6; }
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 $as_echo "no" >&6; }
6117 SET_MAKE="MAKE=${MAKE-make}"
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6123 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6128 macro_version='2.2.6'
6129 macro_revision='1.3012'
6143 ltmain="$ac_aux_dir/ltmain.sh"
6145 # Make sure we can run config.sub.
6146 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6147 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6150 $as_echo_n "checking build system type... " >&6; }
6151 if test "${ac_cv_build+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6154 ac_build_alias=$build_alias
6155 test "x$ac_build_alias" = x &&
6156 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6157 test "x$ac_build_alias" = x &&
6158 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6159 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6160 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6164 $as_echo "$ac_cv_build" >&6; }
6165 case $ac_cv_build in
6167 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6170 ac_save_IFS=$IFS; IFS='-'
6176 # Remember, the first character of IFS is used to create $*,
6177 # except with old shells:
6180 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6184 $as_echo_n "checking host system type... " >&6; }
6185 if test "${ac_cv_host+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6188 if test "x$host_alias" = x; then
6189 ac_cv_host=$ac_cv_build
6191 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6192 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6197 $as_echo "$ac_cv_host" >&6; }
6200 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6203 ac_save_IFS=$IFS; IFS='-'
6209 # Remember, the first character of IFS is used to create $*,
6210 # except with old shells:
6213 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6217 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6218 if test "${ac_cv_path_SED+set}" = set; then :
6219 $as_echo_n "(cached) " >&6
6221 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6222 for ac_i in 1 2 3 4 5 6 7; do
6223 ac_script="$ac_script$as_nl$ac_script"
6225 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6226 { ac_script=; unset ac_script;}
6227 if test -z "$SED"; then
6228 ac_path_SED_found=false
6229 # Loop through the user's path and test for each of PROGNAME-LIST
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 test -z "$as_dir" && as_dir=.
6235 for ac_prog in sed gsed; do
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6238 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6239 # Check for GNU ac_path_SED and select it if it is found.
6240 # Check for GNU $ac_path_SED
6241 case `"$ac_path_SED" --version 2>&1` in
6243 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6246 $as_echo_n 0123456789 >"conftest.in"
6249 cat "conftest.in" "conftest.in" >"conftest.tmp"
6250 mv "conftest.tmp" "conftest.in"
6251 cp "conftest.in" "conftest.nl"
6252 $as_echo '' >> "conftest.nl"
6253 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6255 as_fn_arith $ac_count + 1 && ac_count=$as_val
6256 if test $ac_count -gt ${ac_path_SED_max-0}; then
6257 # Best one so far, save it but keep looking for a better one
6258 ac_cv_path_SED="$ac_path_SED"
6259 ac_path_SED_max=$ac_count
6261 # 10*(2^10) chars as input seems more than enough
6262 test $ac_count -gt 10 && break
6264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6267 $ac_path_SED_found && break 3
6272 if test -z "$ac_cv_path_SED"; then
6273 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6281 $as_echo "$ac_cv_path_SED" >&6; }
6282 SED="$ac_cv_path_SED"
6285 test -z "$SED" && SED=sed
6286 Xsed="$SED -e 1s/^X//"
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6299 $as_echo_n "checking for fgrep... " >&6; }
6300 if test "${ac_cv_path_FGREP+set}" = set; then :
6301 $as_echo_n "(cached) " >&6
6303 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6304 then ac_cv_path_FGREP="$GREP -F"
6306 if test -z "$FGREP"; then
6307 ac_path_FGREP_found=false
6308 # Loop through the user's path and test for each of PROGNAME-LIST
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6313 test -z "$as_dir" && as_dir=.
6314 for ac_prog in fgrep; do
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6317 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6318 # Check for GNU ac_path_FGREP and select it if it is found.
6319 # Check for GNU $ac_path_FGREP
6320 case `"$ac_path_FGREP" --version 2>&1` in
6322 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6325 $as_echo_n 0123456789 >"conftest.in"
6328 cat "conftest.in" "conftest.in" >"conftest.tmp"
6329 mv "conftest.tmp" "conftest.in"
6330 cp "conftest.in" "conftest.nl"
6331 $as_echo 'FGREP' >> "conftest.nl"
6332 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6334 as_fn_arith $ac_count + 1 && ac_count=$as_val
6335 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6336 # Best one so far, save it but keep looking for a better one
6337 ac_cv_path_FGREP="$ac_path_FGREP"
6338 ac_path_FGREP_max=$ac_count
6340 # 10*(2^10) chars as input seems more than enough
6341 test $ac_count -gt 10 && break
6343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6346 $ac_path_FGREP_found && break 3
6351 if test -z "$ac_cv_path_FGREP"; then
6352 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6355 ac_cv_path_FGREP=$FGREP
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6361 $as_echo "$ac_cv_path_FGREP" >&6; }
6362 FGREP="$ac_cv_path_FGREP"
6365 test -z "$GREP" && GREP=grep
6385 # Check whether --with-gnu-ld was given.
6386 if test "${with_gnu_ld+set}" = set; then :
6387 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6393 if test "$GCC" = yes; then
6394 # Check if gcc -print-prog-name=ld gives a path.
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6396 $as_echo_n "checking for ld used by $CC... " >&6; }
6399 # gcc leaves a trailing carriage return which upsets mingw
6400 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6402 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6405 # Accept absolute paths.
6407 re_direlt='/[^/][^/]*/\.\./'
6408 # Canonicalize the pathname of ld
6409 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6410 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6411 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6413 test -z "$LD" && LD="$ac_prog"
6416 # If it fails, then pretend we aren't using GCC.
6420 # If it is relative, then search for the first ld in PATH.
6424 elif test "$with_gnu_ld" = yes; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6426 $as_echo_n "checking for GNU ld... " >&6; }
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6429 $as_echo_n "checking for non-GNU ld... " >&6; }
6431 if test "${lt_cv_path_LD+set}" = set; then :
6432 $as_echo_n "(cached) " >&6
6434 if test -z "$LD"; then
6435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6436 for ac_dir in $PATH; do
6438 test -z "$ac_dir" && ac_dir=.
6439 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6440 lt_cv_path_LD="$ac_dir/$ac_prog"
6441 # Check to see if the program is GNU ld. I'd rather use --version,
6442 # but apparently some variants of GNU ld only accept -v.
6443 # Break only if it was the GNU/non-GNU ld that we prefer.
6444 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6445 *GNU* | *'with BFD'*)
6446 test "$with_gnu_ld" != no && break
6449 test "$with_gnu_ld" != yes && break
6456 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6461 if test -n "$LD"; then
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6463 $as_echo "$LD" >&6; }
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 $as_echo "no" >&6; }
6468 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6470 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6471 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
6474 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6475 case `$LD -v 2>&1 </dev/null` in
6476 *GNU* | *'with BFD'*)
6477 lt_cv_prog_gnu_ld=yes
6480 lt_cv_prog_gnu_ld=no
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6485 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6486 with_gnu_ld=$lt_cv_prog_gnu_ld
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6497 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6498 if test "${lt_cv_path_NM+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6501 if test -n "$NM"; then
6502 # Let the user override the test.
6505 lt_nm_to_check="${ac_tool_prefix}nm"
6506 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6507 lt_nm_to_check="$lt_nm_to_check nm"
6509 for lt_tmp_nm in $lt_nm_to_check; do
6510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6511 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6513 test -z "$ac_dir" && ac_dir=.
6514 tmp_nm="$ac_dir/$lt_tmp_nm"
6515 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6516 # Check to see if the nm accepts a BSD-compat flag.
6517 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6518 # nm: unknown option "B" ignored
6519 # Tru64's nm complains that /dev/null is an invalid object file
6520 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6521 */dev/null* | *'Invalid file or object type'*)
6522 lt_cv_path_NM="$tmp_nm -B"
6526 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6528 lt_cv_path_NM="$tmp_nm -p"
6532 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6533 continue # so that we can try to find one that supports BSD flags
6542 : ${lt_cv_path_NM=no}
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6546 $as_echo "$lt_cv_path_NM" >&6; }
6547 if test "$lt_cv_path_NM" != "no"; then
6550 # Didn't find any BSD compatible name lister, look for dumpbin.
6551 if test -n "$ac_tool_prefix"; then
6552 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6559 $as_echo_n "(cached) " >&6
6561 if test -n "$DUMPBIN"; then
6562 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6571 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 DUMPBIN=$ac_cv_prog_DUMPBIN
6582 if test -n "$DUMPBIN"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6584 $as_echo "$DUMPBIN" >&6; }
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6591 test -n "$DUMPBIN" && break
6594 if test -z "$DUMPBIN"; then
6595 ac_ct_DUMPBIN=$DUMPBIN
6596 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6598 # Extract the first word of "$ac_prog", so it can be a program name with args.
6599 set dummy $ac_prog; ac_word=$2
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6601 $as_echo_n "checking for $ac_word... " >&6; }
6602 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6603 $as_echo_n "(cached) " >&6
6605 if test -n "$ac_ct_DUMPBIN"; then
6606 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6626 if test -n "$ac_ct_DUMPBIN"; then
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6628 $as_echo "$ac_ct_DUMPBIN" >&6; }
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 $as_echo "no" >&6; }
6635 test -n "$ac_ct_DUMPBIN" && break
6638 if test "x$ac_ct_DUMPBIN" = x; then
6641 case $cross_compiling:$ac_tool_warned in
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6645 ac_tool_warned=yes ;;
6647 DUMPBIN=$ac_ct_DUMPBIN
6652 if test "$DUMPBIN" != ":"; then
6656 test -z "$NM" && NM=nm
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6664 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6665 if test "${lt_cv_nm_interface+set}" = set; then :
6666 $as_echo_n "(cached) " >&6
6668 lt_cv_nm_interface="BSD nm"
6669 echo "int some_variable = 0;" > conftest.$ac_ext
6670 (eval echo "\"\$as_me:6670: $ac_compile\"" >&5)
6671 (eval "$ac_compile" 2>conftest.err)
6672 cat conftest.err >&5
6673 (eval echo "\"\$as_me:6673: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6674 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6675 cat conftest.err >&5
6676 (eval echo "\"\$as_me:6676: output\"" >&5)
6677 cat conftest.out >&5
6678 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6679 lt_cv_nm_interface="MS dumpbin"
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6684 $as_echo "$lt_cv_nm_interface" >&6; }
6686 # find the maximum length of command line arguments
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6688 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6689 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6690 $as_echo_n "(cached) " >&6
6697 # On DJGPP, this test can blow up pretty badly due to problems in libc
6698 # (any single argument exceeding 2000 bytes causes a buffer overrun
6699 # during glob expansion). Even if it were fixed, the result of this
6700 # check would be larger than it should be.
6701 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6705 # Under GNU Hurd, this test is not required because there is
6706 # no limit to the length of command line arguments.
6707 # Libtool will interpret -1 as no limit whatsoever
6708 lt_cv_sys_max_cmd_len=-1;
6711 cygwin* | mingw* | cegcc*)
6712 # On Win9x/ME, this test blows up -- it succeeds, but takes
6713 # about 5 minutes as the teststring grows exponentially.
6714 # Worse, since 9x/ME are not pre-emptively multitasking,
6715 # you end up with a "frozen" computer, even though with patience
6716 # the test eventually succeeds (with a max line length of 256k).
6717 # Instead, let's just punt: use the minimum linelength reported by
6718 # all of the supported platforms: 8192 (on NT/2K/XP).
6719 lt_cv_sys_max_cmd_len=8192;
6723 # On AmigaOS with pdksh, this test takes hours, literally.
6724 # So we just punt and use a minimum line length of 8192.
6725 lt_cv_sys_max_cmd_len=8192;
6728 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6729 # This has been around since 386BSD, at least. Likely further.
6730 if test -x /sbin/sysctl; then
6731 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6732 elif test -x /usr/sbin/sysctl; then
6733 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6735 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6737 # And add a safety zone
6738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6743 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6744 lt_cv_sys_max_cmd_len=196608
6748 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6749 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6750 # nice to cause kernel panics so lets avoid the loop below.
6751 # First set a reasonable default.
6752 lt_cv_sys_max_cmd_len=16384
6754 if test -x /sbin/sysconfig; then
6755 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6756 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6761 lt_cv_sys_max_cmd_len=102400
6763 sysv5* | sco5v6* | sysv4.2uw2*)
6764 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6765 if test -n "$kargmax"; then
6766 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6768 lt_cv_sys_max_cmd_len=32768
6772 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6773 if test -n "$lt_cv_sys_max_cmd_len"; then
6774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6777 # Make teststring a little bigger before we do anything with it.
6778 # a 1K string should be a reasonable start.
6779 for i in 1 2 3 4 5 6 7 8 ; do
6780 teststring=$teststring$teststring
6782 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6783 # If test is not a shell built-in, we'll probably end up computing a
6784 # maximum length that is only half of the actual maximum length, but
6786 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6787 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6788 test $i != 17 # 1/2 MB should be enough
6791 teststring=$teststring$teststring
6793 # Only check the string length outside the loop.
6794 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6796 # Add a significant safety factor because C++ compilers can tack on
6797 # massive amounts of additional arguments before passing them to the
6798 # linker. It appears as though 1/2 is a usable value.
6799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6806 if test -n $lt_cv_sys_max_cmd_len ; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6808 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6811 $as_echo "none" >&6; }
6813 max_cmd_len=$lt_cv_sys_max_cmd_len
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6825 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6826 # Try some XSI features
6829 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6831 && eval 'test $(( 1 + 1 )) -eq 2 \
6832 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6835 $as_echo "$xsi_shell" >&6; }
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6839 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6841 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6843 && lt_shell_append=yes
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6845 $as_echo "$lt_shell_append" >&6; }
6848 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6858 # test EBCDIC or ASCII
6859 case `echo X|tr X '\101'` in
6860 A) # ASCII based system
6861 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6862 lt_SP2NL='tr \040 \012'
6863 lt_NL2SP='tr \015\012 \040\040'
6865 *) # EBCDIC based system
6866 lt_SP2NL='tr \100 \n'
6867 lt_NL2SP='tr \r\n \100\100'
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6880 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6881 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6882 $as_echo_n "(cached) " >&6
6884 lt_cv_ld_reload_flag='-r'
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6887 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6888 reload_flag=$lt_cv_ld_reload_flag
6889 case $reload_flag in
6891 *) reload_flag=" $reload_flag" ;;
6893 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6896 if test "$GCC" = yes; then
6897 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6899 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6912 if test -n "$ac_tool_prefix"; then
6913 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6920 if test -n "$OBJDUMP"; then
6921 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 OBJDUMP=$ac_cv_prog_OBJDUMP
6941 if test -n "$OBJDUMP"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6943 $as_echo "$OBJDUMP" >&6; }
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6951 if test -z "$ac_cv_prog_OBJDUMP"; then
6952 ac_ct_OBJDUMP=$OBJDUMP
6953 # Extract the first word of "objdump", so it can be a program name with args.
6954 set dummy objdump; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6958 $as_echo_n "(cached) " >&6
6960 if test -n "$ac_ct_OBJDUMP"; then
6961 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6970 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6981 if test -n "$ac_ct_OBJDUMP"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6983 $as_echo "$ac_ct_OBJDUMP" >&6; }
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6989 if test "x$ac_ct_OBJDUMP" = x; then
6992 case $cross_compiling:$ac_tool_warned in
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6998 OBJDUMP=$ac_ct_OBJDUMP
7001 OBJDUMP="$ac_cv_prog_OBJDUMP"
7004 test -z "$OBJDUMP" && OBJDUMP=objdump
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7015 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7016 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7017 $as_echo_n "(cached) " >&6
7019 lt_cv_file_magic_cmd='$MAGIC_CMD'
7020 lt_cv_file_magic_test_file=
7021 lt_cv_deplibs_check_method='unknown'
7022 # Need to set the preceding variable on all platforms that support
7023 # interlibrary dependencies.
7024 # 'none' -- dependencies not supported.
7025 # `unknown' -- same as none, but documents that we really don't know.
7026 # 'pass_all' -- all dependencies passed with no checks.
7027 # 'test_compile' -- check by making test program.
7028 # 'file_magic [[regex]]' -- check by looking for files in library path
7029 # which responds to the $file_magic_cmd with a given extended regex.
7030 # If you have `file' or equivalent on your system and you're not sure
7031 # whether `pass_all' will *always* work, you probably want this one.
7035 lt_cv_deplibs_check_method=pass_all
7039 lt_cv_deplibs_check_method=pass_all
7043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7044 lt_cv_file_magic_cmd='/usr/bin/file -L'
7045 lt_cv_file_magic_test_file=/shlib/libc.so
7049 # func_win32_libid is a shell function defined in ltmain.sh
7050 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7051 lt_cv_file_magic_cmd='func_win32_libid'
7055 # Base MSYS/MinGW do not provide the 'file' command needed by
7056 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7057 # unless we find 'file', for example because we are cross-compiling.
7058 if ( file / ) >/dev/null 2>&1; then
7059 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7060 lt_cv_file_magic_cmd='func_win32_libid'
7062 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7063 lt_cv_file_magic_cmd='$OBJDUMP -f'
7068 # use the weaker test based on 'objdump'. See mingw*.
7069 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7070 lt_cv_file_magic_cmd='$OBJDUMP -f'
7073 darwin* | rhapsody*)
7074 lt_cv_deplibs_check_method=pass_all
7077 freebsd* | dragonfly*)
7078 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7081 # Not sure whether the presence of OpenBSD here was a mistake.
7082 # Let's accept both of them until this is cleared up.
7083 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7084 lt_cv_file_magic_cmd=/usr/bin/file
7085 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7089 lt_cv_deplibs_check_method=pass_all
7094 lt_cv_deplibs_check_method=pass_all
7097 hpux10.20* | hpux11*)
7098 lt_cv_file_magic_cmd=/usr/bin/file
7101 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7102 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7105 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]'
7106 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7109 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7110 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7116 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7120 irix5* | irix6* | nonstopux*)
7122 *-32|*"-32 ") libmagic=32-bit;;
7123 *-n32|*"-n32 ") libmagic=N32;;
7124 *-64|*"-64 ") libmagic=64-bit;;
7125 *) libmagic=never-match;;
7127 lt_cv_deplibs_check_method=pass_all
7130 # This must be Linux ELF.
7131 linux* | k*bsd*-gnu)
7132 lt_cv_deplibs_check_method=pass_all
7135 netbsd* | netbsdelf*-gnu)
7136 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7139 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7145 lt_cv_file_magic_cmd=/usr/bin/file
7146 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7150 lt_cv_deplibs_check_method=pass_all
7154 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7157 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7161 osf3* | osf4* | osf5*)
7162 lt_cv_deplibs_check_method=pass_all
7166 lt_cv_deplibs_check_method=pass_all
7170 lt_cv_deplibs_check_method=pass_all
7173 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7174 lt_cv_deplibs_check_method=pass_all
7178 case $host_vendor in
7180 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]'
7181 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7184 lt_cv_deplibs_check_method=pass_all
7187 lt_cv_file_magic_cmd='/bin/file'
7188 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7191 lt_cv_file_magic_cmd='/bin/file'
7192 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7193 lt_cv_file_magic_test_file=/lib/libc.so
7196 lt_cv_deplibs_check_method=pass_all
7199 lt_cv_deplibs_check_method=pass_all
7205 lt_cv_deplibs_check_method=pass_all
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7211 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7212 file_magic_cmd=$lt_cv_file_magic_cmd
7213 deplibs_check_method=$lt_cv_deplibs_check_method
7214 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7227 if test -n "$ac_tool_prefix"; then
7228 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7229 set dummy ${ac_tool_prefix}ar; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if test "${ac_cv_prog_AR+set}" = set; then :
7233 $as_echo_n "(cached) " >&6
7235 if test -n "$AR"; then
7236 ac_cv_prog_AR="$AR" # Let the user override the test.
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_prog_AR="${ac_tool_prefix}ar"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 if test -n "$AR"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7258 $as_echo "$AR" >&6; }
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7266 if test -z "$ac_cv_prog_AR"; then
7268 # Extract the first word of "ar", so it can be a program name with args.
7269 set dummy ar; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7273 $as_echo_n "(cached) " >&6
7275 if test -n "$ac_ct_AR"; then
7276 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7285 ac_cv_prog_ac_ct_AR="ar"
7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7296 if test -n "$ac_ct_AR"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7298 $as_echo "$ac_ct_AR" >&6; }
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7304 if test "x$ac_ct_AR" = x; then
7307 case $cross_compiling:$ac_tool_warned in
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7311 ac_tool_warned=yes ;;
7319 test -z "$AR" && AR=ar
7320 test -z "$AR_FLAGS" && AR_FLAGS=cru
7332 if test -n "$ac_tool_prefix"; then
7333 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7334 set dummy ${ac_tool_prefix}strip; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if test "${ac_cv_prog_STRIP+set}" = set; then :
7338 $as_echo_n "(cached) " >&6
7340 if test -n "$STRIP"; then
7341 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 STRIP=$ac_cv_prog_STRIP
7361 if test -n "$STRIP"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7363 $as_echo "$STRIP" >&6; }
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7371 if test -z "$ac_cv_prog_STRIP"; then
7373 # Extract the first word of "strip", so it can be a program name with args.
7374 set dummy strip; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7378 $as_echo_n "(cached) " >&6
7380 if test -n "$ac_ct_STRIP"; then
7381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7390 ac_cv_prog_ac_ct_STRIP="strip"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7401 if test -n "$ac_ct_STRIP"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7403 $as_echo "$ac_ct_STRIP" >&6; }
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7409 if test "x$ac_ct_STRIP" = x; then
7412 case $cross_compiling:$ac_tool_warned in
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7416 ac_tool_warned=yes ;;
7421 STRIP="$ac_cv_prog_STRIP"
7424 test -z "$STRIP" && STRIP=:
7431 if test -n "$ac_tool_prefix"; then
7432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
7439 if test -n "$RANLIB"; then
7440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 RANLIB=$ac_cv_prog_RANLIB
7460 if test -n "$RANLIB"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7462 $as_echo "$RANLIB" >&6; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7470 if test -z "$ac_cv_prog_RANLIB"; then
7471 ac_ct_RANLIB=$RANLIB
7472 # Extract the first word of "ranlib", so it can be a program name with args.
7473 set dummy ranlib; ac_word=$2
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 $as_echo_n "checking for $ac_word... " >&6; }
7476 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7477 $as_echo_n "(cached) " >&6
7479 if test -n "$ac_ct_RANLIB"; then
7480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 test -z "$as_dir" && as_dir=.
7487 for ac_exec_ext in '' $ac_executable_extensions; do
7488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7489 ac_cv_prog_ac_ct_RANLIB="ranlib"
7490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7500 if test -n "$ac_ct_RANLIB"; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7502 $as_echo "$ac_ct_RANLIB" >&6; }
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7508 if test "x$ac_ct_RANLIB" = x; then
7511 case $cross_compiling:$ac_tool_warned in
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7515 ac_tool_warned=yes ;;
7517 RANLIB=$ac_ct_RANLIB
7520 RANLIB="$ac_cv_prog_RANLIB"
7523 test -z "$RANLIB" && RANLIB=:
7530 # Determine commands to create old-style static archives.
7531 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7532 old_postinstall_cmds='chmod 644 $oldlib'
7533 old_postuninstall_cmds=
7535 if test -n "$RANLIB"; then
7538 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7541 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7544 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7580 # If no C compiler was specified, use CC.
7583 # If no C compiler flags were specified, use CFLAGS.
7584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7586 # Allow CC to be a program name with arguments.
7590 # Check for command to grab the raw symbol name followed by C symbol from nm.
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7592 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7593 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7594 $as_echo_n "(cached) " >&6
7597 # These are sane defaults that work on at least a few old systems.
7598 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7600 # Character class describing NM global symbol codes.
7601 symcode='[BCDEGRST]'
7603 # Regexp to match symbols that can be accessed directly from C.
7604 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7606 # Define system-specific variables.
7611 cygwin* | mingw* | pw32* | cegcc*)
7612 symcode='[ABCDGISTW]'
7615 if test "$host_cpu" = ia64; then
7616 symcode='[ABCDEGRST]'
7620 symcode='[BCDEGRST]'
7623 symcode='[BCDEGQRST]'
7634 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7642 # If we're using GNU nm, then use its standard symbol codes.
7643 case `$NM -V 2>&1` in
7644 *GNU* | *'with BFD'*)
7645 symcode='[ABCDGIRSTW]' ;;
7648 # Transform an extracted symbol line into a proper C declaration.
7649 # Some systems (esp. on ia64) link data and code symbols differently,
7650 # so use this general approach.
7651 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7653 # Transform an extracted symbol line into symbol name and symbol address
7654 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7655 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7657 # Handle CRLF in mingw tool chain
7661 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7665 # Try without a prefix underscore, then with it.
7666 for ac_symprfx in "" "_"; do
7668 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7669 symxfrm="\\1 $ac_symprfx\\2 \\2"
7671 # Write the raw and C identifiers.
7672 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7673 # Fake it for dumpbin and say T for any non-static function
7674 # and D for any global variable.
7675 # Also find C++ and __fastcall symbols from MSVC++,
7676 # which start with @ or ?.
7677 lt_cv_sys_global_symbol_pipe="$AWK '"\
7678 " {last_section=section; section=\$ 3};"\
7679 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7680 " \$ 0!~/External *\|/{next};"\
7681 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7682 " {if(hide[section]) next};"\
7683 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7684 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7685 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7686 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7687 " ' prfx=^$ac_symprfx"
7689 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7692 # Check to see that the pipe works correctly.
7696 cat > conftest.$ac_ext <<_LT_EOF
7701 void nm_test_func(void);
7702 void nm_test_func(void){}
7706 int main(){nm_test_var='a';nm_test_func();return(0);}
7709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7710 (eval $ac_compile) 2>&5
7712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7713 test $ac_status = 0; }; then
7714 # Now try to grab the symbols.
7716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7717 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7720 test $ac_status = 0; } && test -s "$nlist"; then
7721 # Try sorting and uniquifying the output.
7722 if sort "$nlist" | uniq > "$nlist"T; then
7723 mv -f "$nlist"T "$nlist"
7728 # Make sure that we snagged all the symbols we need.
7729 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7730 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7731 cat <<_LT_EOF > conftest.$ac_ext
7737 # Now generate the symbol file.
7738 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7740 cat <<_LT_EOF >> conftest.$ac_ext
7742 /* The mapping between symbol names and symbols. */
7747 lt__PROGRAM__LTX_preloaded_symbols[] =
7749 { "@PROGRAM@", (void *) 0 },
7751 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7752 cat <<\_LT_EOF >> conftest.$ac_ext
7756 /* This works around a problem in FreeBSD linker */
7757 #ifdef FREEBSD_WORKAROUND
7758 static const void *lt_preloaded_setup() {
7759 return lt__PROGRAM__LTX_preloaded_symbols;
7767 # Now try linking the two files.
7768 mv conftest.$ac_objext conftstm.$ac_objext
7769 lt_save_LIBS="$LIBS"
7770 lt_save_CFLAGS="$CFLAGS"
7771 LIBS="conftstm.$ac_objext"
7772 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7774 (eval $ac_link) 2>&5
7776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7777 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7780 LIBS="$lt_save_LIBS"
7781 CFLAGS="$lt_save_CFLAGS"
7783 echo "cannot find nm_test_func in $nlist" >&5
7786 echo "cannot find nm_test_var in $nlist" >&5
7789 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7792 echo "$progname: failed program was:" >&5
7793 cat conftest.$ac_ext >&5
7795 rm -rf conftest* conftst*
7797 # Do not use the global_symbol_pipe unless it works.
7798 if test "$pipe_works" = yes; then
7801 lt_cv_sys_global_symbol_pipe=
7807 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7808 lt_cv_sys_global_symbol_to_cdecl=
7810 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7812 $as_echo "failed" >&6; }
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7815 $as_echo "ok" >&6; }
7839 # Check whether --enable-libtool-lock was given.
7840 if test "${enable_libtool_lock+set}" = set; then :
7841 enableval=$enable_libtool_lock;
7844 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7846 # Some flags need to be propagated to the compiler or linker for good
7850 # Find out which ABI we are using.
7851 echo 'int i;' > conftest.$ac_ext
7852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7853 (eval $ac_compile) 2>&5
7855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7856 test $ac_status = 0; }; then
7857 case `/usr/bin/file conftest.$ac_objext` in
7869 # Find out which ABI we are using.
7870 echo '#line 7870 "configure"' > conftest.$ac_ext
7871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7872 (eval $ac_compile) 2>&5
7874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7875 test $ac_status = 0; }; then
7876 if test "$lt_cv_prog_gnu_ld" = yes; then
7877 case `/usr/bin/file conftest.$ac_objext` in
7879 LD="${LD-ld} -melf32bsmip"
7882 LD="${LD-ld} -melf32bmipn32"
7885 LD="${LD-ld} -melf64bmip"
7889 case `/usr/bin/file conftest.$ac_objext` in
7905 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7906 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7907 # Find out which ABI we are using.
7908 echo 'int i;' > conftest.$ac_ext
7909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7910 (eval $ac_compile) 2>&5
7912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7913 test $ac_status = 0; }; then
7914 case `/usr/bin/file conftest.o` in
7917 x86_64-*kfreebsd*-gnu)
7918 LD="${LD-ld} -m elf_i386_fbsd"
7921 LD="${LD-ld} -m elf_i386"
7923 ppc64-*linux*|powerpc64-*linux*)
7924 LD="${LD-ld} -m elf32ppclinux"
7927 LD="${LD-ld} -m elf_s390"
7930 LD="${LD-ld} -m elf32_sparc"
7936 x86_64-*kfreebsd*-gnu)
7937 LD="${LD-ld} -m elf_x86_64_fbsd"
7940 LD="${LD-ld} -m elf_x86_64"
7942 ppc*-*linux*|powerpc*-*linux*)
7943 LD="${LD-ld} -m elf64ppc"
7945 s390*-*linux*|s390*-*tpf*)
7946 LD="${LD-ld} -m elf64_s390"
7949 LD="${LD-ld} -m elf64_sparc"
7959 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7960 SAVE_CFLAGS="$CFLAGS"
7961 CFLAGS="$CFLAGS -belf"
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7963 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7964 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7965 $as_echo_n "(cached) " >&6
7968 ac_cpp='$CPP $CPPFLAGS'
7969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7984 if ac_fn_c_try_link "$LINENO"; then :
7985 lt_cv_cc_needs_belf=yes
7987 lt_cv_cc_needs_belf=no
7989 rm -f core conftest.err conftest.$ac_objext \
7990 conftest$ac_exeext conftest.$ac_ext
7992 ac_cpp='$CPP $CPPFLAGS'
7993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7999 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8000 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8001 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8002 CFLAGS="$SAVE_CFLAGS"
8006 # Find out which ABI we are using.
8007 echo 'int i;' > conftest.$ac_ext
8008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8009 (eval $ac_compile) 2>&5
8011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8012 test $ac_status = 0; }; then
8013 case `/usr/bin/file conftest.o` in
8015 case $lt_cv_prog_gnu_ld in
8016 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8018 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8030 need_locks="$enable_libtool_lock"
8034 rhapsody* | darwin*)
8035 if test -n "$ac_tool_prefix"; then
8036 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8037 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
8043 if test -n "$DSYMUTIL"; then
8044 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8053 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8064 if test -n "$DSYMUTIL"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8066 $as_echo "$DSYMUTIL" >&6; }
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8074 if test -z "$ac_cv_prog_DSYMUTIL"; then
8075 ac_ct_DSYMUTIL=$DSYMUTIL
8076 # Extract the first word of "dsymutil", so it can be a program name with args.
8077 set dummy dsymutil; ac_word=$2
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079 $as_echo_n "checking for $ac_word... " >&6; }
8080 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8081 $as_echo_n "(cached) " >&6
8083 if test -n "$ac_ct_DSYMUTIL"; then
8084 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 test -z "$as_dir" && as_dir=.
8091 for ac_exec_ext in '' $ac_executable_extensions; do
8092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8093 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8104 if test -n "$ac_ct_DSYMUTIL"; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8106 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8112 if test "x$ac_ct_DSYMUTIL" = x; then
8115 case $cross_compiling:$ac_tool_warned in
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8119 ac_tool_warned=yes ;;
8121 DSYMUTIL=$ac_ct_DSYMUTIL
8124 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8127 if test -n "$ac_tool_prefix"; then
8128 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8129 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131 $as_echo_n "checking for $ac_word... " >&6; }
8132 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
8135 if test -n "$NMEDIT"; then
8136 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 test -z "$as_dir" && as_dir=.
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8145 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 NMEDIT=$ac_cv_prog_NMEDIT
8156 if test -n "$NMEDIT"; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8158 $as_echo "$NMEDIT" >&6; }
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }
8166 if test -z "$ac_cv_prog_NMEDIT"; then
8167 ac_ct_NMEDIT=$NMEDIT
8168 # Extract the first word of "nmedit", so it can be a program name with args.
8169 set dummy nmedit; ac_word=$2
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171 $as_echo_n "checking for $ac_word... " >&6; }
8172 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
8175 if test -n "$ac_ct_NMEDIT"; then
8176 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 test -z "$as_dir" && as_dir=.
8183 for ac_exec_ext in '' $ac_executable_extensions; do
8184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8185 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8195 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8196 if test -n "$ac_ct_NMEDIT"; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8198 $as_echo "$ac_ct_NMEDIT" >&6; }
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201 $as_echo "no" >&6; }
8204 if test "x$ac_ct_NMEDIT" = x; then
8207 case $cross_compiling:$ac_tool_warned in
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8211 ac_tool_warned=yes ;;
8213 NMEDIT=$ac_ct_NMEDIT
8216 NMEDIT="$ac_cv_prog_NMEDIT"
8219 if test -n "$ac_tool_prefix"; then
8220 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8221 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223 $as_echo_n "checking for $ac_word... " >&6; }
8224 if test "${ac_cv_prog_LIPO+set}" = set; then :
8225 $as_echo_n "(cached) " >&6
8227 if test -n "$LIPO"; then
8228 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 test -z "$as_dir" && as_dir=.
8235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8237 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8247 LIPO=$ac_cv_prog_LIPO
8248 if test -n "$LIPO"; then
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8250 $as_echo "$LIPO" >&6; }
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253 $as_echo "no" >&6; }
8258 if test -z "$ac_cv_prog_LIPO"; then
8260 # Extract the first word of "lipo", so it can be a program name with args.
8261 set dummy lipo; ac_word=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
8267 if test -n "$ac_ct_LIPO"; then
8268 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277 ac_cv_prog_ac_ct_LIPO="lipo"
8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8288 if test -n "$ac_ct_LIPO"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8290 $as_echo "$ac_ct_LIPO" >&6; }
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8296 if test "x$ac_ct_LIPO" = x; then
8299 case $cross_compiling:$ac_tool_warned in
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8303 ac_tool_warned=yes ;;
8308 LIPO="$ac_cv_prog_LIPO"
8311 if test -n "$ac_tool_prefix"; then
8312 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8313 set dummy ${ac_tool_prefix}otool; ac_word=$2
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315 $as_echo_n "checking for $ac_word... " >&6; }
8316 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8317 $as_echo_n "(cached) " >&6
8319 if test -n "$OTOOL"; then
8320 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8329 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 OTOOL=$ac_cv_prog_OTOOL
8340 if test -n "$OTOOL"; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8342 $as_echo "$OTOOL" >&6; }
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8350 if test -z "$ac_cv_prog_OTOOL"; then
8352 # Extract the first word of "otool", so it can be a program name with args.
8353 set dummy otool; ac_word=$2
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 $as_echo_n "checking for $ac_word... " >&6; }
8356 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
8359 if test -n "$ac_ct_OTOOL"; then
8360 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8369 ac_cv_prog_ac_ct_OTOOL="otool"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8380 if test -n "$ac_ct_OTOOL"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8382 $as_echo "$ac_ct_OTOOL" >&6; }
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8388 if test "x$ac_ct_OTOOL" = x; then
8391 case $cross_compiling:$ac_tool_warned in
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8395 ac_tool_warned=yes ;;
8400 OTOOL="$ac_cv_prog_OTOOL"
8403 if test -n "$ac_tool_prefix"; then
8404 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8405 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
8411 if test -n "$OTOOL64"; then
8412 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 OTOOL64=$ac_cv_prog_OTOOL64
8432 if test -n "$OTOOL64"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8434 $as_echo "$OTOOL64" >&6; }
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8442 if test -z "$ac_cv_prog_OTOOL64"; then
8443 ac_ct_OTOOL64=$OTOOL64
8444 # Extract the first word of "otool64", so it can be a program name with args.
8445 set dummy otool64; ac_word=$2
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447 $as_echo_n "checking for $ac_word... " >&6; }
8448 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8449 $as_echo_n "(cached) " >&6
8451 if test -n "$ac_ct_OTOOL64"; then
8452 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 test -z "$as_dir" && as_dir=.
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8461 ac_cv_prog_ac_ct_OTOOL64="otool64"
8462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8472 if test -n "$ac_ct_OTOOL64"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8474 $as_echo "$ac_ct_OTOOL64" >&6; }
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8480 if test "x$ac_ct_OTOOL64" = x; then
8483 case $cross_compiling:$ac_tool_warned in
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8487 ac_tool_warned=yes ;;
8489 OTOOL64=$ac_ct_OTOOL64
8492 OTOOL64="$ac_cv_prog_OTOOL64"
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8522 $as_echo_n "checking for -single_module linker flag... " >&6; }
8523 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8524 $as_echo_n "(cached) " >&6
8526 lt_cv_apple_cc_single_mod=no
8527 if test -z "${LT_MULTI_MODULE}"; then
8528 # By default we will add the -single_module flag. You can override
8529 # by either setting the environment variable LT_MULTI_MODULE
8530 # non-empty at configure time, or by adding -multi_module to the
8532 rm -rf libconftest.dylib*
8533 echo "int foo(void){return 1;}" > conftest.c
8534 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8535 -dynamiclib -Wl,-single_module conftest.c" >&5
8536 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8537 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8539 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8540 lt_cv_apple_cc_single_mod=yes
8542 cat conftest.err >&5
8544 rm -rf libconftest.dylib*
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8549 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8551 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8552 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8553 $as_echo_n "(cached) " >&6
8555 lt_cv_ld_exported_symbols_list=no
8556 save_LDFLAGS=$LDFLAGS
8557 echo "_main" > conftest.sym
8558 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8570 if ac_fn_c_try_link "$LINENO"; then :
8571 lt_cv_ld_exported_symbols_list=yes
8573 lt_cv_ld_exported_symbols_list=no
8575 rm -f core conftest.err conftest.$ac_objext \
8576 conftest$ac_exeext conftest.$ac_ext
8577 LDFLAGS="$save_LDFLAGS"
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8581 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8583 rhapsody* | darwin1.[012])
8584 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8586 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8587 darwin*) # darwin 5.x on
8588 # if running on 10.5 or later, the deployment target defaults
8589 # to the OS version, if on x86, and 10.4, the deployment
8590 # target defaults to 10.4. Don't you love it?
8591 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8592 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8593 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8595 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8597 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8601 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8602 _lt_dar_single_mod='$single_module'
8604 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8605 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8607 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8609 if test "$DSYMUTIL" != ":"; then
8610 _lt_dsymutil='~$DSYMUTIL $lib || :'
8617 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8618 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8619 inttypes.h stdint.h unistd.h
8621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8622 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8624 eval as_val=\$$as_ac_Header
8625 if test "x$as_val" = x""yes; then :
8626 cat >>confdefs.h <<_ACEOF
8627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8635 for ac_header in dlfcn.h
8637 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8639 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8640 cat >>confdefs.h <<_ACEOF
8641 #define HAVE_DLFCN_H 1
8651 ac_cpp='$CXXCPP $CPPFLAGS'
8652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8655 if test -z "$CXX"; then
8656 if test -n "$CCC"; then
8659 if test -n "$ac_tool_prefix"; then
8660 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665 $as_echo_n "checking for $ac_word... " >&6; }
8666 if test "${ac_cv_prog_CXX+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
8669 if test -n "$CXX"; then
8670 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8676 test -z "$as_dir" && as_dir=.
8677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8679 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8690 if test -n "$CXX"; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8692 $as_echo "$CXX" >&6; }
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695 $as_echo "no" >&6; }
8699 test -n "$CXX" && break
8702 if test -z "$CXX"; then
8704 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8706 # Extract the first word of "$ac_prog", so it can be a program name with args.
8707 set dummy $ac_prog; ac_word=$2
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8709 $as_echo_n "checking for $ac_word... " >&6; }
8710 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8711 $as_echo_n "(cached) " >&6
8713 if test -n "$ac_ct_CXX"; then
8714 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720 test -z "$as_dir" && as_dir=.
8721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8723 ac_cv_prog_ac_ct_CXX="$ac_prog"
8724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8733 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8734 if test -n "$ac_ct_CXX"; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8736 $as_echo "$ac_ct_CXX" >&6; }
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 $as_echo "no" >&6; }
8743 test -n "$ac_ct_CXX" && break
8746 if test "x$ac_ct_CXX" = x; then
8749 case $cross_compiling:$ac_tool_warned in
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8753 ac_tool_warned=yes ;;
8761 # Provide some information about the compiler.
8762 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8765 for ac_option in --version -v -V -qversion; do
8766 { { ac_try="$ac_compiler $ac_option >&5"
8768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769 *) ac_try_echo=$ac_try;;
8771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8772 $as_echo "$ac_try_echo"; } >&5
8773 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8775 if test -s conftest.err; then
8777 ... rest of stderr output deleted ...
8778 10q' conftest.err >conftest.er1
8779 cat conftest.er1 >&5
8780 rm -f conftest.er1 conftest.err
8782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8783 test $ac_status = 0; }
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8787 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8788 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8789 $as_echo_n "(cached) " >&6
8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792 /* end confdefs.h. */
8805 if ac_fn_cxx_try_compile "$LINENO"; then :
8810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8811 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8815 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8816 if test $ac_compiler_gnu = yes; then
8821 ac_test_CXXFLAGS=${CXXFLAGS+set}
8822 ac_save_CXXFLAGS=$CXXFLAGS
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8824 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8825 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8826 $as_echo_n "(cached) " >&6
8828 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8829 ac_cxx_werror_flag=yes
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8843 if ac_fn_cxx_try_compile "$LINENO"; then :
8844 ac_cv_prog_cxx_g=yes
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8858 if ac_fn_cxx_try_compile "$LINENO"; then :
8861 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8874 if ac_fn_cxx_try_compile "$LINENO"; then :
8875 ac_cv_prog_cxx_g=yes
8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8885 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8886 if test "$ac_test_CXXFLAGS" = set; then
8887 CXXFLAGS=$ac_save_CXXFLAGS
8888 elif test $ac_cv_prog_cxx_g = yes; then
8889 if test "$GXX" = yes; then
8895 if test "$GXX" = yes; then
8902 ac_cpp='$CPP $CPPFLAGS'
8903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8907 depcc="$CXX" am_compiler_list=
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8910 $as_echo_n "checking dependency style of $depcc... " >&6; }
8911 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8912 $as_echo_n "(cached) " >&6
8914 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8915 # We make a subdir and do the tests there. Otherwise we can end up
8916 # making bogus files that we don't know about and never remove. For
8917 # instance it was reported that on HP-UX the gcc test will end up
8918 # making a dummy file named `D' -- because `-MD' means `put the output
8921 # Copy depcomp to subdir because otherwise we won't find it if we're
8922 # using a relative directory.
8923 cp "$am_depcomp" conftest.dir
8925 # We will build objects and dependencies in a subdirectory because
8926 # it helps to detect inapplicable dependency modes. For instance
8927 # both Tru64's cc and ICC support -MD to output dependencies as a
8928 # side effect of compilation, but ICC will put the dependencies in
8929 # the current directory while Tru64 will put them in the object
8933 am_cv_CXX_dependencies_compiler_type=none
8934 if test "$am_compiler_list" = ""; then
8935 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8938 case " $depcc " in #(
8939 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8942 for depmode in $am_compiler_list; do
8943 # Setup a source with many dependencies, because some compilers
8944 # like to wrap large dependency lists on column 80 (with \), and
8945 # we should not choose a depcomp mode which is confused by this.
8947 # We need to recreate these files for each test, as the compiler may
8948 # overwrite some of them when testing with obscure command lines.
8949 # This happens at least with the AIX C compiler.
8951 for i in 1 2 3 4 5 6; do
8952 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8953 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8954 # Solaris 8's {/usr,}/bin/sh.
8955 touch sub/conftst$i.h
8957 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8959 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8960 # mode. It turns out that the SunPro C++ compiler does not properly
8961 # handle `-M -o', and we need to detect this. Also, some Intel
8962 # versions had trouble with output in subdirs
8963 am__obj=sub/conftest.${OBJEXT-o}
8964 am__minus_obj="-o $am__obj"
8967 # This depmode causes a compiler race in universal mode.
8968 test "$am__universal" = false || continue
8971 # after this tag, mechanisms are not by side-effect, so they'll
8972 # only be used when explicitly requested
8973 if test "x$enable_dependency_tracking" = xyes; then
8979 msvisualcpp | msvcmsys)
8980 # This compiler won't grok `-c -o', but also, the minuso test has
8981 # not run yet. These depmodes are late enough in the game, and
8982 # so weak that their functioning should not be impacted.
8983 am__obj=conftest.${OBJEXT-o}
8988 if depmode=$depmode \
8989 source=sub/conftest.c object=$am__obj \
8990 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8991 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8992 >/dev/null 2>conftest.err &&
8993 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8994 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8995 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8996 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8997 # icc doesn't choke on unknown options, it will just issue warnings
8998 # or remarks (even with -Werror). So we grep stderr for any message
8999 # that says an option was ignored or not supported.
9000 # When given -MP, icc 7.0 and 7.1 complain thusly:
9001 # icc: Command line warning: ignoring option '-M'; no argument required
9002 # The diagnosis changed in icc 8.0:
9003 # icc: Command line remark: option '-MP' not supported
9004 if (grep 'ignoring option' conftest.err ||
9005 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9006 am_cv_CXX_dependencies_compiler_type=$depmode
9015 am_cv_CXX_dependencies_compiler_type=none
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9020 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9021 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9024 test "x$enable_dependency_tracking" != xno \
9025 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9026 am__fastdepCXX_TRUE=
9027 am__fastdepCXX_FALSE='#'
9029 am__fastdepCXX_TRUE='#'
9030 am__fastdepCXX_FALSE=
9034 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9035 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9036 (test "X$CXX" != "Xg++"))) ; then
9038 ac_cpp='$CXXCPP $CPPFLAGS'
9039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9043 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9044 if test -z "$CXXCPP"; then
9045 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9046 $as_echo_n "(cached) " >&6
9048 # Double quotes because CXXCPP needs to be expanded
9049 for CXXCPP in "$CXX -E" "/lib/cpp"
9052 for ac_cxx_preproc_warn_flag in '' yes
9054 # Use a header file that comes with gcc, so configuring glibc
9055 # with a fresh cross-compiler works.
9056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9057 # <limits.h> exists even on freestanding compilers.
9058 # On the NeXT, cc -E runs the code through the compiler's parser,
9059 # not just through cpp. "Syntax error" is here to catch this case.
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9063 # include <limits.h>
9065 # include <assert.h>
9069 if ac_fn_cxx_try_cpp "$LINENO"; then :
9072 # Broken: fails on valid input.
9075 rm -f conftest.err conftest.$ac_ext
9077 # OK, works on sane cases. Now check whether nonexistent headers
9078 # can be detected and how.
9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h. */
9081 #include <ac_nonexistent.h>
9083 if ac_fn_cxx_try_cpp "$LINENO"; then :
9084 # Broken: success on invalid input.
9087 # Passes both tests.
9091 rm -f conftest.err conftest.$ac_ext
9094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9095 rm -f conftest.err conftest.$ac_ext
9096 if $ac_preproc_ok; then :
9101 ac_cv_prog_CXXCPP=$CXXCPP
9104 CXXCPP=$ac_cv_prog_CXXCPP
9106 ac_cv_prog_CXXCPP=$CXXCPP
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9109 $as_echo "$CXXCPP" >&6; }
9111 for ac_cxx_preproc_warn_flag in '' yes
9113 # Use a header file that comes with gcc, so configuring glibc
9114 # with a fresh cross-compiler works.
9115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9116 # <limits.h> exists even on freestanding compilers.
9117 # On the NeXT, cc -E runs the code through the compiler's parser,
9118 # not just through cpp. "Syntax error" is here to catch this case.
9119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120 /* end confdefs.h. */
9122 # include <limits.h>
9124 # include <assert.h>
9128 if ac_fn_cxx_try_cpp "$LINENO"; then :
9131 # Broken: fails on valid input.
9134 rm -f conftest.err conftest.$ac_ext
9136 # OK, works on sane cases. Now check whether nonexistent headers
9137 # can be detected and how.
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9140 #include <ac_nonexistent.h>
9142 if ac_fn_cxx_try_cpp "$LINENO"; then :
9143 # Broken: success on invalid input.
9146 # Passes both tests.
9150 rm -f conftest.err conftest.$ac_ext
9153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9154 rm -f conftest.err conftest.$ac_ext
9155 if $ac_preproc_ok; then :
9158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9160 _lt_caught_CXX_error=yes; }
9164 ac_cpp='$CPP $CPPFLAGS'
9165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9170 _lt_caught_CXX_error=yes
9190 # Check whether --with-pic was given.
9191 if test "${with_pic+set}" = set; then :
9192 withval=$with_pic; pic_mode="$withval"
9198 test -z "$pic_mode" && pic_mode=default
9206 # Check whether --enable-fast-install was given.
9207 if test "${enable_fast_install+set}" = set; then :
9208 enableval=$enable_fast_install; p=${PACKAGE-default}
9210 yes) enable_fast_install=yes ;;
9211 no) enable_fast_install=no ;;
9213 enable_fast_install=no
9214 # Look at the argument we got. We use all the common list separators.
9215 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9216 for pkg in $enableval; do
9218 if test "X$pkg" = "X$p"; then
9219 enable_fast_install=yes
9226 enable_fast_install=yes
9239 # This can be used to rebuild libtool when needed
9240 LIBTOOL_DEPS="$ltmain"
9242 # Always use our own libtool.
9243 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9269 test -z "$LN_S" && LN_S="ln -s"
9284 if test -n "${ZSH_VERSION+set}" ; then
9285 setopt NO_GLOB_SUBST
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9289 $as_echo_n "checking for objdir... " >&6; }
9290 if test "${lt_cv_objdir+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
9293 rm -f .libs 2>/dev/null
9294 mkdir .libs 2>/dev/null
9295 if test -d .libs; then
9298 # MS-DOS does not allow filenames that begin with a dot.
9301 rmdir .libs 2>/dev/null
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9304 $as_echo "$lt_cv_objdir" >&6; }
9305 objdir=$lt_cv_objdir
9311 cat >>confdefs.h <<_ACEOF
9312 #define LT_OBJDIR "$lt_cv_objdir/"
9333 # AIX sometimes has problems with the GCC collect2 program. For some
9334 # reason, if we set the COLLECT_NAMES environment variable, the problems
9335 # vanish in a puff of smoke.
9336 if test "X${COLLECT_NAMES+set}" != Xset; then
9338 export COLLECT_NAMES
9343 # Sed substitution that helps us do robust quoting. It backslashifies
9344 # metacharacters that are still active within double-quoted strings.
9345 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9347 # Same as above, but do not quote variable references.
9348 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9350 # Sed substitution to delay expansion of an escaped shell variable in a
9351 # double_quote_subst'ed string.
9352 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9354 # Sed substitution to delay expansion of an escaped single quote.
9355 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9357 # Sed substitution to avoid accidental globbing in evaled expressions
9358 no_glob_subst='s/\*/\\\*/g'
9362 can_build_shared=yes
9364 # All known linkers require a `.a' archive for static linking (except MSVC,
9365 # which needs '.lib').
9368 with_gnu_ld="$lt_cv_prog_gnu_ld"
9371 old_CFLAGS="$CFLAGS"
9373 # Set sane defaults for various variables
9374 test -z "$CC" && CC=cc
9375 test -z "$LTCC" && LTCC=$CC
9376 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9377 test -z "$LD" && LD=ld
9378 test -z "$ac_objext" && ac_objext=o
9380 for cc_temp in $compiler""; do
9382 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9383 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9388 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9391 # Only perform the check for file, if the check method requires it
9392 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9393 case $deplibs_check_method in
9395 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9397 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9398 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9399 $as_echo_n "(cached) " >&6
9403 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9406 lt_save_MAGIC_CMD="$MAGIC_CMD"
9407 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9408 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9409 for ac_dir in $ac_dummy; do
9411 test -z "$ac_dir" && ac_dir=.
9412 if test -f $ac_dir/${ac_tool_prefix}file; then
9413 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9414 if test -n "$file_magic_test_file"; then
9415 case $deplibs_check_method in
9417 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9418 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9419 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9420 $EGREP "$file_magic_regex" > /dev/null; then
9425 *** Warning: the command libtool uses to detect shared libraries,
9426 *** $file_magic_cmd, produces output that libtool cannot recognize.
9427 *** The result is that libtool may fail to recognize shared libraries
9428 *** as such. This will affect the creation of libtool libraries that
9429 *** depend on shared libraries, but programs linked with such libtool
9430 *** libraries will work regardless of this problem. Nevertheless, you
9431 *** may want to report the problem to your system manager and/or to
9432 *** bug-libtool@gnu.org
9442 MAGIC_CMD="$lt_save_MAGIC_CMD"
9447 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9448 if test -n "$MAGIC_CMD"; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9450 $as_echo "$MAGIC_CMD" >&6; }
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 $as_echo "no" >&6; }
9460 if test -z "$lt_cv_path_MAGIC_CMD"; then
9461 if test -n "$ac_tool_prefix"; then
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9463 $as_echo_n "checking for file... " >&6; }
9464 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9465 $as_echo_n "(cached) " >&6
9469 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9472 lt_save_MAGIC_CMD="$MAGIC_CMD"
9473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9474 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9475 for ac_dir in $ac_dummy; do
9477 test -z "$ac_dir" && ac_dir=.
9478 if test -f $ac_dir/file; then
9479 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9480 if test -n "$file_magic_test_file"; then
9481 case $deplibs_check_method in
9483 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9484 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9485 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9486 $EGREP "$file_magic_regex" > /dev/null; then
9491 *** Warning: the command libtool uses to detect shared libraries,
9492 *** $file_magic_cmd, produces output that libtool cannot recognize.
9493 *** The result is that libtool may fail to recognize shared libraries
9494 *** as such. This will affect the creation of libtool libraries that
9495 *** depend on shared libraries, but programs linked with such libtool
9496 *** libraries will work regardless of this problem. Nevertheless, you
9497 *** may want to report the problem to your system manager and/or to
9498 *** bug-libtool@gnu.org
9508 MAGIC_CMD="$lt_save_MAGIC_CMD"
9513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9514 if test -n "$MAGIC_CMD"; then
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9516 $as_echo "$MAGIC_CMD" >&6; }
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519 $as_echo "no" >&6; }
9532 # Use C for the default configuration in the libtool script
9536 ac_cpp='$CPP $CPPFLAGS'
9537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9542 # Source file extension for C test sources.
9545 # Object file extension for compiled C test sources.
9549 # Code to be used in simple compile tests
9550 lt_simple_compile_test_code="int some_variable = 0;"
9552 # Code to be used in simple link tests
9553 lt_simple_link_test_code='int main(){return(0);}'
9561 # If no C compiler was specified, use CC.
9564 # If no C compiler flags were specified, use CFLAGS.
9565 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9567 # Allow CC to be a program name with arguments.
9570 # Save the default compiler, since it gets overwritten when the other
9571 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9572 compiler_DEFAULT=$CC
9574 # save warnings/boilerplate of simple test code
9575 ac_outfile=conftest.$ac_objext
9576 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9577 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9578 _lt_compiler_boilerplate=`cat conftest.err`
9581 ac_outfile=conftest.$ac_objext
9582 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9583 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9584 _lt_linker_boilerplate=`cat conftest.err`
9588 if test -n "$compiler"; then
9590 lt_prog_compiler_no_builtin_flag=
9592 if test "$GCC" = yes; then
9593 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9596 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9597 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9598 $as_echo_n "(cached) " >&6
9600 lt_cv_prog_compiler_rtti_exceptions=no
9601 ac_outfile=conftest.$ac_objext
9602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9603 lt_compiler_flag="-fno-rtti -fno-exceptions"
9604 # Insert the option either (1) after the last *FLAGS variable, or
9605 # (2) before a word containing "conftest.", or (3) at the end.
9606 # Note that $ac_compile itself does not contain backslashes and begins
9607 # with a dollar sign (not a hyphen), so the echo should work correctly.
9608 # The option is referenced via a variable to avoid confusing sed.
9609 lt_compile=`echo "$ac_compile" | $SED \
9610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9612 -e 's:$: $lt_compiler_flag:'`
9613 (eval echo "\"\$as_me:9613: $lt_compile\"" >&5)
9614 (eval "$lt_compile" 2>conftest.err)
9616 cat conftest.err >&5
9617 echo "$as_me:9617: \$? = $ac_status" >&5
9618 if (exit $ac_status) && test -s "$ac_outfile"; then
9619 # The compiler can only warn and ignore the option if not recognized
9620 # So say no if there are warnings other than the usual output.
9621 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9623 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9624 lt_cv_prog_compiler_rtti_exceptions=yes
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9631 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9633 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9634 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9646 lt_prog_compiler_wl=
9647 lt_prog_compiler_pic=
9648 lt_prog_compiler_static=
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9651 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9653 if test "$GCC" = yes; then
9654 lt_prog_compiler_wl='-Wl,'
9655 lt_prog_compiler_static='-static'
9659 # All AIX code is PIC.
9660 if test "$host_cpu" = ia64; then
9661 # AIX 5 now supports IA64 processor
9662 lt_prog_compiler_static='-Bstatic'
9669 # see comment about AmigaOS4 .so support
9670 lt_prog_compiler_pic='-fPIC'
9673 # FIXME: we need at least 68020 code to build shared libraries, but
9674 # adding the `-m68020' flag to GCC prevents building anything better,
9676 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9681 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9682 # PIC is the default for these OSes.
9685 mingw* | cygwin* | pw32* | os2* | cegcc*)
9686 # This hack is so that the source file can tell whether it is being
9687 # built for inclusion in a dll (and should export symbols for example).
9688 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9689 # (--disable-auto-import) libraries
9690 lt_prog_compiler_pic='-DDLL_EXPORT'
9693 darwin* | rhapsody*)
9694 # PIC is the default on this platform
9695 # Common symbols not allowed in MH_DYLIB files
9696 lt_prog_compiler_pic='-fno-common'
9700 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9701 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9702 # sets the default TLS model and affects inlining.
9708 lt_prog_compiler_pic='-fPIC'
9714 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9715 # Instead, we relocate shared libraries at runtime.
9719 # Just because we use GCC doesn't mean we suddenly get shared libraries
9720 # on systems that don't support them.
9721 lt_prog_compiler_can_build_shared=no
9726 # QNX uses GNU C++, but need to define -shared option too, otherwise
9728 lt_prog_compiler_pic='-fPIC -shared'
9732 if test -d /usr/nec; then
9733 lt_prog_compiler_pic=-Kconform_pic
9738 lt_prog_compiler_pic='-fPIC'
9742 # PORTME Check for flag to pass linker flags through the system compiler.
9745 lt_prog_compiler_wl='-Wl,'
9746 if test "$host_cpu" = ia64; then
9747 # AIX 5 now supports IA64 processor
9748 lt_prog_compiler_static='-Bstatic'
9750 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9754 mingw* | cygwin* | pw32* | os2* | cegcc*)
9755 # This hack is so that the source file can tell whether it is being
9756 # built for inclusion in a dll (and should export symbols for example).
9757 lt_prog_compiler_pic='-DDLL_EXPORT'
9760 hpux9* | hpux10* | hpux11*)
9761 lt_prog_compiler_wl='-Wl,'
9762 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9769 lt_prog_compiler_pic='+Z'
9772 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9773 lt_prog_compiler_static='${wl}-a ${wl}archive'
9776 irix5* | irix6* | nonstopux*)
9777 lt_prog_compiler_wl='-Wl,'
9778 # PIC (with -KPIC) is the default.
9779 lt_prog_compiler_static='-non_shared'
9782 linux* | k*bsd*-gnu)
9783 case $cc_basename in
9784 # old Intel for x86_64 which still supported -KPIC.
9786 lt_prog_compiler_wl='-Wl,'
9787 lt_prog_compiler_pic='-KPIC'
9788 lt_prog_compiler_static='-static'
9790 # icc used to be incompatible with GCC.
9791 # ICC 10 doesn't accept -KPIC any more.
9793 lt_prog_compiler_wl='-Wl,'
9794 lt_prog_compiler_pic='-fPIC'
9795 lt_prog_compiler_static='-static'
9797 # Lahey Fortran 8.1.
9799 lt_prog_compiler_wl='-Wl,'
9800 lt_prog_compiler_pic='--shared'
9801 lt_prog_compiler_static='--static'
9803 pgcc* | pgf77* | pgf90* | pgf95*)
9804 # Portland Group compilers (*not* the Pentium gcc compiler,
9805 # which looks to be a dead project)
9806 lt_prog_compiler_wl='-Wl,'
9807 lt_prog_compiler_pic='-fpic'
9808 lt_prog_compiler_static='-Bstatic'
9811 lt_prog_compiler_wl='-Wl,'
9812 # All Alpha code is PIC.
9813 lt_prog_compiler_static='-non_shared'
9816 # IBM XL C 8.0/Fortran 10.1 on PPC
9817 lt_prog_compiler_wl='-Wl,'
9818 lt_prog_compiler_pic='-qpic'
9819 lt_prog_compiler_static='-qstaticlink'
9822 case `$CC -V 2>&1 | sed 5q` in
9825 lt_prog_compiler_pic='-KPIC'
9826 lt_prog_compiler_static='-Bstatic'
9827 lt_prog_compiler_wl='-Wl,'
9830 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9831 lt_prog_compiler_pic='-KPIC'
9832 lt_prog_compiler_static='-Bstatic'
9833 lt_prog_compiler_wl=''
9841 lt_prog_compiler_pic='-KPIC'
9842 lt_prog_compiler_static='-Bstatic'
9846 # QNX uses GNU C++, but need to define -shared option too, otherwise
9848 lt_prog_compiler_pic='-fPIC -shared'
9851 osf3* | osf4* | osf5*)
9852 lt_prog_compiler_wl='-Wl,'
9853 # All OSF/1 code is PIC.
9854 lt_prog_compiler_static='-non_shared'
9858 lt_prog_compiler_static='-non_shared'
9862 lt_prog_compiler_pic='-KPIC'
9863 lt_prog_compiler_static='-Bstatic'
9864 case $cc_basename in
9866 lt_prog_compiler_wl='-Qoption ld ';;
9868 lt_prog_compiler_wl='-Wl,';;
9873 lt_prog_compiler_wl='-Qoption ld '
9874 lt_prog_compiler_pic='-PIC'
9875 lt_prog_compiler_static='-Bstatic'
9878 sysv4 | sysv4.2uw2* | sysv4.3*)
9879 lt_prog_compiler_wl='-Wl,'
9880 lt_prog_compiler_pic='-KPIC'
9881 lt_prog_compiler_static='-Bstatic'
9885 if test -d /usr/nec ;then
9886 lt_prog_compiler_pic='-Kconform_pic'
9887 lt_prog_compiler_static='-Bstatic'
9891 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9892 lt_prog_compiler_wl='-Wl,'
9893 lt_prog_compiler_pic='-KPIC'
9894 lt_prog_compiler_static='-Bstatic'
9898 lt_prog_compiler_wl='-Wl,'
9899 lt_prog_compiler_can_build_shared=no
9903 lt_prog_compiler_pic='-pic'
9904 lt_prog_compiler_static='-Bstatic'
9908 lt_prog_compiler_can_build_shared=no
9914 # For platforms which do not support PIC, -DPIC is meaningless:
9916 lt_prog_compiler_pic=
9919 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9923 $as_echo "$lt_prog_compiler_pic" >&6; }
9931 # Check to make sure the PIC flag actually works.
9933 if test -n "$lt_prog_compiler_pic"; then
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9935 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9936 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9937 $as_echo_n "(cached) " >&6
9939 lt_cv_prog_compiler_pic_works=no
9940 ac_outfile=conftest.$ac_objext
9941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9942 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9943 # Insert the option either (1) after the last *FLAGS variable, or
9944 # (2) before a word containing "conftest.", or (3) at the end.
9945 # Note that $ac_compile itself does not contain backslashes and begins
9946 # with a dollar sign (not a hyphen), so the echo should work correctly.
9947 # The option is referenced via a variable to avoid confusing sed.
9948 lt_compile=`echo "$ac_compile" | $SED \
9949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9951 -e 's:$: $lt_compiler_flag:'`
9952 (eval echo "\"\$as_me:9952: $lt_compile\"" >&5)
9953 (eval "$lt_compile" 2>conftest.err)
9955 cat conftest.err >&5
9956 echo "$as_me:9956: \$? = $ac_status" >&5
9957 if (exit $ac_status) && test -s "$ac_outfile"; then
9958 # The compiler can only warn and ignore the option if not recognized
9959 # So say no if there are warnings other than the usual output.
9960 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9962 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9963 lt_cv_prog_compiler_pic_works=yes
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9970 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9972 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9973 case $lt_prog_compiler_pic in
9975 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9978 lt_prog_compiler_pic=
9979 lt_prog_compiler_can_build_shared=no
9990 # Check to make sure the static flag actually works.
9992 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9994 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9995 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9996 $as_echo_n "(cached) " >&6
9998 lt_cv_prog_compiler_static_works=no
9999 save_LDFLAGS="$LDFLAGS"
10000 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10001 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10002 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10003 # The linker can only warn and ignore the option if not recognized
10004 # So say no if there are warnings
10005 if test -s conftest.err; then
10006 # Append any errors to the config.log.
10007 cat conftest.err 1>&5
10008 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10010 if diff conftest.exp conftest.er2 >/dev/null; then
10011 lt_cv_prog_compiler_static_works=yes
10014 lt_cv_prog_compiler_static_works=yes
10018 LDFLAGS="$save_LDFLAGS"
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10022 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10024 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10027 lt_prog_compiler_static=
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10037 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10038 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10039 $as_echo_n "(cached) " >&6
10041 lt_cv_prog_compiler_c_o=no
10042 $RM -r conftest 2>/dev/null
10046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10048 lt_compiler_flag="-o out/conftest2.$ac_objext"
10049 # Insert the option either (1) after the last *FLAGS variable, or
10050 # (2) before a word containing "conftest.", or (3) at the end.
10051 # Note that $ac_compile itself does not contain backslashes and begins
10052 # with a dollar sign (not a hyphen), so the echo should work correctly.
10053 lt_compile=`echo "$ac_compile" | $SED \
10054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10056 -e 's:$: $lt_compiler_flag:'`
10057 (eval echo "\"\$as_me:10057: $lt_compile\"" >&5)
10058 (eval "$lt_compile" 2>out/conftest.err)
10060 cat out/conftest.err >&5
10061 echo "$as_me:10061: \$? = $ac_status" >&5
10062 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10064 # The compiler can only warn and ignore the option if not recognized
10065 # So say no if there are warnings
10066 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10067 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10068 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10069 lt_cv_prog_compiler_c_o=yes
10074 # SGI C++ compiler will create directory out/ii_files/ for
10075 # template instantiation
10076 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10077 $RM out/* && rmdir out
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10084 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10092 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10093 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10094 $as_echo_n "(cached) " >&6
10096 lt_cv_prog_compiler_c_o=no
10097 $RM -r conftest 2>/dev/null
10101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10103 lt_compiler_flag="-o out/conftest2.$ac_objext"
10104 # Insert the option either (1) after the last *FLAGS variable, or
10105 # (2) before a word containing "conftest.", or (3) at the end.
10106 # Note that $ac_compile itself does not contain backslashes and begins
10107 # with a dollar sign (not a hyphen), so the echo should work correctly.
10108 lt_compile=`echo "$ac_compile" | $SED \
10109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10111 -e 's:$: $lt_compiler_flag:'`
10112 (eval echo "\"\$as_me:10112: $lt_compile\"" >&5)
10113 (eval "$lt_compile" 2>out/conftest.err)
10115 cat out/conftest.err >&5
10116 echo "$as_me:10116: \$? = $ac_status" >&5
10117 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10119 # The compiler can only warn and ignore the option if not recognized
10120 # So say no if there are warnings
10121 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10122 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10123 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10124 lt_cv_prog_compiler_c_o=yes
10129 # SGI C++ compiler will create directory out/ii_files/ for
10130 # template instantiation
10131 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10132 $RM out/* && rmdir out
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10139 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10144 hard_links="nottested"
10145 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10146 # do not overwrite the value of need_locks provided by the user
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10148 $as_echo_n "checking if we can lock with hard links... " >&6; }
10151 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10153 ln conftest.a conftest.b 2>&5 || hard_links=no
10154 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10156 $as_echo "$hard_links" >&6; }
10157 if test "$hard_links" = no; then
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10159 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10172 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10175 allow_undefined_flag=
10176 always_export_symbols=no
10178 archive_expsym_cmds=
10179 compiler_needs_object=no
10180 enable_shared_with_static_runtimes=no
10181 export_dynamic_flag_spec=
10182 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10183 hardcode_automatic=no
10185 hardcode_direct_absolute=no
10186 hardcode_libdir_flag_spec=
10187 hardcode_libdir_flag_spec_ld=
10188 hardcode_libdir_separator=
10189 hardcode_minus_L=no
10190 hardcode_shlibpath_var=unsupported
10192 link_all_deplibs=unknown
10194 module_expsym_cmds=
10195 old_archive_from_new_cmds=
10196 old_archive_from_expsyms_cmds=
10197 thread_safe_flag_spec=
10198 whole_archive_flag_spec=
10199 # include_expsyms should be a list of space-separated symbols to be *always*
10200 # included in the symbol list
10202 # exclude_expsyms can be an extended regexp of symbols to exclude
10203 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10204 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10205 # as well as any symbol that contains `d'.
10206 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10207 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10208 # platforms (ab)use it in PIC code, but their linkers get confused if
10209 # the symbol is explicitly referenced. Since portable code cannot
10210 # rely on this symbol name, it's probably fine to never include it in
10211 # preloaded symbol tables.
10212 # Exclude shared library initialization/finalization symbols.
10213 extract_expsyms_cmds=
10216 cygwin* | mingw* | pw32* | cegcc*)
10217 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10218 # When not using gcc, we currently assume that we are using
10219 # Microsoft Visual C++.
10220 if test "$GCC" != yes; then
10225 # we just hope/assume this is gcc and not c89 (= MSVC++)
10231 linux* | k*bsd*-gnu)
10232 link_all_deplibs=no
10237 if test "$with_gnu_ld" = yes; then
10238 # If archive_cmds runs LD, not CC, wlarc should be empty
10241 # Set some defaults for GNU ld with shared library support. These
10242 # are reset later if shared libraries are not supported. Putting them
10243 # here allows them to be overridden if necessary.
10244 runpath_var=LD_RUN_PATH
10245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10246 export_dynamic_flag_spec='${wl}--export-dynamic'
10247 # ancient GNU ld didn't support --whole-archive et. al.
10248 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10249 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10251 whole_archive_flag_spec=
10253 supports_anon_versioning=no
10254 case `$LD -v 2>&1` in
10255 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10256 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10257 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10258 *\ 2.11.*) ;; # other 2.11 versions
10259 *) supports_anon_versioning=yes ;;
10262 # See if GNU ld supports shared libraries.
10265 # On AIX/PPC, the GNU linker is very broken
10266 if test "$host_cpu" != ia64; then
10270 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10271 *** to be unable to reliably create shared libraries on AIX.
10272 *** Therefore, libtool is disabling shared libraries support. If you
10273 *** really care for shared libraries, you may want to modify your PATH
10274 *** so that a non-GNU linker is found, and then restart.
10283 # see comment about AmigaOS4 .so support
10284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10285 archive_expsym_cmds=''
10288 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)'
10289 hardcode_libdir_flag_spec='-L$libdir'
10290 hardcode_minus_L=yes
10296 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10297 allow_undefined_flag=unsupported
10298 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10299 # support --undefined. This deserves some investigation. FIXME
10300 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10306 cygwin* | mingw* | pw32* | cegcc*)
10307 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10308 # as there is no search path for DLLs.
10309 hardcode_libdir_flag_spec='-L$libdir'
10310 allow_undefined_flag=unsupported
10311 always_export_symbols=no
10312 enable_shared_with_static_runtimes=yes
10313 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10315 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10317 # If the export-symbols file already is a .def file (1st line
10318 # is EXPORTS), use it as is; otherwise, prepend...
10319 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10320 cp $export_symbols $output_objdir/$soname.def;
10322 echo EXPORTS > $output_objdir/$soname.def;
10323 cat $export_symbols >> $output_objdir/$soname.def;
10325 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10333 hardcode_shlibpath_var=no
10334 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10335 export_dynamic_flag_spec='${wl}-E'
10336 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10337 # Instead, shared libraries are loaded at an image base (0x10000000 by
10338 # default) and relocated if they conflict, which is a slow very memory
10339 # consuming and fragmenting process. To avoid this, we pick a random,
10340 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10341 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10342 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10343 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'
10346 gnu* | linux* | tpf* | k*bsd*-gnu)
10348 if test "$host_os" = linux-dietlibc; then
10349 case $cc_basename in
10350 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10353 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10354 && test "$tmp_diet" = no
10357 tmp_sharedflag='-shared'
10358 case $cc_basename,$host_cpu in
10359 pgcc*) # Portland Group C compiler
10360 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'
10361 tmp_addflag=' $pic_flag'
10363 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10364 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'
10365 tmp_addflag=' $pic_flag -Mnomain' ;;
10366 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10367 tmp_addflag=' -i_dynamic' ;;
10368 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10369 tmp_addflag=' -i_dynamic -nofor_main' ;;
10370 ifc* | ifort*) # Intel Fortran compiler
10371 tmp_addflag=' -nofor_main' ;;
10372 lf95*) # Lahey Fortran 8.1
10373 whole_archive_flag_spec=
10374 tmp_sharedflag='--shared' ;;
10375 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10376 tmp_sharedflag='-qmkshrobj'
10379 case `$CC -V 2>&1 | sed 5q` in
10380 *Sun\ C*) # Sun C 5.9
10381 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10382 compiler_needs_object=yes
10383 tmp_sharedflag='-G' ;;
10384 *Sun\ F*) # Sun Fortran 8.3
10385 tmp_sharedflag='-G' ;;
10387 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10389 if test "x$supports_anon_versioning" = xyes; then
10390 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10392 echo "local: *; };" >> $output_objdir/$libname.ver~
10393 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10396 case $cc_basename in
10398 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10399 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10400 hardcode_libdir_flag_spec=
10401 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10402 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10403 if test "x$supports_anon_versioning" = xyes; then
10404 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10405 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10406 echo "local: *; };" >> $output_objdir/$libname.ver~
10407 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10416 netbsd* | netbsdelf*-gnu)
10417 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10418 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10427 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10431 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10432 *** create shared libraries on Solaris systems. Therefore, libtool
10433 *** is disabling shared libraries support. We urge you to upgrade GNU
10434 *** binutils to release 2.9.1 or newer. Another option is to modify
10435 *** your PATH or compiler configuration so that the native linker is
10436 *** used, and then restart.
10439 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10441 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10448 case `$LD -v 2>&1` in
10449 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10453 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10454 *** reliably create shared libraries on SCO systems. Therefore, libtool
10455 *** is disabling shared libraries support. We urge you to upgrade GNU
10456 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10457 *** your PATH or compiler configuration so that the native linker is
10458 *** used, and then restart.
10463 # For security reasons, it is highly recommended that you always
10464 # use absolute paths for naming shared libraries, and exclude the
10465 # DT_RUNPATH tag from executables and libraries. But doing so
10466 # requires that you compile everything twice, which is a pain.
10467 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10470 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10479 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10481 hardcode_direct=yes
10482 hardcode_shlibpath_var=no
10486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10495 if test "$ld_shlibs" = no; then
10497 hardcode_libdir_flag_spec=
10498 export_dynamic_flag_spec=
10499 whole_archive_flag_spec=
10502 # PORTME fill in a description of your system's linker (not GNU ld)
10505 allow_undefined_flag=unsupported
10506 always_export_symbols=yes
10507 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'
10508 # Note: this linker hardcodes the directories in LIBPATH if there
10509 # are no directories specified by -L.
10510 hardcode_minus_L=yes
10511 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10512 # Neither direct hardcoding nor static linking is supported with a
10514 hardcode_direct=unsupported
10519 if test "$host_cpu" = ia64; then
10520 # On IA64, the linker does run time linking by default, so we don't
10521 # have to do anything special.
10522 aix_use_runtimelinking=no
10523 exp_sym_flag='-Bexport'
10526 # If we're using GNU nm, then we don't want the "-C" option.
10527 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10528 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10529 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'
10531 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'
10533 aix_use_runtimelinking=no
10535 # Test if we are trying to use run time linking or normal
10536 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10537 # need to do runtime linking.
10538 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10539 for ld_flag in $LDFLAGS; do
10540 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10541 aix_use_runtimelinking=yes
10548 exp_sym_flag='-bexport'
10549 no_entry_flag='-bnoentry'
10552 # When large executables or shared objects are built, AIX ld can
10553 # have problems creating the table of contents. If linking a library
10554 # or program results in "error TOC overflow" add -mminimal-toc to
10555 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10556 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10559 hardcode_direct=yes
10560 hardcode_direct_absolute=yes
10561 hardcode_libdir_separator=':'
10562 link_all_deplibs=yes
10563 file_list_spec='${wl}-f,'
10565 if test "$GCC" = yes; then
10566 case $host_os in aix4.[012]|aix4.[012].*)
10567 # We only want to do this on AIX 4.2 and lower, the check
10568 # below for broken collect2 doesn't work under 4.3+
10569 collect2name=`${CC} -print-prog-name=collect2`
10570 if test -f "$collect2name" &&
10571 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10573 # We have reworked collect2
10576 # We have old collect2
10577 hardcode_direct=unsupported
10578 # It fails to find uninstalled libraries when the uninstalled
10579 # path is not listed in the libpath. Setting hardcode_minus_L
10580 # to unsupported forces relinking
10581 hardcode_minus_L=yes
10582 hardcode_libdir_flag_spec='-L$libdir'
10583 hardcode_libdir_separator=
10587 shared_flag='-shared'
10588 if test "$aix_use_runtimelinking" = yes; then
10589 shared_flag="$shared_flag "'${wl}-G'
10591 link_all_deplibs=no
10594 if test "$host_cpu" = ia64; then
10595 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10596 # chokes on -Wl,-G. The following line is correct:
10599 if test "$aix_use_runtimelinking" = yes; then
10600 shared_flag='${wl}-G'
10602 shared_flag='${wl}-bM:SRE'
10607 export_dynamic_flag_spec='${wl}-bexpall'
10608 # It seems that -bexpall does not export symbols beginning with
10609 # underscore (_), so it is better to generate a list of symbols to export.
10610 always_export_symbols=yes
10611 if test "$aix_use_runtimelinking" = yes; then
10612 # Warning - without using the other runtime loading flags (-brtl),
10613 # -berok will link without error, but may produce a broken library.
10614 allow_undefined_flag='-berok'
10615 # Determine the default libpath from the value encoded in an
10616 # empty executable.
10617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618 /* end confdefs.h. */
10628 if ac_fn_c_try_link "$LINENO"; then :
10630 lt_aix_libpath_sed='
10631 /Import File Strings/,/^$/ {
10637 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10638 # Check for a 64-bit object if we didn't find anything.
10639 if test -z "$aix_libpath"; then
10640 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10643 rm -f core conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
10645 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10647 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10648 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10650 if test "$host_cpu" = ia64; then
10651 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10652 allow_undefined_flag="-z nodefs"
10653 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"
10655 # Determine the default libpath from the value encoded in an
10656 # empty executable.
10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10668 if ac_fn_c_try_link "$LINENO"; then :
10670 lt_aix_libpath_sed='
10671 /Import File Strings/,/^$/ {
10677 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10678 # Check for a 64-bit object if we didn't find anything.
10679 if test -z "$aix_libpath"; then
10680 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10683 rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10685 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10687 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10688 # Warning - without using the other run time loading flags,
10689 # -berok will link without error, but may produce a broken library.
10690 no_undefined_flag=' ${wl}-bernotok'
10691 allow_undefined_flag=' ${wl}-berok'
10692 # Exported symbols can be pulled into shared objects from archives
10693 whole_archive_flag_spec='$convenience'
10694 archive_cmds_need_lc=yes
10695 # This is similar to how AIX traditionally builds its shared libraries.
10696 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'
10704 # see comment about AmigaOS4 .so support
10705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10706 archive_expsym_cmds=''
10709 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)'
10710 hardcode_libdir_flag_spec='-L$libdir'
10711 hardcode_minus_L=yes
10717 export_dynamic_flag_spec=-rdynamic
10720 cygwin* | mingw* | pw32* | cegcc*)
10721 # When not using gcc, we currently assume that we are using
10722 # Microsoft Visual C++.
10723 # hardcode_libdir_flag_spec is actually meaningless, as there is
10724 # no search path for DLLs.
10725 hardcode_libdir_flag_spec=' '
10726 allow_undefined_flag=unsupported
10727 # Tell ltmain to make .lib files, not .a files.
10729 # Tell ltmain to make .dll files, not .so files.
10731 # FIXME: Setting linknames here is a bad hack.
10732 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10733 # The linker will automatically build a .lib file if we build a DLL.
10734 old_archive_from_new_cmds='true'
10735 # FIXME: Should let the user specify the lib program.
10736 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10737 fix_srcfile_path='`cygpath -w "$srcfile"`'
10738 enable_shared_with_static_runtimes=yes
10741 darwin* | rhapsody*)
10744 archive_cmds_need_lc=no
10746 hardcode_automatic=yes
10747 hardcode_shlibpath_var=unsupported
10748 whole_archive_flag_spec=''
10749 link_all_deplibs=yes
10750 allow_undefined_flag="$_lt_dar_allow_undefined"
10751 case $cc_basename in
10752 ifort*) _lt_dar_can_shared=yes ;;
10753 *) _lt_dar_can_shared=$GCC ;;
10755 if test "$_lt_dar_can_shared" = "yes"; then
10756 output_verbose_link_cmd=echo
10757 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10758 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10759 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10760 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10770 hardcode_libdir_flag_spec='-L$libdir'
10771 hardcode_shlibpath_var=no
10778 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10779 # support. Future versions do this automatically, but an explicit c++rt0.o
10780 # does not break anything, and helps significantly (at the cost of a little
10783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10784 hardcode_libdir_flag_spec='-R$libdir'
10785 hardcode_direct=yes
10786 hardcode_shlibpath_var=no
10789 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10792 hardcode_direct=yes
10793 hardcode_minus_L=yes
10794 hardcode_shlibpath_var=no
10797 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10798 freebsd* | dragonfly*)
10799 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10800 hardcode_libdir_flag_spec='-R$libdir'
10801 hardcode_direct=yes
10802 hardcode_shlibpath_var=no
10806 if test "$GCC" = yes; then
10807 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'
10809 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'
10811 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10812 hardcode_libdir_separator=:
10813 hardcode_direct=yes
10815 # hardcode_minus_L: Not really in the search PATH,
10816 # but as the default location of the library.
10817 hardcode_minus_L=yes
10818 export_dynamic_flag_spec='${wl}-E'
10822 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10823 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10825 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10827 if test "$with_gnu_ld" = no; then
10828 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10829 hardcode_libdir_flag_spec_ld='+b $libdir'
10830 hardcode_libdir_separator=:
10831 hardcode_direct=yes
10832 hardcode_direct_absolute=yes
10833 export_dynamic_flag_spec='${wl}-E'
10834 # hardcode_minus_L: Not really in the search PATH,
10835 # but as the default location of the library.
10836 hardcode_minus_L=yes
10841 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10844 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10847 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10850 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10856 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10859 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10862 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10866 if test "$with_gnu_ld" = no; then
10867 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10868 hardcode_libdir_separator=:
10873 hardcode_shlibpath_var=no
10876 hardcode_direct=yes
10877 hardcode_direct_absolute=yes
10878 export_dynamic_flag_spec='${wl}-E'
10880 # hardcode_minus_L: Not really in the search PATH,
10881 # but as the default location of the library.
10882 hardcode_minus_L=yes
10888 irix5* | irix6* | nonstopux*)
10889 if test "$GCC" = yes; then
10890 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10891 # Try to use the -exported_symbol ld option, if it does not
10892 # work, assume that -exports_file does not work either and
10893 # implicitly export all symbols.
10894 save_LDFLAGS="$LDFLAGS"
10895 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897 /* end confdefs.h. */
10900 if ac_fn_c_try_link "$LINENO"; then :
10901 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10904 rm -f core conftest.err conftest.$ac_objext \
10905 conftest$ac_exeext conftest.$ac_ext
10906 LDFLAGS="$save_LDFLAGS"
10908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10909 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10911 archive_cmds_need_lc='no'
10912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10913 hardcode_libdir_separator=:
10915 link_all_deplibs=yes
10918 netbsd* | netbsdelf*-gnu)
10919 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10922 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10924 hardcode_libdir_flag_spec='-R$libdir'
10925 hardcode_direct=yes
10926 hardcode_shlibpath_var=no
10930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10931 hardcode_direct=yes
10932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10933 hardcode_libdir_separator=:
10934 hardcode_shlibpath_var=no
10941 if test -f /usr/libexec/ld.so; then
10942 hardcode_direct=yes
10943 hardcode_shlibpath_var=no
10944 hardcode_direct_absolute=yes
10945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10946 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10947 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10948 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10949 export_dynamic_flag_spec='${wl}-E'
10952 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10953 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10954 hardcode_libdir_flag_spec='-R$libdir'
10957 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10958 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10968 hardcode_libdir_flag_spec='-L$libdir'
10969 hardcode_minus_L=yes
10970 allow_undefined_flag=unsupported
10971 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'
10972 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10976 if test "$GCC" = yes; then
10977 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10978 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10980 allow_undefined_flag=' -expect_unresolved \*'
10981 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10983 archive_cmds_need_lc='no'
10984 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10985 hardcode_libdir_separator=:
10988 osf4* | osf5*) # as osf3* with the addition of -msym flag
10989 if test "$GCC" = yes; then
10990 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10991 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10994 allow_undefined_flag=' -expect_unresolved \*'
10995 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10996 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10997 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10999 # Both c and cxx compiler support -rpath directly
11000 hardcode_libdir_flag_spec='-rpath $libdir'
11002 archive_cmds_need_lc='no'
11003 hardcode_libdir_separator=:
11007 no_undefined_flag=' -z defs'
11008 if test "$GCC" = yes; then
11010 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11011 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11012 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11014 case `$CC -V 2>&1` in
11017 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11018 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11019 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11023 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11024 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11025 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11029 hardcode_libdir_flag_spec='-R$libdir'
11030 hardcode_shlibpath_var=no
11032 solaris2.[0-5] | solaris2.[0-5].*) ;;
11034 # The compiler driver will combine and reorder linker options,
11035 # but understands `-z linker_flag'. GCC discards it without `$wl',
11036 # but is careful enough not to reorder.
11037 # Supported since Solaris 2.6 (maybe 2.5.1?)
11038 if test "$GCC" = yes; then
11039 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11041 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11045 link_all_deplibs=yes
11049 if test "x$host_vendor" = xsequent; then
11050 # Use $CC to link under sequent, because it throws in some extra .o
11051 # files that make .init and .fini sections work.
11052 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11054 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11056 hardcode_libdir_flag_spec='-L$libdir'
11057 hardcode_direct=yes
11058 hardcode_minus_L=yes
11059 hardcode_shlibpath_var=no
11063 case $host_vendor in
11065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11066 hardcode_direct=yes # is this really true???
11069 ## LD is ld it makes a PLAMLIB
11070 ## CC just makes a GrossModule.
11071 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11072 reload_cmds='$CC -r -o $output$reload_objs'
11076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11077 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11080 runpath_var='LD_RUN_PATH'
11081 hardcode_shlibpath_var=no
11085 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11086 hardcode_shlibpath_var=no
11087 export_dynamic_flag_spec='-Bexport'
11091 if test -d /usr/nec; then
11092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11093 hardcode_shlibpath_var=no
11094 runpath_var=LD_RUN_PATH
11095 hardcode_runpath_var=yes
11100 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11101 no_undefined_flag='${wl}-z,text'
11102 archive_cmds_need_lc=no
11103 hardcode_shlibpath_var=no
11104 runpath_var='LD_RUN_PATH'
11106 if test "$GCC" = yes; then
11107 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11108 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11110 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11111 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11115 sysv5* | sco3.2v5* | sco5v6*)
11116 # Note: We can NOT use -z defs as we might desire, because we do not
11117 # link with -lc, and that would cause any symbols used from libc to
11118 # always be unresolved, which means just about no library would
11119 # ever link correctly. If we're not using GNU ld we use -z text
11120 # though, which does catch some bad symbols but isn't as heavy-handed
11122 no_undefined_flag='${wl}-z,text'
11123 allow_undefined_flag='${wl}-z,nodefs'
11124 archive_cmds_need_lc=no
11125 hardcode_shlibpath_var=no
11126 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11127 hardcode_libdir_separator=':'
11128 link_all_deplibs=yes
11129 export_dynamic_flag_spec='${wl}-Bexport'
11130 runpath_var='LD_RUN_PATH'
11132 if test "$GCC" = yes; then
11133 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11134 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11136 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11137 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11143 hardcode_libdir_flag_spec='-L$libdir'
11144 hardcode_shlibpath_var=no
11152 if test x$host_vendor = xsni; then
11154 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11155 export_dynamic_flag_spec='${wl}-Blargedynsym'
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11162 $as_echo "$ld_shlibs" >&6; }
11163 test "$ld_shlibs" = no && can_build_shared=no
11165 with_gnu_ld=$with_gnu_ld
11182 # Do we need to explicitly link libc?
11184 case "x$archive_cmds_need_lc" in
11186 # Assume -lc should be added
11187 archive_cmds_need_lc=yes
11189 if test "$enable_shared" = yes && test "$GCC" = yes; then
11190 case $archive_cmds in
11192 # FIXME: we may have to deal with multi-command sequences.
11195 # Test whether the compiler implicitly links with -lc since on some
11196 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11197 # to ld, don't add -lc before -lgcc.
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11199 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11204 (eval $ac_compile) 2>&5
11206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11207 test $ac_status = 0; } 2>conftest.err; then
11210 libobjs=conftest.$ac_objext
11212 wl=$lt_prog_compiler_wl
11213 pic_flag=$lt_prog_compiler_pic
11219 lt_save_allow_undefined_flag=$allow_undefined_flag
11220 allow_undefined_flag=
11221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11222 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11225 test $ac_status = 0; }
11227 archive_cmds_need_lc=no
11229 archive_cmds_need_lc=yes
11231 allow_undefined_flag=$lt_save_allow_undefined_flag
11233 cat conftest.err 1>&5
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11237 $as_echo "$archive_cmds_need_lc" >&6; }
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11401 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11403 if test "$GCC" = yes; then
11405 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11406 *) lt_awk_arg="/^libraries:/" ;;
11408 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11409 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11410 # if the path contains ";" then we assume it to be the separator
11411 # otherwise default to the standard path separator (i.e. ":") - it is
11412 # assumed that no part of a normal pathname contains ";" but that should
11413 # okay in the real world where ";" in dirpaths is itself problematic.
11414 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11416 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11418 # Ok, now we have the path, separated by spaces, we can step through it
11419 # and add multilib dir if necessary.
11420 lt_tmp_lt_search_path_spec=
11421 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11422 for lt_sys_path in $lt_search_path_spec; do
11423 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11424 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11426 test -d "$lt_sys_path" && \
11427 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11430 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11431 BEGIN {RS=" "; FS="/|\n";} {
11434 for (lt_i = NF; lt_i > 0; lt_i--) {
11435 if ($lt_i != "" && $lt_i != ".") {
11436 if ($lt_i == "..") {
11439 if (lt_count == 0) {
11440 lt_foo="/" $lt_i lt_foo;
11447 if (lt_foo != "") { lt_freq[lt_foo]++; }
11448 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11450 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11452 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11454 library_names_spec=
11455 libname_spec='lib$name'
11459 postuninstall_cmds=
11463 shlibpath_overrides_runpath=unknown
11465 dynamic_linker="$host_os ld.so"
11466 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11467 need_lib_prefix=unknown
11468 hardcode_into_libs=no
11470 # when you set need_version to no, make sure it does not cause -set_version
11471 # flags to be left without arguments
11472 need_version=unknown
11477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11478 shlibpath_var=LIBPATH
11480 # AIX 3 has no versioning support, so we append a major version to the name.
11481 soname_spec='${libname}${release}${shared_ext}$major'
11488 hardcode_into_libs=yes
11489 if test "$host_cpu" = ia64; then
11490 # AIX 5 supports IA64
11491 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11492 shlibpath_var=LD_LIBRARY_PATH
11494 # With GCC up to 2.95.x, collect2 would create an import file
11495 # for dependence libraries. The import file would start with
11496 # the line `#! .'. This would cause the generated library to
11497 # depend on `.', always an invalid library. This was fixed in
11498 # development snapshots of GCC prior to 3.0.
11500 aix4 | aix4.[01] | aix4.[01].*)
11501 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11503 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11506 can_build_shared=no
11510 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11511 # soname into executable. Probably we can add versioning support to
11512 # collect2, so additional links can be useful in future.
11513 if test "$aix_use_runtimelinking" = yes; then
11514 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11515 # instead of lib<name>.a to let people know that these are not
11516 # typical AIX shared libraries.
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11519 # We preserve .a as extension for shared libraries through AIX4.2
11520 # and later when we are not doing run time linking.
11521 library_names_spec='${libname}${release}.a $libname.a'
11522 soname_spec='${libname}${release}${shared_ext}$major'
11524 shlibpath_var=LIBPATH
11531 # Since July 2007 AmigaOS4 officially supports .so libraries.
11532 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11536 library_names_spec='$libname.ixlibrary $libname.a'
11537 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11538 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'
11544 library_names_spec='${libname}${shared_ext}'
11545 dynamic_linker="$host_os ld.so"
11546 shlibpath_var=LIBRARY_PATH
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11553 soname_spec='${libname}${release}${shared_ext}$major'
11554 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11555 shlibpath_var=LD_LIBRARY_PATH
11556 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11557 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11558 # the default ld.so.conf also contains /usr/contrib/lib and
11559 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11560 # libtool to hard-code these into programs
11563 cygwin* | mingw* | pw32* | cegcc*)
11564 version_type=windows
11569 case $GCC,$host_os in
11570 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11571 library_names_spec='$libname.dll.a'
11572 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11573 postinstall_cmds='base_file=`basename \${file}`~
11574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11575 dldir=$destdir/`dirname \$dlpath`~
11576 test -d \$dldir || mkdir -p \$dldir~
11577 $install_prog $dir/$dlname \$dldir/$dlname~
11578 chmod a+x \$dldir/$dlname~
11579 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11580 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11582 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11583 dlpath=$dir/\$dldll~
11585 shlibpath_overrides_runpath=yes
11589 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11590 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11591 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11594 # MinGW DLLs use traditional 'lib' prefix
11595 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11596 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11597 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11598 # It is most probably a Windows format PATH printed by
11599 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11600 # path with ; separators, and with drive letters. We can handle the
11601 # drive letters (cygwin fileutils understands them), so leave them,
11602 # especially as we might pass files found there to a mingw objdump,
11603 # which wouldn't understand a cygwinified path. Ahh.
11604 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11606 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11610 # pw32 DLLs use 'pw' prefix rather than 'lib'
11611 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11617 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11620 dynamic_linker='Win32 ld.exe'
11621 # FIXME: first we should search . and the directory the executable is in
11625 darwin* | rhapsody*)
11626 dynamic_linker="$host_os dyld"
11627 version_type=darwin
11630 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11631 soname_spec='${libname}${release}${major}$shared_ext'
11632 shlibpath_overrides_runpath=yes
11633 shlibpath_var=DYLD_LIBRARY_PATH
11634 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11636 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11637 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 shlibpath_var=LD_LIBRARY_PATH
11653 freebsd* | dragonfly*)
11654 # DragonFly does not have aout. When/if they implement a new
11655 # versioning mechanism, adjust this.
11656 if test -x /usr/bin/objformat; then
11657 objformat=`/usr/bin/objformat`
11660 freebsd[123]*) objformat=aout ;;
11661 *) objformat=elf ;;
11664 version_type=freebsd-$objformat
11665 case $version_type in
11667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11676 shlibpath_var=LD_LIBRARY_PATH
11679 shlibpath_overrides_runpath=yes
11681 freebsd3.[01]* | freebsdelf3.[01]*)
11682 shlibpath_overrides_runpath=yes
11683 hardcode_into_libs=yes
11685 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11686 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11687 shlibpath_overrides_runpath=no
11688 hardcode_into_libs=yes
11690 *) # from 4.6 on, and DragonFly
11691 shlibpath_overrides_runpath=yes
11692 hardcode_into_libs=yes
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11702 soname_spec='${libname}${release}${shared_ext}$major'
11703 shlibpath_var=LD_LIBRARY_PATH
11704 hardcode_into_libs=yes
11707 hpux9* | hpux10* | hpux11*)
11708 # Give a soname corresponding to the major version so that dld.sl refuses to
11709 # link against other versions.
11716 hardcode_into_libs=yes
11717 dynamic_linker="$host_os dld.so"
11718 shlibpath_var=LD_LIBRARY_PATH
11719 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11721 soname_spec='${libname}${release}${shared_ext}$major'
11722 if test "X$HPUX_IA64_MODE" = X32; then
11723 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11725 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11731 hardcode_into_libs=yes
11732 dynamic_linker="$host_os dld.sl"
11733 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11734 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11736 soname_spec='${libname}${release}${shared_ext}$major'
11737 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11742 dynamic_linker="$host_os dld.sl"
11743 shlibpath_var=SHLIB_PATH
11744 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11746 soname_spec='${libname}${release}${shared_ext}$major'
11749 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11750 postinstall_cmds='chmod 555 $lib'
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11758 soname_spec='${libname}${release}${shared_ext}$major'
11759 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 shlibpath_overrides_runpath=no
11762 hardcode_into_libs=yes
11765 irix5* | irix6* | nonstopux*)
11767 nonstopux*) version_type=nonstopux ;;
11769 if test "$lt_cv_prog_gnu_ld" = yes; then
11777 soname_spec='${libname}${release}${shared_ext}$major'
11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11780 irix5* | nonstopux*)
11781 libsuff= shlibsuff=
11784 case $LD in # libtool.m4 will add one of these switches to LD
11785 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11786 libsuff= shlibsuff= libmagic=32-bit;;
11787 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11788 libsuff=32 shlibsuff=N32 libmagic=N32;;
11789 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11790 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11791 *) libsuff= shlibsuff= libmagic=never-match;;
11795 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11796 shlibpath_overrides_runpath=no
11797 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11798 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11799 hardcode_into_libs=yes
11802 # No shared lib support for Linux oldld, aout, or coff.
11803 linux*oldld* | linux*aout* | linux*coff*)
11807 # This must be Linux ELF.
11808 linux* | k*bsd*-gnu)
11812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813 soname_spec='${libname}${release}${shared_ext}$major'
11814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11815 shlibpath_var=LD_LIBRARY_PATH
11816 shlibpath_overrides_runpath=no
11817 # Some binutils ld are patched to set DT_RUNPATH
11818 save_LDFLAGS=$LDFLAGS
11819 save_libdir=$libdir
11820 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11821 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h. */
11833 if ac_fn_c_try_link "$LINENO"; then :
11834 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11835 shlibpath_overrides_runpath=yes
11838 rm -f core conftest.err conftest.$ac_objext \
11839 conftest$ac_exeext conftest.$ac_ext
11840 LDFLAGS=$save_LDFLAGS
11841 libdir=$save_libdir
11843 # This implies no fast_install, which is unacceptable.
11844 # Some rework will be needed to allow for fast_install
11845 # before this can be enabled.
11846 hardcode_into_libs=yes
11848 # Append ld.so.conf contents to the search path
11849 if test -f /etc/ld.so.conf; then
11850 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11851 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11854 # We used to test for /lib/ld.so.1 and disable shared libraries on
11855 # powerpc, because MkLinux only supported shared libraries with the
11856 # GNU dynamic linker. Since this was broken with cross compilers,
11857 # most powerpc-linux boxes support dynamic linking these days and
11858 # people can always --disable-shared, the test was removed, and we
11859 # assume the GNU/Linux dynamic linker is in use.
11860 dynamic_linker='GNU/Linux ld.so'
11867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11868 soname_spec='${libname}${release}${shared_ext}$major'
11869 shlibpath_var=LD_LIBRARY_PATH
11870 shlibpath_overrides_runpath=no
11871 hardcode_into_libs=yes
11872 dynamic_linker='NetBSD ld.elf_so'
11879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11882 dynamic_linker='NetBSD (a.out) ld.so'
11884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11885 soname_spec='${libname}${release}${shared_ext}$major'
11886 dynamic_linker='NetBSD ld.elf_so'
11888 shlibpath_var=LD_LIBRARY_PATH
11889 shlibpath_overrides_runpath=yes
11890 hardcode_into_libs=yes
11895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11896 shlibpath_var=LD_LIBRARY_PATH
11897 shlibpath_overrides_runpath=yes
11904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11905 soname_spec='${libname}${release}${shared_ext}$major'
11906 shlibpath_var=LD_LIBRARY_PATH
11907 shlibpath_overrides_runpath=no
11908 hardcode_into_libs=yes
11909 dynamic_linker='ldqnx.so'
11914 sys_lib_dlsearch_path_spec="/usr/lib"
11916 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11918 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11919 *) need_version=no ;;
11921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11923 shlibpath_var=LD_LIBRARY_PATH
11924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11926 openbsd2.[89] | openbsd2.[89].*)
11927 shlibpath_overrides_runpath=no
11930 shlibpath_overrides_runpath=yes
11934 shlibpath_overrides_runpath=yes
11939 libname_spec='$name'
11942 library_names_spec='$libname${shared_ext} $libname.a'
11943 dynamic_linker='OS/2 ld.exe'
11944 shlibpath_var=LIBPATH
11947 osf3* | osf4* | osf5*)
11951 soname_spec='${libname}${release}${shared_ext}$major'
11952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11953 shlibpath_var=LD_LIBRARY_PATH
11954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11967 soname_spec='${libname}${release}${shared_ext}$major'
11968 shlibpath_var=LD_LIBRARY_PATH
11969 shlibpath_overrides_runpath=yes
11970 hardcode_into_libs=yes
11971 # ldd complains unless libraries are executable
11972 postinstall_cmds='chmod +x $lib'
11977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11978 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11979 shlibpath_var=LD_LIBRARY_PATH
11980 shlibpath_overrides_runpath=yes
11981 if test "$with_gnu_ld" = yes; then
11989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11990 soname_spec='${libname}${release}${shared_ext}$major'
11991 shlibpath_var=LD_LIBRARY_PATH
11992 case $host_vendor in
11994 shlibpath_overrides_runpath=no
11996 runpath_var=LD_RUN_PATH
12004 shlibpath_overrides_runpath=no
12005 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12011 if test -d /usr/nec ;then
12013 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12014 soname_spec='$libname${shared_ext}.$major'
12015 shlibpath_var=LD_LIBRARY_PATH
12019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12020 version_type=freebsd-elf
12023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12024 soname_spec='${libname}${release}${shared_ext}$major'
12025 shlibpath_var=LD_LIBRARY_PATH
12026 shlibpath_overrides_runpath=yes
12027 hardcode_into_libs=yes
12028 if test "$with_gnu_ld" = yes; then
12029 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12031 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12034 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12038 sys_lib_dlsearch_path_spec='/usr/lib'
12042 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12047 shlibpath_var=LD_LIBRARY_PATH
12048 shlibpath_overrides_runpath=no
12049 hardcode_into_libs=yes
12054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12055 soname_spec='${libname}${release}${shared_ext}$major'
12056 shlibpath_var=LD_LIBRARY_PATH
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12064 $as_echo "$dynamic_linker" >&6; }
12065 test "$dynamic_linker" = no && can_build_shared=no
12067 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12068 if test "$GCC" = yes; then
12069 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12072 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12073 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12075 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12076 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12166 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12168 if test -n "$hardcode_libdir_flag_spec" ||
12169 test -n "$runpath_var" ||
12170 test "X$hardcode_automatic" = "Xyes" ; then
12172 # We can hardcode non-existent directories.
12173 if test "$hardcode_direct" != no &&
12174 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12175 # have to relink, otherwise we might link with an installed library
12176 # when we should be linking with a yet-to-be-installed one
12177 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12178 test "$hardcode_minus_L" != no; then
12179 # Linking always hardcodes the temporary library directory.
12180 hardcode_action=relink
12182 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12183 hardcode_action=immediate
12186 # We cannot hardcode anything, or else we can only hardcode existing
12188 hardcode_action=unsupported
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12191 $as_echo "$hardcode_action" >&6; }
12193 if test "$hardcode_action" = relink ||
12194 test "$inherit_rpath" = yes; then
12195 # Fast installation is not supported
12196 enable_fast_install=no
12197 elif test "$shlibpath_overrides_runpath" = yes ||
12198 test "$enable_shared" = no; then
12199 # Fast installation is not necessary
12200 enable_fast_install=needless
12208 if test "x$enable_dlopen" != xyes; then
12209 enable_dlopen=unknown
12210 enable_dlopen_self=unknown
12211 enable_dlopen_self_static=unknown
12218 lt_cv_dlopen="load_add_on"
12220 lt_cv_dlopen_self=yes
12223 mingw* | pw32* | cegcc*)
12224 lt_cv_dlopen="LoadLibrary"
12229 lt_cv_dlopen="dlopen"
12234 # if libdl is installed we need to link against it
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12236 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12237 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12238 $as_echo_n "(cached) " >&6
12240 ac_check_lib_save_LIBS=$LIBS
12242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12243 /* end confdefs.h. */
12245 /* Override any GCC internal prototype to avoid an error.
12246 Use char because int might match the return type of a GCC
12247 builtin and then its argument prototype would still apply. */
12260 if ac_fn_c_try_link "$LINENO"; then :
12261 ac_cv_lib_dl_dlopen=yes
12263 ac_cv_lib_dl_dlopen=no
12265 rm -f core conftest.err conftest.$ac_objext \
12266 conftest$ac_exeext conftest.$ac_ext
12267 LIBS=$ac_check_lib_save_LIBS
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12270 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12271 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12272 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12275 lt_cv_dlopen="dyld"
12277 lt_cv_dlopen_self=yes
12284 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12285 if test "x$ac_cv_func_shl_load" = x""yes; then :
12286 lt_cv_dlopen="shl_load"
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12289 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12290 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12291 $as_echo_n "(cached) " >&6
12293 ac_check_lib_save_LIBS=$LIBS
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12298 /* Override any GCC internal prototype to avoid an error.
12299 Use char because int might match the return type of a GCC
12300 builtin and then its argument prototype would still apply. */
12308 return shl_load ();
12313 if ac_fn_c_try_link "$LINENO"; then :
12314 ac_cv_lib_dld_shl_load=yes
12316 ac_cv_lib_dld_shl_load=no
12318 rm -f core conftest.err conftest.$ac_objext \
12319 conftest$ac_exeext conftest.$ac_ext
12320 LIBS=$ac_check_lib_save_LIBS
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12323 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12324 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12325 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12327 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12328 if test "x$ac_cv_func_dlopen" = x""yes; then :
12329 lt_cv_dlopen="dlopen"
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12332 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12333 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12334 $as_echo_n "(cached) " >&6
12336 ac_check_lib_save_LIBS=$LIBS
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12341 /* Override any GCC internal prototype to avoid an error.
12342 Use char because int might match the return type of a GCC
12343 builtin and then its argument prototype would still apply. */
12356 if ac_fn_c_try_link "$LINENO"; then :
12357 ac_cv_lib_dl_dlopen=yes
12359 ac_cv_lib_dl_dlopen=no
12361 rm -f core conftest.err conftest.$ac_objext \
12362 conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12366 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12367 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12368 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12371 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12372 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12373 $as_echo_n "(cached) " >&6
12375 ac_check_lib_save_LIBS=$LIBS
12376 LIBS="-lsvld $LIBS"
12377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h. */
12380 /* Override any GCC internal prototype to avoid an error.
12381 Use char because int might match the return type of a GCC
12382 builtin and then its argument prototype would still apply. */
12395 if ac_fn_c_try_link "$LINENO"; then :
12396 ac_cv_lib_svld_dlopen=yes
12398 ac_cv_lib_svld_dlopen=no
12400 rm -f core conftest.err conftest.$ac_objext \
12401 conftest$ac_exeext conftest.$ac_ext
12402 LIBS=$ac_check_lib_save_LIBS
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12405 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12406 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12407 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12410 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12411 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12412 $as_echo_n "(cached) " >&6
12414 ac_check_lib_save_LIBS=$LIBS
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12419 /* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply. */
12429 return dld_link ();
12434 if ac_fn_c_try_link "$LINENO"; then :
12435 ac_cv_lib_dld_dld_link=yes
12437 ac_cv_lib_dld_dld_link=no
12439 rm -f core conftest.err conftest.$ac_objext \
12440 conftest$ac_exeext conftest.$ac_ext
12441 LIBS=$ac_check_lib_save_LIBS
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12444 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12445 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12446 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12467 if test "x$lt_cv_dlopen" != xno; then
12473 case $lt_cv_dlopen in
12475 save_CPPFLAGS="$CPPFLAGS"
12476 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12478 save_LDFLAGS="$LDFLAGS"
12479 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12482 LIBS="$lt_cv_dlopen_libs $LIBS"
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12485 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12486 if test "${lt_cv_dlopen_self+set}" = set; then :
12487 $as_echo_n "(cached) " >&6
12489 if test "$cross_compiling" = yes; then :
12490 lt_cv_dlopen_self=cross
12492 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12493 lt_status=$lt_dlunknown
12494 cat > conftest.$ac_ext <<_LT_EOF
12495 #line 12495 "configure"
12496 #include "confdefs.h"
12505 # define LT_DLGLOBAL RTLD_GLOBAL
12508 # define LT_DLGLOBAL DL_GLOBAL
12510 # define LT_DLGLOBAL 0
12514 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12515 find out it does not work in some platform. */
12516 #ifndef LT_DLLAZY_OR_NOW
12518 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12521 # define LT_DLLAZY_OR_NOW DL_LAZY
12524 # define LT_DLLAZY_OR_NOW RTLD_NOW
12527 # define LT_DLLAZY_OR_NOW DL_NOW
12529 # define LT_DLLAZY_OR_NOW 0
12536 void fnord() { int i=42;}
12539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12540 int status = $lt_dlunknown;
12544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12545 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12546 /* dlclose (self); */
12554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12555 (eval $ac_link) 2>&5
12557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12558 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12559 (./conftest; exit; ) >&5 2>/dev/null
12561 case x$lt_status in
12562 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12563 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12564 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12567 # compilation failed
12568 lt_cv_dlopen_self=no
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12576 $as_echo "$lt_cv_dlopen_self" >&6; }
12578 if test "x$lt_cv_dlopen_self" = xyes; then
12579 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12581 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12582 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12583 $as_echo_n "(cached) " >&6
12585 if test "$cross_compiling" = yes; then :
12586 lt_cv_dlopen_self_static=cross
12588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12589 lt_status=$lt_dlunknown
12590 cat > conftest.$ac_ext <<_LT_EOF
12591 #line 12591 "configure"
12592 #include "confdefs.h"
12601 # define LT_DLGLOBAL RTLD_GLOBAL
12604 # define LT_DLGLOBAL DL_GLOBAL
12606 # define LT_DLGLOBAL 0
12610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12611 find out it does not work in some platform. */
12612 #ifndef LT_DLLAZY_OR_NOW
12614 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12617 # define LT_DLLAZY_OR_NOW DL_LAZY
12620 # define LT_DLLAZY_OR_NOW RTLD_NOW
12623 # define LT_DLLAZY_OR_NOW DL_NOW
12625 # define LT_DLLAZY_OR_NOW 0
12632 void fnord() { int i=42;}
12635 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12636 int status = $lt_dlunknown;
12640 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12641 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12642 /* dlclose (self); */
12650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12651 (eval $ac_link) 2>&5
12653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12654 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12655 (./conftest; exit; ) >&5 2>/dev/null
12657 case x$lt_status in
12658 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12659 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12660 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12663 # compilation failed
12664 lt_cv_dlopen_self_static=no
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12672 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12675 CPPFLAGS="$save_CPPFLAGS"
12676 LDFLAGS="$save_LDFLAGS"
12681 case $lt_cv_dlopen_self in
12682 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12683 *) enable_dlopen_self=unknown ;;
12686 case $lt_cv_dlopen_self_static in
12687 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12688 *) enable_dlopen_self_static=unknown ;;
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12711 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12712 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12713 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12714 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12716 $as_echo "yes" >&6; }
12718 # FIXME - insert some real tests, host_os isn't really good enough
12721 if test -n "$STRIP" ; then
12722 striplib="$STRIP -x"
12723 old_striplib="$STRIP -S"
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12725 $as_echo "yes" >&6; }
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728 $as_echo "no" >&6; }
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733 $as_echo "no" >&6; }
12749 # Report which library types will actually be built
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12751 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12753 $as_echo "$can_build_shared" >&6; }
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12756 $as_echo_n "checking whether to build shared libraries... " >&6; }
12757 test "$can_build_shared" = "no" && enable_shared=no
12759 # On AIX, shared libraries and static libraries use the same namespace, and
12760 # are all built from PIC.
12763 test "$enable_shared" = yes && enable_static=no
12764 if test -n "$RANLIB"; then
12765 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12766 postinstall_cmds='$RANLIB $lib'
12771 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12772 test "$enable_shared" = yes && enable_static=no
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12777 $as_echo "$enable_shared" >&6; }
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12780 $as_echo_n "checking whether to build static libraries... " >&6; }
12781 # Make sure either enable_shared or enable_static is yes.
12782 test "$enable_shared" = yes || enable_static=yes
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12784 $as_echo "$enable_static" >&6; }
12791 ac_cpp='$CPP $CPPFLAGS'
12792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12800 ac_cpp='$CXXCPP $CPPFLAGS'
12801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12805 archive_cmds_need_lc_CXX=no
12806 allow_undefined_flag_CXX=
12807 always_export_symbols_CXX=no
12808 archive_expsym_cmds_CXX=
12809 compiler_needs_object_CXX=no
12810 export_dynamic_flag_spec_CXX=
12811 hardcode_direct_CXX=no
12812 hardcode_direct_absolute_CXX=no
12813 hardcode_libdir_flag_spec_CXX=
12814 hardcode_libdir_flag_spec_ld_CXX=
12815 hardcode_libdir_separator_CXX=
12816 hardcode_minus_L_CXX=no
12817 hardcode_shlibpath_var_CXX=unsupported
12818 hardcode_automatic_CXX=no
12819 inherit_rpath_CXX=no
12821 module_expsym_cmds_CXX=
12822 link_all_deplibs_CXX=unknown
12823 old_archive_cmds_CXX=$old_archive_cmds
12824 no_undefined_flag_CXX=
12825 whole_archive_flag_spec_CXX=
12826 enable_shared_with_static_runtimes_CXX=no
12828 # Source file extension for C++ test sources.
12831 # Object file extension for compiled C++ test sources.
12835 # No sense in running all these tests if we already determined that
12836 # the CXX compiler isn't working. Some variables (like enable_shared)
12837 # are currently assumed to apply to all compilers on this platform,
12838 # and will be corrupted by setting them based on a non-working compiler.
12839 if test "$_lt_caught_CXX_error" != yes; then
12840 # Code to be used in simple compile tests
12841 lt_simple_compile_test_code="int some_variable = 0;"
12843 # Code to be used in simple link tests
12844 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12846 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12853 # If no C compiler was specified, use CC.
12856 # If no C compiler flags were specified, use CFLAGS.
12857 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12859 # Allow CC to be a program name with arguments.
12863 # save warnings/boilerplate of simple test code
12864 ac_outfile=conftest.$ac_objext
12865 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12866 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12867 _lt_compiler_boilerplate=`cat conftest.err`
12870 ac_outfile=conftest.$ac_objext
12871 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12872 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12873 _lt_linker_boilerplate=`cat conftest.err`
12877 # Allow CC to be a program name with arguments.
12882 lt_save_with_gnu_ld=$with_gnu_ld
12883 lt_save_path_LD=$lt_cv_path_LD
12884 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12885 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12887 $as_unset lt_cv_prog_gnu_ld
12889 if test -n "${lt_cv_path_LDCXX+set}"; then
12890 lt_cv_path_LD=$lt_cv_path_LDCXX
12892 $as_unset lt_cv_path_LD
12894 test -z "${LDCXX+set}" || LD=$LDCXX
12898 for cc_temp in $compiler""; do
12900 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12901 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12906 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12909 if test -n "$compiler"; then
12910 # We don't want -fno-exception when compiling C++ code, so set the
12911 # no_builtin_flag separately
12912 if test "$GXX" = yes; then
12913 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12915 lt_prog_compiler_no_builtin_flag_CXX=
12918 if test "$GXX" = yes; then
12919 # Set up default GNU C++ configuration
12923 # Check whether --with-gnu-ld was given.
12924 if test "${with_gnu_ld+set}" = set; then :
12925 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12931 if test "$GCC" = yes; then
12932 # Check if gcc -print-prog-name=ld gives a path.
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12934 $as_echo_n "checking for ld used by $CC... " >&6; }
12937 # gcc leaves a trailing carriage return which upsets mingw
12938 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12940 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12943 # Accept absolute paths.
12945 re_direlt='/[^/][^/]*/\.\./'
12946 # Canonicalize the pathname of ld
12947 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12948 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12949 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12951 test -z "$LD" && LD="$ac_prog"
12954 # If it fails, then pretend we aren't using GCC.
12958 # If it is relative, then search for the first ld in PATH.
12959 with_gnu_ld=unknown
12962 elif test "$with_gnu_ld" = yes; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12964 $as_echo_n "checking for GNU ld... " >&6; }
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12967 $as_echo_n "checking for non-GNU ld... " >&6; }
12969 if test "${lt_cv_path_LD+set}" = set; then :
12970 $as_echo_n "(cached) " >&6
12972 if test -z "$LD"; then
12973 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12974 for ac_dir in $PATH; do
12976 test -z "$ac_dir" && ac_dir=.
12977 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12978 lt_cv_path_LD="$ac_dir/$ac_prog"
12979 # Check to see if the program is GNU ld. I'd rather use --version,
12980 # but apparently some variants of GNU ld only accept -v.
12981 # Break only if it was the GNU/non-GNU ld that we prefer.
12982 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12983 *GNU* | *'with BFD'*)
12984 test "$with_gnu_ld" != no && break
12987 test "$with_gnu_ld" != yes && break
12994 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12998 LD="$lt_cv_path_LD"
12999 if test -n "$LD"; then
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13001 $as_echo "$LD" >&6; }
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13004 $as_echo "no" >&6; }
13006 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13008 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13009 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
13012 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13013 case `$LD -v 2>&1 </dev/null` in
13014 *GNU* | *'with BFD'*)
13015 lt_cv_prog_gnu_ld=yes
13018 lt_cv_prog_gnu_ld=no
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13023 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13024 with_gnu_ld=$lt_cv_prog_gnu_ld
13032 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13033 # archiving commands below assume that GNU ld is being used.
13034 if test "$with_gnu_ld" = yes; then
13035 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13036 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'
13038 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13039 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13041 # If archive_cmds runs LD, not CC, wlarc should be empty
13042 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13043 # investigate it a little bit more. (MM)
13046 # ancient GNU ld didn't support --whole-archive et. al.
13047 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13048 $GREP 'no-whole-archive' > /dev/null; then
13049 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13051 whole_archive_flag_spec_CXX=
13057 # A generic and very simple default shared library creation
13058 # command for GNU C++ for the case where it uses the native
13059 # linker, instead of GNU ld. If possible, this setting should
13060 # overridden to take advantage of the native linker features on
13061 # the platform it is being used on.
13062 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13065 # Commands to make compiler produce verbose output that lists
13066 # what "hidden" libraries, object files and flags are used when
13067 # linking a shared library.
13068 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13076 # PORTME: fill in a description of your system's C++ link characteristics
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13078 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13082 # FIXME: insert proper C++ library support
13086 if test "$host_cpu" = ia64; then
13087 # On IA64, the linker does run time linking by default, so we don't
13088 # have to do anything special.
13089 aix_use_runtimelinking=no
13090 exp_sym_flag='-Bexport'
13093 aix_use_runtimelinking=no
13095 # Test if we are trying to use run time linking or normal
13096 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13097 # need to do runtime linking.
13098 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13099 for ld_flag in $LDFLAGS; do
13102 aix_use_runtimelinking=yes
13110 exp_sym_flag='-bexport'
13111 no_entry_flag='-bnoentry'
13114 # When large executables or shared objects are built, AIX ld can
13115 # have problems creating the table of contents. If linking a library
13116 # or program results in "error TOC overflow" add -mminimal-toc to
13117 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13118 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13120 archive_cmds_CXX=''
13121 hardcode_direct_CXX=yes
13122 hardcode_direct_absolute_CXX=yes
13123 hardcode_libdir_separator_CXX=':'
13124 link_all_deplibs_CXX=yes
13125 file_list_spec_CXX='${wl}-f,'
13127 if test "$GXX" = yes; then
13128 case $host_os in aix4.[012]|aix4.[012].*)
13129 # We only want to do this on AIX 4.2 and lower, the check
13130 # below for broken collect2 doesn't work under 4.3+
13131 collect2name=`${CC} -print-prog-name=collect2`
13132 if test -f "$collect2name" &&
13133 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13135 # We have reworked collect2
13138 # We have old collect2
13139 hardcode_direct_CXX=unsupported
13140 # It fails to find uninstalled libraries when the uninstalled
13141 # path is not listed in the libpath. Setting hardcode_minus_L
13142 # to unsupported forces relinking
13143 hardcode_minus_L_CXX=yes
13144 hardcode_libdir_flag_spec_CXX='-L$libdir'
13145 hardcode_libdir_separator_CXX=
13148 shared_flag='-shared'
13149 if test "$aix_use_runtimelinking" = yes; then
13150 shared_flag="$shared_flag "'${wl}-G'
13154 if test "$host_cpu" = ia64; then
13155 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13156 # chokes on -Wl,-G. The following line is correct:
13159 if test "$aix_use_runtimelinking" = yes; then
13160 shared_flag='${wl}-G'
13162 shared_flag='${wl}-bM:SRE'
13167 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13168 # It seems that -bexpall does not export symbols beginning with
13169 # underscore (_), so it is better to generate a list of symbols to
13171 always_export_symbols_CXX=yes
13172 if test "$aix_use_runtimelinking" = yes; then
13173 # Warning - without using the other runtime loading flags (-brtl),
13174 # -berok will link without error, but may produce a broken library.
13175 allow_undefined_flag_CXX='-berok'
13176 # Determine the default libpath from the value encoded in an empty
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13189 if ac_fn_cxx_try_link "$LINENO"; then :
13191 lt_aix_libpath_sed='
13192 /Import File Strings/,/^$/ {
13198 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13199 # Check for a 64-bit object if we didn't find anything.
13200 if test -z "$aix_libpath"; then
13201 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13204 rm -f core conftest.err conftest.$ac_objext \
13205 conftest$ac_exeext conftest.$ac_ext
13206 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13208 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13210 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13212 if test "$host_cpu" = ia64; then
13213 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13214 allow_undefined_flag_CXX="-z nodefs"
13215 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"
13217 # Determine the default libpath from the value encoded in an
13218 # empty executable.
13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h. */
13230 if ac_fn_cxx_try_link "$LINENO"; then :
13232 lt_aix_libpath_sed='
13233 /Import File Strings/,/^$/ {
13239 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13240 # Check for a 64-bit object if we didn't find anything.
13241 if test -z "$aix_libpath"; then
13242 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13245 rm -f core conftest.err conftest.$ac_objext \
13246 conftest$ac_exeext conftest.$ac_ext
13247 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13249 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13250 # Warning - without using the other run time loading flags,
13251 # -berok will link without error, but may produce a broken library.
13252 no_undefined_flag_CXX=' ${wl}-bernotok'
13253 allow_undefined_flag_CXX=' ${wl}-berok'
13254 # Exported symbols can be pulled into shared objects from archives
13255 whole_archive_flag_spec_CXX='$convenience'
13256 archive_cmds_need_lc_CXX=yes
13257 # This is similar to how AIX traditionally builds its shared
13259 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'
13265 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13266 allow_undefined_flag_CXX=unsupported
13267 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13268 # support --undefined. This deserves some investigation. FIXME
13269 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13276 case $cc_basename in
13278 # FIXME: insert proper C++ library support
13284 cygwin* | mingw* | pw32* | cegcc*)
13285 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13286 # as there is no search path for DLLs.
13287 hardcode_libdir_flag_spec_CXX='-L$libdir'
13288 allow_undefined_flag_CXX=unsupported
13289 always_export_symbols_CXX=no
13290 enable_shared_with_static_runtimes_CXX=yes
13292 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13293 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'
13294 # If the export-symbols file already is a .def file (1st line
13295 # is EXPORTS), use it as is; otherwise, prepend...
13296 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13297 cp $export_symbols $output_objdir/$soname.def;
13299 echo EXPORTS > $output_objdir/$soname.def;
13300 cat $export_symbols >> $output_objdir/$soname.def;
13302 $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'
13307 darwin* | rhapsody*)
13310 archive_cmds_need_lc_CXX=no
13311 hardcode_direct_CXX=no
13312 hardcode_automatic_CXX=yes
13313 hardcode_shlibpath_var_CXX=unsupported
13314 whole_archive_flag_spec_CXX=''
13315 link_all_deplibs_CXX=yes
13316 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13317 case $cc_basename in
13318 ifort*) _lt_dar_can_shared=yes ;;
13319 *) _lt_dar_can_shared=$GCC ;;
13321 if test "$_lt_dar_can_shared" = "yes"; then
13322 output_verbose_link_cmd=echo
13323 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13324 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13325 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13326 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13327 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13328 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13329 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13339 case $cc_basename in
13341 # FIXME: insert proper C++ library support
13345 # Green Hills C++ Compiler
13346 # FIXME: insert proper C++ library support
13350 # FIXME: insert proper C++ library support
13357 # C++ shared libraries reported to be fairly broken before
13363 archive_cmds_need_lc_CXX=no
13366 freebsd* | dragonfly*)
13367 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13376 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13377 hardcode_libdir_separator_CXX=:
13378 export_dynamic_flag_spec_CXX='${wl}-E'
13379 hardcode_direct_CXX=yes
13380 hardcode_minus_L_CXX=yes # Not in the search PATH,
13381 # but as the default
13382 # location of the library.
13384 case $cc_basename in
13386 # FIXME: insert proper C++ library support
13390 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'
13391 # Commands to make compiler produce verbose output that lists
13392 # what "hidden" libraries, object files and flags are used when
13393 # linking a shared library.
13395 # There doesn't appear to be a way to prevent this compiler from
13396 # explicitly linking system object files so we need to strip them
13397 # from the output so that they don't get included in the library
13399 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13402 if test "$GXX" = yes; then
13403 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'
13405 # FIXME: insert proper C++ library support
13413 if test $with_gnu_ld = no; then
13414 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13415 hardcode_libdir_separator_CXX=:
13421 export_dynamic_flag_spec_CXX='${wl}-E'
13427 hardcode_direct_CXX=no
13428 hardcode_shlibpath_var_CXX=no
13431 hardcode_direct_CXX=yes
13432 hardcode_direct_absolute_CXX=yes
13433 hardcode_minus_L_CXX=yes # Not in the search PATH,
13434 # but as the default
13435 # location of the library.
13439 case $cc_basename in
13441 # FIXME: insert proper C++ library support
13447 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13450 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13453 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13456 # Commands to make compiler produce verbose output that lists
13457 # what "hidden" libraries, object files and flags are used when
13458 # linking a shared library.
13460 # There doesn't appear to be a way to prevent this compiler from
13461 # explicitly linking system object files so we need to strip them
13462 # from the output so that they don't get included in the library
13464 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 "X$list" | $Xsed'
13467 if test "$GXX" = yes; then
13468 if test $with_gnu_ld = no; then
13471 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13474 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13477 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'
13482 # FIXME: insert proper C++ library support
13490 hardcode_direct_CXX=no
13491 hardcode_shlibpath_var_CXX=no
13492 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13493 export_dynamic_flag_spec_CXX='${wl}-E'
13494 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13495 # Instead, shared libraries are loaded at an image base (0x10000000 by
13496 # default) and relocated if they conflict, which is a slow very memory
13497 # consuming and fragmenting process. To avoid this, we pick a random,
13498 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13499 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13500 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'
13501 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'
13504 case $cc_basename in
13507 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13509 # Archives containing C++ object files must be created using
13510 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13511 # necessary to make sure instantiated templates are included
13513 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13516 if test "$GXX" = yes; then
13517 if test "$with_gnu_ld" = no; then
13518 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13520 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13523 link_all_deplibs_CXX=yes
13526 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13527 hardcode_libdir_separator_CXX=:
13528 inherit_rpath_CXX=yes
13531 linux* | k*bsd*-gnu)
13532 case $cc_basename in
13534 # Kuck and Associates, Inc. (KAI) C++ Compiler
13536 # KCC will only create a shared library if the output file
13537 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13538 # to its proper name (with version) after linking.
13539 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'
13540 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'
13541 # Commands to make compiler produce verbose output that lists
13542 # what "hidden" libraries, object files and flags are used when
13543 # linking a shared library.
13545 # There doesn't appear to be a way to prevent this compiler from
13546 # explicitly linking system object files so we need to strip them
13547 # from the output so that they don't get included in the library
13549 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 "X$list" | $Xsed'
13551 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13552 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13554 # Archives containing C++ object files must be created using
13555 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13556 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13561 # version 8.0 and above of icpc choke on multiply defined symbols
13562 # if we add $predep_objects and $postdep_objects, however 7.1 and
13563 # earlier do not add the objects themselves.
13564 case `$CC -V 2>&1` in
13566 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13567 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'
13569 *) # Version 8.0 or newer
13572 ia64*) tmp_idyn=' -i_dynamic';;
13574 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575 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'
13578 archive_cmds_need_lc_CXX=no
13579 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13580 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13581 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13584 # Portland Group C++ compiler
13586 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13587 prelink_cmds_CXX='tpldir=Template.dir~
13589 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13590 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13591 old_archive_cmds_CXX='tpldir=Template.dir~
13593 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13594 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13596 archive_cmds_CXX='tpldir=Template.dir~
13598 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13599 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13600 archive_expsym_cmds_CXX='tpldir=Template.dir~
13602 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13603 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13605 *) # Version 6 will use weak symbols
13606 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13607 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'
13611 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13612 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13613 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'
13617 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13618 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'
13620 runpath_var=LD_RUN_PATH
13621 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13622 hardcode_libdir_separator_CXX=:
13624 # Commands to make compiler produce verbose output that lists
13625 # what "hidden" libraries, object files and flags are used when
13626 # linking a shared library.
13628 # There doesn't appear to be a way to prevent this compiler from
13629 # explicitly linking system object files so we need to strip them
13630 # from the output so that they don't get included in the library
13632 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13635 # IBM XL 8.0 on PPC, with GNU ld
13636 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13637 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13638 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13639 if test "x$supports_anon_versioning" = xyes; then
13640 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13641 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13642 echo "local: *; };" >> $output_objdir/$libname.ver~
13643 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13647 case `$CC -V 2>&1 | sed 5q` in
13650 no_undefined_flag_CXX=' -zdefs'
13651 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13652 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13653 hardcode_libdir_flag_spec_CXX='-R$libdir'
13654 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13655 compiler_needs_object_CXX=yes
13657 # Not sure whether something based on
13658 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13660 output_verbose_link_cmd='echo'
13662 # Archives containing C++ object files must be created using
13663 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13664 # necessary to make sure instantiated templates are included
13666 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13674 # FIXME: insert proper C++ library support
13679 # FIXME: insert proper C++ library support
13684 case $cc_basename in
13686 # FIXME: insert proper C++ library support
13690 # FIXME: insert proper C++ library support
13697 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13698 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13700 hardcode_libdir_flag_spec_CXX='-R$libdir'
13701 hardcode_direct_CXX=yes
13702 hardcode_shlibpath_var_CXX=no
13704 # Workaround some broken pre-1.5 toolchains
13705 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13713 # C++ shared libraries are fairly broken
13718 if test -f /usr/libexec/ld.so; then
13719 hardcode_direct_CXX=yes
13720 hardcode_shlibpath_var_CXX=no
13721 hardcode_direct_absolute_CXX=yes
13722 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13723 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13724 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13725 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13726 export_dynamic_flag_spec_CXX='${wl}-E'
13727 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13729 output_verbose_link_cmd=echo
13735 osf3* | osf4* | osf5*)
13736 case $cc_basename in
13738 # Kuck and Associates, Inc. (KAI) C++ Compiler
13740 # KCC will only create a shared library if the output file
13741 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13742 # to its proper name (with version) after linking.
13743 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'
13745 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13746 hardcode_libdir_separator_CXX=:
13748 # Archives containing C++ object files must be created using
13749 # the KAI C++ compiler.
13751 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13752 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13756 # Rational C++ 2.4.1
13757 # FIXME: insert proper C++ library support
13763 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13764 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13765 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13768 allow_undefined_flag_CXX=' -expect_unresolved \*'
13769 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13770 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13771 echo "-hidden">> $lib.exp~
13772 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13774 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13778 hardcode_libdir_separator_CXX=:
13780 # Commands to make compiler produce verbose output that lists
13781 # what "hidden" libraries, object files and flags are used when
13782 # linking a shared library.
13784 # There doesn't appear to be a way to prevent this compiler from
13785 # explicitly linking system object files so we need to strip them
13786 # from the output so that they don't get included in the library
13788 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13791 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13792 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13795 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13798 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13802 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13803 hardcode_libdir_separator_CXX=:
13805 # Commands to make compiler produce verbose output that lists
13806 # what "hidden" libraries, object files and flags are used when
13807 # linking a shared library.
13808 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13811 # FIXME: insert proper C++ library support
13819 # FIXME: insert proper C++ library support
13824 case $cc_basename in
13827 # FIXME: insert proper C++ library support
13832 # FIXME: insert proper C++ library support
13836 # FIXME: insert proper C++ library support
13843 case $cc_basename in
13845 # Sun C++ 4.2, 5.x and Centerline C++
13846 archive_cmds_need_lc_CXX=yes
13847 no_undefined_flag_CXX=' -zdefs'
13848 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13849 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13850 $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'
13852 hardcode_libdir_flag_spec_CXX='-R$libdir'
13853 hardcode_shlibpath_var_CXX=no
13855 solaris2.[0-5] | solaris2.[0-5].*) ;;
13857 # The compiler driver will combine and reorder linker options,
13858 # but understands `-z linker_flag'.
13859 # Supported since Solaris 2.6 (maybe 2.5.1?)
13860 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13863 link_all_deplibs_CXX=yes
13865 output_verbose_link_cmd='echo'
13867 # Archives containing C++ object files must be created using
13868 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13869 # necessary to make sure instantiated templates are included
13871 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13874 # Green Hills C++ Compiler
13875 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13877 # The C++ compiler must be used to create the archive.
13878 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13881 # GNU C++ compiler with Solaris linker
13882 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13883 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13884 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13885 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13886 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13887 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13889 # Commands to make compiler produce verbose output that lists
13890 # what "hidden" libraries, object files and flags are used when
13891 # linking a shared library.
13892 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13894 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13896 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13897 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13898 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13900 # Commands to make compiler produce verbose output that lists
13901 # what "hidden" libraries, object files and flags are used when
13902 # linking a shared library.
13903 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13906 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13908 solaris2.[0-5] | solaris2.[0-5].*) ;;
13910 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13918 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13919 no_undefined_flag_CXX='${wl}-z,text'
13920 archive_cmds_need_lc_CXX=no
13921 hardcode_shlibpath_var_CXX=no
13922 runpath_var='LD_RUN_PATH'
13924 case $cc_basename in
13926 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13927 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13930 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13931 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13936 sysv5* | sco3.2v5* | sco5v6*)
13937 # Note: We can NOT use -z defs as we might desire, because we do not
13938 # link with -lc, and that would cause any symbols used from libc to
13939 # always be unresolved, which means just about no library would
13940 # ever link correctly. If we're not using GNU ld we use -z text
13941 # though, which does catch some bad symbols but isn't as heavy-handed
13943 no_undefined_flag_CXX='${wl}-z,text'
13944 allow_undefined_flag_CXX='${wl}-z,nodefs'
13945 archive_cmds_need_lc_CXX=no
13946 hardcode_shlibpath_var_CXX=no
13947 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13948 hardcode_libdir_separator_CXX=':'
13949 link_all_deplibs_CXX=yes
13950 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13951 runpath_var='LD_RUN_PATH'
13953 case $cc_basename in
13955 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13956 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13959 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13960 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13966 case $cc_basename in
13968 # NonStop-UX NCC 3.20
13969 # FIXME: insert proper C++ library support
13973 # FIXME: insert proper C++ library support
13980 # FIXME: insert proper C++ library support
13985 # FIXME: insert proper C++ library support
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13991 $as_echo "$ld_shlibs_CXX" >&6; }
13992 test "$ld_shlibs_CXX" = no && can_build_shared=no
13998 ## There is no encapsulation within the following macros, do not change
13999 ## the running order or otherwise move them around unless you know exactly
14000 ## what you are doing...
14001 # Dependencies to place before and after the object being linked:
14002 predep_objects_CXX=
14003 postdep_objects_CXX=
14006 compiler_lib_search_path_CXX=
14008 cat > conftest.$ac_ext <<_LT_EOF
14012 Foo (void) { a = 0; }
14018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14019 (eval $ac_compile) 2>&5
14021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14022 test $ac_status = 0; }; then
14023 # Parse the compiler output and extract the necessary
14024 # objects, libraries and library flags.
14026 # Sentinel used to keep track of whether or not we are before
14027 # the conftest object file.
14028 pre_test_object_deps_done=no
14030 for p in `eval "$output_verbose_link_cmd"`; do
14034 # Some compilers place space between "-{L,R}" and the path.
14035 # Remove the space.
14036 if test $p = "-L" ||
14037 test $p = "-R"; then
14044 if test "$pre_test_object_deps_done" = no; then
14047 # Internal compiler library paths should come after those
14048 # provided the user. The postdeps already come after the
14049 # user supplied libs so there is no need to process them.
14050 if test -z "$compiler_lib_search_path_CXX"; then
14051 compiler_lib_search_path_CXX="${prev}${p}"
14053 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14056 # The "-l" case would never come before the object being
14057 # linked, so don't bother handling this case.
14060 if test -z "$postdeps_CXX"; then
14061 postdeps_CXX="${prev}${p}"
14063 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14069 # This assumes that the test object file only shows up
14070 # once in the compiler output.
14071 if test "$p" = "conftest.$objext"; then
14072 pre_test_object_deps_done=yes
14076 if test "$pre_test_object_deps_done" = no; then
14077 if test -z "$predep_objects_CXX"; then
14078 predep_objects_CXX="$p"
14080 predep_objects_CXX="$predep_objects_CXX $p"
14083 if test -z "$postdep_objects_CXX"; then
14084 postdep_objects_CXX="$p"
14086 postdep_objects_CXX="$postdep_objects_CXX $p"
14091 *) ;; # Ignore the rest.
14099 echo "libtool.m4: error: problem compiling CXX test program"
14102 $RM -f confest.$objext
14104 # PORTME: override above test on systems where it is broken
14107 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14108 # hack all around it, let's just trust "g++" to DTRT.
14109 predep_objects_CXX=
14110 postdep_objects_CXX=
14115 case `$CC -V 2>&1 | sed 5q` in
14119 # The more standards-conforming stlport4 library is
14120 # incompatible with the Cstd library. Avoid specifying
14121 # it if it's in CXXFLAGS. Ignore libCrun as
14122 # -library=stlport4 depends on it.
14123 case " $CXX $CXXFLAGS " in
14124 *" -library=stlport4 "*)
14125 solaris_use_stlport4=yes
14129 if test "$solaris_use_stlport4" != yes; then
14130 postdeps_CXX='-library=Cstd -library=Crun'
14137 case $cc_basename in
14139 # The more standards-conforming stlport4 library is
14140 # incompatible with the Cstd library. Avoid specifying
14141 # it if it's in CXXFLAGS. Ignore libCrun as
14142 # -library=stlport4 depends on it.
14143 case " $CXX $CXXFLAGS " in
14144 *" -library=stlport4 "*)
14145 solaris_use_stlport4=yes
14149 # Adding this requires a known-good setup of shared libraries for
14150 # Sun compiler versions before 5.6, else PIC objects from an old
14151 # archive will be linked into the output, leading to subtle bugs.
14152 if test "$solaris_use_stlport4" != yes; then
14153 postdeps_CXX='-library=Cstd -library=Crun'
14161 case " $postdeps_CXX " in
14162 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14164 compiler_lib_search_dirs_CXX=
14165 if test -n "${compiler_lib_search_path_CXX}"; then
14166 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14199 lt_prog_compiler_wl_CXX=
14200 lt_prog_compiler_pic_CXX=
14201 lt_prog_compiler_static_CXX=
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14204 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14206 # C++ specific cases for pic, static, wl, etc.
14207 if test "$GXX" = yes; then
14208 lt_prog_compiler_wl_CXX='-Wl,'
14209 lt_prog_compiler_static_CXX='-static'
14213 # All AIX code is PIC.
14214 if test "$host_cpu" = ia64; then
14215 # AIX 5 now supports IA64 processor
14216 lt_prog_compiler_static_CXX='-Bstatic'
14223 # see comment about AmigaOS4 .so support
14224 lt_prog_compiler_pic_CXX='-fPIC'
14227 # FIXME: we need at least 68020 code to build shared libraries, but
14228 # adding the `-m68020' flag to GCC prevents building anything better,
14230 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14235 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14236 # PIC is the default for these OSes.
14238 mingw* | cygwin* | os2* | pw32* | cegcc*)
14239 # This hack is so that the source file can tell whether it is being
14240 # built for inclusion in a dll (and should export symbols for example).
14241 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14242 # (--disable-auto-import) libraries
14243 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14245 darwin* | rhapsody*)
14246 # PIC is the default on this platform
14247 # Common symbols not allowed in MH_DYLIB files
14248 lt_prog_compiler_pic_CXX='-fno-common'
14251 # DJGPP does not support shared libraries at all
14252 lt_prog_compiler_pic_CXX=
14255 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14256 # Instead, we relocate shared libraries at runtime.
14259 if test -d /usr/nec; then
14260 lt_prog_compiler_pic_CXX=-Kconform_pic
14264 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14265 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14266 # sets the default TLS model and affects inlining.
14271 lt_prog_compiler_pic_CXX='-fPIC'
14276 # QNX uses GNU C++, but need to define -shared option too, otherwise
14277 # it will coredump.
14278 lt_prog_compiler_pic_CXX='-fPIC -shared'
14281 lt_prog_compiler_pic_CXX='-fPIC'
14287 # All AIX code is PIC.
14288 if test "$host_cpu" = ia64; then
14289 # AIX 5 now supports IA64 processor
14290 lt_prog_compiler_static_CXX='-Bstatic'
14292 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14296 case $cc_basename in
14298 # Green Hills C++ Compiler
14299 # _LT_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"
14304 case $cc_basename in
14306 lt_prog_compiler_pic_CXX='-KPIC'
14309 # Green Hills C++ Compiler
14310 lt_prog_compiler_pic_CXX='-pic'
14316 freebsd* | dragonfly*)
14317 # FreeBSD uses GNU C++
14319 hpux9* | hpux10* | hpux11*)
14320 case $cc_basename in
14322 lt_prog_compiler_wl_CXX='-Wl,'
14323 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14324 if test "$host_cpu" != ia64; then
14325 lt_prog_compiler_pic_CXX='+Z'
14329 lt_prog_compiler_wl_CXX='-Wl,'
14330 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14336 lt_prog_compiler_pic_CXX='+Z'
14345 # This is c89, which is MS Visual C++ (no shared libs)
14346 # Anyone wants to do a port?
14348 irix5* | irix6* | nonstopux*)
14349 case $cc_basename in
14351 lt_prog_compiler_wl_CXX='-Wl,'
14352 lt_prog_compiler_static_CXX='-non_shared'
14353 # CC pic flag -KPIC is the default.
14359 linux* | k*bsd*-gnu)
14360 case $cc_basename in
14363 lt_prog_compiler_wl_CXX='--backend -Wl,'
14364 lt_prog_compiler_pic_CXX='-fPIC'
14367 # old Intel C++ for x86_64 which still supported -KPIC.
14368 lt_prog_compiler_wl_CXX='-Wl,'
14369 lt_prog_compiler_pic_CXX='-KPIC'
14370 lt_prog_compiler_static_CXX='-static'
14373 # Intel C++, used to be incompatible with GCC.
14374 # ICC 10 doesn't accept -KPIC any more.
14375 lt_prog_compiler_wl_CXX='-Wl,'
14376 lt_prog_compiler_pic_CXX='-fPIC'
14377 lt_prog_compiler_static_CXX='-static'
14380 # Portland Group C++ compiler
14381 lt_prog_compiler_wl_CXX='-Wl,'
14382 lt_prog_compiler_pic_CXX='-fpic'
14383 lt_prog_compiler_static_CXX='-Bstatic'
14387 # Make sure the PIC flag is empty. It appears that all Alpha
14388 # Linux and Compaq Tru64 Unix objects are PIC.
14389 lt_prog_compiler_pic_CXX=
14390 lt_prog_compiler_static_CXX='-non_shared'
14393 # IBM XL 8.0 on PPC
14394 lt_prog_compiler_wl_CXX='-Wl,'
14395 lt_prog_compiler_pic_CXX='-qpic'
14396 lt_prog_compiler_static_CXX='-qstaticlink'
14399 case `$CC -V 2>&1 | sed 5q` in
14402 lt_prog_compiler_pic_CXX='-KPIC'
14403 lt_prog_compiler_static_CXX='-Bstatic'
14404 lt_prog_compiler_wl_CXX='-Qoption ld '
14415 case $cc_basename in
14417 lt_prog_compiler_pic_CXX='-W c,exportall'
14423 netbsd* | netbsdelf*-gnu)
14426 # QNX uses GNU C++, but need to define -shared option too, otherwise
14427 # it will coredump.
14428 lt_prog_compiler_pic_CXX='-fPIC -shared'
14430 osf3* | osf4* | osf5*)
14431 case $cc_basename in
14433 lt_prog_compiler_wl_CXX='--backend -Wl,'
14436 # Rational C++ 2.4.1
14437 lt_prog_compiler_pic_CXX='-pic'
14440 # Digital/Compaq C++
14441 lt_prog_compiler_wl_CXX='-Wl,'
14442 # Make sure the PIC flag is empty. It appears that all Alpha
14443 # Linux and Compaq Tru64 Unix objects are PIC.
14444 lt_prog_compiler_pic_CXX=
14445 lt_prog_compiler_static_CXX='-non_shared'
14454 case $cc_basename in
14456 # Sun C++ 4.2, 5.x and Centerline C++
14457 lt_prog_compiler_pic_CXX='-KPIC'
14458 lt_prog_compiler_static_CXX='-Bstatic'
14459 lt_prog_compiler_wl_CXX='-Qoption ld '
14462 # Green Hills C++ Compiler
14463 lt_prog_compiler_pic_CXX='-PIC'
14470 case $cc_basename in
14473 lt_prog_compiler_pic_CXX='-pic'
14474 lt_prog_compiler_static_CXX='-Bstatic'
14478 lt_prog_compiler_pic_CXX='-pic'
14484 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14485 case $cc_basename in
14487 lt_prog_compiler_wl_CXX='-Wl,'
14488 lt_prog_compiler_pic_CXX='-KPIC'
14489 lt_prog_compiler_static_CXX='-Bstatic'
14494 case $cc_basename in
14496 # NonStop-UX NCC 3.20
14497 lt_prog_compiler_pic_CXX='-KPIC'
14506 lt_prog_compiler_can_build_shared_CXX=no
14512 # For platforms which do not support PIC, -DPIC is meaningless:
14514 lt_prog_compiler_pic_CXX=
14517 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14521 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14526 # Check to make sure the PIC flag actually works.
14528 if test -n "$lt_prog_compiler_pic_CXX"; then
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14530 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14531 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14532 $as_echo_n "(cached) " >&6
14534 lt_cv_prog_compiler_pic_works_CXX=no
14535 ac_outfile=conftest.$ac_objext
14536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14537 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14538 # Insert the option either (1) after the last *FLAGS variable, or
14539 # (2) before a word containing "conftest.", or (3) at the end.
14540 # Note that $ac_compile itself does not contain backslashes and begins
14541 # with a dollar sign (not a hyphen), so the echo should work correctly.
14542 # The option is referenced via a variable to avoid confusing sed.
14543 lt_compile=`echo "$ac_compile" | $SED \
14544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14546 -e 's:$: $lt_compiler_flag:'`
14547 (eval echo "\"\$as_me:14547: $lt_compile\"" >&5)
14548 (eval "$lt_compile" 2>conftest.err)
14550 cat conftest.err >&5
14551 echo "$as_me:14551: \$? = $ac_status" >&5
14552 if (exit $ac_status) && test -s "$ac_outfile"; then
14553 # The compiler can only warn and ignore the option if not recognized
14554 # So say no if there are warnings other than the usual output.
14555 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14557 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14558 lt_cv_prog_compiler_pic_works_CXX=yes
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14565 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14567 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14568 case $lt_prog_compiler_pic_CXX in
14570 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14573 lt_prog_compiler_pic_CXX=
14574 lt_prog_compiler_can_build_shared_CXX=no
14582 # Check to make sure the static flag actually works.
14584 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14586 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14587 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14588 $as_echo_n "(cached) " >&6
14590 lt_cv_prog_compiler_static_works_CXX=no
14591 save_LDFLAGS="$LDFLAGS"
14592 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14593 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14594 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14595 # The linker can only warn and ignore the option if not recognized
14596 # So say no if there are warnings
14597 if test -s conftest.err; then
14598 # Append any errors to the config.log.
14599 cat conftest.err 1>&5
14600 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14602 if diff conftest.exp conftest.er2 >/dev/null; then
14603 lt_cv_prog_compiler_static_works_CXX=yes
14606 lt_cv_prog_compiler_static_works_CXX=yes
14610 LDFLAGS="$save_LDFLAGS"
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14614 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14616 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14619 lt_prog_compiler_static_CXX=
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14626 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14627 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14628 $as_echo_n "(cached) " >&6
14630 lt_cv_prog_compiler_c_o_CXX=no
14631 $RM -r conftest 2>/dev/null
14635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14637 lt_compiler_flag="-o out/conftest2.$ac_objext"
14638 # Insert the option either (1) after the last *FLAGS variable, or
14639 # (2) before a word containing "conftest.", or (3) at the end.
14640 # Note that $ac_compile itself does not contain backslashes and begins
14641 # with a dollar sign (not a hyphen), so the echo should work correctly.
14642 lt_compile=`echo "$ac_compile" | $SED \
14643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14645 -e 's:$: $lt_compiler_flag:'`
14646 (eval echo "\"\$as_me:14646: $lt_compile\"" >&5)
14647 (eval "$lt_compile" 2>out/conftest.err)
14649 cat out/conftest.err >&5
14650 echo "$as_me:14650: \$? = $ac_status" >&5
14651 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14653 # The compiler can only warn and ignore the option if not recognized
14654 # So say no if there are warnings
14655 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14656 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14657 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14658 lt_cv_prog_compiler_c_o_CXX=yes
14663 # SGI C++ compiler will create directory out/ii_files/ for
14664 # template instantiation
14665 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14666 $RM out/* && rmdir out
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14673 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14678 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14679 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14680 $as_echo_n "(cached) " >&6
14682 lt_cv_prog_compiler_c_o_CXX=no
14683 $RM -r conftest 2>/dev/null
14687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14689 lt_compiler_flag="-o out/conftest2.$ac_objext"
14690 # Insert the option either (1) after the last *FLAGS variable, or
14691 # (2) before a word containing "conftest.", or (3) at the end.
14692 # Note that $ac_compile itself does not contain backslashes and begins
14693 # with a dollar sign (not a hyphen), so the echo should work correctly.
14694 lt_compile=`echo "$ac_compile" | $SED \
14695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14697 -e 's:$: $lt_compiler_flag:'`
14698 (eval echo "\"\$as_me:14698: $lt_compile\"" >&5)
14699 (eval "$lt_compile" 2>out/conftest.err)
14701 cat out/conftest.err >&5
14702 echo "$as_me:14702: \$? = $ac_status" >&5
14703 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14705 # The compiler can only warn and ignore the option if not recognized
14706 # So say no if there are warnings
14707 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14708 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14709 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14710 lt_cv_prog_compiler_c_o_CXX=yes
14715 # SGI C++ compiler will create directory out/ii_files/ for
14716 # template instantiation
14717 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14718 $RM out/* && rmdir out
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14725 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14730 hard_links="nottested"
14731 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14732 # do not overwrite the value of need_locks provided by the user
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14734 $as_echo_n "checking if we can lock with hard links... " >&6; }
14737 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14739 ln conftest.a conftest.b 2>&5 || hard_links=no
14740 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14742 $as_echo "$hard_links" >&6; }
14743 if test "$hard_links" = no; then
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14745 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14755 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14757 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14760 # If we're using GNU nm, then we don't want the "-C" option.
14761 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14762 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14763 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'
14765 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'
14769 export_symbols_cmds_CXX="$ltdll_cmds"
14771 cygwin* | mingw* | cegcc*)
14772 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'
14774 linux* | k*bsd*-gnu)
14775 link_all_deplibs_CXX=no
14778 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14781 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14784 $as_echo "$ld_shlibs_CXX" >&6; }
14785 test "$ld_shlibs_CXX" = no && can_build_shared=no
14787 with_gnu_ld_CXX=$with_gnu_ld
14795 # Do we need to explicitly link libc?
14797 case "x$archive_cmds_need_lc_CXX" in
14799 # Assume -lc should be added
14800 archive_cmds_need_lc_CXX=yes
14802 if test "$enable_shared" = yes && test "$GCC" = yes; then
14803 case $archive_cmds_CXX in
14805 # FIXME: we may have to deal with multi-command sequences.
14808 # Test whether the compiler implicitly links with -lc since on some
14809 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14810 # to ld, don't add -lc before -lgcc.
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14812 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14817 (eval $ac_compile) 2>&5
14819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14820 test $ac_status = 0; } 2>conftest.err; then
14823 libobjs=conftest.$ac_objext
14825 wl=$lt_prog_compiler_wl_CXX
14826 pic_flag=$lt_prog_compiler_pic_CXX
14832 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14833 allow_undefined_flag_CXX=
14834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14835 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14838 test $ac_status = 0; }
14840 archive_cmds_need_lc_CXX=no
14842 archive_cmds_need_lc_CXX=yes
14844 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14846 cat conftest.err 1>&5
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14850 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14921 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14923 library_names_spec=
14924 libname_spec='lib$name'
14928 postuninstall_cmds=
14932 shlibpath_overrides_runpath=unknown
14934 dynamic_linker="$host_os ld.so"
14935 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14936 need_lib_prefix=unknown
14937 hardcode_into_libs=no
14939 # when you set need_version to no, make sure it does not cause -set_version
14940 # flags to be left without arguments
14941 need_version=unknown
14946 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14947 shlibpath_var=LIBPATH
14949 # AIX 3 has no versioning support, so we append a major version to the name.
14950 soname_spec='${libname}${release}${shared_ext}$major'
14957 hardcode_into_libs=yes
14958 if test "$host_cpu" = ia64; then
14959 # AIX 5 supports IA64
14960 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14961 shlibpath_var=LD_LIBRARY_PATH
14963 # With GCC up to 2.95.x, collect2 would create an import file
14964 # for dependence libraries. The import file would start with
14965 # the line `#! .'. This would cause the generated library to
14966 # depend on `.', always an invalid library. This was fixed in
14967 # development snapshots of GCC prior to 3.0.
14969 aix4 | aix4.[01] | aix4.[01].*)
14970 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14972 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14975 can_build_shared=no
14979 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14980 # soname into executable. Probably we can add versioning support to
14981 # collect2, so additional links can be useful in future.
14982 if test "$aix_use_runtimelinking" = yes; then
14983 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14984 # instead of lib<name>.a to let people know that these are not
14985 # typical AIX shared libraries.
14986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988 # We preserve .a as extension for shared libraries through AIX4.2
14989 # and later when we are not doing run time linking.
14990 library_names_spec='${libname}${release}.a $libname.a'
14991 soname_spec='${libname}${release}${shared_ext}$major'
14993 shlibpath_var=LIBPATH
15000 # Since July 2007 AmigaOS4 officially supports .so libraries.
15001 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005 library_names_spec='$libname.ixlibrary $libname.a'
15006 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15007 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'
15013 library_names_spec='${libname}${shared_ext}'
15014 dynamic_linker="$host_os ld.so"
15015 shlibpath_var=LIBRARY_PATH
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15022 soname_spec='${libname}${release}${shared_ext}$major'
15023 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15024 shlibpath_var=LD_LIBRARY_PATH
15025 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15026 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15027 # the default ld.so.conf also contains /usr/contrib/lib and
15028 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15029 # libtool to hard-code these into programs
15032 cygwin* | mingw* | pw32* | cegcc*)
15033 version_type=windows
15038 case $GCC,$host_os in
15039 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15040 library_names_spec='$libname.dll.a'
15041 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15042 postinstall_cmds='base_file=`basename \${file}`~
15043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15044 dldir=$destdir/`dirname \$dlpath`~
15045 test -d \$dldir || mkdir -p \$dldir~
15046 $install_prog $dir/$dlname \$dldir/$dlname~
15047 chmod a+x \$dldir/$dlname~
15048 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15049 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15051 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15052 dlpath=$dir/\$dldll~
15054 shlibpath_overrides_runpath=yes
15058 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15059 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15060 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15063 # MinGW DLLs use traditional 'lib' prefix
15064 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15065 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15066 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15067 # It is most probably a Windows format PATH printed by
15068 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15069 # path with ; separators, and with drive letters. We can handle the
15070 # drive letters (cygwin fileutils understands them), so leave them,
15071 # especially as we might pass files found there to a mingw objdump,
15072 # which wouldn't understand a cygwinified path. Ahh.
15073 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15075 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15079 # pw32 DLLs use 'pw' prefix rather than 'lib'
15080 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15086 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15089 dynamic_linker='Win32 ld.exe'
15090 # FIXME: first we should search . and the directory the executable is in
15094 darwin* | rhapsody*)
15095 dynamic_linker="$host_os dyld"
15096 version_type=darwin
15099 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15100 soname_spec='${libname}${release}${major}$shared_ext'
15101 shlibpath_overrides_runpath=yes
15102 shlibpath_var=DYLD_LIBRARY_PATH
15103 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15105 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15113 soname_spec='${libname}${release}${shared_ext}$major'
15114 shlibpath_var=LD_LIBRARY_PATH
15121 freebsd* | dragonfly*)
15122 # DragonFly does not have aout. When/if they implement a new
15123 # versioning mechanism, adjust this.
15124 if test -x /usr/bin/objformat; then
15125 objformat=`/usr/bin/objformat`
15128 freebsd[123]*) objformat=aout ;;
15129 *) objformat=elf ;;
15132 version_type=freebsd-$objformat
15133 case $version_type in
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15140 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15144 shlibpath_var=LD_LIBRARY_PATH
15147 shlibpath_overrides_runpath=yes
15149 freebsd3.[01]* | freebsdelf3.[01]*)
15150 shlibpath_overrides_runpath=yes
15151 hardcode_into_libs=yes
15153 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15154 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15155 shlibpath_overrides_runpath=no
15156 hardcode_into_libs=yes
15158 *) # from 4.6 on, and DragonFly
15159 shlibpath_overrides_runpath=yes
15160 hardcode_into_libs=yes
15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15170 soname_spec='${libname}${release}${shared_ext}$major'
15171 shlibpath_var=LD_LIBRARY_PATH
15172 hardcode_into_libs=yes
15175 hpux9* | hpux10* | hpux11*)
15176 # Give a soname corresponding to the major version so that dld.sl refuses to
15177 # link against other versions.
15184 hardcode_into_libs=yes
15185 dynamic_linker="$host_os dld.so"
15186 shlibpath_var=LD_LIBRARY_PATH
15187 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189 soname_spec='${libname}${release}${shared_ext}$major'
15190 if test "X$HPUX_IA64_MODE" = X32; then
15191 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15193 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15199 hardcode_into_libs=yes
15200 dynamic_linker="$host_os dld.sl"
15201 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15204 soname_spec='${libname}${release}${shared_ext}$major'
15205 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15206 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15210 dynamic_linker="$host_os dld.sl"
15211 shlibpath_var=SHLIB_PATH
15212 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15217 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15218 postinstall_cmds='chmod 555 $lib'
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15226 soname_spec='${libname}${release}${shared_ext}$major'
15227 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15228 shlibpath_var=LD_LIBRARY_PATH
15229 shlibpath_overrides_runpath=no
15230 hardcode_into_libs=yes
15233 irix5* | irix6* | nonstopux*)
15235 nonstopux*) version_type=nonstopux ;;
15237 if test "$lt_cv_prog_gnu_ld" = yes; then
15245 soname_spec='${libname}${release}${shared_ext}$major'
15246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15248 irix5* | nonstopux*)
15249 libsuff= shlibsuff=
15252 case $LD in # libtool.m4 will add one of these switches to LD
15253 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15254 libsuff= shlibsuff= libmagic=32-bit;;
15255 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15256 libsuff=32 shlibsuff=N32 libmagic=N32;;
15257 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15258 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15259 *) libsuff= shlibsuff= libmagic=never-match;;
15263 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15264 shlibpath_overrides_runpath=no
15265 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15266 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15267 hardcode_into_libs=yes
15270 # No shared lib support for Linux oldld, aout, or coff.
15271 linux*oldld* | linux*aout* | linux*coff*)
15275 # This must be Linux ELF.
15276 linux* | k*bsd*-gnu)
15280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15281 soname_spec='${libname}${release}${shared_ext}$major'
15282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15283 shlibpath_var=LD_LIBRARY_PATH
15284 shlibpath_overrides_runpath=no
15285 # Some binutils ld are patched to set DT_RUNPATH
15286 save_LDFLAGS=$LDFLAGS
15287 save_libdir=$libdir
15288 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15289 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15301 if ac_fn_cxx_try_link "$LINENO"; then :
15302 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15303 shlibpath_overrides_runpath=yes
15306 rm -f core conftest.err conftest.$ac_objext \
15307 conftest$ac_exeext conftest.$ac_ext
15308 LDFLAGS=$save_LDFLAGS
15309 libdir=$save_libdir
15311 # This implies no fast_install, which is unacceptable.
15312 # Some rework will be needed to allow for fast_install
15313 # before this can be enabled.
15314 hardcode_into_libs=yes
15316 # Append ld.so.conf contents to the search path
15317 if test -f /etc/ld.so.conf; then
15318 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15319 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15322 # We used to test for /lib/ld.so.1 and disable shared libraries on
15323 # powerpc, because MkLinux only supported shared libraries with the
15324 # GNU dynamic linker. Since this was broken with cross compilers,
15325 # most powerpc-linux boxes support dynamic linking these days and
15326 # people can always --disable-shared, the test was removed, and we
15327 # assume the GNU/Linux dynamic linker is in use.
15328 dynamic_linker='GNU/Linux ld.so'
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15336 soname_spec='${libname}${release}${shared_ext}$major'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 shlibpath_overrides_runpath=no
15339 hardcode_into_libs=yes
15340 dynamic_linker='NetBSD ld.elf_so'
15347 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15350 dynamic_linker='NetBSD (a.out) ld.so'
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15353 soname_spec='${libname}${release}${shared_ext}$major'
15354 dynamic_linker='NetBSD ld.elf_so'
15356 shlibpath_var=LD_LIBRARY_PATH
15357 shlibpath_overrides_runpath=yes
15358 hardcode_into_libs=yes
15363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364 shlibpath_var=LD_LIBRARY_PATH
15365 shlibpath_overrides_runpath=yes
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 shlibpath_var=LD_LIBRARY_PATH
15375 shlibpath_overrides_runpath=no
15376 hardcode_into_libs=yes
15377 dynamic_linker='ldqnx.so'
15382 sys_lib_dlsearch_path_spec="/usr/lib"
15384 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15386 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15387 *) need_version=no ;;
15389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15391 shlibpath_var=LD_LIBRARY_PATH
15392 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15394 openbsd2.[89] | openbsd2.[89].*)
15395 shlibpath_overrides_runpath=no
15398 shlibpath_overrides_runpath=yes
15402 shlibpath_overrides_runpath=yes
15407 libname_spec='$name'
15410 library_names_spec='$libname${shared_ext} $libname.a'
15411 dynamic_linker='OS/2 ld.exe'
15412 shlibpath_var=LIBPATH
15415 osf3* | osf4* | osf5*)
15419 soname_spec='${libname}${release}${shared_ext}$major'
15420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15421 shlibpath_var=LD_LIBRARY_PATH
15422 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15423 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435 soname_spec='${libname}${release}${shared_ext}$major'
15436 shlibpath_var=LD_LIBRARY_PATH
15437 shlibpath_overrides_runpath=yes
15438 hardcode_into_libs=yes
15439 # ldd complains unless libraries are executable
15440 postinstall_cmds='chmod +x $lib'
15445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15446 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15447 shlibpath_var=LD_LIBRARY_PATH
15448 shlibpath_overrides_runpath=yes
15449 if test "$with_gnu_ld" = yes; then
15457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458 soname_spec='${libname}${release}${shared_ext}$major'
15459 shlibpath_var=LD_LIBRARY_PATH
15460 case $host_vendor in
15462 shlibpath_overrides_runpath=no
15464 runpath_var=LD_RUN_PATH
15472 shlibpath_overrides_runpath=no
15473 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15479 if test -d /usr/nec ;then
15481 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15482 soname_spec='$libname${shared_ext}.$major'
15483 shlibpath_var=LD_LIBRARY_PATH
15487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15488 version_type=freebsd-elf
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15492 soname_spec='${libname}${release}${shared_ext}$major'
15493 shlibpath_var=LD_LIBRARY_PATH
15494 shlibpath_overrides_runpath=yes
15495 hardcode_into_libs=yes
15496 if test "$with_gnu_ld" = yes; then
15497 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15499 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15502 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15506 sys_lib_dlsearch_path_spec='/usr/lib'
15510 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15515 shlibpath_var=LD_LIBRARY_PATH
15516 shlibpath_overrides_runpath=no
15517 hardcode_into_libs=yes
15522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15523 soname_spec='${libname}${release}${shared_ext}$major'
15524 shlibpath_var=LD_LIBRARY_PATH
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15532 $as_echo "$dynamic_linker" >&6; }
15533 test "$dynamic_linker" = no && can_build_shared=no
15535 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15536 if test "$GCC" = yes; then
15537 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15540 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15541 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15543 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15544 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15583 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15584 hardcode_action_CXX=
15585 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15586 test -n "$runpath_var_CXX" ||
15587 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15589 # We can hardcode non-existent directories.
15590 if test "$hardcode_direct_CXX" != no &&
15591 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15592 # have to relink, otherwise we might link with an installed library
15593 # when we should be linking with a yet-to-be-installed one
15594 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15595 test "$hardcode_minus_L_CXX" != no; then
15596 # Linking always hardcodes the temporary library directory.
15597 hardcode_action_CXX=relink
15599 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15600 hardcode_action_CXX=immediate
15603 # We cannot hardcode anything, or else we can only hardcode existing
15605 hardcode_action_CXX=unsupported
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15608 $as_echo "$hardcode_action_CXX" >&6; }
15610 if test "$hardcode_action_CXX" = relink ||
15611 test "$inherit_rpath_CXX" = yes; then
15612 # Fast installation is not supported
15613 enable_fast_install=no
15614 elif test "$shlibpath_overrides_runpath" = yes ||
15615 test "$enable_shared" = no; then
15616 # Fast installation is not necessary
15617 enable_fast_install=needless
15626 fi # test -n "$compiler"
15632 with_gnu_ld=$lt_save_with_gnu_ld
15633 lt_cv_path_LDCXX=$lt_cv_path_LD
15634 lt_cv_path_LD=$lt_save_path_LD
15635 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15636 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15637 fi # test "$_lt_caught_CXX_error" != yes
15640 ac_cpp='$CPP $CPPFLAGS'
15641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15657 ac_config_commands="$ac_config_commands libtool"
15662 # Only expand once:
15668 # -Wunreachable-code can't be used with library
15669 CFLAGS="$CFLAGS -pedantic-errors -Wall -Wmissing-prototypes -Wcast-align -std=c99"
15671 # set -fgnu89-inline for GCC4 compilers
15672 if test -z "$ac_cv_prog_CC"; then
15673 configure_gcc="$CC"
15675 configure_gcc="$ac_cv_prog_CC"
15677 if $configure_gcc --version | sed -e 's,\..*,.,' -e q | grep -q 4.$ ; then
15678 CFLAGS="$CFLAGS -fgnu89-inline"
15685 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15686 if test -n "$ac_tool_prefix"; then
15687 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15688 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15690 $as_echo_n "checking for $ac_word... " >&6; }
15691 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
15692 $as_echo_n "(cached) " >&6
15694 case $PKG_CONFIG in
15696 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15700 for as_dir in $PATH
15703 test -z "$as_dir" && as_dir=.
15704 for ac_exec_ext in '' $ac_executable_extensions; do
15705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15706 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15717 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15718 if test -n "$PKG_CONFIG"; then
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15720 $as_echo "$PKG_CONFIG" >&6; }
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15723 $as_echo "no" >&6; }
15728 if test -z "$ac_cv_path_PKG_CONFIG"; then
15729 ac_pt_PKG_CONFIG=$PKG_CONFIG
15730 # Extract the first word of "pkg-config", so it can be a program name with args.
15731 set dummy pkg-config; ac_word=$2
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15733 $as_echo_n "checking for $ac_word... " >&6; }
15734 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
15735 $as_echo_n "(cached) " >&6
15737 case $ac_pt_PKG_CONFIG in
15739 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15743 for as_dir in $PATH
15746 test -z "$as_dir" && as_dir=.
15747 for ac_exec_ext in '' $ac_executable_extensions; do
15748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15749 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15760 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15761 if test -n "$ac_pt_PKG_CONFIG"; then
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15763 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15766 $as_echo "no" >&6; }
15769 if test "x$ac_pt_PKG_CONFIG" = x; then
15772 case $cross_compiling:$ac_tool_warned in
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15776 ac_tool_warned=yes ;;
15778 PKG_CONFIG=$ac_pt_PKG_CONFIG
15781 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15785 if test -n "$PKG_CONFIG"; then
15786 _pkg_min_version=0.9.0
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15788 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15789 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15791 $as_echo "yes" >&6; }
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15794 $as_echo "no" >&6; }
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PACKAGE" >&5
15802 $as_echo_n "checking for PACKAGE... " >&6; }
15804 if test -n "$PKG_CONFIG"; then
15805 if test -n "$PACKAGE_CFLAGS"; then
15806 pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
15808 if test -n "$PKG_CONFIG" && \
15809 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gtk+-2.0 libsharing conic\""; } >&5
15810 ($PKG_CONFIG --exists --print-errors "glib-2.0 gtk+-2.0 libsharing conic") 2>&5
15812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15813 test $ac_status = 0; }; then
15814 pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 gtk+-2.0 libsharing conic" 2>/dev/null`
15822 if test -n "$PKG_CONFIG"; then
15823 if test -n "$PACKAGE_LIBS"; then
15824 pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
15826 if test -n "$PKG_CONFIG" && \
15827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gtk+-2.0 libsharing conic\""; } >&5
15828 ($PKG_CONFIG --exists --print-errors "glib-2.0 gtk+-2.0 libsharing conic") 2>&5
15830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15831 test $ac_status = 0; }; then
15832 pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "glib-2.0 gtk+-2.0 libsharing conic" 2>/dev/null`
15843 if test $pkg_failed = yes; then
15845 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15846 _pkg_short_errors_supported=yes
15848 _pkg_short_errors_supported=no
15850 if test $_pkg_short_errors_supported = yes; then
15851 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 gtk+-2.0 libsharing conic"`
15853 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 gtk+-2.0 libsharing conic"`
15855 # Put the nasty error message in config.log where it belongs
15856 echo "$PACKAGE_PKG_ERRORS" >&5
15858 as_fn_error "Package requirements (glib-2.0 gtk+-2.0 libsharing conic) were not met:
15860 $PACKAGE_PKG_ERRORS
15862 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15863 installed software in a non-standard prefix.
15865 Alternatively, you may set the environment variables PACKAGE_CFLAGS
15866 and PACKAGE_LIBS to avoid the need to call pkg-config.
15867 See the pkg-config man page for more details.
15869 elif test $pkg_failed = untried; then
15870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15872 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
15873 is in your PATH or set the PKG_CONFIG environment variable to the full
15874 path to pkg-config.
15876 Alternatively, you may set the environment variables PACKAGE_CFLAGS
15877 and PACKAGE_LIBS to avoid the need to call pkg-config.
15878 See the pkg-config man page for more details.
15880 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15881 See \`config.log' for more details." "$LINENO" 5; }
15883 PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
15884 PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15886 $as_echo "yes" >&6; }
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHARING" >&5
15895 $as_echo_n "checking for SHARING... " >&6; }
15897 if test -n "$PKG_CONFIG"; then
15898 if test -n "$SHARING_CFLAGS"; then
15899 pkg_cv_SHARING_CFLAGS="$SHARING_CFLAGS"
15901 if test -n "$PKG_CONFIG" && \
15902 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsharing\""; } >&5
15903 ($PKG_CONFIG --exists --print-errors "libsharing") 2>&5
15905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15906 test $ac_status = 0; }; then
15907 pkg_cv_SHARING_CFLAGS=`$PKG_CONFIG --cflags "libsharing" 2>/dev/null`
15915 if test -n "$PKG_CONFIG"; then
15916 if test -n "$SHARING_LIBS"; then
15917 pkg_cv_SHARING_LIBS="$SHARING_LIBS"
15919 if test -n "$PKG_CONFIG" && \
15920 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsharing\""; } >&5
15921 ($PKG_CONFIG --exists --print-errors "libsharing") 2>&5
15923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15924 test $ac_status = 0; }; then
15925 pkg_cv_SHARING_LIBS=`$PKG_CONFIG --libs "libsharing" 2>/dev/null`
15936 if test $pkg_failed = yes; then
15938 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15939 _pkg_short_errors_supported=yes
15941 _pkg_short_errors_supported=no
15943 if test $_pkg_short_errors_supported = yes; then
15944 SHARING_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsharing"`
15946 SHARING_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsharing"`
15948 # Put the nasty error message in config.log where it belongs
15949 echo "$SHARING_PKG_ERRORS" >&5
15951 as_fn_error "Package requirements (libsharing) were not met:
15953 $SHARING_PKG_ERRORS
15955 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15956 installed software in a non-standard prefix.
15958 Alternatively, you may set the environment variables SHARING_CFLAGS
15959 and SHARING_LIBS to avoid the need to call pkg-config.
15960 See the pkg-config man page for more details.
15962 elif test $pkg_failed = untried; then
15963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15965 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
15966 is in your PATH or set the PKG_CONFIG environment variable to the full
15967 path to pkg-config.
15969 Alternatively, you may set the environment variables SHARING_CFLAGS
15970 and SHARING_LIBS to avoid the need to call pkg-config.
15971 See the pkg-config man page for more details.
15973 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15974 See \`config.log' for more details." "$LINENO" 5; }
15976 SHARING_CFLAGS=$pkg_cv_SHARING_CFLAGS
15977 SHARING_LIBS=$pkg_cv_SHARING_LIBS
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15979 $as_echo "yes" >&6; }
15987 pluginsdir=`$PKG_CONFIG libsharing --variable=pluginsdir`
15991 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15992 if test -n "$ac_tool_prefix"; then
15993 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15994 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15996 $as_echo_n "checking for $ac_word... " >&6; }
15997 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
15998 $as_echo_n "(cached) " >&6
16000 case $PKG_CONFIG in
16002 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16006 for as_dir in $PATH
16009 test -z "$as_dir" && as_dir=.
16010 for ac_exec_ext in '' $ac_executable_extensions; do
16011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16012 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16023 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16024 if test -n "$PKG_CONFIG"; then
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16026 $as_echo "$PKG_CONFIG" >&6; }
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16029 $as_echo "no" >&6; }
16034 if test -z "$ac_cv_path_PKG_CONFIG"; then
16035 ac_pt_PKG_CONFIG=$PKG_CONFIG
16036 # Extract the first word of "pkg-config", so it can be a program name with args.
16037 set dummy pkg-config; ac_word=$2
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16039 $as_echo_n "checking for $ac_word... " >&6; }
16040 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
16041 $as_echo_n "(cached) " >&6
16043 case $ac_pt_PKG_CONFIG in
16045 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16049 for as_dir in $PATH
16052 test -z "$as_dir" && as_dir=.
16053 for ac_exec_ext in '' $ac_executable_extensions; do
16054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16055 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16066 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16067 if test -n "$ac_pt_PKG_CONFIG"; then
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16069 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16072 $as_echo "no" >&6; }
16075 if test "x$ac_pt_PKG_CONFIG" = x; then
16078 case $cross_compiling:$ac_tool_warned in
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16082 ac_tool_warned=yes ;;
16084 PKG_CONFIG=$ac_pt_PKG_CONFIG
16087 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16091 if test -n "$PKG_CONFIG"; then
16092 _pkg_min_version=0.9.0
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16094 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16095 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16097 $as_echo "yes" >&6; }
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16100 $as_echo "no" >&6; }
16105 servicesdir=`$PKG_CONFIG libsharing --variable=servicesdir`
16110 # Check whether --enable-debug was given.
16111 if test "${enable_debug+set}" = set; then :
16112 enableval=$enable_debug; enable_debug=yes
16118 if test x$enable_debug = xyes; then
16119 DEBUG_CFLAGS="-DOSSOLOG_COMPILE"
16125 DATADIRNAME="share"
16126 if test "x${prefix}" = "xNONE"; then
16128 cat >>confdefs.h <<_ACEOF
16129 #define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
16134 cat >>confdefs.h <<_ACEOF
16135 #define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
16143 ac_config_files="$ac_config_files Makefile data/Makefile data/cli.service.xml src/Makefile"
16145 cat >confcache <<\_ACEOF
16146 # This file is a shell script that caches the results of configure
16147 # tests run on this system so they can be shared between configure
16148 # scripts and configure runs, see configure's option --config-cache.
16149 # It is not useful on other systems. If it contains results you don't
16150 # want to keep, you may remove or edit it.
16152 # config.status only pays attention to the cache file if you give it
16153 # the --recheck option to rerun configure.
16155 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16156 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16157 # following values.
16161 # The following way of writing the cache mishandles newlines in values,
16162 # but we know of no workaround that is simple, portable, and efficient.
16163 # So, we kill variables containing newlines.
16164 # Ultrix sh set writes to stderr and can't be redirected directly,
16165 # and sets the high bit in the cache file unless we assign to the vars.
16167 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16168 eval ac_val=\$$ac_var
16172 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16173 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16176 _ | IFS | as_nl) ;; #(
16177 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16178 *) { eval $ac_var=; unset $ac_var;} ;;
16184 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16185 *${as_nl}ac_space=\ *)
16186 # `set' does not quote correctly, so add quotes: double-quote
16187 # substitution turns \\\\ into \\, and sed turns \\ into \.
16190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16193 # `set' quotes correctly as required by POSIX, so do not add quotes.
16194 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16203 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16205 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16207 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16208 if test -w "$cache_file"; then
16209 test "x$cache_file" != "x/dev/null" &&
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16211 $as_echo "$as_me: updating cache $cache_file" >&6;}
16212 cat confcache >$cache_file
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16215 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16220 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16221 # Let make expand exec_prefix.
16222 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16224 DEFS=-DHAVE_CONFIG_H
16228 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16229 # 1. Remove the extension, and $U if already installed.
16230 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16231 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16232 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16233 # will be set to the directory where LIBOBJS objects are built.
16234 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16235 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16237 LIBOBJS=$ac_libobjs
16239 LTLIBOBJS=$ac_ltlibobjs
16242 if test -n "$EXEEXT"; then
16244 am__EXEEXT_FALSE='#'
16246 am__EXEEXT_TRUE='#'
16250 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16251 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16254 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16255 as_fn_error "conditional \"AMDEP\" was never defined.
16256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16258 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16259 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16262 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16263 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16266 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16267 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16270 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16271 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16274 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16275 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16279 : ${CONFIG_STATUS=./config.status}
16281 ac_clean_files_save=$ac_clean_files
16282 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16284 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16286 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16288 # Generated by $as_me.
16289 # Run this file to recreate the current configuration.
16290 # Compiler output produced by configure, useful for debugging
16291 # configure, is in config.log if it exists.
16294 ac_cs_recheck=false
16297 SHELL=\${CONFIG_SHELL-$SHELL}
16300 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16301 ## -------------------- ##
16302 ## M4sh Initialization. ##
16303 ## -------------------- ##
16305 # Be more Bourne compatible
16306 DUALCASE=1; export DUALCASE # for MKS sh
16307 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16310 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16311 # is contrary to our usage. Disable this feature.
16312 alias -g '${1+"$@"}'='"$@"'
16313 setopt NO_GLOB_SUBST
16315 case `(set -o) 2>/dev/null` in #(
16327 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16328 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16329 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16330 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16331 # Prefer a ksh shell builtin over an external printf program on Solaris,
16332 # but without wasting forks for bash or zsh.
16333 if test -z "$BASH_VERSION$ZSH_VERSION" \
16334 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16335 as_echo='print -r --'
16336 as_echo_n='print -rn --'
16337 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16338 as_echo='printf %s\n'
16339 as_echo_n='printf %s'
16341 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16342 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16343 as_echo_n='/usr/ucb/echo -n'
16345 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16346 as_echo_n_body='eval
16350 expr "X$arg" : "X\\(.*\\)$as_nl";
16351 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16353 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16355 export as_echo_n_body
16356 as_echo_n='sh -c $as_echo_n_body as_echo'
16358 export as_echo_body
16359 as_echo='sh -c $as_echo_body as_echo'
16362 # The user is always right.
16363 if test "${PATH_SEPARATOR+set}" != set; then
16365 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16366 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16373 # We need space, tab and new line, in precisely that order. Quoting is
16374 # there to prevent editors from complaining about space-tab.
16375 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16376 # splitting by setting IFS to empty value.)
16379 # Find who we are. Look in the path if we contain no directory separator.
16381 *[\\/]* ) as_myself=$0 ;;
16382 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16383 for as_dir in $PATH
16386 test -z "$as_dir" && as_dir=.
16387 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16393 # We did not find ourselves, most probably we were run as `sh COMMAND'
16394 # in which case we are not to be found in the path.
16395 if test "x$as_myself" = x; then
16398 if test ! -f "$as_myself"; then
16399 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16403 # Unset variables that we do not need and which cause bugs (e.g. in
16404 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16405 # suppresses any "Segmentation fault" message there. '((' could
16406 # trigger a bug in pdksh 5.2.14.
16407 for as_var in BASH_ENV ENV MAIL MAILPATH
16408 do eval test x\${$as_var+set} = xset \
16409 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16422 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16425 # as_fn_error ERROR [LINENO LOG_FD]
16426 # ---------------------------------
16427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16429 # script with status $?, using 1 if that was 0.
16432 as_status=$?; test $as_status -eq 0 && as_status=1
16434 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16435 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16437 $as_echo "$as_me: error: $1" >&2
16438 as_fn_exit $as_status
16442 # as_fn_set_status STATUS
16443 # -----------------------
16444 # Set $? to STATUS, without forking.
16445 as_fn_set_status ()
16448 } # as_fn_set_status
16450 # as_fn_exit STATUS
16451 # -----------------
16452 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16456 as_fn_set_status $1
16462 # Portably unset VAR.
16465 { eval $1=; unset $1;}
16467 as_unset=as_fn_unset
16468 # as_fn_append VAR VALUE
16469 # ----------------------
16470 # Append the text in VALUE to the end of the definition contained in VAR. Take
16471 # advantage of any shell optimizations that allow amortized linear growth over
16472 # repeated appends, instead of the typical quadratic growth present in naive
16474 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16475 eval 'as_fn_append ()
16486 # as_fn_arith ARG...
16487 # ------------------
16488 # Perform arithmetic evaluation on the ARGs, and store the result in the
16489 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16490 # must be portable across $(()) and expr.
16491 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16492 eval 'as_fn_arith ()
16499 as_val=`expr "$@" || test $? -eq 1`
16504 if expr a : '\(a\)' >/dev/null 2>&1 &&
16505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16511 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16512 as_basename=basename
16517 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16523 as_me=`$as_basename -- "$0" ||
16524 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16525 X"$0" : 'X\(//\)$' \| \
16526 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16528 sed '/^.*\/\([^/][^/]*\)\/*$/{
16542 # Avoid depending upon Character Ranges.
16543 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16544 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16545 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16546 as_cr_digits='0123456789'
16547 as_cr_alnum=$as_cr_Letters$as_cr_digits
16549 ECHO_C= ECHO_N= ECHO_T=
16550 case `echo -n x` in #(((((
16552 case `echo 'xy\c'` in
16553 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16555 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16562 rm -f conf$$ conf$$.exe conf$$.file
16563 if test -d conf$$.dir; then
16564 rm -f conf$$.dir/conf$$.file
16567 mkdir conf$$.dir 2>/dev/null
16569 if (echo >conf$$.file) 2>/dev/null; then
16570 if ln -s conf$$.file conf$$ 2>/dev/null; then
16572 # ... but there are two gotchas:
16573 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16574 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16575 # In both cases, we have to default to `cp -p'.
16576 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16578 elif ln conf$$.file conf$$ 2>/dev/null; then
16586 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16587 rmdir conf$$.dir 2>/dev/null
16592 # Create "$as_dir" as a directory, including parents if necessary.
16597 -*) as_dir=./$as_dir;;
16599 test -d "$as_dir" || eval $as_mkdir_p || {
16603 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16604 *) as_qdir=$as_dir;;
16606 as_dirs="'$as_qdir' $as_dirs"
16607 as_dir=`$as_dirname -- "$as_dir" ||
16608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16609 X"$as_dir" : 'X\(//\)[^/]' \| \
16610 X"$as_dir" : 'X\(//\)$' \| \
16611 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16612 $as_echo X"$as_dir" |
16613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16617 /^X\(\/\/\)[^/].*/{
16630 test -d "$as_dir" && break
16632 test -z "$as_dirs" || eval "mkdir $as_dirs"
16633 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16637 if mkdir -p . 2>/dev/null; then
16638 as_mkdir_p='mkdir -p "$as_dir"'
16640 test -d ./-p && rmdir ./-p
16644 if test -x / >/dev/null 2>&1; then
16645 as_test_x='test -x'
16647 if ls -dL / >/dev/null 2>&1; then
16654 if test -d "$1"; then
16660 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16661 ???[sx]*):;;*)false;;esac;fi
16665 as_executable_p=$as_test_x
16667 # Sed expression to map a string onto a valid CPP name.
16668 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16670 # Sed expression to map a string onto a valid variable name.
16671 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16675 ## ----------------------------------- ##
16676 ## Main body of $CONFIG_STATUS script. ##
16677 ## ----------------------------------- ##
16679 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16682 # Save the log message, to keep $0 and so on meaningful, and to
16683 # report actual input values of CONFIG_FILES etc. instead of their
16684 # values after options handling.
16686 This file was extended by sharing-plugin-cli $as_me 0.1, which was
16687 generated by GNU Autoconf 2.64. Invocation command line was
16689 CONFIG_FILES = $CONFIG_FILES
16690 CONFIG_HEADERS = $CONFIG_HEADERS
16691 CONFIG_LINKS = $CONFIG_LINKS
16692 CONFIG_COMMANDS = $CONFIG_COMMANDS
16695 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16700 case $ac_config_files in *"
16701 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16704 case $ac_config_headers in *"
16705 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16710 # Files that config.status was made for.
16711 config_files="$ac_config_files"
16712 config_headers="$ac_config_headers"
16713 config_commands="$ac_config_commands"
16717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16719 \`$as_me' instantiates files and other configuration actions
16720 from templates according to the current configuration. Unless the files
16721 and actions are specified as TAGs, all are instantiated by default.
16723 Usage: $0 [OPTION]... [TAG]...
16725 -h, --help print this help, then exit
16726 -V, --version print version number and configuration settings, then exit
16727 -q, --quiet, --silent
16728 do not print progress messages
16729 -d, --debug don't remove temporary files
16730 --recheck update $as_me by reconfiguring in the same conditions
16731 --file=FILE[:TEMPLATE]
16732 instantiate the configuration file FILE
16733 --header=FILE[:TEMPLATE]
16734 instantiate the configuration header FILE
16736 Configuration files:
16739 Configuration headers:
16742 Configuration commands:
16745 Report bugs to the package provider."
16748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16750 sharing-plugin-cli config.status 0.1
16751 configured by $0, generated by GNU Autoconf 2.64,
16752 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16754 Copyright (C) 2009 Free Software Foundation, Inc.
16755 This config.status script is free software; the Free Software Foundation
16756 gives unlimited permission to copy, distribute and modify it."
16763 test -n "\$AWK" || AWK=awk
16766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16767 # The default lists apply if the user does not specify any file.
16773 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16774 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16785 # Handling of the options.
16786 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16788 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16789 $as_echo "$ac_cs_version"; exit ;;
16790 --debug | --debu | --deb | --de | --d | -d )
16792 --file | --fil | --fi | --f )
16795 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16797 as_fn_append CONFIG_FILES " '$ac_optarg'"
16798 ac_need_defaults=false;;
16799 --header | --heade | --head | --hea )
16802 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16804 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16805 ac_need_defaults=false;;
16807 # Conflict between --help and --header
16808 as_fn_error "ambiguous option: \`$1'
16809 Try \`$0 --help' for more information.";;
16810 --help | --hel | -h )
16811 $as_echo "$ac_cs_usage"; exit ;;
16812 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16813 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16816 # This is an error.
16817 -*) as_fn_error "unrecognized option: \`$1'
16818 Try \`$0 --help' for more information." ;;
16820 *) as_fn_append ac_config_targets " $1"
16821 ac_need_defaults=false ;;
16827 ac_configure_extra_args=
16829 if $ac_cs_silent; then
16831 ac_configure_extra_args="$ac_configure_extra_args --silent"
16835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16836 if \$ac_cs_recheck; then
16837 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16839 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16840 CONFIG_SHELL='$SHELL'
16841 export CONFIG_SHELL
16846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16850 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16851 ## Running $as_me. ##
16857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16861 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16864 # The HP-UX ksh and POSIX shell print the target directory to stdout
16865 # if CDPATH is set.
16866 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16868 sed_quote_subst='$sed_quote_subst'
16869 double_quote_subst='$double_quote_subst'
16870 delay_variable_subst='$delay_variable_subst'
16871 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16872 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16873 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16874 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16875 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16876 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16877 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16878 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16879 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16880 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16881 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16882 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16883 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16884 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16885 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16886 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16887 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16888 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16889 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16890 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16891 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16892 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16893 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16894 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16895 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16896 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16897 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16898 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16899 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16900 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16901 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16902 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16903 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16904 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16905 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16906 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16907 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16908 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16909 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16910 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16911 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16912 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16913 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16914 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16915 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16916 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16917 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16918 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16919 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16920 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16921 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16922 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16923 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16924 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16925 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16926 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16927 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16928 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16929 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16930 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16931 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16932 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16933 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16934 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16935 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16936 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16937 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16938 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16939 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16940 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16941 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16942 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16943 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16944 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16945 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16946 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16947 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16948 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16949 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16950 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16951 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16952 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16953 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16954 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16955 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16956 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16957 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16958 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16959 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16960 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16961 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16962 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16963 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16964 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16965 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16966 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16967 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16968 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16969 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16970 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16971 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16972 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16973 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16974 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16975 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16976 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16977 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16978 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16979 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16980 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16981 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16982 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16983 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16984 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16985 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16986 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16987 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16988 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16989 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16990 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16991 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16992 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16993 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16994 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16995 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16996 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16997 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16998 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16999 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17000 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17001 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17002 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17003 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17004 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17005 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17006 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17007 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17008 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17009 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17010 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17011 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17012 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17013 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17014 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17015 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17016 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17017 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17018 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17019 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17020 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17021 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17022 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17023 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17024 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17025 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17026 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17027 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17028 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17029 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17030 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17031 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17032 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17033 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17034 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17035 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17036 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17037 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17038 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17039 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17040 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17041 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17044 LTCFLAGS='$LTCFLAGS'
17045 compiler='$compiler_DEFAULT'
17047 # Quote evaled strings.
17059 deplibs_check_method \
17068 lt_cv_sys_global_symbol_pipe \
17069 lt_cv_sys_global_symbol_to_cdecl \
17070 lt_cv_sys_global_symbol_to_c_name_address \
17071 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17074 lt_prog_compiler_no_builtin_flag \
17075 lt_prog_compiler_wl \
17076 lt_prog_compiler_pic \
17077 lt_prog_compiler_static \
17078 lt_cv_prog_compiler_c_o \
17086 export_dynamic_flag_spec \
17087 whole_archive_flag_spec \
17088 compiler_needs_object \
17090 allow_undefined_flag \
17091 no_undefined_flag \
17092 hardcode_libdir_flag_spec \
17093 hardcode_libdir_flag_spec_ld \
17094 hardcode_libdir_separator \
17099 variables_saved_for_relink \
17101 library_names_spec \
17106 compiler_lib_search_dirs \
17111 compiler_lib_search_path \
17114 lt_prog_compiler_no_builtin_flag_CXX \
17115 lt_prog_compiler_wl_CXX \
17116 lt_prog_compiler_pic_CXX \
17117 lt_prog_compiler_static_CXX \
17118 lt_cv_prog_compiler_c_o_CXX \
17119 export_dynamic_flag_spec_CXX \
17120 whole_archive_flag_spec_CXX \
17121 compiler_needs_object_CXX \
17123 allow_undefined_flag_CXX \
17124 no_undefined_flag_CXX \
17125 hardcode_libdir_flag_spec_CXX \
17126 hardcode_libdir_flag_spec_ld_CXX \
17127 hardcode_libdir_separator_CXX \
17128 fix_srcfile_path_CXX \
17129 exclude_expsyms_CXX \
17130 include_expsyms_CXX \
17131 file_list_spec_CXX \
17132 compiler_lib_search_dirs_CXX \
17133 predep_objects_CXX \
17134 postdep_objects_CXX \
17137 compiler_lib_search_path_CXX; do
17138 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17139 *[\\\\\\\`\\"\\\$]*)
17140 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17143 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17148 # Double-quote double-evaled strings.
17149 for var in reload_cmds \
17150 old_postinstall_cmds \
17151 old_postuninstall_cmds \
17153 extract_expsyms_cmds \
17154 old_archive_from_new_cmds \
17155 old_archive_from_expsyms_cmds \
17157 archive_expsym_cmds \
17159 module_expsym_cmds \
17160 export_symbols_cmds \
17163 postuninstall_cmds \
17165 sys_lib_search_path_spec \
17166 sys_lib_dlsearch_path_spec \
17167 old_archive_cmds_CXX \
17168 old_archive_from_new_cmds_CXX \
17169 old_archive_from_expsyms_cmds_CXX \
17171 archive_expsym_cmds_CXX \
17173 module_expsym_cmds_CXX \
17174 export_symbols_cmds_CXX \
17175 prelink_cmds_CXX; do
17176 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17177 *[\\\\\\\`\\"\\\$]*)
17178 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17181 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17186 # Fix-up fallback echo if it was mangled by the above quoting rules.
17188 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17192 ac_aux_dir='$ac_aux_dir'
17193 xsi_shell='$xsi_shell'
17194 lt_shell_append='$lt_shell_append'
17196 # See if we are running on zsh, and set the options which allow our
17197 # commands through without removal of \ escapes INIT.
17198 if test -n "\${ZSH_VERSION+set}" ; then
17199 setopt NO_GLOB_SUBST
17205 TIMESTAMP='$TIMESTAMP'
17216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17218 # Handling of arguments.
17219 for ac_config_target in $ac_config_targets
17221 case $ac_config_target in
17222 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17223 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17224 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17225 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17226 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
17227 "data/cli.service.xml") CONFIG_FILES="$CONFIG_FILES data/cli.service.xml" ;;
17228 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17230 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17235 # If the user did not use the arguments to specify the items to instantiate,
17236 # then the envvar interface is used. Set only those that are not.
17237 # We use the long form for the default assignment because of an extremely
17238 # bizarre bug on SunOS 4.1.3.
17239 if $ac_need_defaults; then
17240 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17241 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17242 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17245 # Have a temporary directory for convenience. Make it in the build tree
17246 # simply because there is no reason against having it here, and in addition,
17247 # creating and moving files from /tmp can sometimes cause problems.
17248 # Hook for its removal unless debugging.
17249 # Note that there is a small window in which the directory will not be cleaned:
17250 # after its creation but before its name has been assigned to `$tmp'.
17254 trap 'exit_status=$?
17255 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17257 trap 'as_fn_exit 1' 1 2 13 15
17259 # Create a (secure) tmp directory for tmp files.
17262 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17263 test -n "$tmp" && test -d "$tmp"
17266 tmp=./conf$$-$RANDOM
17267 (umask 077 && mkdir "$tmp")
17268 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17270 # Set up the scripts for CONFIG_FILES section.
17271 # No need to generate them if there are no CONFIG_FILES.
17272 # This happens for instance with `./config.status config.h'.
17273 if test -n "$CONFIG_FILES"; then
17276 ac_cr=`echo X | tr X '\015'`
17277 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17278 # But we know of no other shell where ac_cr would be empty at this
17279 # point, so we can use a bashism as a fallback.
17280 if test "x$ac_cr" = x; then
17281 eval ac_cr=\$\'\\r\'
17283 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17284 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17287 ac_cs_awk_cr=$ac_cr
17290 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17295 echo "cat >conf$$subs.awk <<_ACEOF" &&
17296 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17298 } >conf$$subs.sh ||
17299 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17300 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17302 for ac_last_try in false false false false false :; do
17303 . ./conf$$subs.sh ||
17304 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17306 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17307 if test $ac_delim_n = $ac_delim_num; then
17309 elif $ac_last_try; then
17310 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17312 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17315 rm -f conf$$subs.sh
17317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17318 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17322 s/^/S["/; s/!.*/"]=/
17332 s/\(.\{148\}\).*/\1/
17334 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17339 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17346 s/\(.\{148\}\).*/\1/
17348 s/["\\]/\\&/g; s/^/"/; s/$/"/
17352 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17357 ' <conf$$subs.awk | sed '
17362 ' >>$CONFIG_STATUS || ac_write_fail=1
17363 rm -f conf$$subs.awk
17364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17366 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17367 for (key in S) S_is_set[key] = 1
17373 nfields = split(line, field, "@")
17375 len = length(field[1])
17376 for (i = 2; i < nfields; i++) {
17378 keylen = length(key)
17379 if (S_is_set[key]) {
17381 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17382 len += length(value) + length(field[++i])
17393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17394 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17395 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17398 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17399 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17402 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17403 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17404 # trailing colons and then remove the whole line if VPATH becomes empty
17405 # (actually we leave an empty line to preserve line numbers).
17406 if test "x$srcdir" = x.; then
17407 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17408 s/:*\$(srcdir):*/:/
17409 s/:*\${srcdir}:*/:/
17411 s/^\([^=]*=[ ]*\):*/\1/
17417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17418 fi # test -n "$CONFIG_FILES"
17420 # Set up the scripts for CONFIG_HEADERS section.
17421 # No need to generate them if there are no CONFIG_HEADERS.
17422 # This happens for instance with `./config.status Makefile'.
17423 if test -n "$CONFIG_HEADERS"; then
17424 cat >"$tmp/defines.awk" <<\_ACAWK ||
17428 # Transform confdefs.h into an awk script `defines.awk', embedded as
17429 # here-document in config.status, that substitutes the proper values into
17430 # config.h.in to produce config.h.
17432 # Create a delimiter string that does not exist in confdefs.h, to ease
17433 # handling of long lines.
17435 for ac_last_try in false false :; do
17436 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17437 if test -z "$ac_t"; then
17439 elif $ac_last_try; then
17440 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17442 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17446 # For the awk script, D is an array of macro values keyed by name,
17447 # likewise P contains macro parameters if any. Preserve backslash
17448 # newline sequences.
17450 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17452 s/.\{148\}/&'"$ac_delim"'/g
17455 s/^[ ]*#[ ]*define[ ][ ]*/ /
17462 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17464 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17468 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17469 D["\1"]=" \3\\\\\\n"\\/p
17471 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17476 s/.\{148\}/&'"$ac_delim"'/g
17481 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17484 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17486 ' <confdefs.h | sed '
17487 s/'"$ac_delim"'/"\\\
17488 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17491 for (key in D) D_is_set[key] = 1
17494 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17496 split(line, arg, " ")
17497 if (arg[1] == "#") {
17501 defundef = substr(arg[1], 2)
17504 split(mac1, mac2, "(") #)
17506 prefix = substr(line, 1, index(line, defundef) - 1)
17507 if (D_is_set[macro]) {
17508 # Preserve the white space surrounding the "#".
17509 print prefix "define", macro P[macro] D[macro]
17512 # Replace #undef with comments. This is necessary, for example,
17513 # in the case of _POSIX_SOURCE, which is predefined and required
17514 # on some systems where configure will not decide to define it.
17515 if (defundef == "undef") {
17516 print "/*", prefix defundef, macro, "*/"
17524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17525 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17526 fi # test -n "$CONFIG_HEADERS"
17529 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17534 :[FHLC]) ac_mode=$ac_tag; continue;;
17536 case $ac_mode$ac_tag in
17538 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17539 :[FH]-) ac_tag=-:-;;
17540 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17557 -) ac_f="$tmp/stdin";;
17558 *) # Look for the file first in the build tree, then in the source tree
17559 # (if the path is not absolute). The absolute path cannot be DOS-style,
17560 # because $ac_f cannot contain `:'.
17564 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17566 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17568 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17569 as_fn_append ac_file_inputs " '$ac_f'"
17572 # Let's still pretend it is `configure' which instantiates (i.e., don't
17573 # use $as_me), people would be surprised to read:
17574 # /* config.h. Generated by config.status. */
17575 configure_input='Generated from '`
17576 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17578 if test x"$ac_file" != x-; then
17579 configure_input="$ac_file. $configure_input"
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17581 $as_echo "$as_me: creating $ac_file" >&6;}
17583 # Neutralize special characters interpreted by sed in replacement strings.
17584 case $configure_input in #(
17585 *\&* | *\|* | *\\* )
17586 ac_sed_conf_input=`$as_echo "$configure_input" |
17587 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17588 *) ac_sed_conf_input=$configure_input;;
17592 *:-:* | *:-) cat >"$tmp/stdin" \
17593 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17598 ac_dir=`$as_dirname -- "$ac_file" ||
17599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17600 X"$ac_file" : 'X\(//\)[^/]' \| \
17601 X"$ac_file" : 'X\(//\)$' \| \
17602 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17603 $as_echo X"$ac_file" |
17604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17608 /^X\(\/\/\)[^/].*/{
17621 as_dir="$ac_dir"; as_fn_mkdir_p
17625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17628 # A ".." for each directory in $ac_dir_suffix.
17629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17630 case $ac_top_builddir_sub in
17631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17635 ac_abs_top_builddir=$ac_pwd
17636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17637 # for backward compatibility:
17638 ac_top_builddir=$ac_top_build_prefix
17641 .) # We are building in place.
17643 ac_top_srcdir=$ac_top_builddir_sub
17644 ac_abs_top_srcdir=$ac_pwd ;;
17645 [\\/]* | ?:[\\/]* ) # Absolute name.
17646 ac_srcdir=$srcdir$ac_dir_suffix;
17647 ac_top_srcdir=$srcdir
17648 ac_abs_top_srcdir=$srcdir ;;
17649 *) # Relative name.
17650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17651 ac_top_srcdir=$ac_top_build_prefix$srcdir
17652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17664 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17665 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17667 ac_MKDIR_P=$MKDIR_P
17669 [\\/$]* | ?:[\\/]* ) ;;
17670 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17675 # If the template does not know about datarootdir, expand it.
17676 # FIXME: This hack should be removed a few years after 2.60.
17677 ac_datarootdir_hack=; ac_datarootdir_seen=
17688 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17689 *datarootdir*) ac_datarootdir_seen=yes;;
17690 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17692 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17695 ac_datarootdir_hack='
17696 s&@datadir@&$datadir&g
17697 s&@docdir@&$docdir&g
17698 s&@infodir@&$infodir&g
17699 s&@localedir@&$localedir&g
17700 s&@mandir@&$mandir&g
17701 s&\\\${datarootdir}&$datarootdir&g' ;;
17705 # Neutralize VPATH when `$srcdir' = `.'.
17706 # Shell code in configure.ac might set extrasub.
17707 # FIXME: do we really want to maintain this feature?
17708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17709 ac_sed_extra="$ac_vpsub
17712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17714 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17715 s|@configure_input@|$ac_sed_conf_input|;t t
17716 s&@top_builddir@&$ac_top_builddir_sub&;t t
17717 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17718 s&@srcdir@&$ac_srcdir&;t t
17719 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17720 s&@top_srcdir@&$ac_top_srcdir&;t t
17721 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17722 s&@builddir@&$ac_builddir&;t t
17723 s&@abs_builddir@&$ac_abs_builddir&;t t
17724 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17725 s&@INSTALL@&$ac_INSTALL&;t t
17726 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17727 $ac_datarootdir_hack
17729 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17730 || as_fn_error "could not create $ac_file" "$LINENO" 5
17732 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17733 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17734 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17736 which seems to be undefined. Please make sure it is defined." >&5
17737 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17738 which seems to be undefined. Please make sure it is defined." >&2;}
17742 -) cat "$tmp/out" && rm -f "$tmp/out";;
17743 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17745 || as_fn_error "could not create $ac_file" "$LINENO" 5
17751 if test x"$ac_file" != x-; then
17753 $as_echo "/* $configure_input */" \
17754 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17755 } >"$tmp/config.h" \
17756 || as_fn_error "could not create $ac_file" "$LINENO" 5
17757 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17759 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17762 mv "$tmp/config.h" "$ac_file" \
17763 || as_fn_error "could not create $ac_file" "$LINENO" 5
17766 $as_echo "/* $configure_input */" \
17767 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17768 || as_fn_error "could not create -" "$LINENO" 5
17770 # Compute "$ac_file"'s index in $config_headers.
17773 for _am_header in $config_headers :; do
17774 case $_am_header in
17775 $_am_arg | $_am_arg:* )
17778 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17781 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17782 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17783 X"$_am_arg" : 'X\(//\)[^/]' \| \
17784 X"$_am_arg" : 'X\(//\)$' \| \
17785 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17786 $as_echo X"$_am_arg" |
17787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17791 /^X\(\/\/\)[^/].*/{
17803 s/.*/./; q'`/stamp-h$_am_stamp_count
17806 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17807 $as_echo "$as_me: executing $ac_file commands" >&6;}
17812 case $ac_file$ac_mode in
17813 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17814 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17815 # are listed without --file. Let's play safe and only enable the eval
17816 # if we detect the quoting.
17817 case $CONFIG_FILES in
17818 *\'*) eval set x "$CONFIG_FILES" ;;
17819 *) set x $CONFIG_FILES ;;
17824 # Strip MF so we end up with the name of the file.
17825 mf=`echo "$mf" | sed -e 's/:.*$//'`
17826 # Check whether this is an Automake generated Makefile or not.
17827 # We used to match only the files named `Makefile.in', but
17828 # some people rename them; so instead we look at the file content.
17829 # Grep'ing the first line is not enough: some people post-process
17830 # each Makefile.in and add a new line on top of each file to say so.
17831 # Grep'ing the whole file is not good either: AIX grep has a line
17832 # limit of 2048, but all sed's we know have understand at least 4000.
17833 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17834 dirpart=`$as_dirname -- "$mf" ||
17835 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17836 X"$mf" : 'X\(//\)[^/]' \| \
17837 X"$mf" : 'X\(//\)$' \| \
17838 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17844 /^X\(\/\/\)[^/].*/{
17860 # Extract the definition of DEPDIR, am__include, and am__quote
17861 # from the Makefile without running `make'.
17862 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17863 test -z "$DEPDIR" && continue
17864 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17865 test -z "am__include" && continue
17866 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17867 # When using ansi2knr, U may be empty or an underscore; expand it
17868 U=`sed -n 's/^U = //p' < "$mf"`
17869 # Find all dependency output files, they are included files with
17870 # $(DEPDIR) in their names. We invoke sed twice because it is the
17871 # simplest approach to changing $(DEPDIR) to its actual value in the
17873 for file in `sed -n "
17874 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17875 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17876 # Make sure the directory exists.
17877 test -f "$dirpart/$file" && continue
17878 fdir=`$as_dirname -- "$file" ||
17879 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17880 X"$file" : 'X\(//\)[^/]' \| \
17881 X"$file" : 'X\(//\)$' \| \
17882 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17883 $as_echo X"$file" |
17884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17888 /^X\(\/\/\)[^/].*/{
17901 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17902 # echo "creating $dirpart/$file"
17903 echo '# dummy' > "$dirpart/$file"
17910 # See if we are running on zsh, and set the options which allow our
17911 # commands through without removal of \ escapes.
17912 if test -n "${ZSH_VERSION+set}" ; then
17913 setopt NO_GLOB_SUBST
17916 cfgfile="${ofile}T"
17917 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17920 cat <<_LT_EOF >> "$cfgfile"
17923 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17924 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17925 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17926 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17928 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17929 # 2006, 2007, 2008 Free Software Foundation, Inc.
17930 # Written by Gordon Matzigkeit, 1996
17932 # This file is part of GNU Libtool.
17934 # GNU Libtool is free software; you can redistribute it and/or
17935 # modify it under the terms of the GNU General Public License as
17936 # published by the Free Software Foundation; either version 2 of
17937 # the License, or (at your option) any later version.
17939 # As a special exception to the GNU General Public License,
17940 # if you distribute this file as part of a program or library that
17941 # is built using GNU Libtool, you may include this file under the
17942 # same distribution terms that you use for the rest of that program.
17944 # GNU Libtool is distributed in the hope that it will be useful,
17945 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17946 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17947 # GNU General Public License for more details.
17949 # You should have received a copy of the GNU General Public License
17950 # along with GNU Libtool; see the file COPYING. If not, a copy
17951 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17952 # obtained by writing to the Free Software Foundation, Inc.,
17953 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17956 # The names of the tagged configurations supported by this script.
17957 available_tags="CXX "
17959 # ### BEGIN LIBTOOL CONFIG
17961 # Whether or not to build shared libraries.
17962 build_libtool_libs=$enable_shared
17964 # Whether or not to build static libraries.
17965 build_old_libs=$enable_static
17967 # Which release of libtool.m4 was used?
17968 macro_version=$macro_version
17969 macro_revision=$macro_revision
17971 # What type of objects to build.
17974 # Whether or not to optimize for fast installation.
17975 fast_install=$enable_fast_install
17978 host_alias=$host_alias
17982 # The build system.
17983 build_alias=$build_alias
17987 # A sed program that does not truncate output.
17990 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17991 Xsed="\$SED -e 1s/^X//"
17993 # A grep program that handles long lines.
17999 # A literal string matcher.
18002 # A BSD- or MS-compatible name lister.
18005 # Whether we need soft or hard links.
18008 # What is the maximum length of a command?
18009 max_cmd_len=$max_cmd_len
18011 # Object file suffix (normally "o").
18014 # Executable file suffix (normally "").
18017 # whether the shell understands "unset".
18020 # turn spaces into newlines.
18023 # turn newlines into spaces.
18026 # How to create reloadable object files.
18027 reload_flag=$lt_reload_flag
18028 reload_cmds=$lt_reload_cmds
18030 # An object symbol dumper.
18031 OBJDUMP=$lt_OBJDUMP
18033 # Method to check whether dependent libraries are shared objects.
18034 deplibs_check_method=$lt_deplibs_check_method
18036 # Command to use when deplibs_check_method == "file_magic".
18037 file_magic_cmd=$lt_file_magic_cmd
18041 AR_FLAGS=$lt_AR_FLAGS
18043 # A symbol stripping program.
18046 # Commands used to install an old-style archive.
18048 old_postinstall_cmds=$lt_old_postinstall_cmds
18049 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18054 # LTCC compiler flags.
18055 LTCFLAGS=$lt_CFLAGS
18057 # Take the output of nm and produce a listing of raw symbols and C names.
18058 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18060 # Transform the output of nm in a proper C declaration.
18061 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18063 # Transform the output of nm in a C name address pair.
18064 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18066 # Transform the output of nm in a C name address pair when lib prefix is needed.
18067 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18069 # The name of the directory that contains temporary libtool files.
18072 # Shell to use when invoking shell scripts.
18075 # An echo program that does not interpret backslashes.
18078 # Used to examine libraries when file_magic_cmd begins with "file".
18079 MAGIC_CMD=$MAGIC_CMD
18081 # Must we lock files when doing compilation?
18082 need_locks=$lt_need_locks
18084 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18085 DSYMUTIL=$lt_DSYMUTIL
18087 # Tool to change global to local symbols on Mac OS X.
18090 # Tool to manipulate fat objects and archives on Mac OS X.
18093 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18096 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18097 OTOOL64=$lt_OTOOL64
18099 # Old archive suffix (normally "a").
18102 # Shared library suffix (normally ".so").
18103 shrext_cmds=$lt_shrext_cmds
18105 # The commands to extract the exported symbol list from a shared archive.
18106 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18108 # Variables whose values should be saved in libtool wrapper scripts and
18109 # restored at link time.
18110 variables_saved_for_relink=$lt_variables_saved_for_relink
18112 # Do we need the "lib" prefix for modules?
18113 need_lib_prefix=$need_lib_prefix
18115 # Do we need a version for libraries?
18116 need_version=$need_version
18118 # Library versioning type.
18119 version_type=$version_type
18121 # Shared library runtime path variable.
18122 runpath_var=$runpath_var
18124 # Shared library path variable.
18125 shlibpath_var=$shlibpath_var
18127 # Is shlibpath searched before the hard-coded library search path?
18128 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18130 # Format of library name prefix.
18131 libname_spec=$lt_libname_spec
18133 # List of archive names. First name is the real one, the rest are links.
18134 # The last name is the one that the linker finds with -lNAME
18135 library_names_spec=$lt_library_names_spec
18137 # The coded name of the library, if different from the real name.
18138 soname_spec=$lt_soname_spec
18140 # Command to use after installation of a shared archive.
18141 postinstall_cmds=$lt_postinstall_cmds
18143 # Command to use after uninstallation of a shared archive.
18144 postuninstall_cmds=$lt_postuninstall_cmds
18146 # Commands used to finish a libtool library installation in a directory.
18147 finish_cmds=$lt_finish_cmds
18149 # As "finish_cmds", except a single script fragment to be evaled but
18151 finish_eval=$lt_finish_eval
18153 # Whether we should hardcode library paths into libraries.
18154 hardcode_into_libs=$hardcode_into_libs
18156 # Compile-time system search path for libraries.
18157 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18159 # Run-time system search path for libraries.
18160 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18162 # Whether dlopen is supported.
18163 dlopen_support=$enable_dlopen
18165 # Whether dlopen of programs is supported.
18166 dlopen_self=$enable_dlopen_self
18168 # Whether dlopen of statically linked programs is supported.
18169 dlopen_self_static=$enable_dlopen_self_static
18171 # Commands to strip libraries.
18172 old_striplib=$lt_old_striplib
18173 striplib=$lt_striplib
18176 # The linker used to build libraries.
18179 # Commands used to build an old-style archive.
18180 old_archive_cmds=$lt_old_archive_cmds
18182 # A language specific compiler.
18185 # Is the compiler the GNU compiler?
18188 # Compiler flag to turn off builtin functions.
18189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18191 # How to pass a linker flag through the compiler.
18192 wl=$lt_lt_prog_compiler_wl
18194 # Additional compiler flags for building library objects.
18195 pic_flag=$lt_lt_prog_compiler_pic
18197 # Compiler flag to prevent dynamic linking.
18198 link_static_flag=$lt_lt_prog_compiler_static
18200 # Does compiler simultaneously support -c and -o options?
18201 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18203 # Whether or not to add -lc for building shared libraries.
18204 build_libtool_need_lc=$archive_cmds_need_lc
18206 # Whether or not to disallow shared libs when runtime libs are static.
18207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18209 # Compiler flag to allow reflexive dlopens.
18210 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18212 # Compiler flag to generate shared objects directly from archives.
18213 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18215 # Whether the compiler copes with passing no objects directly.
18216 compiler_needs_object=$lt_compiler_needs_object
18218 # Create an old-style archive from a shared archive.
18219 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18221 # Create a temporary old-style archive to link instead of a shared archive.
18222 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18224 # Commands used to build a shared archive.
18225 archive_cmds=$lt_archive_cmds
18226 archive_expsym_cmds=$lt_archive_expsym_cmds
18228 # Commands used to build a loadable module if different from building
18229 # a shared archive.
18230 module_cmds=$lt_module_cmds
18231 module_expsym_cmds=$lt_module_expsym_cmds
18233 # Whether we are building with GNU ld or not.
18234 with_gnu_ld=$lt_with_gnu_ld
18236 # Flag that allows shared libraries with undefined symbols to be built.
18237 allow_undefined_flag=$lt_allow_undefined_flag
18239 # Flag that enforces no undefined symbols.
18240 no_undefined_flag=$lt_no_undefined_flag
18242 # Flag to hardcode \$libdir into a binary during linking.
18243 # This must work even if \$libdir does not exist
18244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18246 # If ld is used when linking, flag to hardcode \$libdir into a binary
18247 # during linking. This must work even if \$libdir does not exist.
18248 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18250 # Whether we need a single "-rpath" flag with a separated argument.
18251 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18253 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18254 # DIR into the resulting binary.
18255 hardcode_direct=$hardcode_direct
18257 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18258 # DIR into the resulting binary and the resulting library dependency is
18259 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18260 # library is relocated.
18261 hardcode_direct_absolute=$hardcode_direct_absolute
18263 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18264 # into the resulting binary.
18265 hardcode_minus_L=$hardcode_minus_L
18267 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18268 # into the resulting binary.
18269 hardcode_shlibpath_var=$hardcode_shlibpath_var
18271 # Set to "yes" if building a shared library automatically hardcodes DIR
18272 # into the library and all subsequent libraries and executables linked
18274 hardcode_automatic=$hardcode_automatic
18276 # Set to yes if linker adds runtime paths of dependent libraries
18277 # to runtime path list.
18278 inherit_rpath=$inherit_rpath
18280 # Whether libtool must link a program against all its dependency libraries.
18281 link_all_deplibs=$link_all_deplibs
18283 # Fix the shell variable \$srcfile for the compiler.
18284 fix_srcfile_path=$lt_fix_srcfile_path
18286 # Set to "yes" if exported symbols are required.
18287 always_export_symbols=$always_export_symbols
18289 # The commands to list exported symbols.
18290 export_symbols_cmds=$lt_export_symbols_cmds
18292 # Symbols that should not be listed in the preloaded symbols.
18293 exclude_expsyms=$lt_exclude_expsyms
18295 # Symbols that must always be exported.
18296 include_expsyms=$lt_include_expsyms
18298 # Commands necessary for linking programs (against libraries) with templates.
18299 prelink_cmds=$lt_prelink_cmds
18301 # Specify filename containing input files.
18302 file_list_spec=$lt_file_list_spec
18304 # How to hardcode a shared library path into an executable.
18305 hardcode_action=$hardcode_action
18307 # The directories searched by this compiler when creating a shared library.
18308 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18310 # Dependencies to place before and after the objects being linked to
18311 # create a shared library.
18312 predep_objects=$lt_predep_objects
18313 postdep_objects=$lt_postdep_objects
18314 predeps=$lt_predeps
18315 postdeps=$lt_postdeps
18317 # The library search path used internally by the compiler when linking
18318 # a shared library.
18319 compiler_lib_search_path=$lt_compiler_lib_search_path
18321 # ### END LIBTOOL CONFIG
18327 cat <<\_LT_EOF >> "$cfgfile"
18328 # AIX sometimes has problems with the GCC collect2 program. For some
18329 # reason, if we set the COLLECT_NAMES environment variable, the problems
18330 # vanish in a puff of smoke.
18331 if test "X${COLLECT_NAMES+set}" != Xset; then
18333 export COLLECT_NAMES
18340 ltmain="$ac_aux_dir/ltmain.sh"
18343 # We use sed instead of cat because bash on DJGPP gets confused if
18344 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18345 # text mode, it properly converts lines to CR/LF. This bash problem
18346 # is reportedly fixed, but why not run on old versions too?
18347 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18348 || (rm -f "$cfgfile"; exit 1)
18352 cat << \_LT_EOF >> "$cfgfile"
18354 # func_dirname file append nondir_replacement
18355 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18356 # otherwise set result to NONDIR_REPLACEMENT.
18360 */*) func_dirname_result="${1%/*}${2}" ;;
18361 * ) func_dirname_result="${3}" ;;
18365 # func_basename file
18368 func_basename_result="${1##*/}"
18371 # func_dirname_and_basename file append nondir_replacement
18372 # perform func_basename and func_dirname in a single function
18374 # dirname: Compute the dirname of FILE. If nonempty,
18375 # add APPEND to the result, otherwise set result
18376 # to NONDIR_REPLACEMENT.
18377 # value returned in "$func_dirname_result"
18378 # basename: Compute filename of FILE.
18379 # value retuned in "$func_basename_result"
18380 # Implementation must be kept synchronized with func_dirname
18381 # and func_basename. For efficiency, we do not delegate to
18382 # those functions but instead duplicate the functionality here.
18383 func_dirname_and_basename ()
18386 */*) func_dirname_result="${1%/*}${2}" ;;
18387 * ) func_dirname_result="${3}" ;;
18389 func_basename_result="${1##*/}"
18392 # func_stripname prefix suffix name
18393 # strip PREFIX and SUFFIX off of NAME.
18394 # PREFIX and SUFFIX must not contain globbing or regex special
18395 # characters, hashes, percent signs, but SUFFIX may contain a leading
18396 # dot (in which case that matches only a dot).
18399 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18400 # positional parameters, so assign one to ordinary parameter first.
18401 func_stripname_result=${3}
18402 func_stripname_result=${func_stripname_result#"${1}"}
18403 func_stripname_result=${func_stripname_result%"${2}"}
18409 func_opt_split_opt=${1%%=*}
18410 func_opt_split_arg=${1#*=}
18417 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18418 *) func_lo2o_result=${1} ;;
18422 # func_xform libobj-or-source
18425 func_xform_result=${1%.*}.lo
18428 # func_arith arithmetic-term...
18431 func_arith_result=$(( $* ))
18435 # STRING may not start with a hyphen.
18438 func_len_result=${#1}
18443 *) # Bourne compatible functions.
18444 cat << \_LT_EOF >> "$cfgfile"
18446 # func_dirname file append nondir_replacement
18447 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18448 # otherwise set result to NONDIR_REPLACEMENT.
18451 # Extract subdirectory from the argument.
18452 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18453 if test "X$func_dirname_result" = "X${1}"; then
18454 func_dirname_result="${3}"
18456 func_dirname_result="$func_dirname_result${2}"
18460 # func_basename file
18463 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18467 # func_stripname prefix suffix name
18468 # strip PREFIX and SUFFIX off of NAME.
18469 # PREFIX and SUFFIX must not contain globbing or regex special
18470 # characters, hashes, percent signs, but SUFFIX may contain a leading
18471 # dot (in which case that matches only a dot).
18472 # func_strip_suffix prefix name
18476 .*) func_stripname_result=`$ECHO "X${3}" \
18477 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18478 *) func_stripname_result=`$ECHO "X${3}" \
18479 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18484 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18485 my_sed_long_arg='1s/^-[^=]*=//'
18490 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18491 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18497 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18500 # func_xform libobj-or-source
18503 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18506 # func_arith arithmetic-term...
18509 func_arith_result=`expr "$@"`
18513 # STRING may not start with a hyphen.
18516 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18522 case $lt_shell_append in
18524 cat << \_LT_EOF >> "$cfgfile"
18526 # func_append var value
18527 # Append VALUE to the end of shell variable VAR.
18535 cat << \_LT_EOF >> "$cfgfile"
18537 # func_append var value
18538 # Append VALUE to the end of shell variable VAR.
18549 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18550 || (rm -f "$cfgfile"; exit 1)
18552 mv -f "$cfgfile" "$ofile" ||
18553 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18557 cat <<_LT_EOF >> "$ofile"
18559 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18561 # The linker used to build libraries.
18564 # Commands used to build an old-style archive.
18565 old_archive_cmds=$lt_old_archive_cmds_CXX
18567 # A language specific compiler.
18568 CC=$lt_compiler_CXX
18570 # Is the compiler the GNU compiler?
18573 # Compiler flag to turn off builtin functions.
18574 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18576 # How to pass a linker flag through the compiler.
18577 wl=$lt_lt_prog_compiler_wl_CXX
18579 # Additional compiler flags for building library objects.
18580 pic_flag=$lt_lt_prog_compiler_pic_CXX
18582 # Compiler flag to prevent dynamic linking.
18583 link_static_flag=$lt_lt_prog_compiler_static_CXX
18585 # Does compiler simultaneously support -c and -o options?
18586 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18588 # Whether or not to add -lc for building shared libraries.
18589 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18591 # Whether or not to disallow shared libs when runtime libs are static.
18592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18594 # Compiler flag to allow reflexive dlopens.
18595 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18597 # Compiler flag to generate shared objects directly from archives.
18598 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18600 # Whether the compiler copes with passing no objects directly.
18601 compiler_needs_object=$lt_compiler_needs_object_CXX
18603 # Create an old-style archive from a shared archive.
18604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18606 # Create a temporary old-style archive to link instead of a shared archive.
18607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18609 # Commands used to build a shared archive.
18610 archive_cmds=$lt_archive_cmds_CXX
18611 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18613 # Commands used to build a loadable module if different from building
18614 # a shared archive.
18615 module_cmds=$lt_module_cmds_CXX
18616 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18618 # Whether we are building with GNU ld or not.
18619 with_gnu_ld=$lt_with_gnu_ld_CXX
18621 # Flag that allows shared libraries with undefined symbols to be built.
18622 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18624 # Flag that enforces no undefined symbols.
18625 no_undefined_flag=$lt_no_undefined_flag_CXX
18627 # Flag to hardcode \$libdir into a binary during linking.
18628 # This must work even if \$libdir does not exist
18629 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18631 # If ld is used when linking, flag to hardcode \$libdir into a binary
18632 # during linking. This must work even if \$libdir does not exist.
18633 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18635 # Whether we need a single "-rpath" flag with a separated argument.
18636 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18638 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18639 # DIR into the resulting binary.
18640 hardcode_direct=$hardcode_direct_CXX
18642 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18643 # DIR into the resulting binary and the resulting library dependency is
18644 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18645 # library is relocated.
18646 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18648 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18649 # into the resulting binary.
18650 hardcode_minus_L=$hardcode_minus_L_CXX
18652 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18653 # into the resulting binary.
18654 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18656 # Set to "yes" if building a shared library automatically hardcodes DIR
18657 # into the library and all subsequent libraries and executables linked
18659 hardcode_automatic=$hardcode_automatic_CXX
18661 # Set to yes if linker adds runtime paths of dependent libraries
18662 # to runtime path list.
18663 inherit_rpath=$inherit_rpath_CXX
18665 # Whether libtool must link a program against all its dependency libraries.
18666 link_all_deplibs=$link_all_deplibs_CXX
18668 # Fix the shell variable \$srcfile for the compiler.
18669 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18671 # Set to "yes" if exported symbols are required.
18672 always_export_symbols=$always_export_symbols_CXX
18674 # The commands to list exported symbols.
18675 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18677 # Symbols that should not be listed in the preloaded symbols.
18678 exclude_expsyms=$lt_exclude_expsyms_CXX
18680 # Symbols that must always be exported.
18681 include_expsyms=$lt_include_expsyms_CXX
18683 # Commands necessary for linking programs (against libraries) with templates.
18684 prelink_cmds=$lt_prelink_cmds_CXX
18686 # Specify filename containing input files.
18687 file_list_spec=$lt_file_list_spec_CXX
18689 # How to hardcode a shared library path into an executable.
18690 hardcode_action=$hardcode_action_CXX
18692 # The directories searched by this compiler when creating a shared library.
18693 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18695 # Dependencies to place before and after the objects being linked to
18696 # create a shared library.
18697 predep_objects=$lt_predep_objects_CXX
18698 postdep_objects=$lt_postdep_objects_CXX
18699 predeps=$lt_predeps_CXX
18700 postdeps=$lt_postdeps_CXX
18702 # The library search path used internally by the compiler when linking
18703 # a shared library.
18704 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18706 # ### END LIBTOOL TAG CONFIG: CXX
18717 ac_clean_files=$ac_clean_files_save
18719 test $ac_write_fail = 0 ||
18720 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18723 # configure is writing to config.log, and then calls config.status.
18724 # config.status does its own redirection, appending to config.log.
18725 # Unfortunately, on DOS this fails, as config.log is still kept open
18726 # by configure, so config.status won't be able to write to it; its
18727 # output is simply discarded. So we exec the FD to /dev/null,
18728 # effectively closing config.log, so it can be properly (re)opened and
18729 # appended to by config.status. When coming back to configure, we
18730 # need to make the FD available again.
18731 if test "$no_create" != yes; then
18733 ac_config_status_args=
18734 test "$silent" = yes &&
18735 ac_config_status_args="$ac_config_status_args --quiet"
18737 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18739 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18740 # would make configure fail if this is the last instruction.
18741 $ac_cs_success || as_fn_exit $?
18743 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18745 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18752 echo " $PACKAGE $VERSION"
18753 echo " ==================="
18755 echo " Debug messages: ${enable_debug}"
18756 echo " Plug-ins directory: ${pluginsdir}"
18757 echo " Services directory: ${servicesdir}"