2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
595 ac_unique_file="include/attributes.h"
596 ac_default_prefix=/usr
597 # Factoring default headers for most tests.
598 ac_includes_default="\
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
610 # ifdef HAVE_STDLIB_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
633 ac_subst_vars='LTLIBOBJS
743 program_transform_name
756 enable_option_checking
767 ac_precious_vars='build_alias
778 # Initialize some variables set by options.
780 ac_init_version=false
781 ac_unrecognized_opts=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
792 program_transform_name=s,x,x,
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE}'
817 infodir='${datarootdir}/info'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
838 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 # Accept the important Cygnus configure options, so we can diagnose typos.
845 case $ac_dashdash$ac_option in
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
867 cache_file=config.cache ;;
869 -datadir | --datadir | --datadi | --datad)
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
881 -disable-* | --disable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
895 eval enable_$ac_useropt=no ;;
897 -docdir | --docdir | --docdi | --doc | --do)
899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 -enable-* | --enable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
921 eval enable_$ac_useropt=\$ac_optarg ;;
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
936 -help | --help | --hel | --he | -h)
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 htmldir=$ac_optarg ;;
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
966 -libdir | --libdir | --libdi | --libd)
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
978 -localedir | --localedir | --localedi | --localed | --locale)
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 # Obsolete; use --without-fp.
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1057 -psdir | --psdir | --psdi | --psd | --ps)
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 sbindir=$ac_optarg ;;
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 sharedstatedir=$ac_optarg ;;
1083 -site | --site | --sit)
1085 -site=* | --site=* | --sit=*)
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1112 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1125 eval with_$ac_useropt=\$ac_optarg ;;
1127 -without-* | --without-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1141 eval with_$ac_useropt=no ;;
1144 # Obsolete; use --with-x.
1147 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148 | --x-incl | --x-inc | --x-in | --x-i)
1149 ac_prev=x_includes ;;
1150 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152 x_includes=$ac_optarg ;;
1154 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156 ac_prev=x_libraries ;;
1157 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159 x_libraries=$ac_optarg ;;
1161 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162 Try \`$0 --help' for more information"
1166 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167 # Reject names that are not valid shell variable names.
1168 case $ac_envvar in #(
1169 '' | [0-9]* | *[!_$as_cr_alnum]* )
1170 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172 eval $ac_envvar=\$ac_optarg
1173 export $ac_envvar ;;
1176 # FIXME: should be removed in autoconf 3.0.
1177 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186 if test -n "$ac_prev"; then
1187 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188 as_fn_error $? "missing argument to $ac_option"
1191 if test -n "$ac_unrecognized_opts"; then
1192 case $enable_option_checking in
1194 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1195 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199 # Check all directory arguments for consistency.
1200 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
1205 eval ac_val=\$$ac_var
1206 # Remove trailing slashes.
1209 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210 eval $ac_var=\$ac_val;;
1212 # Be sure to have absolute directory names.
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1225 target=$target_alias
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 elif test "x$build_alias" != "x$host_alias"; then
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239 test "$silent" = yes && exec 6>/dev/null
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 as_fn_error $? "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 as_fn_error $? "pwd does not report name of working directory"
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 # Report the --help message.
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1316 \`configure' configures this package to adapt to many kinds of systems.
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1323 Defaults for the options are specified in brackets.
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking ...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1347 For better control, use the options below.
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 if test -n "$ac_init_help"; then
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --enable-shared[=PKGS] build shared libraries [default=yes]
1388 --enable-static[=PKGS] build static libraries [default=yes]
1389 --enable-fast-install[=PKGS]
1390 optimize for fast installation [default=yes]
1391 --disable-libtool-lock avoid locking (might break parallel builds)
1392 --enable-shared=yes/no Enable use of shared libraries default=yes
1393 --enable-gettext=yes/no Enable alternate language support default=yes
1394 --enable-lib64=yes/no Enable lib64 support default=no
1397 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1399 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1401 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1402 --with-sysroot=DIR Search for dependent libraries within DIR
1403 (or the compiler's sysroot if not specified).
1405 Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1415 Use these variables to override the choices made by `configure' or to help
1416 it to find libraries and programs with nonstandard names/locations.
1418 Report bugs to the package provider.
1423 if test "$ac_init_help" = "recursive"; then
1424 # If there are subdirs, report their specific --help.
1425 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1426 test -d "$ac_dir" ||
1427 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1435 # A ".." for each directory in $ac_dir_suffix.
1436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1437 case $ac_top_builddir_sub in
1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442 ac_abs_top_builddir=$ac_pwd
1443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444 # for backward compatibility:
1445 ac_top_builddir=$ac_top_build_prefix
1448 .) # We are building in place.
1450 ac_top_srcdir=$ac_top_builddir_sub
1451 ac_abs_top_srcdir=$ac_pwd ;;
1452 [\\/]* | ?:[\\/]* ) # Absolute name.
1453 ac_srcdir=$srcdir$ac_dir_suffix;
1454 ac_top_srcdir=$srcdir
1455 ac_abs_top_srcdir=$srcdir ;;
1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458 ac_top_srcdir=$ac_top_build_prefix$srcdir
1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1463 cd "$ac_dir" || { ac_status=$?; continue; }
1464 # Check for guested configure.
1465 if test -f "$ac_srcdir/configure.gnu"; then
1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468 elif test -f "$ac_srcdir/configure"; then
1470 $SHELL "$ac_srcdir/configure" --help=recursive
1472 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1474 cd "$ac_pwd" || { ac_status=$?; break; }
1478 test -n "$ac_init_help" && exit $ac_status
1479 if $ac_init_version; then
1482 generated by GNU Autoconf 2.69
1484 Copyright (C) 2012 Free Software Foundation, Inc.
1485 This configure script is free software; the Free Software Foundation
1486 gives unlimited permission to copy, distribute and modify it.
1491 ## ------------------------ ##
1492 ## Autoconf initialization. ##
1493 ## ------------------------ ##
1495 # ac_fn_c_try_compile LINENO
1496 # --------------------------
1497 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1498 ac_fn_c_try_compile ()
1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501 rm -f conftest.$ac_objext
1502 if { { ac_try="$ac_compile"
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508 $as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_compile") 2>conftest.err
1511 if test -s conftest.err; then
1512 grep -v '^ *+' conftest.err >conftest.er1
1513 cat conftest.er1 >&5
1514 mv -f conftest.er1 conftest.err
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } && {
1518 test -z "$ac_c_werror_flag" ||
1519 test ! -s conftest.err
1520 } && test -s conftest.$ac_objext; then :
1523 $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529 as_fn_set_status $ac_retval
1531 } # ac_fn_c_try_compile
1533 # ac_fn_c_try_link LINENO
1534 # -----------------------
1535 # Try to link conftest.$ac_ext, and return whether this succeeded.
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext conftest$ac_exeext
1540 if { { ac_try="$ac_link"
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_link") 2>conftest.err
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest$ac_exeext && {
1559 test "$cross_compiling" = yes ||
1560 test -x conftest$ac_exeext
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1569 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1570 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1571 # interfere with the next link command; also delete a directory that is
1572 # left behind by Apple's compiler. We do this before executing the actions.
1573 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 as_fn_set_status $ac_retval
1577 } # ac_fn_c_try_link
1579 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1580 # -------------------------------------------------------
1581 # Tests whether HEADER exists and can be compiled using the include files in
1582 # INCLUDES, setting the cache variable VAR accordingly.
1583 ac_fn_c_check_header_compile ()
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587 $as_echo_n "checking for $2... " >&6; }
1588 if eval \${$3+:} false; then :
1589 $as_echo_n "(cached) " >&6
1591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592 /* end confdefs.h. */
1596 if ac_fn_c_try_compile "$LINENO"; then :
1601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605 $as_echo "$ac_res" >&6; }
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 } # ac_fn_c_check_header_compile
1610 # ac_fn_c_try_cpp LINENO
1611 # ----------------------
1612 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if { { ac_try="$ac_cpp conftest.$ac_ext"
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } > conftest.i && {
1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1647 # ac_fn_c_try_run LINENO
1648 # ----------------------
1649 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1650 # that executables *can* be run.
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_link"
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_link") 2>&5
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1665 { { case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_try") 2>&5
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; }; }; then :
1677 $as_echo "$as_me: program exited with status $ac_status" >&5
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1681 ac_retval=$ac_status
1683 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1689 # ac_fn_c_check_func LINENO FUNC VAR
1690 # ----------------------------------
1691 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1692 ac_fn_c_check_func ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698 $as_echo_n "(cached) " >&6
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1702 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1704 #define $2 innocuous_$2
1706 /* System header to define __stub macros and hopefully few prototypes,
1707 which can conflict with char $2 (); below.
1708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1709 <limits.h> exists even on freestanding compilers. */
1712 # include <limits.h>
1714 # include <assert.h>
1719 /* Override any GCC internal prototype to avoid an error.
1720 Use char because int might match the return type of a GCC
1721 builtin and then its argument prototype would still apply. */
1726 /* The GNU C library defines this for functions which it implements
1727 to always fail with ENOSYS. Some functions are actually named
1728 something starting with __ and the normal name is an alias. */
1729 #if defined __stub_$2 || defined __stub___$2
1741 if ac_fn_c_try_link "$LINENO"; then :
1746 rm -f core conftest.err conftest.$ac_objext \
1747 conftest$ac_exeext conftest.$ac_ext
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 } # ac_fn_c_check_func
1756 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1757 # -------------------------------------------
1758 # Tests whether TYPE exists after having included INCLUDES, setting cache
1759 # variable VAR accordingly.
1760 ac_fn_c_check_type ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1781 if ac_fn_c_try_compile "$LINENO"; then :
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1794 if ac_fn_c_try_compile "$LINENO"; then :
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 } # ac_fn_c_check_type
1809 cat >config.log <<_ACEOF
1810 This file contains any messages produced by compilers while
1811 running configure, to aid debugging if configure makes a mistake.
1813 It was created by $as_me, which was
1814 generated by GNU Autoconf 2.69. Invocation command line was
1826 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1827 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1828 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1829 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1830 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1832 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1833 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1835 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1836 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1837 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1838 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1839 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1840 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1841 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 test -z "$as_dir" && as_dir=.
1850 $as_echo "PATH: $as_dir"
1866 # Keep a trace of the command line.
1867 # Strip out --no-create and --no-recursion so they do not pile up.
1868 # Strip out --silent because we don't want to record it for future runs.
1869 # Also quote any args containing shell meta-characters.
1870 # Make two passes to allow for proper duplicate-argument suppression.
1874 ac_must_keep_next=false
1880 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1882 | -silent | --silent | --silen | --sile | --sil)
1885 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1888 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1890 as_fn_append ac_configure_args1 " '$ac_arg'"
1891 if test $ac_must_keep_next = true; then
1892 ac_must_keep_next=false # Got value, back to normal.
1895 *=* | --config-cache | -C | -disable-* | --disable-* \
1896 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1897 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1898 | -with-* | --with-* | -without-* | --without-* | --x)
1899 case "$ac_configure_args0 " in
1900 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1903 -* ) ac_must_keep_next=true ;;
1906 as_fn_append ac_configure_args " '$ac_arg'"
1911 { ac_configure_args0=; unset ac_configure_args0;}
1912 { ac_configure_args1=; unset ac_configure_args1;}
1914 # When interrupted or exit'd, cleanup temporary files, and complete
1915 # config.log. We remove comments because anyway the quotes in there
1916 # would cause problems or look ugly.
1917 # WARNING: Use '\'' to represent an apostrophe within the trap.
1918 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1919 trap 'exit_status=$?
1920 # Save into config.log some information that might help in debugging.
1924 $as_echo "## ---------------- ##
1925 ## Cache variables. ##
1926 ## ---------------- ##"
1928 # The following way of writing the cache mishandles newlines in values,
1930 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1931 eval ac_val=\$$ac_var
1935 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1936 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1939 _ | IFS | as_nl) ;; #(
1940 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1941 *) { eval $ac_var=; unset $ac_var;} ;;
1946 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1947 *${as_nl}ac_space=\ *)
1949 "s/'\''/'\''\\\\'\'''\''/g;
1950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1960 $as_echo "## ----------------- ##
1961 ## Output variables. ##
1962 ## ----------------- ##"
1964 for ac_var in $ac_subst_vars
1966 eval ac_val=\$$ac_var
1968 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1970 $as_echo "$ac_var='\''$ac_val'\''"
1974 if test -n "$ac_subst_files"; then
1975 $as_echo "## ------------------- ##
1976 ## File substitutions. ##
1977 ## ------------------- ##"
1979 for ac_var in $ac_subst_files
1981 eval ac_val=\$$ac_var
1983 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1985 $as_echo "$ac_var='\''$ac_val'\''"
1990 if test -s confdefs.h; then
1991 $as_echo "## ----------- ##
1998 test "$ac_signal" != 0 &&
1999 $as_echo "$as_me: caught signal $ac_signal"
2000 $as_echo "$as_me: exit $exit_status"
2002 rm -f core *.core core.conftest.* &&
2003 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2006 for ac_signal in 1 2 13 15; do
2007 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2011 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2012 rm -f -r conftest* confdefs.h
2014 $as_echo "/* confdefs.h */" > confdefs.h
2016 # Predefined preprocessor variables.
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_NAME "$PACKAGE_NAME"
2022 cat >>confdefs.h <<_ACEOF
2023 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2026 cat >>confdefs.h <<_ACEOF
2027 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_STRING "$PACKAGE_STRING"
2034 cat >>confdefs.h <<_ACEOF
2035 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2038 cat >>confdefs.h <<_ACEOF
2039 #define PACKAGE_URL "$PACKAGE_URL"
2043 # Let the site file select an alternate cache file if it wants to.
2044 # Prefer an explicitly selected file to automatically selected ones.
2047 if test -n "$CONFIG_SITE"; then
2048 # We do not want a PATH search for config.site.
2049 case $CONFIG_SITE in #((
2050 -*) ac_site_file1=./$CONFIG_SITE;;
2051 */*) ac_site_file1=$CONFIG_SITE;;
2052 *) ac_site_file1=./$CONFIG_SITE;;
2054 elif test "x$prefix" != xNONE; then
2055 ac_site_file1=$prefix/share/config.site
2056 ac_site_file2=$prefix/etc/config.site
2058 ac_site_file1=$ac_default_prefix/share/config.site
2059 ac_site_file2=$ac_default_prefix/etc/config.site
2061 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2063 test "x$ac_site_file" = xNONE && continue
2064 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2066 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2067 sed 's/^/| /' "$ac_site_file" >&5
2069 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2071 as_fn_error $? "failed to load site script $ac_site_file
2072 See \`config.log' for more details" "$LINENO" 5; }
2076 if test -r "$cache_file"; then
2077 # Some versions of bash will fail to source /dev/null (special files
2078 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2079 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2081 $as_echo "$as_me: loading cache $cache_file" >&6;}
2083 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2084 *) . "./$cache_file";;
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2089 $as_echo "$as_me: creating cache $cache_file" >&6;}
2093 # Check that the precious variables saved in the cache have kept the same
2095 ac_cache_corrupted=false
2096 for ac_var in $ac_precious_vars; do
2097 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2098 eval ac_new_set=\$ac_env_${ac_var}_set
2099 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2100 eval ac_new_val=\$ac_env_${ac_var}_value
2101 case $ac_old_set,$ac_new_set in
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2104 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2105 ac_cache_corrupted=: ;;
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2108 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2109 ac_cache_corrupted=: ;;
2112 if test "x$ac_old_val" != "x$ac_new_val"; then
2113 # differences in whitespace do not lead to failure.
2114 ac_old_val_w=`echo x $ac_old_val`
2115 ac_new_val_w=`echo x $ac_new_val`
2116 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2118 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2119 ac_cache_corrupted=:
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2122 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2123 eval $ac_var=\$ac_old_val
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2126 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2128 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2131 # Pass precious variables to config.status.
2132 if test "$ac_new_set" = set; then
2134 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2135 *) ac_arg=$ac_var=$ac_new_val ;;
2137 case " $ac_configure_args " in
2138 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2139 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2143 if $ac_cache_corrupted; then
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2147 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2148 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2150 ## -------------------- ##
2151 ## Main body of script. ##
2152 ## -------------------- ##
2155 ac_cpp='$CPP $CPPFLAGS'
2156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2162 for ac_dir in . "$srcdir"/.; do
2163 if test -f "$ac_dir/install-sh"; then
2165 ac_install_sh="$ac_aux_dir/install-sh -c"
2167 elif test -f "$ac_dir/install.sh"; then
2169 ac_install_sh="$ac_aux_dir/install.sh -c"
2171 elif test -f "$ac_dir/shtool"; then
2173 ac_install_sh="$ac_aux_dir/shtool install -c"
2177 if test -z "$ac_aux_dir"; then
2178 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2181 # These three variables are undocumented and unsupported,
2182 # and are intended to be withdrawn in a future Autoconf release.
2183 # They can cause serious problems if a builder's source tree is in a directory
2184 # whose full name contains unusual characters.
2185 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2186 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2187 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2191 ac_config_headers="$ac_config_headers include/config.h"
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2198 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2203 macro_version='2.4.2'
2204 macro_revision='1.3337'
2218 ltmain="$ac_aux_dir/ltmain.sh"
2220 # Make sure we can run config.sub.
2221 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2222 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2225 $as_echo_n "checking build system type... " >&6; }
2226 if ${ac_cv_build+:} false; then :
2227 $as_echo_n "(cached) " >&6
2229 ac_build_alias=$build_alias
2230 test "x$ac_build_alias" = x &&
2231 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2232 test "x$ac_build_alias" = x &&
2233 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2234 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2235 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2239 $as_echo "$ac_cv_build" >&6; }
2240 case $ac_cv_build in
2242 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2245 ac_save_IFS=$IFS; IFS='-'
2251 # Remember, the first character of IFS is used to create $*,
2252 # except with old shells:
2255 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2259 $as_echo_n "checking host system type... " >&6; }
2260 if ${ac_cv_host+:} false; then :
2261 $as_echo_n "(cached) " >&6
2263 if test "x$host_alias" = x; then
2264 ac_cv_host=$ac_cv_build
2266 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2267 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2272 $as_echo "$ac_cv_host" >&6; }
2275 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2278 ac_save_IFS=$IFS; IFS='-'
2284 # Remember, the first character of IFS is used to create $*,
2285 # except with old shells:
2288 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2291 # Backslashify metacharacters that are still active within
2292 # double-quoted strings.
2293 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2295 # Same as above, but do not quote variable references.
2296 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2298 # Sed substitution to delay expansion of an escaped shell variable in a
2299 # double_quote_subst'ed string.
2300 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2302 # Sed substitution to delay expansion of an escaped single quote.
2303 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2305 # Sed substitution to avoid accidental globbing in evaled expressions
2306 no_glob_subst='s/\*/\\\*/g'
2308 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2309 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2310 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2313 $as_echo_n "checking how to print strings... " >&6; }
2314 # Test print first, because it will be a builtin if present.
2315 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2316 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2318 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2321 # Use this function as a fallback that always works.
2322 func_fallback_echo ()
2324 eval 'cat <<_LTECHO_EOF
2328 ECHO='func_fallback_echo'
2331 # func_echo_all arg...
2332 # Invoke $ECHO with all args, space-separated.
2339 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2340 $as_echo "printf" >&6; } ;;
2341 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2342 $as_echo "print -r" >&6; } ;;
2343 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2344 $as_echo "cat" >&6; } ;;
2361 ac_cpp='$CPP $CPPFLAGS'
2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365 if test -n "$ac_tool_prefix"; then
2366 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2367 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2369 $as_echo_n "checking for $ac_word... " >&6; }
2370 if ${ac_cv_prog_CC+:} false; then :
2371 $as_echo_n "(cached) " >&6
2373 if test -n "$CC"; then
2374 ac_cv_prog_CC="$CC" # Let the user override the test.
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 test -z "$as_dir" && as_dir=.
2381 for ac_exec_ext in '' $ac_executable_extensions; do
2382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2383 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 if test -n "$CC"; then
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2396 $as_echo "$CC" >&6; }
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2399 $as_echo "no" >&6; }
2404 if test -z "$ac_cv_prog_CC"; then
2406 # Extract the first word of "gcc", so it can be a program name with args.
2407 set dummy gcc; ac_word=$2
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2409 $as_echo_n "checking for $ac_word... " >&6; }
2410 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2411 $as_echo_n "(cached) " >&6
2413 if test -n "$ac_ct_CC"; then
2414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423 ac_cv_prog_ac_ct_CC="gcc"
2424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2434 if test -n "$ac_ct_CC"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2436 $as_echo "$ac_ct_CC" >&6; }
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2439 $as_echo "no" >&6; }
2442 if test "x$ac_ct_CC" = x; then
2445 case $cross_compiling:$ac_tool_warned in
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2449 ac_tool_warned=yes ;;
2457 if test -z "$CC"; then
2458 if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}cc; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_CC+:} false; then :
2464 $as_echo_n "(cached) " >&6
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476 ac_cv_prog_CC="${ac_tool_prefix}cc"
2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 if test -n "$CC"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2489 $as_echo "$CC" >&6; }
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2498 if test -z "$CC"; then
2499 # Extract the first word of "cc", so it can be a program name with args.
2500 set dummy cc; ac_word=$2
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502 $as_echo_n "checking for $ac_word... " >&6; }
2503 if ${ac_cv_prog_CC+:} false; then :
2504 $as_echo_n "(cached) " >&6
2506 if test -n "$CC"; then
2507 ac_cv_prog_CC="$CC" # Let the user override the test.
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2517 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2518 ac_prog_rejected=yes
2522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 if test $ac_prog_rejected = yes; then
2530 # We found a bogon in the path, so make sure we never use it.
2531 set dummy $ac_cv_prog_CC
2533 if test $# != 0; then
2534 # We chose a different compiler from the bogus one.
2535 # However, it has the same basename, so the bogon will be chosen
2536 # first if we set CC to just the basename; use the full file name.
2538 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2544 if test -n "$CC"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2546 $as_echo "$CC" >&6; }
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549 $as_echo "no" >&6; }
2554 if test -z "$CC"; then
2555 if test -n "$ac_tool_prefix"; then
2556 for ac_prog in cl.exe
2558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if ${ac_cv_prog_CC+:} false; then :
2563 $as_echo_n "(cached) " >&6
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 if test -n "$CC"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2588 $as_echo "$CC" >&6; }
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2595 test -n "$CC" && break
2598 if test -z "$CC"; then
2600 for ac_prog in cl.exe
2602 # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2607 $as_echo_n "(cached) " >&6
2609 if test -n "$ac_ct_CC"; then
2610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 ac_cv_prog_ac_ct_CC="$ac_prog"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2630 if test -n "$ac_ct_CC"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2632 $as_echo "$ac_ct_CC" >&6; }
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2639 test -n "$ac_ct_CC" && break
2642 if test "x$ac_ct_CC" = x; then
2645 case $cross_compiling:$ac_tool_warned in
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2649 ac_tool_warned=yes ;;
2658 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660 as_fn_error $? "no acceptable C compiler found in \$PATH
2661 See \`config.log' for more details" "$LINENO" 5; }
2663 # Provide some information about the compiler.
2664 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2667 for ac_option in --version -v -V -qversion; do
2668 { { ac_try="$ac_compiler $ac_option >&5"
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2674 $as_echo "$ac_try_echo"; } >&5
2675 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2677 if test -s conftest.err; then
2679 ... rest of stderr output deleted ...
2680 10q' conftest.err >conftest.er1
2681 cat conftest.er1 >&5
2683 rm -f conftest.er1 conftest.err
2684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2685 test $ac_status = 0; }
2688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2689 /* end confdefs.h. */
2699 ac_clean_files_save=$ac_clean_files
2700 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2701 # Try to create an executable without -o first, disregard a.out.
2702 # It will help us diagnose broken compilers, and finding out an intuition
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2705 $as_echo_n "checking whether the C compiler works... " >&6; }
2706 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2708 # The possible output files:
2709 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2712 for ac_file in $ac_files
2715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2716 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2721 if { { ac_try="$ac_link_default"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2727 $as_echo "$ac_try_echo"; } >&5
2728 (eval "$ac_link_default") 2>&5
2730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2731 test $ac_status = 0; }; then :
2732 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2733 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2734 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2735 # so that the user can short-circuit this test for compilers unknown to
2737 for ac_file in $ac_files ''
2739 test -f "$ac_file" || continue
2741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2744 # We found the default executable, but exeext='' is most
2748 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2750 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2752 # We set ac_cv_exeext here because the later test for it is not
2753 # safe: cross compilers may not add the suffix if given an `-o'
2754 # argument, so we may need to know it at that point already.
2755 # Even if this section looks crufty: it has the advantage of
2762 test "$ac_cv_exeext" = no && ac_cv_exeext=
2767 if test -z "$ac_file"; then :
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2770 $as_echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2775 as_fn_error 77 "C compiler cannot create executables
2776 See \`config.log' for more details" "$LINENO" 5; }
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2779 $as_echo "yes" >&6; }
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2782 $as_echo_n "checking for C compiler default output file name... " >&6; }
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2784 $as_echo "$ac_file" >&6; }
2785 ac_exeext=$ac_cv_exeext
2787 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2788 ac_clean_files=$ac_clean_files_save
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2790 $as_echo_n "checking for suffix of executables... " >&6; }
2791 if { { ac_try="$ac_link"
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2797 $as_echo "$ac_try_echo"; } >&5
2798 (eval "$ac_link") 2>&5
2800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2801 test $ac_status = 0; }; then :
2802 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2803 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2804 # work properly (i.e., refer to `conftest.exe'), while it won't with
2806 for ac_file in conftest.exe conftest conftest.*; do
2807 test -f "$ac_file" || continue
2809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2810 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2818 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2819 See \`config.log' for more details" "$LINENO" 5; }
2821 rm -f conftest conftest$ac_cv_exeext
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2823 $as_echo "$ac_cv_exeext" >&6; }
2825 rm -f conftest.$ac_ext
2826 EXEEXT=$ac_cv_exeext
2828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829 /* end confdefs.h. */
2834 FILE *f = fopen ("conftest.out", "w");
2835 return ferror (f) || fclose (f) != 0;
2841 ac_clean_files="$ac_clean_files conftest.out"
2842 # Check that the compiler produces executables we can run. If not, either
2843 # the compiler is broken, or we cross compile.
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2845 $as_echo_n "checking whether we are cross compiling... " >&6; }
2846 if test "$cross_compiling" != yes; then
2847 { { ac_try="$ac_link"
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853 $as_echo "$ac_try_echo"; } >&5
2854 (eval "$ac_link") 2>&5
2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; }
2858 if { ac_try='./conftest$ac_cv_exeext'
2859 { { case "(($ac_try" in
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2864 $as_echo "$ac_try_echo"; } >&5
2865 (eval "$ac_try") 2>&5
2867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2868 test $ac_status = 0; }; }; then
2871 if test "$cross_compiling" = maybe; then
2874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2876 as_fn_error $? "cannot run C compiled programs.
2877 If you meant to cross compile, use \`--host'.
2878 See \`config.log' for more details" "$LINENO" 5; }
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2883 $as_echo "$cross_compiling" >&6; }
2885 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2886 ac_clean_files=$ac_clean_files_save
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2888 $as_echo_n "checking for suffix of object files... " >&6; }
2889 if ${ac_cv_objext+:} false; then :
2890 $as_echo_n "(cached) " >&6
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2903 rm -f conftest.o conftest.obj
2904 if { { ac_try="$ac_compile"
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910 $as_echo "$ac_try_echo"; } >&5
2911 (eval "$ac_compile") 2>&5
2913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914 test $ac_status = 0; }; then :
2915 for ac_file in conftest.o conftest.obj conftest.*; do
2916 test -f "$ac_file" || continue;
2918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2919 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2924 $as_echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929 as_fn_error $? "cannot compute suffix of object files: cannot compile
2930 See \`config.log' for more details" "$LINENO" 5; }
2932 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2935 $as_echo "$ac_cv_objext" >&6; }
2936 OBJEXT=$ac_cv_objext
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2939 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2940 if ${ac_cv_c_compiler_gnu+:} false; then :
2941 $as_echo_n "(cached) " >&6
2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944 /* end confdefs.h. */
2957 if ac_fn_c_try_compile "$LINENO"; then :
2962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2967 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2968 if test $ac_compiler_gnu = yes; then
2973 ac_test_CFLAGS=${CFLAGS+set}
2974 ac_save_CFLAGS=$CFLAGS
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2976 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2977 if ${ac_cv_prog_cc_g+:} false; then :
2978 $as_echo_n "(cached) " >&6
2980 ac_save_c_werror_flag=$ac_c_werror_flag
2981 ac_c_werror_flag=yes
2984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2985 /* end confdefs.h. */
2995 if ac_fn_c_try_compile "$LINENO"; then :
2999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000 /* end confdefs.h. */
3010 if ac_fn_c_try_compile "$LINENO"; then :
3013 ac_c_werror_flag=$ac_save_c_werror_flag
3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h. */
3026 if ac_fn_c_try_compile "$LINENO"; then :
3029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034 ac_c_werror_flag=$ac_save_c_werror_flag
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3037 $as_echo "$ac_cv_prog_cc_g" >&6; }
3038 if test "$ac_test_CFLAGS" = set; then
3039 CFLAGS=$ac_save_CFLAGS
3040 elif test $ac_cv_prog_cc_g = yes; then
3041 if test "$GCC" = yes; then
3047 if test "$GCC" = yes; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3054 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3055 if ${ac_cv_prog_cc_c89+:} false; then :
3056 $as_echo_n "(cached) " >&6
3058 ac_cv_prog_cc_c89=no
3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h. */
3065 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3066 struct buf { int x; };
3067 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3068 static char *e (p, i)
3074 static char *f (char * (*g) (char **, int), char **p, ...)
3079 s = g (p, va_arg (v,int));
3084 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3085 function prototypes and stuff, but not '\xHH' hex character constants.
3086 These don't provoke an error unfortunately, instead are silently treated
3087 as 'x'. The following induces an error, until -std is added to get
3088 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3089 array size at least. It's necessary to write '\x00'==0 to get something
3090 that's true only with -std. */
3091 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3093 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3094 inside strings and character constants. */
3096 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3098 int test (int i, double x);
3099 struct s1 {int (*f) (int a);};
3100 struct s2 {int (*f) (double a);};
3101 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3107 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3112 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3113 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3115 CC="$ac_save_CC $ac_arg"
3116 if ac_fn_c_try_compile "$LINENO"; then :
3117 ac_cv_prog_cc_c89=$ac_arg
3119 rm -f core conftest.err conftest.$ac_objext
3120 test "x$ac_cv_prog_cc_c89" != "xno" && break
3122 rm -f conftest.$ac_ext
3127 case "x$ac_cv_prog_cc_c89" in
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3130 $as_echo "none needed" >&6; } ;;
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3133 $as_echo "unsupported" >&6; } ;;
3135 CC="$CC $ac_cv_prog_cc_c89"
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3137 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3139 if test "x$ac_cv_prog_cc_c89" != xno; then :
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3150 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3151 if ${ac_cv_path_SED+:} false; then :
3152 $as_echo_n "(cached) " >&6
3154 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3155 for ac_i in 1 2 3 4 5 6 7; do
3156 ac_script="$ac_script$as_nl$ac_script"
3158 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3159 { ac_script=; unset ac_script;}
3160 if test -z "$SED"; then
3161 ac_path_SED_found=false
3162 # Loop through the user's path and test for each of PROGNAME-LIST
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 test -z "$as_dir" && as_dir=.
3168 for ac_prog in sed gsed; do
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3171 as_fn_executable_p "$ac_path_SED" || continue
3172 # Check for GNU ac_path_SED and select it if it is found.
3173 # Check for GNU $ac_path_SED
3174 case `"$ac_path_SED" --version 2>&1` in
3176 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3179 $as_echo_n 0123456789 >"conftest.in"
3182 cat "conftest.in" "conftest.in" >"conftest.tmp"
3183 mv "conftest.tmp" "conftest.in"
3184 cp "conftest.in" "conftest.nl"
3185 $as_echo '' >> "conftest.nl"
3186 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3188 as_fn_arith $ac_count + 1 && ac_count=$as_val
3189 if test $ac_count -gt ${ac_path_SED_max-0}; then
3190 # Best one so far, save it but keep looking for a better one
3191 ac_cv_path_SED="$ac_path_SED"
3192 ac_path_SED_max=$ac_count
3194 # 10*(2^10) chars as input seems more than enough
3195 test $ac_count -gt 10 && break
3197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3200 $ac_path_SED_found && break 3
3205 if test -z "$ac_cv_path_SED"; then
3206 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3214 $as_echo "$ac_cv_path_SED" >&6; }
3215 SED="$ac_cv_path_SED"
3218 test -z "$SED" && SED=sed
3219 Xsed="$SED -e 1s/^X//"
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3232 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3233 if ${ac_cv_path_GREP+:} false; then :
3234 $as_echo_n "(cached) " >&6
3236 if test -z "$GREP"; then
3237 ac_path_GREP_found=false
3238 # Loop through the user's path and test for each of PROGNAME-LIST
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3243 test -z "$as_dir" && as_dir=.
3244 for ac_prog in grep ggrep; do
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3247 as_fn_executable_p "$ac_path_GREP" || continue
3248 # Check for GNU ac_path_GREP and select it if it is found.
3249 # Check for GNU $ac_path_GREP
3250 case `"$ac_path_GREP" --version 2>&1` in
3252 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3255 $as_echo_n 0123456789 >"conftest.in"
3258 cat "conftest.in" "conftest.in" >"conftest.tmp"
3259 mv "conftest.tmp" "conftest.in"
3260 cp "conftest.in" "conftest.nl"
3261 $as_echo 'GREP' >> "conftest.nl"
3262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3264 as_fn_arith $ac_count + 1 && ac_count=$as_val
3265 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3266 # Best one so far, save it but keep looking for a better one
3267 ac_cv_path_GREP="$ac_path_GREP"
3268 ac_path_GREP_max=$ac_count
3270 # 10*(2^10) chars as input seems more than enough
3271 test $ac_count -gt 10 && break
3273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3276 $ac_path_GREP_found && break 3
3281 if test -z "$ac_cv_path_GREP"; then
3282 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3285 ac_cv_path_GREP=$GREP
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3290 $as_echo "$ac_cv_path_GREP" >&6; }
3291 GREP="$ac_cv_path_GREP"
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3295 $as_echo_n "checking for egrep... " >&6; }
3296 if ${ac_cv_path_EGREP+:} false; then :
3297 $as_echo_n "(cached) " >&6
3299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3300 then ac_cv_path_EGREP="$GREP -E"
3302 if test -z "$EGREP"; then
3303 ac_path_EGREP_found=false
3304 # Loop through the user's path and test for each of PROGNAME-LIST
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3309 test -z "$as_dir" && as_dir=.
3310 for ac_prog in egrep; do
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3313 as_fn_executable_p "$ac_path_EGREP" || continue
3314 # Check for GNU ac_path_EGREP and select it if it is found.
3315 # Check for GNU $ac_path_EGREP
3316 case `"$ac_path_EGREP" --version 2>&1` in
3318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3321 $as_echo_n 0123456789 >"conftest.in"
3324 cat "conftest.in" "conftest.in" >"conftest.tmp"
3325 mv "conftest.tmp" "conftest.in"
3326 cp "conftest.in" "conftest.nl"
3327 $as_echo 'EGREP' >> "conftest.nl"
3328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3330 as_fn_arith $ac_count + 1 && ac_count=$as_val
3331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3332 # Best one so far, save it but keep looking for a better one
3333 ac_cv_path_EGREP="$ac_path_EGREP"
3334 ac_path_EGREP_max=$ac_count
3336 # 10*(2^10) chars as input seems more than enough
3337 test $ac_count -gt 10 && break
3339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3342 $ac_path_EGREP_found && break 3
3347 if test -z "$ac_cv_path_EGREP"; then
3348 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3351 ac_cv_path_EGREP=$EGREP
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3357 $as_echo "$ac_cv_path_EGREP" >&6; }
3358 EGREP="$ac_cv_path_EGREP"
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3362 $as_echo_n "checking for fgrep... " >&6; }
3363 if ${ac_cv_path_FGREP+:} false; then :
3364 $as_echo_n "(cached) " >&6
3366 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3367 then ac_cv_path_FGREP="$GREP -F"
3369 if test -z "$FGREP"; then
3370 ac_path_FGREP_found=false
3371 # Loop through the user's path and test for each of PROGNAME-LIST
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3376 test -z "$as_dir" && as_dir=.
3377 for ac_prog in fgrep; do
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3380 as_fn_executable_p "$ac_path_FGREP" || continue
3381 # Check for GNU ac_path_FGREP and select it if it is found.
3382 # Check for GNU $ac_path_FGREP
3383 case `"$ac_path_FGREP" --version 2>&1` in
3385 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3388 $as_echo_n 0123456789 >"conftest.in"
3391 cat "conftest.in" "conftest.in" >"conftest.tmp"
3392 mv "conftest.tmp" "conftest.in"
3393 cp "conftest.in" "conftest.nl"
3394 $as_echo 'FGREP' >> "conftest.nl"
3395 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3397 as_fn_arith $ac_count + 1 && ac_count=$as_val
3398 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3399 # Best one so far, save it but keep looking for a better one
3400 ac_cv_path_FGREP="$ac_path_FGREP"
3401 ac_path_FGREP_max=$ac_count
3403 # 10*(2^10) chars as input seems more than enough
3404 test $ac_count -gt 10 && break
3406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3409 $ac_path_FGREP_found && break 3
3414 if test -z "$ac_cv_path_FGREP"; then
3415 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3418 ac_cv_path_FGREP=$FGREP
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3424 $as_echo "$ac_cv_path_FGREP" >&6; }
3425 FGREP="$ac_cv_path_FGREP"
3428 test -z "$GREP" && GREP=grep
3448 # Check whether --with-gnu-ld was given.
3449 if test "${with_gnu_ld+set}" = set; then :
3450 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3456 if test "$GCC" = yes; then
3457 # Check if gcc -print-prog-name=ld gives a path.
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3459 $as_echo_n "checking for ld used by $CC... " >&6; }
3462 # gcc leaves a trailing carriage return which upsets mingw
3463 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3465 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3468 # Accept absolute paths.
3470 re_direlt='/[^/][^/]*/\.\./'
3471 # Canonicalize the pathname of ld
3472 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3473 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3474 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3476 test -z "$LD" && LD="$ac_prog"
3479 # If it fails, then pretend we aren't using GCC.
3483 # If it is relative, then search for the first ld in PATH.
3487 elif test "$with_gnu_ld" = yes; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3489 $as_echo_n "checking for GNU ld... " >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3492 $as_echo_n "checking for non-GNU ld... " >&6; }
3494 if ${lt_cv_path_LD+:} false; then :
3495 $as_echo_n "(cached) " >&6
3497 if test -z "$LD"; then
3498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3499 for ac_dir in $PATH; do
3501 test -z "$ac_dir" && ac_dir=.
3502 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3503 lt_cv_path_LD="$ac_dir/$ac_prog"
3504 # Check to see if the program is GNU ld. I'd rather use --version,
3505 # but apparently some variants of GNU ld only accept -v.
3506 # Break only if it was the GNU/non-GNU ld that we prefer.
3507 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3508 *GNU* | *'with BFD'*)
3509 test "$with_gnu_ld" != no && break
3512 test "$with_gnu_ld" != yes && break
3519 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3524 if test -n "$LD"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3526 $as_echo "$LD" >&6; }
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3531 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3533 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3534 if ${lt_cv_prog_gnu_ld+:} false; then :
3535 $as_echo_n "(cached) " >&6
3537 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3538 case `$LD -v 2>&1 </dev/null` in
3539 *GNU* | *'with BFD'*)
3540 lt_cv_prog_gnu_ld=yes
3543 lt_cv_prog_gnu_ld=no
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3548 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3549 with_gnu_ld=$lt_cv_prog_gnu_ld
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3560 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3561 if ${lt_cv_path_NM+:} false; then :
3562 $as_echo_n "(cached) " >&6
3564 if test -n "$NM"; then
3565 # Let the user override the test.
3568 lt_nm_to_check="${ac_tool_prefix}nm"
3569 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3570 lt_nm_to_check="$lt_nm_to_check nm"
3572 for lt_tmp_nm in $lt_nm_to_check; do
3573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3574 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3576 test -z "$ac_dir" && ac_dir=.
3577 tmp_nm="$ac_dir/$lt_tmp_nm"
3578 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3579 # Check to see if the nm accepts a BSD-compat flag.
3580 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3581 # nm: unknown option "B" ignored
3582 # Tru64's nm complains that /dev/null is an invalid object file
3583 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3584 */dev/null* | *'Invalid file or object type'*)
3585 lt_cv_path_NM="$tmp_nm -B"
3589 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3591 lt_cv_path_NM="$tmp_nm -p"
3595 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3596 continue # so that we can try to find one that supports BSD flags
3605 : ${lt_cv_path_NM=no}
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3609 $as_echo "$lt_cv_path_NM" >&6; }
3610 if test "$lt_cv_path_NM" != "no"; then
3613 # Didn't find any BSD compatible name lister, look for dumpbin.
3614 if test -n "$DUMPBIN"; then :
3615 # Let the user override the test.
3617 if test -n "$ac_tool_prefix"; then
3618 for ac_prog in dumpbin "link -dump"
3620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623 $as_echo_n "checking for $ac_word... " >&6; }
3624 if ${ac_cv_prog_DUMPBIN+:} false; then :
3625 $as_echo_n "(cached) " >&6
3627 if test -n "$DUMPBIN"; then
3628 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 DUMPBIN=$ac_cv_prog_DUMPBIN
3648 if test -n "$DUMPBIN"; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3650 $as_echo "$DUMPBIN" >&6; }
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3657 test -n "$DUMPBIN" && break
3660 if test -z "$DUMPBIN"; then
3661 ac_ct_DUMPBIN=$DUMPBIN
3662 for ac_prog in dumpbin "link -dump"
3664 # Extract the first word of "$ac_prog", so it can be a program name with args.
3665 set dummy $ac_prog; ac_word=$2
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3669 $as_echo_n "(cached) " >&6
3671 if test -n "$ac_ct_DUMPBIN"; then
3672 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3681 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3692 if test -n "$ac_ct_DUMPBIN"; then
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3694 $as_echo "$ac_ct_DUMPBIN" >&6; }
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3701 test -n "$ac_ct_DUMPBIN" && break
3704 if test "x$ac_ct_DUMPBIN" = x; then
3707 case $cross_compiling:$ac_tool_warned in
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3711 ac_tool_warned=yes ;;
3713 DUMPBIN=$ac_ct_DUMPBIN
3717 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3719 DUMPBIN="$DUMPBIN -symbols"
3727 if test "$DUMPBIN" != ":"; then
3731 test -z "$NM" && NM=nm
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3739 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3740 if ${lt_cv_nm_interface+:} false; then :
3741 $as_echo_n "(cached) " >&6
3743 lt_cv_nm_interface="BSD nm"
3744 echo "int some_variable = 0;" > conftest.$ac_ext
3745 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3746 (eval "$ac_compile" 2>conftest.err)
3747 cat conftest.err >&5
3748 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3749 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3750 cat conftest.err >&5
3751 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3752 cat conftest.out >&5
3753 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3754 lt_cv_nm_interface="MS dumpbin"
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3759 $as_echo "$lt_cv_nm_interface" >&6; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3762 $as_echo_n "checking whether ln -s works... " >&6; }
3764 if test "$LN_S" = "ln -s"; then
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3766 $as_echo "yes" >&6; }
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3769 $as_echo "no, using $LN_S" >&6; }
3772 # find the maximum length of command line arguments
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3774 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3775 if ${lt_cv_sys_max_cmd_len+:} false; then :
3776 $as_echo_n "(cached) " >&6
3783 # On DJGPP, this test can blow up pretty badly due to problems in libc
3784 # (any single argument exceeding 2000 bytes causes a buffer overrun
3785 # during glob expansion). Even if it were fixed, the result of this
3786 # check would be larger than it should be.
3787 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3791 # Under GNU Hurd, this test is not required because there is
3792 # no limit to the length of command line arguments.
3793 # Libtool will interpret -1 as no limit whatsoever
3794 lt_cv_sys_max_cmd_len=-1;
3797 cygwin* | mingw* | cegcc*)
3798 # On Win9x/ME, this test blows up -- it succeeds, but takes
3799 # about 5 minutes as the teststring grows exponentially.
3800 # Worse, since 9x/ME are not pre-emptively multitasking,
3801 # you end up with a "frozen" computer, even though with patience
3802 # the test eventually succeeds (with a max line length of 256k).
3803 # Instead, let's just punt: use the minimum linelength reported by
3804 # all of the supported platforms: 8192 (on NT/2K/XP).
3805 lt_cv_sys_max_cmd_len=8192;
3809 # On MiNT this can take a long time and run out of memory.
3810 lt_cv_sys_max_cmd_len=8192;
3814 # On AmigaOS with pdksh, this test takes hours, literally.
3815 # So we just punt and use a minimum line length of 8192.
3816 lt_cv_sys_max_cmd_len=8192;
3819 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3820 # This has been around since 386BSD, at least. Likely further.
3821 if test -x /sbin/sysctl; then
3822 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3823 elif test -x /usr/sbin/sysctl; then
3824 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3826 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3828 # And add a safety zone
3829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3830 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3834 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3835 lt_cv_sys_max_cmd_len=196608
3839 # The test takes a long time on OS/2.
3840 lt_cv_sys_max_cmd_len=8192
3844 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3845 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3846 # nice to cause kernel panics so lets avoid the loop below.
3847 # First set a reasonable default.
3848 lt_cv_sys_max_cmd_len=16384
3850 if test -x /sbin/sysconfig; then
3851 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3852 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3857 lt_cv_sys_max_cmd_len=102400
3859 sysv5* | sco5v6* | sysv4.2uw2*)
3860 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3861 if test -n "$kargmax"; then
3862 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3864 lt_cv_sys_max_cmd_len=32768
3868 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3869 if test -n "$lt_cv_sys_max_cmd_len"; then
3870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3873 # Make teststring a little bigger before we do anything with it.
3874 # a 1K string should be a reasonable start.
3875 for i in 1 2 3 4 5 6 7 8 ; do
3876 teststring=$teststring$teststring
3878 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3879 # If test is not a shell built-in, we'll probably end up computing a
3880 # maximum length that is only half of the actual maximum length, but
3882 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
3883 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
3884 test $i != 17 # 1/2 MB should be enough
3887 teststring=$teststring$teststring
3889 # Only check the string length outside the loop.
3890 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3892 # Add a significant safety factor because C++ compilers can tack on
3893 # massive amounts of additional arguments before passing them to the
3894 # linker. It appears as though 1/2 is a usable value.
3895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3902 if test -n $lt_cv_sys_max_cmd_len ; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
3904 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
3907 $as_echo "none" >&6; }
3909 max_cmd_len=$lt_cv_sys_max_cmd_len
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
3921 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3922 # Try some XSI features
3925 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
3927 && eval 'test $(( 1 + 1 )) -eq 2 \
3928 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
3931 $as_echo "$xsi_shell" >&6; }
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
3935 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3937 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3939 && lt_shell_append=yes
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
3941 $as_echo "$lt_shell_append" >&6; }
3944 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3954 # test EBCDIC or ASCII
3955 case `echo X|tr X '\101'` in
3956 A) # ASCII based system
3957 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3958 lt_SP2NL='tr \040 \012'
3959 lt_NL2SP='tr \015\012 \040\040'
3961 *) # EBCDIC based system
3962 lt_SP2NL='tr \100 \n'
3963 lt_NL2SP='tr \r\n \100\100'
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
3976 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
3977 if ${lt_cv_to_host_file_cmd+:} false; then :
3978 $as_echo_n "(cached) " >&6
3983 *-*-mingw* ) # actually msys
3984 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
3987 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
3989 * ) # otherwise, assume *nix
3990 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
3996 *-*-mingw* ) # actually msys
3997 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4000 lt_cv_to_host_file_cmd=func_convert_file_noop
4002 * ) # otherwise, assume *nix
4003 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4007 * ) # unhandled hosts (and "normal" native builds)
4008 lt_cv_to_host_file_cmd=func_convert_file_noop
4014 to_host_file_cmd=$lt_cv_to_host_file_cmd
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4016 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4023 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4024 if ${lt_cv_to_tool_file_cmd+:} false; then :
4025 $as_echo_n "(cached) " >&6
4027 #assume ordinary cross tools, or native build.
4028 lt_cv_to_tool_file_cmd=func_convert_file_noop
4032 *-*-mingw* ) # actually msys
4033 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4041 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4043 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4050 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4051 if ${lt_cv_ld_reload_flag+:} false; then :
4052 $as_echo_n "(cached) " >&6
4054 lt_cv_ld_reload_flag='-r'
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4057 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4058 reload_flag=$lt_cv_ld_reload_flag
4059 case $reload_flag in
4061 *) reload_flag=" $reload_flag" ;;
4063 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4065 cygwin* | mingw* | pw32* | cegcc*)
4066 if test "$GCC" != yes; then
4071 if test "$GCC" = yes; then
4072 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4074 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4087 if test -n "$ac_tool_prefix"; then
4088 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4089 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4091 $as_echo_n "checking for $ac_word... " >&6; }
4092 if ${ac_cv_prog_OBJDUMP+:} false; then :
4093 $as_echo_n "(cached) " >&6
4095 if test -n "$OBJDUMP"; then
4096 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 OBJDUMP=$ac_cv_prog_OBJDUMP
4116 if test -n "$OBJDUMP"; then
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4118 $as_echo "$OBJDUMP" >&6; }
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 $as_echo "no" >&6; }
4126 if test -z "$ac_cv_prog_OBJDUMP"; then
4127 ac_ct_OBJDUMP=$OBJDUMP
4128 # Extract the first word of "objdump", so it can be a program name with args.
4129 set dummy objdump; ac_word=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4133 $as_echo_n "(cached) " >&6
4135 if test -n "$ac_ct_OBJDUMP"; then
4136 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4156 if test -n "$ac_ct_OBJDUMP"; then
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4158 $as_echo "$ac_ct_OBJDUMP" >&6; }
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4164 if test "x$ac_ct_OBJDUMP" = x; then
4167 case $cross_compiling:$ac_tool_warned in
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4171 ac_tool_warned=yes ;;
4173 OBJDUMP=$ac_ct_OBJDUMP
4176 OBJDUMP="$ac_cv_prog_OBJDUMP"
4179 test -z "$OBJDUMP" && OBJDUMP=objdump
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4190 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4191 if ${lt_cv_deplibs_check_method+:} false; then :
4192 $as_echo_n "(cached) " >&6
4194 lt_cv_file_magic_cmd='$MAGIC_CMD'
4195 lt_cv_file_magic_test_file=
4196 lt_cv_deplibs_check_method='unknown'
4197 # Need to set the preceding variable on all platforms that support
4198 # interlibrary dependencies.
4199 # 'none' -- dependencies not supported.
4200 # `unknown' -- same as none, but documents that we really don't know.
4201 # 'pass_all' -- all dependencies passed with no checks.
4202 # 'test_compile' -- check by making test program.
4203 # 'file_magic [[regex]]' -- check by looking for files in library path
4204 # which responds to the $file_magic_cmd with a given extended regex.
4205 # If you have `file' or equivalent on your system and you're not sure
4206 # whether `pass_all' will *always* work, you probably want this one.
4210 lt_cv_deplibs_check_method=pass_all
4214 lt_cv_deplibs_check_method=pass_all
4218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4219 lt_cv_file_magic_cmd='/usr/bin/file -L'
4220 lt_cv_file_magic_test_file=/shlib/libc.so
4224 # func_win32_libid is a shell function defined in ltmain.sh
4225 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4226 lt_cv_file_magic_cmd='func_win32_libid'
4230 # Base MSYS/MinGW do not provide the 'file' command needed by
4231 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4232 # unless we find 'file', for example because we are cross-compiling.
4233 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4234 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4235 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4236 lt_cv_file_magic_cmd='func_win32_libid'
4238 # Keep this pattern in sync with the one in func_win32_libid.
4239 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4240 lt_cv_file_magic_cmd='$OBJDUMP -f'
4245 # use the weaker test based on 'objdump'. See mingw*.
4246 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4247 lt_cv_file_magic_cmd='$OBJDUMP -f'
4250 darwin* | rhapsody*)
4251 lt_cv_deplibs_check_method=pass_all
4254 freebsd* | dragonfly*)
4255 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4258 # Not sure whether the presence of OpenBSD here was a mistake.
4259 # Let's accept both of them until this is cleared up.
4260 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4261 lt_cv_file_magic_cmd=/usr/bin/file
4262 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4266 lt_cv_deplibs_check_method=pass_all
4271 lt_cv_deplibs_check_method=pass_all
4275 lt_cv_deplibs_check_method=pass_all
4278 hpux10.20* | hpux11*)
4279 lt_cv_file_magic_cmd=/usr/bin/file
4282 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4283 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4286 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4287 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4290 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4291 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4297 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4301 irix5* | irix6* | nonstopux*)
4303 *-32|*"-32 ") libmagic=32-bit;;
4304 *-n32|*"-n32 ") libmagic=N32;;
4305 *-64|*"-64 ") libmagic=64-bit;;
4306 *) libmagic=never-match;;
4308 lt_cv_deplibs_check_method=pass_all
4311 # This must be glibc/ELF.
4312 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4313 lt_cv_deplibs_check_method=pass_all
4317 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4326 lt_cv_file_magic_cmd=/usr/bin/file
4327 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4331 lt_cv_deplibs_check_method=pass_all
4335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4342 osf3* | osf4* | osf5*)
4343 lt_cv_deplibs_check_method=pass_all
4347 lt_cv_deplibs_check_method=pass_all
4351 lt_cv_deplibs_check_method=pass_all
4354 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4355 lt_cv_deplibs_check_method=pass_all
4359 case $host_vendor in
4361 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]'
4362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4365 lt_cv_deplibs_check_method=pass_all
4368 lt_cv_file_magic_cmd='/bin/file'
4369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4372 lt_cv_file_magic_cmd='/bin/file'
4373 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4374 lt_cv_file_magic_test_file=/lib/libc.so
4377 lt_cv_deplibs_check_method=pass_all
4380 lt_cv_deplibs_check_method=pass_all
4386 lt_cv_deplibs_check_method=pass_all
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4392 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4396 if test "$build" = "$host"; then
4399 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4402 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4408 file_magic_cmd=$lt_cv_file_magic_cmd
4409 deplibs_check_method=$lt_cv_deplibs_check_method
4410 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4433 if test -n "$ac_tool_prefix"; then
4434 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4435 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4437 $as_echo_n "checking for $ac_word... " >&6; }
4438 if ${ac_cv_prog_DLLTOOL+:} false; then :
4439 $as_echo_n "(cached) " >&6
4441 if test -n "$DLLTOOL"; then
4442 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4451 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 DLLTOOL=$ac_cv_prog_DLLTOOL
4462 if test -n "$DLLTOOL"; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4464 $as_echo "$DLLTOOL" >&6; }
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4472 if test -z "$ac_cv_prog_DLLTOOL"; then
4473 ac_ct_DLLTOOL=$DLLTOOL
4474 # Extract the first word of "dlltool", so it can be a program name with args.
4475 set dummy dlltool; ac_word=$2
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477 $as_echo_n "checking for $ac_word... " >&6; }
4478 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4479 $as_echo_n "(cached) " >&6
4481 if test -n "$ac_ct_DLLTOOL"; then
4482 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4502 if test -n "$ac_ct_DLLTOOL"; then
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4504 $as_echo "$ac_ct_DLLTOOL" >&6; }
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507 $as_echo "no" >&6; }
4510 if test "x$ac_ct_DLLTOOL" = x; then
4513 case $cross_compiling:$ac_tool_warned in
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4517 ac_tool_warned=yes ;;
4519 DLLTOOL=$ac_ct_DLLTOOL
4522 DLLTOOL="$ac_cv_prog_DLLTOOL"
4525 test -z "$DLLTOOL" && DLLTOOL=dlltool
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4537 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4538 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4539 $as_echo_n "(cached) " >&6
4541 lt_cv_sharedlib_from_linklib_cmd='unknown'
4544 cygwin* | mingw* | pw32* | cegcc*)
4545 # two different shell functions defined in ltmain.sh
4546 # decide which to use based on capabilities of $DLLTOOL
4547 case `$DLLTOOL --help 2>&1` in
4548 *--identify-strict*)
4549 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4552 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4557 # fallback: assume linklib IS sharedlib
4558 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4564 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4565 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4566 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4575 if test -n "$ac_tool_prefix"; then
4578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if ${ac_cv_prog_AR+:} false; then :
4583 $as_echo_n "(cached) " >&6
4585 if test -n "$AR"; then
4586 ac_cv_prog_AR="$AR" # Let the user override the test.
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 if test -n "$AR"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4608 $as_echo "$AR" >&6; }
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4615 test -n "$AR" && break
4618 if test -z "$AR"; then
4622 # Extract the first word of "$ac_prog", so it can be a program name with args.
4623 set dummy $ac_prog; ac_word=$2
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4625 $as_echo_n "checking for $ac_word... " >&6; }
4626 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4627 $as_echo_n "(cached) " >&6
4629 if test -n "$ac_ct_AR"; then
4630 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639 ac_cv_prog_ac_ct_AR="$ac_prog"
4640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4650 if test -n "$ac_ct_AR"; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4652 $as_echo "$ac_ct_AR" >&6; }
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 $as_echo "no" >&6; }
4659 test -n "$ac_ct_AR" && break
4662 if test "x$ac_ct_AR" = x; then
4665 case $cross_compiling:$ac_tool_warned in
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4669 ac_tool_warned=yes ;;
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4689 $as_echo_n "checking for archiver @FILE support... " >&6; }
4690 if ${lt_cv_ar_at_file+:} false; then :
4691 $as_echo_n "(cached) " >&6
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4705 if ac_fn_c_try_compile "$LINENO"; then :
4706 echo conftest.$ac_objext > conftest.lst
4707 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4709 (eval $lt_ar_try) 2>&5
4711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4712 test $ac_status = 0; }
4713 if test "$ac_status" -eq 0; then
4714 # Ensure the archiver fails upon bogus file names.
4715 rm -f conftest.$ac_objext libconftest.a
4716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4717 (eval $lt_ar_try) 2>&5
4719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4720 test $ac_status = 0; }
4721 if test "$ac_status" -ne 0; then
4725 rm -f conftest.* libconftest.a
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4732 $as_echo "$lt_cv_ar_at_file" >&6; }
4734 if test "x$lt_cv_ar_at_file" = xno; then
4737 archiver_list_spec=$lt_cv_ar_at_file
4746 if test -n "$ac_tool_prefix"; then
4747 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4748 set dummy ${ac_tool_prefix}strip; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if ${ac_cv_prog_STRIP+:} false; then :
4752 $as_echo_n "(cached) " >&6
4754 if test -n "$STRIP"; then
4755 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 STRIP=$ac_cv_prog_STRIP
4775 if test -n "$STRIP"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4777 $as_echo "$STRIP" >&6; }
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4785 if test -z "$ac_cv_prog_STRIP"; then
4787 # Extract the first word of "strip", so it can be a program name with args.
4788 set dummy strip; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4792 $as_echo_n "(cached) " >&6
4794 if test -n "$ac_ct_STRIP"; then
4795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4804 ac_cv_prog_ac_ct_STRIP="strip"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4815 if test -n "$ac_ct_STRIP"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4817 $as_echo "$ac_ct_STRIP" >&6; }
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4823 if test "x$ac_ct_STRIP" = x; then
4826 case $cross_compiling:$ac_tool_warned in
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4830 ac_tool_warned=yes ;;
4835 STRIP="$ac_cv_prog_STRIP"
4838 test -z "$STRIP" && STRIP=:
4845 if test -n "$ac_tool_prefix"; then
4846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if ${ac_cv_prog_RANLIB+:} false; then :
4851 $as_echo_n "(cached) " >&6
4853 if test -n "$RANLIB"; then
4854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 RANLIB=$ac_cv_prog_RANLIB
4874 if test -n "$RANLIB"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4876 $as_echo "$RANLIB" >&6; }
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4884 if test -z "$ac_cv_prog_RANLIB"; then
4885 ac_ct_RANLIB=$RANLIB
4886 # Extract the first word of "ranlib", so it can be a program name with args.
4887 set dummy ranlib; ac_word=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4891 $as_echo_n "(cached) " >&6
4893 if test -n "$ac_ct_RANLIB"; then
4894 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4903 ac_cv_prog_ac_ct_RANLIB="ranlib"
4904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4914 if test -n "$ac_ct_RANLIB"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4916 $as_echo "$ac_ct_RANLIB" >&6; }
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4922 if test "x$ac_ct_RANLIB" = x; then
4925 case $cross_compiling:$ac_tool_warned in
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4929 ac_tool_warned=yes ;;
4931 RANLIB=$ac_ct_RANLIB
4934 RANLIB="$ac_cv_prog_RANLIB"
4937 test -z "$RANLIB" && RANLIB=:
4944 # Determine commands to create old-style static archives.
4945 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4946 old_postinstall_cmds='chmod 644 $oldlib'
4947 old_postuninstall_cmds=
4949 if test -n "$RANLIB"; then
4952 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
4955 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
4958 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
4963 lock_old_archive_extraction=yes ;;
4965 lock_old_archive_extraction=no ;;
4988 for ac_prog in gawk mawk nawk awk
4990 # Extract the first word of "$ac_prog", so it can be a program name with args.
4991 set dummy $ac_prog; ac_word=$2
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if ${ac_cv_prog_AWK+:} false; then :
4995 $as_echo_n "(cached) " >&6
4997 if test -n "$AWK"; then
4998 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007 ac_cv_prog_AWK="$ac_prog"
5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 if test -n "$AWK"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5020 $as_echo "$AWK" >&6; }
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5027 test -n "$AWK" && break
5048 # If no C compiler was specified, use CC.
5051 # If no C compiler flags were specified, use CFLAGS.
5052 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5054 # Allow CC to be a program name with arguments.
5058 # Check for command to grab the raw symbol name followed by C symbol from nm.
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5060 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5061 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5062 $as_echo_n "(cached) " >&6
5065 # These are sane defaults that work on at least a few old systems.
5066 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5068 # Character class describing NM global symbol codes.
5069 symcode='[BCDEGRST]'
5071 # Regexp to match symbols that can be accessed directly from C.
5072 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5074 # Define system-specific variables.
5079 cygwin* | mingw* | pw32* | cegcc*)
5080 symcode='[ABCDGISTW]'
5083 if test "$host_cpu" = ia64; then
5084 symcode='[ABCDEGRST]'
5088 symcode='[BCDEGRST]'
5091 symcode='[BCDEGQRST]'
5102 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5110 # If we're using GNU nm, then use its standard symbol codes.
5111 case `$NM -V 2>&1` in
5112 *GNU* | *'with BFD'*)
5113 symcode='[ABCDGIRSTW]' ;;
5116 # Transform an extracted symbol line into a proper C declaration.
5117 # Some systems (esp. on ia64) link data and code symbols differently,
5118 # so use this general approach.
5119 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5121 # Transform an extracted symbol line into symbol name and symbol address
5122 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5123 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'"
5125 # Handle CRLF in mingw tool chain
5129 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5133 # Try without a prefix underscore, then with it.
5134 for ac_symprfx in "" "_"; do
5136 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5137 symxfrm="\\1 $ac_symprfx\\2 \\2"
5139 # Write the raw and C identifiers.
5140 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5141 # Fake it for dumpbin and say T for any non-static function
5142 # and D for any global variable.
5143 # Also find C++ and __fastcall symbols from MSVC++,
5144 # which start with @ or ?.
5145 lt_cv_sys_global_symbol_pipe="$AWK '"\
5146 " {last_section=section; section=\$ 3};"\
5147 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5148 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5149 " \$ 0!~/External *\|/{next};"\
5150 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5151 " {if(hide[section]) next};"\
5152 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5153 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5154 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5155 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5156 " ' prfx=^$ac_symprfx"
5158 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5160 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5162 # Check to see that the pipe works correctly.
5166 cat > conftest.$ac_ext <<_LT_EOF
5171 void nm_test_func(void);
5172 void nm_test_func(void){}
5176 int main(){nm_test_var='a';nm_test_func();return(0);}
5179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5180 (eval $ac_compile) 2>&5
5182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5183 test $ac_status = 0; }; then
5184 # Now try to grab the symbols.
5186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5187 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5190 test $ac_status = 0; } && test -s "$nlist"; then
5191 # Try sorting and uniquifying the output.
5192 if sort "$nlist" | uniq > "$nlist"T; then
5193 mv -f "$nlist"T "$nlist"
5198 # Make sure that we snagged all the symbols we need.
5199 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5200 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5201 cat <<_LT_EOF > conftest.$ac_ext
5202 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5203 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5204 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5205 relocations are performed -- see ld's documentation on pseudo-relocs. */
5206 # define LT_DLSYM_CONST
5207 #elif defined(__osf__)
5208 /* This system does not cope well with relocations in const data. */
5209 # define LT_DLSYM_CONST
5211 # define LT_DLSYM_CONST const
5219 # Now generate the symbol file.
5220 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5222 cat <<_LT_EOF >> conftest.$ac_ext
5224 /* The mapping between symbol names and symbols. */
5225 LT_DLSYM_CONST struct {
5229 lt__PROGRAM__LTX_preloaded_symbols[] =
5231 { "@PROGRAM@", (void *) 0 },
5233 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5234 cat <<\_LT_EOF >> conftest.$ac_ext
5238 /* This works around a problem in FreeBSD linker */
5239 #ifdef FREEBSD_WORKAROUND
5240 static const void *lt_preloaded_setup() {
5241 return lt__PROGRAM__LTX_preloaded_symbols;
5249 # Now try linking the two files.
5250 mv conftest.$ac_objext conftstm.$ac_objext
5251 lt_globsym_save_LIBS=$LIBS
5252 lt_globsym_save_CFLAGS=$CFLAGS
5253 LIBS="conftstm.$ac_objext"
5254 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5256 (eval $ac_link) 2>&5
5258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5259 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5262 LIBS=$lt_globsym_save_LIBS
5263 CFLAGS=$lt_globsym_save_CFLAGS
5265 echo "cannot find nm_test_func in $nlist" >&5
5268 echo "cannot find nm_test_var in $nlist" >&5
5271 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5274 echo "$progname: failed program was:" >&5
5275 cat conftest.$ac_ext >&5
5277 rm -rf conftest* conftst*
5279 # Do not use the global_symbol_pipe unless it works.
5280 if test "$pipe_works" = yes; then
5283 lt_cv_sys_global_symbol_pipe=
5289 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5290 lt_cv_sys_global_symbol_to_cdecl=
5292 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5294 $as_echo "failed" >&6; }
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5297 $as_echo "ok" >&6; }
5300 # Response file support.
5301 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5302 nm_file_list_spec='@'
5303 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5304 nm_file_list_spec='@'
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5334 $as_echo_n "checking for sysroot... " >&6; }
5336 # Check whether --with-sysroot was given.
5337 if test "${with_sysroot+set}" = set; then :
5338 withval=$with_sysroot;
5345 case ${with_sysroot} in #(
5347 if test "$GCC" = yes; then
5348 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5352 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5358 $as_echo "${with_sysroot}" >&6; }
5359 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5364 $as_echo "${lt_sysroot:-no}" >&6; }
5370 # Check whether --enable-libtool-lock was given.
5371 if test "${enable_libtool_lock+set}" = set; then :
5372 enableval=$enable_libtool_lock;
5375 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5377 # Some flags need to be propagated to the compiler or linker for good
5381 # Find out which ABI we are using.
5382 echo 'int i;' > conftest.$ac_ext
5383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5384 (eval $ac_compile) 2>&5
5386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5387 test $ac_status = 0; }; then
5388 case `/usr/bin/file conftest.$ac_objext` in
5400 # Find out which ABI we are using.
5401 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5403 (eval $ac_compile) 2>&5
5405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5406 test $ac_status = 0; }; then
5407 if test "$lt_cv_prog_gnu_ld" = yes; then
5408 case `/usr/bin/file conftest.$ac_objext` in
5410 LD="${LD-ld} -melf32bsmip"
5413 LD="${LD-ld} -melf32bmipn32"
5416 LD="${LD-ld} -melf64bmip"
5420 case `/usr/bin/file conftest.$ac_objext` in
5436 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5437 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5438 # Find out which ABI we are using.
5439 echo 'int i;' > conftest.$ac_ext
5440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5441 (eval $ac_compile) 2>&5
5443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5444 test $ac_status = 0; }; then
5445 case `/usr/bin/file conftest.o` in
5448 x86_64-*kfreebsd*-gnu)
5449 LD="${LD-ld} -m elf_i386_fbsd"
5452 LD="${LD-ld} -m elf_i386"
5454 ppc64-*linux*|powerpc64-*linux*)
5455 LD="${LD-ld} -m elf32ppclinux"
5458 LD="${LD-ld} -m elf_s390"
5461 LD="${LD-ld} -m elf32_sparc"
5467 x86_64-*kfreebsd*-gnu)
5468 LD="${LD-ld} -m elf_x86_64_fbsd"
5471 LD="${LD-ld} -m elf_x86_64"
5473 ppc*-*linux*|powerpc*-*linux*)
5474 LD="${LD-ld} -m elf64ppc"
5476 s390*-*linux*|s390*-*tpf*)
5477 LD="${LD-ld} -m elf64_s390"
5480 LD="${LD-ld} -m elf64_sparc"
5490 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5491 SAVE_CFLAGS="$CFLAGS"
5492 CFLAGS="$CFLAGS -belf"
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5494 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5495 if ${lt_cv_cc_needs_belf+:} false; then :
5496 $as_echo_n "(cached) " >&6
5499 ac_cpp='$CPP $CPPFLAGS'
5500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5515 if ac_fn_c_try_link "$LINENO"; then :
5516 lt_cv_cc_needs_belf=yes
5518 lt_cv_cc_needs_belf=no
5520 rm -f core conftest.err conftest.$ac_objext \
5521 conftest$ac_exeext conftest.$ac_ext
5523 ac_cpp='$CPP $CPPFLAGS'
5524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5530 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5531 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5532 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5533 CFLAGS="$SAVE_CFLAGS"
5537 # Find out which ABI we are using.
5538 echo 'int i;' > conftest.$ac_ext
5539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5540 (eval $ac_compile) 2>&5
5542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5543 test $ac_status = 0; }; then
5544 case `/usr/bin/file conftest.o` in
5546 case $lt_cv_prog_gnu_ld in
5550 LD="${LD-ld} -m elf_x86_64"
5553 LD="${LD-ld} -m elf64_sparc"
5556 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5557 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5562 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5574 need_locks="$enable_libtool_lock"
5576 if test -n "$ac_tool_prefix"; then
5577 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5578 set dummy ${ac_tool_prefix}mt; ac_word=$2
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 $as_echo_n "checking for $ac_word... " >&6; }
5581 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5582 $as_echo_n "(cached) " >&6
5584 if test -n "$MANIFEST_TOOL"; then
5585 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 test -z "$as_dir" && as_dir=.
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5605 if test -n "$MANIFEST_TOOL"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5607 $as_echo "$MANIFEST_TOOL" >&6; }
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5615 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5616 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5617 # Extract the first word of "mt", so it can be a program name with args.
5618 set dummy mt; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5622 $as_echo_n "(cached) " >&6
5624 if test -n "$ac_ct_MANIFEST_TOOL"; then
5625 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5645 if test -n "$ac_ct_MANIFEST_TOOL"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5647 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5653 if test "x$ac_ct_MANIFEST_TOOL" = x; then
5656 case $cross_compiling:$ac_tool_warned in
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5660 ac_tool_warned=yes ;;
5662 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5665 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5668 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5670 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5671 if ${lt_cv_path_mainfest_tool+:} false; then :
5672 $as_echo_n "(cached) " >&6
5674 lt_cv_path_mainfest_tool=no
5675 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5676 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5677 cat conftest.err >&5
5678 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5679 lt_cv_path_mainfest_tool=yes
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5684 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
5685 if test "x$lt_cv_path_mainfest_tool" != xyes; then
5695 rhapsody* | darwin*)
5696 if test -n "$ac_tool_prefix"; then
5697 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5698 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5702 $as_echo_n "(cached) " >&6
5704 if test -n "$DSYMUTIL"; then
5705 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5725 if test -n "$DSYMUTIL"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5727 $as_echo "$DSYMUTIL" >&6; }
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5735 if test -z "$ac_cv_prog_DSYMUTIL"; then
5736 ac_ct_DSYMUTIL=$DSYMUTIL
5737 # Extract the first word of "dsymutil", so it can be a program name with args.
5738 set dummy dsymutil; ac_word=$2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 $as_echo_n "checking for $ac_word... " >&6; }
5741 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5742 $as_echo_n "(cached) " >&6
5744 if test -n "$ac_ct_DSYMUTIL"; then
5745 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5765 if test -n "$ac_ct_DSYMUTIL"; then
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5767 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 $as_echo "no" >&6; }
5773 if test "x$ac_ct_DSYMUTIL" = x; then
5776 case $cross_compiling:$ac_tool_warned in
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5780 ac_tool_warned=yes ;;
5782 DSYMUTIL=$ac_ct_DSYMUTIL
5785 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5788 if test -n "$ac_tool_prefix"; then
5789 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5790 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if ${ac_cv_prog_NMEDIT+:} false; then :
5794 $as_echo_n "(cached) " >&6
5796 if test -n "$NMEDIT"; then
5797 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5806 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 NMEDIT=$ac_cv_prog_NMEDIT
5817 if test -n "$NMEDIT"; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5819 $as_echo "$NMEDIT" >&6; }
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5827 if test -z "$ac_cv_prog_NMEDIT"; then
5828 ac_ct_NMEDIT=$NMEDIT
5829 # Extract the first word of "nmedit", so it can be a program name with args.
5830 set dummy nmedit; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5834 $as_echo_n "(cached) " >&6
5836 if test -n "$ac_ct_NMEDIT"; then
5837 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5846 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5857 if test -n "$ac_ct_NMEDIT"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5859 $as_echo "$ac_ct_NMEDIT" >&6; }
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5865 if test "x$ac_ct_NMEDIT" = x; then
5868 case $cross_compiling:$ac_tool_warned in
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5872 ac_tool_warned=yes ;;
5874 NMEDIT=$ac_ct_NMEDIT
5877 NMEDIT="$ac_cv_prog_NMEDIT"
5880 if test -n "$ac_tool_prefix"; then
5881 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5882 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 $as_echo_n "checking for $ac_word... " >&6; }
5885 if ${ac_cv_prog_LIPO+:} false; then :
5886 $as_echo_n "(cached) " >&6
5888 if test -n "$LIPO"; then
5889 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 LIPO=$ac_cv_prog_LIPO
5909 if test -n "$LIPO"; then
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5911 $as_echo "$LIPO" >&6; }
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5919 if test -z "$ac_cv_prog_LIPO"; then
5921 # Extract the first word of "lipo", so it can be a program name with args.
5922 set dummy lipo; ac_word=$2
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924 $as_echo_n "checking for $ac_word... " >&6; }
5925 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5926 $as_echo_n "(cached) " >&6
5928 if test -n "$ac_ct_LIPO"; then
5929 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938 ac_cv_prog_ac_ct_LIPO="lipo"
5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5949 if test -n "$ac_ct_LIPO"; then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5951 $as_echo "$ac_ct_LIPO" >&6; }
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954 $as_echo "no" >&6; }
5957 if test "x$ac_ct_LIPO" = x; then
5960 case $cross_compiling:$ac_tool_warned in
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5964 ac_tool_warned=yes ;;
5969 LIPO="$ac_cv_prog_LIPO"
5972 if test -n "$ac_tool_prefix"; then
5973 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5974 set dummy ${ac_tool_prefix}otool; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if ${ac_cv_prog_OTOOL+:} false; then :
5978 $as_echo_n "(cached) " >&6
5980 if test -n "$OTOOL"; then
5981 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 OTOOL=$ac_cv_prog_OTOOL
6001 if test -n "$OTOOL"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6003 $as_echo "$OTOOL" >&6; }
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6011 if test -z "$ac_cv_prog_OTOOL"; then
6013 # Extract the first word of "otool", so it can be a program name with args.
6014 set dummy otool; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6018 $as_echo_n "(cached) " >&6
6020 if test -n "$ac_ct_OTOOL"; then
6021 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030 ac_cv_prog_ac_ct_OTOOL="otool"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6041 if test -n "$ac_ct_OTOOL"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6043 $as_echo "$ac_ct_OTOOL" >&6; }
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6049 if test "x$ac_ct_OTOOL" = x; then
6052 case $cross_compiling:$ac_tool_warned in
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6056 ac_tool_warned=yes ;;
6061 OTOOL="$ac_cv_prog_OTOOL"
6064 if test -n "$ac_tool_prefix"; then
6065 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6066 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if ${ac_cv_prog_OTOOL64+:} false; then :
6070 $as_echo_n "(cached) " >&6
6072 if test -n "$OTOOL64"; then
6073 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 OTOOL64=$ac_cv_prog_OTOOL64
6093 if test -n "$OTOOL64"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6095 $as_echo "$OTOOL64" >&6; }
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6103 if test -z "$ac_cv_prog_OTOOL64"; then
6104 ac_ct_OTOOL64=$OTOOL64
6105 # Extract the first word of "otool64", so it can be a program name with args.
6106 set dummy otool64; ac_word=$2
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108 $as_echo_n "checking for $ac_word... " >&6; }
6109 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6110 $as_echo_n "(cached) " >&6
6112 if test -n "$ac_ct_OTOOL64"; then
6113 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6122 ac_cv_prog_ac_ct_OTOOL64="otool64"
6123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6133 if test -n "$ac_ct_OTOOL64"; then
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6135 $as_echo "$ac_ct_OTOOL64" >&6; }
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 $as_echo "no" >&6; }
6141 if test "x$ac_ct_OTOOL64" = x; then
6144 case $cross_compiling:$ac_tool_warned in
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6148 ac_tool_warned=yes ;;
6150 OTOOL64=$ac_ct_OTOOL64
6153 OTOOL64="$ac_cv_prog_OTOOL64"
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6183 $as_echo_n "checking for -single_module linker flag... " >&6; }
6184 if ${lt_cv_apple_cc_single_mod+:} false; then :
6185 $as_echo_n "(cached) " >&6
6187 lt_cv_apple_cc_single_mod=no
6188 if test -z "${LT_MULTI_MODULE}"; then
6189 # By default we will add the -single_module flag. You can override
6190 # by either setting the environment variable LT_MULTI_MODULE
6191 # non-empty at configure time, or by adding -multi_module to the
6193 rm -rf libconftest.dylib*
6194 echo "int foo(void){return 1;}" > conftest.c
6195 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6196 -dynamiclib -Wl,-single_module conftest.c" >&5
6197 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6198 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6200 # If there is a non-empty error log, and "single_module"
6201 # appears in it, assume the flag caused a linker warning
6202 if test -s conftest.err && $GREP single_module conftest.err; then
6203 cat conftest.err >&5
6204 # Otherwise, if the output was created with a 0 exit code from
6205 # the compiler, it worked.
6206 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6207 lt_cv_apple_cc_single_mod=yes
6209 cat conftest.err >&5
6211 rm -rf libconftest.dylib*
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6216 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6219 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6220 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6221 $as_echo_n "(cached) " >&6
6223 lt_cv_ld_exported_symbols_list=no
6224 save_LDFLAGS=$LDFLAGS
6225 echo "_main" > conftest.sym
6226 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6238 if ac_fn_c_try_link "$LINENO"; then :
6239 lt_cv_ld_exported_symbols_list=yes
6241 lt_cv_ld_exported_symbols_list=no
6243 rm -f core conftest.err conftest.$ac_objext \
6244 conftest$ac_exeext conftest.$ac_ext
6245 LDFLAGS="$save_LDFLAGS"
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6249 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6252 $as_echo_n "checking for -force_load linker flag... " >&6; }
6253 if ${lt_cv_ld_force_load+:} false; then :
6254 $as_echo_n "(cached) " >&6
6256 lt_cv_ld_force_load=no
6257 cat > conftest.c << _LT_EOF
6258 int forced_loaded() { return 2;}
6260 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6261 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6262 echo "$AR cru libconftest.a conftest.o" >&5
6263 $AR cru libconftest.a conftest.o 2>&5
6264 echo "$RANLIB libconftest.a" >&5
6265 $RANLIB libconftest.a 2>&5
6266 cat > conftest.c << _LT_EOF
6267 int main() { return 0;}
6269 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6270 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6272 if test -s conftest.err && $GREP force_load conftest.err; then
6273 cat conftest.err >&5
6274 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6275 lt_cv_ld_force_load=yes
6277 cat conftest.err >&5
6279 rm -f conftest.err libconftest.a conftest conftest.c
6280 rm -rf conftest.dSYM
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6284 $as_echo "$lt_cv_ld_force_load" >&6; }
6286 rhapsody* | darwin1.[012])
6287 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6289 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6290 darwin*) # darwin 5.x on
6291 # if running on 10.5 or later, the deployment target defaults
6292 # to the OS version, if on x86, and 10.4, the deployment
6293 # target defaults to 10.4. Don't you love it?
6294 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6295 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6296 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6298 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6300 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6304 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6305 _lt_dar_single_mod='$single_module'
6307 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6308 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6310 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6312 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6313 _lt_dsymutil='~$DSYMUTIL $lib || :'
6321 ac_cpp='$CPP $CPPFLAGS'
6322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6326 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6327 # On Suns, sometimes $CPP names a directory.
6328 if test -n "$CPP" && test -d "$CPP"; then
6331 if test -z "$CPP"; then
6332 if ${ac_cv_prog_CPP+:} false; then :
6333 $as_echo_n "(cached) " >&6
6335 # Double quotes because CPP needs to be expanded
6336 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6339 for ac_c_preproc_warn_flag in '' yes
6341 # Use a header file that comes with gcc, so configuring glibc
6342 # with a fresh cross-compiler works.
6343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6344 # <limits.h> exists even on freestanding compilers.
6345 # On the NeXT, cc -E runs the code through the compiler's parser,
6346 # not just through cpp. "Syntax error" is here to catch this case.
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6350 # include <limits.h>
6352 # include <assert.h>
6356 if ac_fn_c_try_cpp "$LINENO"; then :
6359 # Broken: fails on valid input.
6362 rm -f conftest.err conftest.i conftest.$ac_ext
6364 # OK, works on sane cases. Now check whether nonexistent headers
6365 # can be detected and how.
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368 #include <ac_nonexistent.h>
6370 if ac_fn_c_try_cpp "$LINENO"; then :
6371 # Broken: success on invalid input.
6374 # Passes both tests.
6378 rm -f conftest.err conftest.i conftest.$ac_ext
6381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6382 rm -f conftest.i conftest.err conftest.$ac_ext
6383 if $ac_preproc_ok; then :
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6396 $as_echo "$CPP" >&6; }
6398 for ac_c_preproc_warn_flag in '' yes
6400 # Use a header file that comes with gcc, so configuring glibc
6401 # with a fresh cross-compiler works.
6402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6403 # <limits.h> exists even on freestanding compilers.
6404 # On the NeXT, cc -E runs the code through the compiler's parser,
6405 # not just through cpp. "Syntax error" is here to catch this case.
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6409 # include <limits.h>
6411 # include <assert.h>
6415 if ac_fn_c_try_cpp "$LINENO"; then :
6418 # Broken: fails on valid input.
6421 rm -f conftest.err conftest.i conftest.$ac_ext
6423 # OK, works on sane cases. Now check whether nonexistent headers
6424 # can be detected and how.
6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6427 #include <ac_nonexistent.h>
6429 if ac_fn_c_try_cpp "$LINENO"; then :
6430 # Broken: success on invalid input.
6433 # Passes both tests.
6437 rm -f conftest.err conftest.i conftest.$ac_ext
6440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6441 rm -f conftest.i conftest.err conftest.$ac_ext
6442 if $ac_preproc_ok; then :
6445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6447 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6448 See \`config.log' for more details" "$LINENO" 5; }
6452 ac_cpp='$CPP $CPPFLAGS'
6453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6459 $as_echo_n "checking for ANSI C header files... " >&6; }
6460 if ${ac_cv_header_stdc+:} false; then :
6461 $as_echo_n "(cached) " >&6
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6478 if ac_fn_c_try_compile "$LINENO"; then :
6479 ac_cv_header_stdc=yes
6481 ac_cv_header_stdc=no
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 if test $ac_cv_header_stdc = yes; then
6486 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6493 $EGREP "memchr" >/dev/null 2>&1; then :
6496 ac_cv_header_stdc=no
6502 if test $ac_cv_header_stdc = yes; then
6503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6510 $EGREP "free" >/dev/null 2>&1; then :
6513 ac_cv_header_stdc=no
6519 if test $ac_cv_header_stdc = yes; then
6520 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6521 if test "$cross_compiling" = yes; then :
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6528 #if ((' ' & 0x0FF) == 0x020)
6529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6532 # define ISLOWER(c) \
6533 (('a' <= (c) && (c) <= 'i') \
6534 || ('j' <= (c) && (c) <= 'r') \
6535 || ('s' <= (c) && (c) <= 'z'))
6536 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6539 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6544 for (i = 0; i < 256; i++)
6545 if (XOR (islower (i), ISLOWER (i))
6546 || toupper (i) != TOUPPER (i))
6551 if ac_fn_c_try_run "$LINENO"; then :
6554 ac_cv_header_stdc=no
6556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6557 conftest.$ac_objext conftest.beam conftest.$ac_ext
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6563 $as_echo "$ac_cv_header_stdc" >&6; }
6564 if test $ac_cv_header_stdc = yes; then
6566 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6570 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6571 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6572 inttypes.h stdint.h unistd.h
6574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6575 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6577 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6578 cat >>confdefs.h <<_ACEOF
6579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6587 for ac_header in dlfcn.h
6589 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6591 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6592 cat >>confdefs.h <<_ACEOF
6593 #define HAVE_DLFCN_H 1
6614 # Check whether --enable-shared was given.
6615 if test "${enable_shared+set}" = set; then :
6616 enableval=$enable_shared; p=${PACKAGE-default}
6618 yes) enable_shared=yes ;;
6619 no) enable_shared=no ;;
6622 # Look at the argument we got. We use all the common list separators.
6623 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6624 for pkg in $enableval; do
6626 if test "X$pkg" = "X$p"; then
6645 # Check whether --enable-static was given.
6646 if test "${enable_static+set}" = set; then :
6647 enableval=$enable_static; p=${PACKAGE-default}
6649 yes) enable_static=yes ;;
6650 no) enable_static=no ;;
6653 # Look at the argument we got. We use all the common list separators.
6654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6655 for pkg in $enableval; do
6657 if test "X$pkg" = "X$p"; then
6677 # Check whether --with-pic was given.
6678 if test "${with_pic+set}" = set; then :
6679 withval=$with_pic; lt_p=${PACKAGE-default}
6681 yes|no) pic_mode=$withval ;;
6684 # Look at the argument we got. We use all the common list separators.
6685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6686 for lt_pkg in $withval; do
6688 if test "X$lt_pkg" = "X$lt_p"; then
6700 test -z "$pic_mode" && pic_mode=default
6708 # Check whether --enable-fast-install was given.
6709 if test "${enable_fast_install+set}" = set; then :
6710 enableval=$enable_fast_install; p=${PACKAGE-default}
6712 yes) enable_fast_install=yes ;;
6713 no) enable_fast_install=no ;;
6715 enable_fast_install=no
6716 # Look at the argument we got. We use all the common list separators.
6717 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6718 for pkg in $enableval; do
6720 if test "X$pkg" = "X$p"; then
6721 enable_fast_install=yes
6728 enable_fast_install=yes
6741 # This can be used to rebuild libtool when needed
6742 LIBTOOL_DEPS="$ltmain"
6744 # Always use our own libtool.
6745 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6776 test -z "$LN_S" && LN_S="ln -s"
6791 if test -n "${ZSH_VERSION+set}" ; then
6792 setopt NO_GLOB_SUBST
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6796 $as_echo_n "checking for objdir... " >&6; }
6797 if ${lt_cv_objdir+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 rm -f .libs 2>/dev/null
6801 mkdir .libs 2>/dev/null
6802 if test -d .libs; then
6805 # MS-DOS does not allow filenames that begin with a dot.
6808 rmdir .libs 2>/dev/null
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6811 $as_echo "$lt_cv_objdir" >&6; }
6812 objdir=$lt_cv_objdir
6818 cat >>confdefs.h <<_ACEOF
6819 #define LT_OBJDIR "$lt_cv_objdir/"
6827 # AIX sometimes has problems with the GCC collect2 program. For some
6828 # reason, if we set the COLLECT_NAMES environment variable, the problems
6829 # vanish in a puff of smoke.
6830 if test "X${COLLECT_NAMES+set}" != Xset; then
6832 export COLLECT_NAMES
6839 can_build_shared=yes
6841 # All known linkers require a `.a' archive for static linking (except MSVC,
6842 # which needs '.lib').
6845 with_gnu_ld="$lt_cv_prog_gnu_ld"
6848 old_CFLAGS="$CFLAGS"
6850 # Set sane defaults for various variables
6851 test -z "$CC" && CC=cc
6852 test -z "$LTCC" && LTCC=$CC
6853 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6854 test -z "$LD" && LD=ld
6855 test -z "$ac_objext" && ac_objext=o
6857 for cc_temp in $compiler""; do
6859 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6860 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6865 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6868 # Only perform the check for file, if the check method requires it
6869 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6870 case $deplibs_check_method in
6872 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6874 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6875 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6876 $as_echo_n "(cached) " >&6
6880 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6883 lt_save_MAGIC_CMD="$MAGIC_CMD"
6884 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6885 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6886 for ac_dir in $ac_dummy; do
6888 test -z "$ac_dir" && ac_dir=.
6889 if test -f $ac_dir/${ac_tool_prefix}file; then
6890 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6891 if test -n "$file_magic_test_file"; then
6892 case $deplibs_check_method in
6894 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6895 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6896 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6897 $EGREP "$file_magic_regex" > /dev/null; then
6902 *** Warning: the command libtool uses to detect shared libraries,
6903 *** $file_magic_cmd, produces output that libtool cannot recognize.
6904 *** The result is that libtool may fail to recognize shared libraries
6905 *** as such. This will affect the creation of libtool libraries that
6906 *** depend on shared libraries, but programs linked with such libtool
6907 *** libraries will work regardless of this problem. Nevertheless, you
6908 *** may want to report the problem to your system manager and/or to
6909 *** bug-libtool@gnu.org
6919 MAGIC_CMD="$lt_save_MAGIC_CMD"
6924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6925 if test -n "$MAGIC_CMD"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6927 $as_echo "$MAGIC_CMD" >&6; }
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6937 if test -z "$lt_cv_path_MAGIC_CMD"; then
6938 if test -n "$ac_tool_prefix"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6940 $as_echo_n "checking for file... " >&6; }
6941 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6942 $as_echo_n "(cached) " >&6
6946 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6949 lt_save_MAGIC_CMD="$MAGIC_CMD"
6950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6951 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6952 for ac_dir in $ac_dummy; do
6954 test -z "$ac_dir" && ac_dir=.
6955 if test -f $ac_dir/file; then
6956 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6957 if test -n "$file_magic_test_file"; then
6958 case $deplibs_check_method in
6960 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6962 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6963 $EGREP "$file_magic_regex" > /dev/null; then
6968 *** Warning: the command libtool uses to detect shared libraries,
6969 *** $file_magic_cmd, produces output that libtool cannot recognize.
6970 *** The result is that libtool may fail to recognize shared libraries
6971 *** as such. This will affect the creation of libtool libraries that
6972 *** depend on shared libraries, but programs linked with such libtool
6973 *** libraries will work regardless of this problem. Nevertheless, you
6974 *** may want to report the problem to your system manager and/or to
6975 *** bug-libtool@gnu.org
6985 MAGIC_CMD="$lt_save_MAGIC_CMD"
6990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6991 if test -n "$MAGIC_CMD"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6993 $as_echo "$MAGIC_CMD" >&6; }
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
7009 # Use C for the default configuration in the libtool script
7013 ac_cpp='$CPP $CPPFLAGS'
7014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7019 # Source file extension for C test sources.
7022 # Object file extension for compiled C test sources.
7026 # Code to be used in simple compile tests
7027 lt_simple_compile_test_code="int some_variable = 0;"
7029 # Code to be used in simple link tests
7030 lt_simple_link_test_code='int main(){return(0);}'
7038 # If no C compiler was specified, use CC.
7041 # If no C compiler flags were specified, use CFLAGS.
7042 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7044 # Allow CC to be a program name with arguments.
7047 # Save the default compiler, since it gets overwritten when the other
7048 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7049 compiler_DEFAULT=$CC
7051 # save warnings/boilerplate of simple test code
7052 ac_outfile=conftest.$ac_objext
7053 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7054 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7055 _lt_compiler_boilerplate=`cat conftest.err`
7058 ac_outfile=conftest.$ac_objext
7059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7060 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7061 _lt_linker_boilerplate=`cat conftest.err`
7066 ## There is no encapsulation within the following macros, do not change
7067 ## the running order or otherwise move them around unless you know exactly
7068 ## what you are doing...
7069 if test -n "$compiler"; then
7071 lt_prog_compiler_no_builtin_flag=
7073 if test "$GCC" = yes; then
7074 case $cc_basename in
7076 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7078 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7082 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7083 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7084 $as_echo_n "(cached) " >&6
7086 lt_cv_prog_compiler_rtti_exceptions=no
7087 ac_outfile=conftest.$ac_objext
7088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7089 lt_compiler_flag="-fno-rtti -fno-exceptions"
7090 # Insert the option either (1) after the last *FLAGS variable, or
7091 # (2) before a word containing "conftest.", or (3) at the end.
7092 # Note that $ac_compile itself does not contain backslashes and begins
7093 # with a dollar sign (not a hyphen), so the echo should work correctly.
7094 # The option is referenced via a variable to avoid confusing sed.
7095 lt_compile=`echo "$ac_compile" | $SED \
7096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7098 -e 's:$: $lt_compiler_flag:'`
7099 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7100 (eval "$lt_compile" 2>conftest.err)
7102 cat conftest.err >&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 if (exit $ac_status) && test -s "$ac_outfile"; then
7105 # The compiler can only warn and ignore the option if not recognized
7106 # So say no if there are warnings other than the usual output.
7107 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7109 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7110 lt_cv_prog_compiler_rtti_exceptions=yes
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7117 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7119 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7120 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7132 lt_prog_compiler_wl=
7133 lt_prog_compiler_pic=
7134 lt_prog_compiler_static=
7137 if test "$GCC" = yes; then
7138 lt_prog_compiler_wl='-Wl,'
7139 lt_prog_compiler_static='-static'
7143 # All AIX code is PIC.
7144 if test "$host_cpu" = ia64; then
7145 # AIX 5 now supports IA64 processor
7146 lt_prog_compiler_static='-Bstatic'
7153 # see comment about AmigaOS4 .so support
7154 lt_prog_compiler_pic='-fPIC'
7157 # FIXME: we need at least 68020 code to build shared libraries, but
7158 # adding the `-m68020' flag to GCC prevents building anything better,
7160 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7165 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7166 # PIC is the default for these OSes.
7169 mingw* | cygwin* | pw32* | os2* | cegcc*)
7170 # This hack is so that the source file can tell whether it is being
7171 # built for inclusion in a dll (and should export symbols for example).
7172 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7173 # (--disable-auto-import) libraries
7174 lt_prog_compiler_pic='-DDLL_EXPORT'
7177 darwin* | rhapsody*)
7178 # PIC is the default on this platform
7179 # Common symbols not allowed in MH_DYLIB files
7180 lt_prog_compiler_pic='-fno-common'
7184 # PIC is the default for Haiku.
7185 # The "-static" flag exists, but is broken.
7186 lt_prog_compiler_static=
7190 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7191 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7192 # sets the default TLS model and affects inlining.
7198 lt_prog_compiler_pic='-fPIC'
7204 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7205 # Instead, we relocate shared libraries at runtime.
7209 # Just because we use GCC doesn't mean we suddenly get shared libraries
7210 # on systems that don't support them.
7211 lt_prog_compiler_can_build_shared=no
7216 # QNX uses GNU C++, but need to define -shared option too, otherwise
7218 lt_prog_compiler_pic='-fPIC -shared'
7222 if test -d /usr/nec; then
7223 lt_prog_compiler_pic=-Kconform_pic
7228 lt_prog_compiler_pic='-fPIC'
7232 case $cc_basename in
7233 nvcc*) # Cuda Compiler Driver 2.2
7234 lt_prog_compiler_wl='-Xlinker '
7235 if test -n "$lt_prog_compiler_pic"; then
7236 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7241 # PORTME Check for flag to pass linker flags through the system compiler.
7244 lt_prog_compiler_wl='-Wl,'
7245 if test "$host_cpu" = ia64; then
7246 # AIX 5 now supports IA64 processor
7247 lt_prog_compiler_static='-Bstatic'
7249 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7253 mingw* | cygwin* | pw32* | os2* | cegcc*)
7254 # This hack is so that the source file can tell whether it is being
7255 # built for inclusion in a dll (and should export symbols for example).
7256 lt_prog_compiler_pic='-DDLL_EXPORT'
7259 hpux9* | hpux10* | hpux11*)
7260 lt_prog_compiler_wl='-Wl,'
7261 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7268 lt_prog_compiler_pic='+Z'
7271 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7272 lt_prog_compiler_static='${wl}-a ${wl}archive'
7275 irix5* | irix6* | nonstopux*)
7276 lt_prog_compiler_wl='-Wl,'
7277 # PIC (with -KPIC) is the default.
7278 lt_prog_compiler_static='-non_shared'
7281 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7282 case $cc_basename in
7283 # old Intel for x86_64 which still supported -KPIC.
7285 lt_prog_compiler_wl='-Wl,'
7286 lt_prog_compiler_pic='-KPIC'
7287 lt_prog_compiler_static='-static'
7289 # icc used to be incompatible with GCC.
7290 # ICC 10 doesn't accept -KPIC any more.
7292 lt_prog_compiler_wl='-Wl,'
7293 lt_prog_compiler_pic='-fPIC'
7294 lt_prog_compiler_static='-static'
7296 # Lahey Fortran 8.1.
7298 lt_prog_compiler_wl='-Wl,'
7299 lt_prog_compiler_pic='--shared'
7300 lt_prog_compiler_static='--static'
7303 # NAG Fortran compiler
7304 lt_prog_compiler_wl='-Wl,-Wl,,'
7305 lt_prog_compiler_pic='-PIC'
7306 lt_prog_compiler_static='-Bstatic'
7308 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7309 # Portland Group compilers (*not* the Pentium gcc compiler,
7310 # which looks to be a dead project)
7311 lt_prog_compiler_wl='-Wl,'
7312 lt_prog_compiler_pic='-fpic'
7313 lt_prog_compiler_static='-Bstatic'
7316 lt_prog_compiler_wl='-Wl,'
7317 # All Alpha code is PIC.
7318 lt_prog_compiler_static='-non_shared'
7320 xl* | bgxl* | bgf* | mpixl*)
7321 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7322 lt_prog_compiler_wl='-Wl,'
7323 lt_prog_compiler_pic='-qpic'
7324 lt_prog_compiler_static='-qstaticlink'
7327 case `$CC -V 2>&1 | sed 5q` in
7328 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7329 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7330 lt_prog_compiler_pic='-KPIC'
7331 lt_prog_compiler_static='-Bstatic'
7332 lt_prog_compiler_wl=''
7334 *Sun\ F* | *Sun*Fortran*)
7335 lt_prog_compiler_pic='-KPIC'
7336 lt_prog_compiler_static='-Bstatic'
7337 lt_prog_compiler_wl='-Qoption ld '
7341 lt_prog_compiler_pic='-KPIC'
7342 lt_prog_compiler_static='-Bstatic'
7343 lt_prog_compiler_wl='-Wl,'
7345 *Intel*\ [CF]*Compiler*)
7346 lt_prog_compiler_wl='-Wl,'
7347 lt_prog_compiler_pic='-fPIC'
7348 lt_prog_compiler_static='-static'
7351 lt_prog_compiler_wl='-Wl,'
7352 lt_prog_compiler_pic='-fpic'
7353 lt_prog_compiler_static='-Bstatic'
7361 lt_prog_compiler_pic='-KPIC'
7362 lt_prog_compiler_static='-Bstatic'
7366 # QNX uses GNU C++, but need to define -shared option too, otherwise
7368 lt_prog_compiler_pic='-fPIC -shared'
7371 osf3* | osf4* | osf5*)
7372 lt_prog_compiler_wl='-Wl,'
7373 # All OSF/1 code is PIC.
7374 lt_prog_compiler_static='-non_shared'
7378 lt_prog_compiler_static='-non_shared'
7382 lt_prog_compiler_pic='-KPIC'
7383 lt_prog_compiler_static='-Bstatic'
7384 case $cc_basename in
7385 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7386 lt_prog_compiler_wl='-Qoption ld ';;
7388 lt_prog_compiler_wl='-Wl,';;
7393 lt_prog_compiler_wl='-Qoption ld '
7394 lt_prog_compiler_pic='-PIC'
7395 lt_prog_compiler_static='-Bstatic'
7398 sysv4 | sysv4.2uw2* | sysv4.3*)
7399 lt_prog_compiler_wl='-Wl,'
7400 lt_prog_compiler_pic='-KPIC'
7401 lt_prog_compiler_static='-Bstatic'
7405 if test -d /usr/nec ;then
7406 lt_prog_compiler_pic='-Kconform_pic'
7407 lt_prog_compiler_static='-Bstatic'
7411 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7412 lt_prog_compiler_wl='-Wl,'
7413 lt_prog_compiler_pic='-KPIC'
7414 lt_prog_compiler_static='-Bstatic'
7418 lt_prog_compiler_wl='-Wl,'
7419 lt_prog_compiler_can_build_shared=no
7423 lt_prog_compiler_pic='-pic'
7424 lt_prog_compiler_static='-Bstatic'
7428 lt_prog_compiler_can_build_shared=no
7434 # For platforms which do not support PIC, -DPIC is meaningless:
7436 lt_prog_compiler_pic=
7439 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7444 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7445 if ${lt_cv_prog_compiler_pic+:} false; then :
7446 $as_echo_n "(cached) " >&6
7448 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7451 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7452 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7455 # Check to make sure the PIC flag actually works.
7457 if test -n "$lt_prog_compiler_pic"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7459 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7460 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7461 $as_echo_n "(cached) " >&6
7463 lt_cv_prog_compiler_pic_works=no
7464 ac_outfile=conftest.$ac_objext
7465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7466 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7467 # Insert the option either (1) after the last *FLAGS variable, or
7468 # (2) before a word containing "conftest.", or (3) at the end.
7469 # Note that $ac_compile itself does not contain backslashes and begins
7470 # with a dollar sign (not a hyphen), so the echo should work correctly.
7471 # The option is referenced via a variable to avoid confusing sed.
7472 lt_compile=`echo "$ac_compile" | $SED \
7473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7475 -e 's:$: $lt_compiler_flag:'`
7476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7477 (eval "$lt_compile" 2>conftest.err)
7479 cat conftest.err >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 if (exit $ac_status) && test -s "$ac_outfile"; then
7482 # The compiler can only warn and ignore the option if not recognized
7483 # So say no if there are warnings other than the usual output.
7484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7487 lt_cv_prog_compiler_pic_works=yes
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7494 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7496 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7497 case $lt_prog_compiler_pic in
7499 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7502 lt_prog_compiler_pic=
7503 lt_prog_compiler_can_build_shared=no
7519 # Check to make sure the static flag actually works.
7521 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7523 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7524 if ${lt_cv_prog_compiler_static_works+:} false; then :
7525 $as_echo_n "(cached) " >&6
7527 lt_cv_prog_compiler_static_works=no
7528 save_LDFLAGS="$LDFLAGS"
7529 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7530 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7531 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7532 # The linker can only warn and ignore the option if not recognized
7533 # So say no if there are warnings
7534 if test -s conftest.err; then
7535 # Append any errors to the config.log.
7536 cat conftest.err 1>&5
7537 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7539 if diff conftest.exp conftest.er2 >/dev/null; then
7540 lt_cv_prog_compiler_static_works=yes
7543 lt_cv_prog_compiler_static_works=yes
7547 LDFLAGS="$save_LDFLAGS"
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7551 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7553 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7556 lt_prog_compiler_static=
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7566 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7567 if ${lt_cv_prog_compiler_c_o+:} false; then :
7568 $as_echo_n "(cached) " >&6
7570 lt_cv_prog_compiler_c_o=no
7571 $RM -r conftest 2>/dev/null
7575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7577 lt_compiler_flag="-o out/conftest2.$ac_objext"
7578 # Insert the option either (1) after the last *FLAGS variable, or
7579 # (2) before a word containing "conftest.", or (3) at the end.
7580 # Note that $ac_compile itself does not contain backslashes and begins
7581 # with a dollar sign (not a hyphen), so the echo should work correctly.
7582 lt_compile=`echo "$ac_compile" | $SED \
7583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7585 -e 's:$: $lt_compiler_flag:'`
7586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7587 (eval "$lt_compile" 2>out/conftest.err)
7589 cat out/conftest.err >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7593 # The compiler can only warn and ignore the option if not recognized
7594 # So say no if there are warnings
7595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7596 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7597 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7598 lt_cv_prog_compiler_c_o=yes
7603 # SGI C++ compiler will create directory out/ii_files/ for
7604 # template instantiation
7605 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7606 $RM out/* && rmdir out
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7613 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7621 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7622 if ${lt_cv_prog_compiler_c_o+:} false; then :
7623 $as_echo_n "(cached) " >&6
7625 lt_cv_prog_compiler_c_o=no
7626 $RM -r conftest 2>/dev/null
7630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7632 lt_compiler_flag="-o out/conftest2.$ac_objext"
7633 # Insert the option either (1) after the last *FLAGS variable, or
7634 # (2) before a word containing "conftest.", or (3) at the end.
7635 # Note that $ac_compile itself does not contain backslashes and begins
7636 # with a dollar sign (not a hyphen), so the echo should work correctly.
7637 lt_compile=`echo "$ac_compile" | $SED \
7638 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7639 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7640 -e 's:$: $lt_compiler_flag:'`
7641 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7642 (eval "$lt_compile" 2>out/conftest.err)
7644 cat out/conftest.err >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7648 # The compiler can only warn and ignore the option if not recognized
7649 # So say no if there are warnings
7650 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7651 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7652 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7653 lt_cv_prog_compiler_c_o=yes
7658 # SGI C++ compiler will create directory out/ii_files/ for
7659 # template instantiation
7660 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7661 $RM out/* && rmdir out
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7668 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7673 hard_links="nottested"
7674 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7675 # do not overwrite the value of need_locks provided by the user
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7677 $as_echo_n "checking if we can lock with hard links... " >&6; }
7680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7682 ln conftest.a conftest.b 2>&5 || hard_links=no
7683 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7685 $as_echo "$hard_links" >&6; }
7686 if test "$hard_links" = no; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7688 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7701 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7704 allow_undefined_flag=
7705 always_export_symbols=no
7707 archive_expsym_cmds=
7708 compiler_needs_object=no
7709 enable_shared_with_static_runtimes=no
7710 export_dynamic_flag_spec=
7711 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7712 hardcode_automatic=no
7714 hardcode_direct_absolute=no
7715 hardcode_libdir_flag_spec=
7716 hardcode_libdir_separator=
7718 hardcode_shlibpath_var=unsupported
7720 link_all_deplibs=unknown
7723 old_archive_from_new_cmds=
7724 old_archive_from_expsyms_cmds=
7725 thread_safe_flag_spec=
7726 whole_archive_flag_spec=
7727 # include_expsyms should be a list of space-separated symbols to be *always*
7728 # included in the symbol list
7730 # exclude_expsyms can be an extended regexp of symbols to exclude
7731 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7732 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7733 # as well as any symbol that contains `d'.
7734 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7735 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7736 # platforms (ab)use it in PIC code, but their linkers get confused if
7737 # the symbol is explicitly referenced. Since portable code cannot
7738 # rely on this symbol name, it's probably fine to never include it in
7739 # preloaded symbol tables.
7740 # Exclude shared library initialization/finalization symbols.
7741 extract_expsyms_cmds=
7744 cygwin* | mingw* | pw32* | cegcc*)
7745 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7746 # When not using gcc, we currently assume that we are using
7747 # Microsoft Visual C++.
7748 if test "$GCC" != yes; then
7753 # we just hope/assume this is gcc and not c89 (= MSVC++)
7763 # On some targets, GNU ld is compatible enough with the native linker
7764 # that we're better off using the native interface for both.
7765 lt_use_gnu_ld_interface=no
7766 if test "$with_gnu_ld" = yes; then
7769 # The AIX port of GNU ld has always aspired to compatibility
7770 # with the native linker. However, as the warning in the GNU ld
7771 # block says, versions before 2.19.5* couldn't really create working
7772 # shared libraries, regardless of the interface used.
7773 case `$LD -v 2>&1` in
7774 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7775 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7776 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7778 lt_use_gnu_ld_interface=yes
7783 lt_use_gnu_ld_interface=yes
7788 if test "$lt_use_gnu_ld_interface" = yes; then
7789 # If archive_cmds runs LD, not CC, wlarc should be empty
7792 # Set some defaults for GNU ld with shared library support. These
7793 # are reset later if shared libraries are not supported. Putting them
7794 # here allows them to be overridden if necessary.
7795 runpath_var=LD_RUN_PATH
7796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7797 export_dynamic_flag_spec='${wl}--export-dynamic'
7798 # ancient GNU ld didn't support --whole-archive et. al.
7799 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7800 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7802 whole_archive_flag_spec=
7804 supports_anon_versioning=no
7805 case `$LD -v 2>&1` in
7806 *GNU\ gold*) supports_anon_versioning=yes ;;
7807 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7808 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7809 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7810 *\ 2.11.*) ;; # other 2.11 versions
7811 *) supports_anon_versioning=yes ;;
7814 # See if GNU ld supports shared libraries.
7817 # On AIX/PPC, the GNU linker is very broken
7818 if test "$host_cpu" != ia64; then
7822 *** Warning: the GNU linker, at least up to release 2.19, is reported
7823 *** to be unable to reliably create shared libraries on AIX.
7824 *** Therefore, libtool is disabling shared libraries support. If you
7825 *** really care for shared libraries, you may want to install binutils
7826 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7827 *** You will then need to restart the configuration process.
7836 # see comment about AmigaOS4 .so support
7837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7838 archive_expsym_cmds=''
7841 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)'
7842 hardcode_libdir_flag_spec='-L$libdir'
7843 hardcode_minus_L=yes
7849 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7850 allow_undefined_flag=unsupported
7851 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7852 # support --undefined. This deserves some investigation. FIXME
7853 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7859 cygwin* | mingw* | pw32* | cegcc*)
7860 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7861 # as there is no search path for DLLs.
7862 hardcode_libdir_flag_spec='-L$libdir'
7863 export_dynamic_flag_spec='${wl}--export-all-symbols'
7864 allow_undefined_flag=unsupported
7865 always_export_symbols=no
7866 enable_shared_with_static_runtimes=yes
7867 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
7868 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
7870 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7872 # If the export-symbols file already is a .def file (1st line
7873 # is EXPORTS), use it as is; otherwise, prepend...
7874 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7875 cp $export_symbols $output_objdir/$soname.def;
7877 echo EXPORTS > $output_objdir/$soname.def;
7878 cat $export_symbols >> $output_objdir/$soname.def;
7880 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7888 link_all_deplibs=yes
7893 hardcode_shlibpath_var=no
7894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7895 export_dynamic_flag_spec='${wl}-E'
7896 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7897 # Instead, shared libraries are loaded at an image base (0x10000000 by
7898 # default) and relocated if they conflict, which is a slow very memory
7899 # consuming and fragmenting process. To avoid this, we pick a random,
7900 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7901 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7902 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7903 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'
7906 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7908 if test "$host_os" = linux-dietlibc; then
7909 case $cc_basename in
7910 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7913 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7914 && test "$tmp_diet" = no
7916 tmp_addflag=' $pic_flag'
7917 tmp_sharedflag='-shared'
7918 case $cc_basename,$host_cpu in
7919 pgcc*) # Portland Group C compiler
7920 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7921 tmp_addflag=' $pic_flag'
7923 pgf77* | pgf90* | pgf95* | pgfortran*)
7924 # Portland Group f77 and f90 compilers
7925 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7926 tmp_addflag=' $pic_flag -Mnomain' ;;
7927 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7928 tmp_addflag=' -i_dynamic' ;;
7929 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7930 tmp_addflag=' -i_dynamic -nofor_main' ;;
7931 ifc* | ifort*) # Intel Fortran compiler
7932 tmp_addflag=' -nofor_main' ;;
7933 lf95*) # Lahey Fortran 8.1
7934 whole_archive_flag_spec=
7935 tmp_sharedflag='--shared' ;;
7936 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7937 tmp_sharedflag='-qmkshrobj'
7939 nvcc*) # Cuda Compiler Driver 2.2
7940 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7941 compiler_needs_object=yes
7944 case `$CC -V 2>&1 | sed 5q` in
7945 *Sun\ C*) # Sun C 5.9
7946 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7947 compiler_needs_object=yes
7948 tmp_sharedflag='-G' ;;
7949 *Sun\ F*) # Sun Fortran 8.3
7950 tmp_sharedflag='-G' ;;
7952 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7954 if test "x$supports_anon_versioning" = xyes; then
7955 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7956 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7957 echo "local: *; };" >> $output_objdir/$libname.ver~
7958 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7961 case $cc_basename in
7962 xlf* | bgf* | bgxlf* | mpixlf*)
7963 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7964 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7966 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
7967 if test "x$supports_anon_versioning" = xyes; then
7968 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7970 echo "local: *; };" >> $output_objdir/$libname.ver~
7971 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7981 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7982 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7985 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7986 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7991 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7995 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7996 *** create shared libraries on Solaris systems. Therefore, libtool
7997 *** is disabling shared libraries support. We urge you to upgrade GNU
7998 *** binutils to release 2.9.1 or newer. Another option is to modify
7999 *** your PATH or compiler configuration so that the native linker is
8000 *** used, and then restart.
8003 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8004 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8005 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8011 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8012 case `$LD -v 2>&1` in
8013 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8017 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8018 *** reliably create shared libraries on SCO systems. Therefore, libtool
8019 *** is disabling shared libraries support. We urge you to upgrade GNU
8020 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8021 *** your PATH or compiler configuration so that the native linker is
8022 *** used, and then restart.
8027 # For security reasons, it is highly recommended that you always
8028 # use absolute paths for naming shared libraries, and exclude the
8029 # DT_RUNPATH tag from executables and libraries. But doing so
8030 # requires that you compile everything twice, which is a pain.
8031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8032 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8043 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8046 hardcode_shlibpath_var=no
8050 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8051 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8052 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8059 if test "$ld_shlibs" = no; then
8061 hardcode_libdir_flag_spec=
8062 export_dynamic_flag_spec=
8063 whole_archive_flag_spec=
8066 # PORTME fill in a description of your system's linker (not GNU ld)
8069 allow_undefined_flag=unsupported
8070 always_export_symbols=yes
8071 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'
8072 # Note: this linker hardcodes the directories in LIBPATH if there
8073 # are no directories specified by -L.
8074 hardcode_minus_L=yes
8075 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8076 # Neither direct hardcoding nor static linking is supported with a
8078 hardcode_direct=unsupported
8083 if test "$host_cpu" = ia64; then
8084 # On IA64, the linker does run time linking by default, so we don't
8085 # have to do anything special.
8086 aix_use_runtimelinking=no
8087 exp_sym_flag='-Bexport'
8090 # If we're using GNU nm, then we don't want the "-C" option.
8091 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8092 # Also, AIX nm treats weak defined symbols like other global
8093 # defined symbols, whereas GNU nm marks them as "W".
8094 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8095 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8097 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'
8099 aix_use_runtimelinking=no
8101 # Test if we are trying to use run time linking or normal
8102 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8103 # need to do runtime linking.
8104 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8105 for ld_flag in $LDFLAGS; do
8106 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8107 aix_use_runtimelinking=yes
8114 exp_sym_flag='-bexport'
8115 no_entry_flag='-bnoentry'
8118 # When large executables or shared objects are built, AIX ld can
8119 # have problems creating the table of contents. If linking a library
8120 # or program results in "error TOC overflow" add -mminimal-toc to
8121 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8122 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8126 hardcode_direct_absolute=yes
8127 hardcode_libdir_separator=':'
8128 link_all_deplibs=yes
8129 file_list_spec='${wl}-f,'
8131 if test "$GCC" = yes; then
8132 case $host_os in aix4.[012]|aix4.[012].*)
8133 # We only want to do this on AIX 4.2 and lower, the check
8134 # below for broken collect2 doesn't work under 4.3+
8135 collect2name=`${CC} -print-prog-name=collect2`
8136 if test -f "$collect2name" &&
8137 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8139 # We have reworked collect2
8142 # We have old collect2
8143 hardcode_direct=unsupported
8144 # It fails to find uninstalled libraries when the uninstalled
8145 # path is not listed in the libpath. Setting hardcode_minus_L
8146 # to unsupported forces relinking
8147 hardcode_minus_L=yes
8148 hardcode_libdir_flag_spec='-L$libdir'
8149 hardcode_libdir_separator=
8153 shared_flag='-shared'
8154 if test "$aix_use_runtimelinking" = yes; then
8155 shared_flag="$shared_flag "'${wl}-G'
8159 if test "$host_cpu" = ia64; then
8160 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8161 # chokes on -Wl,-G. The following line is correct:
8164 if test "$aix_use_runtimelinking" = yes; then
8165 shared_flag='${wl}-G'
8167 shared_flag='${wl}-bM:SRE'
8172 export_dynamic_flag_spec='${wl}-bexpall'
8173 # It seems that -bexpall does not export symbols beginning with
8174 # underscore (_), so it is better to generate a list of symbols to export.
8175 always_export_symbols=yes
8176 if test "$aix_use_runtimelinking" = yes; then
8177 # Warning - without using the other runtime loading flags (-brtl),
8178 # -berok will link without error, but may produce a broken library.
8179 allow_undefined_flag='-berok'
8180 # Determine the default libpath from the value encoded in an
8182 if test "${lt_cv_aix_libpath+set}" = set; then
8183 aix_libpath=$lt_cv_aix_libpath
8185 if ${lt_cv_aix_libpath_+:} false; then :
8186 $as_echo_n "(cached) " >&6
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h. */
8199 if ac_fn_c_try_link "$LINENO"; then :
8201 lt_aix_libpath_sed='
8202 /Import File Strings/,/^$/ {
8204 s/^0 *\([^ ]*\) *$/\1/
8208 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8209 # Check for a 64-bit object if we didn't find anything.
8210 if test -z "$lt_cv_aix_libpath_"; then
8211 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8214 rm -f core conftest.err conftest.$ac_objext \
8215 conftest$ac_exeext conftest.$ac_ext
8216 if test -z "$lt_cv_aix_libpath_"; then
8217 lt_cv_aix_libpath_="/usr/lib:/lib"
8222 aix_libpath=$lt_cv_aix_libpath_
8225 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8226 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8228 if test "$host_cpu" = ia64; then
8229 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8230 allow_undefined_flag="-z nodefs"
8231 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"
8233 # Determine the default libpath from the value encoded in an
8235 if test "${lt_cv_aix_libpath+set}" = set; then
8236 aix_libpath=$lt_cv_aix_libpath
8238 if ${lt_cv_aix_libpath_+:} false; then :
8239 $as_echo_n "(cached) " >&6
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h. */
8252 if ac_fn_c_try_link "$LINENO"; then :
8254 lt_aix_libpath_sed='
8255 /Import File Strings/,/^$/ {
8257 s/^0 *\([^ ]*\) *$/\1/
8261 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8262 # Check for a 64-bit object if we didn't find anything.
8263 if test -z "$lt_cv_aix_libpath_"; then
8264 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8267 rm -f core conftest.err conftest.$ac_objext \
8268 conftest$ac_exeext conftest.$ac_ext
8269 if test -z "$lt_cv_aix_libpath_"; then
8270 lt_cv_aix_libpath_="/usr/lib:/lib"
8275 aix_libpath=$lt_cv_aix_libpath_
8278 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8279 # Warning - without using the other run time loading flags,
8280 # -berok will link without error, but may produce a broken library.
8281 no_undefined_flag=' ${wl}-bernotok'
8282 allow_undefined_flag=' ${wl}-berok'
8283 if test "$with_gnu_ld" = yes; then
8284 # We only use this code for GNU lds that support --whole-archive.
8285 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8287 # Exported symbols can be pulled into shared objects from archives
8288 whole_archive_flag_spec='$convenience'
8290 archive_cmds_need_lc=yes
8291 # This is similar to how AIX traditionally builds its shared libraries.
8292 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'
8300 # see comment about AmigaOS4 .so support
8301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8302 archive_expsym_cmds=''
8305 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)'
8306 hardcode_libdir_flag_spec='-L$libdir'
8307 hardcode_minus_L=yes
8313 export_dynamic_flag_spec=-rdynamic
8316 cygwin* | mingw* | pw32* | cegcc*)
8317 # When not using gcc, we currently assume that we are using
8318 # Microsoft Visual C++.
8319 # hardcode_libdir_flag_spec is actually meaningless, as there is
8320 # no search path for DLLs.
8321 case $cc_basename in
8324 hardcode_libdir_flag_spec=' '
8325 allow_undefined_flag=unsupported
8326 always_export_symbols=yes
8328 # Tell ltmain to make .lib files, not .a files.
8330 # Tell ltmain to make .dll files, not .so files.
8332 # FIXME: Setting linknames here is a bad hack.
8333 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8334 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8335 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8337 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8339 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8341 # The linker will not automatically build a static lib if we build a DLL.
8342 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8343 enable_shared_with_static_runtimes=yes
8344 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8345 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8347 old_postinstall_cmds='chmod 644 $oldlib'
8348 postlink_cmds='lt_outputfile="@OUTPUT@"~
8349 lt_tool_outputfile="@TOOL_OUTPUT@"~
8350 case $lt_outputfile in
8353 lt_outputfile="$lt_outputfile.exe"
8354 lt_tool_outputfile="$lt_tool_outputfile.exe"
8357 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8358 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8359 $RM "$lt_outputfile.manifest";
8363 # Assume MSVC wrapper
8364 hardcode_libdir_flag_spec=' '
8365 allow_undefined_flag=unsupported
8366 # Tell ltmain to make .lib files, not .a files.
8368 # Tell ltmain to make .dll files, not .so files.
8370 # FIXME: Setting linknames here is a bad hack.
8371 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8372 # The linker will automatically build a .lib file if we build a DLL.
8373 old_archive_from_new_cmds='true'
8374 # FIXME: Should let the user specify the lib program.
8375 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8376 enable_shared_with_static_runtimes=yes
8381 darwin* | rhapsody*)
8384 archive_cmds_need_lc=no
8386 hardcode_automatic=yes
8387 hardcode_shlibpath_var=unsupported
8388 if test "$lt_cv_ld_force_load" = "yes"; then
8389 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8392 whole_archive_flag_spec=''
8394 link_all_deplibs=yes
8395 allow_undefined_flag="$_lt_dar_allow_undefined"
8396 case $cc_basename in
8397 ifort*) _lt_dar_can_shared=yes ;;
8398 *) _lt_dar_can_shared=$GCC ;;
8400 if test "$_lt_dar_can_shared" = "yes"; then
8401 output_verbose_link_cmd=func_echo_all
8402 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8403 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8404 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}"
8405 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}"
8414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8415 hardcode_libdir_flag_spec='-L$libdir'
8416 hardcode_shlibpath_var=no
8419 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8420 # support. Future versions do this automatically, but an explicit c++rt0.o
8421 # does not break anything, and helps significantly (at the cost of a little
8424 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8425 hardcode_libdir_flag_spec='-R$libdir'
8427 hardcode_shlibpath_var=no
8430 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8434 hardcode_minus_L=yes
8435 hardcode_shlibpath_var=no
8438 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8439 freebsd* | dragonfly*)
8440 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8441 hardcode_libdir_flag_spec='-R$libdir'
8443 hardcode_shlibpath_var=no
8447 if test "$GCC" = yes; then
8448 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8450 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'
8452 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8453 hardcode_libdir_separator=:
8456 # hardcode_minus_L: Not really in the search PATH,
8457 # but as the default location of the library.
8458 hardcode_minus_L=yes
8459 export_dynamic_flag_spec='${wl}-E'
8463 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8464 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8466 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8468 if test "$with_gnu_ld" = no; then
8469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8470 hardcode_libdir_separator=:
8472 hardcode_direct_absolute=yes
8473 export_dynamic_flag_spec='${wl}-E'
8474 # hardcode_minus_L: Not really in the search PATH,
8475 # but as the default location of the library.
8476 hardcode_minus_L=yes
8481 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8484 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8487 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8490 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8496 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8499 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8503 # Older versions of the 11.00 compiler do not understand -b yet
8504 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8506 $as_echo_n "checking if $CC understands -b... " >&6; }
8507 if ${lt_cv_prog_compiler__b+:} false; then :
8508 $as_echo_n "(cached) " >&6
8510 lt_cv_prog_compiler__b=no
8511 save_LDFLAGS="$LDFLAGS"
8512 LDFLAGS="$LDFLAGS -b"
8513 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8514 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8515 # The linker can only warn and ignore the option if not recognized
8516 # So say no if there are warnings
8517 if test -s conftest.err; then
8518 # Append any errors to the config.log.
8519 cat conftest.err 1>&5
8520 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8522 if diff conftest.exp conftest.er2 >/dev/null; then
8523 lt_cv_prog_compiler__b=yes
8526 lt_cv_prog_compiler__b=yes
8530 LDFLAGS="$save_LDFLAGS"
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8534 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8536 if test x"$lt_cv_prog_compiler__b" = xyes; then
8537 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8539 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8545 if test "$with_gnu_ld" = no; then
8546 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8547 hardcode_libdir_separator=:
8552 hardcode_shlibpath_var=no
8556 hardcode_direct_absolute=yes
8557 export_dynamic_flag_spec='${wl}-E'
8559 # hardcode_minus_L: Not really in the search PATH,
8560 # but as the default location of the library.
8561 hardcode_minus_L=yes
8567 irix5* | irix6* | nonstopux*)
8568 if test "$GCC" = yes; then
8569 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8570 # Try to use the -exported_symbol ld option, if it does not
8571 # work, assume that -exports_file does not work either and
8572 # implicitly export all symbols.
8573 # This should be the same for all languages, so no per-tag cache variable.
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8575 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8576 if ${lt_cv_irix_exported_symbol+:} false; then :
8577 $as_echo_n "(cached) " >&6
8579 save_LDFLAGS="$LDFLAGS"
8580 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8583 int foo (void) { return 0; }
8585 if ac_fn_c_try_link "$LINENO"; then :
8586 lt_cv_irix_exported_symbol=yes
8588 lt_cv_irix_exported_symbol=no
8590 rm -f core conftest.err conftest.$ac_objext \
8591 conftest$ac_exeext conftest.$ac_ext
8592 LDFLAGS="$save_LDFLAGS"
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
8595 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
8596 if test "$lt_cv_irix_exported_symbol" = yes; then
8597 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8601 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8603 archive_cmds_need_lc='no'
8604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8605 hardcode_libdir_separator=:
8607 link_all_deplibs=yes
8611 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8614 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8616 hardcode_libdir_flag_spec='-R$libdir'
8618 hardcode_shlibpath_var=no
8622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8625 hardcode_libdir_separator=:
8626 hardcode_shlibpath_var=no
8633 if test -f /usr/libexec/ld.so; then
8635 hardcode_shlibpath_var=no
8636 hardcode_direct_absolute=yes
8637 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8638 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8639 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8640 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8641 export_dynamic_flag_spec='${wl}-E'
8644 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8646 hardcode_libdir_flag_spec='-R$libdir'
8649 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8650 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8660 hardcode_libdir_flag_spec='-L$libdir'
8661 hardcode_minus_L=yes
8662 allow_undefined_flag=unsupported
8663 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'
8664 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8668 if test "$GCC" = yes; then
8669 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8670 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8672 allow_undefined_flag=' -expect_unresolved \*'
8673 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8675 archive_cmds_need_lc='no'
8676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8677 hardcode_libdir_separator=:
8680 osf4* | osf5*) # as osf3* with the addition of -msym flag
8681 if test "$GCC" = yes; then
8682 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8683 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8686 allow_undefined_flag=' -expect_unresolved \*'
8687 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8688 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~
8689 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8691 # Both c and cxx compiler support -rpath directly
8692 hardcode_libdir_flag_spec='-rpath $libdir'
8694 archive_cmds_need_lc='no'
8695 hardcode_libdir_separator=:
8699 no_undefined_flag=' -z defs'
8700 if test "$GCC" = yes; then
8702 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8703 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8704 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8706 case `$CC -V 2>&1` in
8709 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8710 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8711 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8715 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8716 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8717 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8721 hardcode_libdir_flag_spec='-R$libdir'
8722 hardcode_shlibpath_var=no
8724 solaris2.[0-5] | solaris2.[0-5].*) ;;
8726 # The compiler driver will combine and reorder linker options,
8727 # but understands `-z linker_flag'. GCC discards it without `$wl',
8728 # but is careful enough not to reorder.
8729 # Supported since Solaris 2.6 (maybe 2.5.1?)
8730 if test "$GCC" = yes; then
8731 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8733 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8737 link_all_deplibs=yes
8741 if test "x$host_vendor" = xsequent; then
8742 # Use $CC to link under sequent, because it throws in some extra .o
8743 # files that make .init and .fini sections work.
8744 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8746 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8748 hardcode_libdir_flag_spec='-L$libdir'
8750 hardcode_minus_L=yes
8751 hardcode_shlibpath_var=no
8755 case $host_vendor in
8757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8758 hardcode_direct=yes # is this really true???
8761 ## LD is ld it makes a PLAMLIB
8762 ## CC just makes a GrossModule.
8763 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8764 reload_cmds='$CC -r -o $output$reload_objs'
8768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8769 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8772 runpath_var='LD_RUN_PATH'
8773 hardcode_shlibpath_var=no
8777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8778 hardcode_shlibpath_var=no
8779 export_dynamic_flag_spec='-Bexport'
8783 if test -d /usr/nec; then
8784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8785 hardcode_shlibpath_var=no
8786 runpath_var=LD_RUN_PATH
8787 hardcode_runpath_var=yes
8792 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8793 no_undefined_flag='${wl}-z,text'
8794 archive_cmds_need_lc=no
8795 hardcode_shlibpath_var=no
8796 runpath_var='LD_RUN_PATH'
8798 if test "$GCC" = yes; then
8799 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8800 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8802 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8803 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8807 sysv5* | sco3.2v5* | sco5v6*)
8808 # Note: We can NOT use -z defs as we might desire, because we do not
8809 # link with -lc, and that would cause any symbols used from libc to
8810 # always be unresolved, which means just about no library would
8811 # ever link correctly. If we're not using GNU ld we use -z text
8812 # though, which does catch some bad symbols but isn't as heavy-handed
8814 no_undefined_flag='${wl}-z,text'
8815 allow_undefined_flag='${wl}-z,nodefs'
8816 archive_cmds_need_lc=no
8817 hardcode_shlibpath_var=no
8818 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8819 hardcode_libdir_separator=':'
8820 link_all_deplibs=yes
8821 export_dynamic_flag_spec='${wl}-Bexport'
8822 runpath_var='LD_RUN_PATH'
8824 if test "$GCC" = yes; then
8825 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8826 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8828 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8829 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8835 hardcode_libdir_flag_spec='-L$libdir'
8836 hardcode_shlibpath_var=no
8844 if test x$host_vendor = xsni; then
8846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8847 export_dynamic_flag_spec='${wl}-Blargedynsym'
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8854 $as_echo "$ld_shlibs" >&6; }
8855 test "$ld_shlibs" = no && can_build_shared=no
8857 with_gnu_ld=$with_gnu_ld
8874 # Do we need to explicitly link libc?
8876 case "x$archive_cmds_need_lc" in
8878 # Assume -lc should be added
8879 archive_cmds_need_lc=yes
8881 if test "$enable_shared" = yes && test "$GCC" = yes; then
8882 case $archive_cmds in
8884 # FIXME: we may have to deal with multi-command sequences.
8887 # Test whether the compiler implicitly links with -lc since on some
8888 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8889 # to ld, don't add -lc before -lgcc.
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8891 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8892 if ${lt_cv_archive_cmds_need_lc+:} false; then :
8893 $as_echo_n "(cached) " >&6
8896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8899 (eval $ac_compile) 2>&5
8901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8902 test $ac_status = 0; } 2>conftest.err; then
8905 libobjs=conftest.$ac_objext
8907 wl=$lt_prog_compiler_wl
8908 pic_flag=$lt_prog_compiler_pic
8914 lt_save_allow_undefined_flag=$allow_undefined_flag
8915 allow_undefined_flag=
8916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8917 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8920 test $ac_status = 0; }
8922 lt_cv_archive_cmds_need_lc=no
8924 lt_cv_archive_cmds_need_lc=yes
8926 allow_undefined_flag=$lt_save_allow_undefined_flag
8928 cat conftest.err 1>&5
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8934 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8935 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9094 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9096 if test "$GCC" = yes; then
9098 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9099 *) lt_awk_arg="/^libraries:/" ;;
9102 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9103 *) lt_sed_strip_eq="s,=/,/,g" ;;
9105 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9106 case $lt_search_path_spec in
9108 # if the path contains ";" then we assume it to be the separator
9109 # otherwise default to the standard path separator (i.e. ":") - it is
9110 # assumed that no part of a normal pathname contains ";" but that should
9111 # okay in the real world where ";" in dirpaths is itself problematic.
9112 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9115 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9118 # Ok, now we have the path, separated by spaces, we can step through it
9119 # and add multilib dir if necessary.
9120 lt_tmp_lt_search_path_spec=
9121 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9122 for lt_sys_path in $lt_search_path_spec; do
9123 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9124 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9126 test -d "$lt_sys_path" && \
9127 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9130 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9131 BEGIN {RS=" "; FS="/|\n";} {
9134 for (lt_i = NF; lt_i > 0; lt_i--) {
9135 if ($lt_i != "" && $lt_i != ".") {
9136 if ($lt_i == "..") {
9139 if (lt_count == 0) {
9140 lt_foo="/" $lt_i lt_foo;
9147 if (lt_foo != "") { lt_freq[lt_foo]++; }
9148 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9150 # AWK program above erroneously prepends '/' to C:/dos/paths
9153 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9154 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9156 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9158 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9161 libname_spec='lib$name'
9169 shlibpath_overrides_runpath=unknown
9171 dynamic_linker="$host_os ld.so"
9172 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9173 need_lib_prefix=unknown
9174 hardcode_into_libs=no
9176 # when you set need_version to no, make sure it does not cause -set_version
9177 # flags to be left without arguments
9178 need_version=unknown
9182 version_type=linux # correct to gnu/linux during the next big refactor
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9184 shlibpath_var=LIBPATH
9186 # AIX 3 has no versioning support, so we append a major version to the name.
9187 soname_spec='${libname}${release}${shared_ext}$major'
9191 version_type=linux # correct to gnu/linux during the next big refactor
9194 hardcode_into_libs=yes
9195 if test "$host_cpu" = ia64; then
9196 # AIX 5 supports IA64
9197 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9198 shlibpath_var=LD_LIBRARY_PATH
9200 # With GCC up to 2.95.x, collect2 would create an import file
9201 # for dependence libraries. The import file would start with
9202 # the line `#! .'. This would cause the generated library to
9203 # depend on `.', always an invalid library. This was fixed in
9204 # development snapshots of GCC prior to 3.0.
9206 aix4 | aix4.[01] | aix4.[01].*)
9207 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9209 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9216 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9217 # soname into executable. Probably we can add versioning support to
9218 # collect2, so additional links can be useful in future.
9219 if test "$aix_use_runtimelinking" = yes; then
9220 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9221 # instead of lib<name>.a to let people know that these are not
9222 # typical AIX shared libraries.
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 # We preserve .a as extension for shared libraries through AIX4.2
9226 # and later when we are not doing run time linking.
9227 library_names_spec='${libname}${release}.a $libname.a'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9230 shlibpath_var=LIBPATH
9237 # Since July 2007 AmigaOS4 officially supports .so libraries.
9238 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9242 library_names_spec='$libname.ixlibrary $libname.a'
9243 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9244 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
9250 library_names_spec='${libname}${shared_ext}'
9251 dynamic_linker="$host_os ld.so"
9252 shlibpath_var=LIBRARY_PATH
9256 version_type=linux # correct to gnu/linux during the next big refactor
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9263 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9264 # the default ld.so.conf also contains /usr/contrib/lib and
9265 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9266 # libtool to hard-code these into programs
9269 cygwin* | mingw* | pw32* | cegcc*)
9270 version_type=windows
9275 case $GCC,$cc_basename in
9278 library_names_spec='$libname.dll.a'
9279 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9280 postinstall_cmds='base_file=`basename \${file}`~
9281 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9282 dldir=$destdir/`dirname \$dlpath`~
9283 test -d \$dldir || mkdir -p \$dldir~
9284 $install_prog $dir/$dlname \$dldir/$dlname~
9285 chmod a+x \$dldir/$dlname~
9286 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9287 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9289 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9290 dlpath=$dir/\$dldll~
9292 shlibpath_overrides_runpath=yes
9296 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9297 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9299 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9302 # MinGW DLLs use traditional 'lib' prefix
9303 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9306 # pw32 DLLs use 'pw' prefix rather than 'lib'
9307 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9310 dynamic_linker='Win32 ld.exe'
9315 libname_spec='$name'
9316 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9317 library_names_spec='${libname}.dll.lib'
9321 sys_lib_search_path_spec=
9327 # Let DOS variable expansion print the short 8.3 style file name.
9328 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9329 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9332 # Convert to MSYS style.
9333 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9336 # Convert to unix form, then to dos form, then back to unix form
9337 # but this time dos style (no spaces!) so that the unix form looks
9338 # like /cygdrive/c/PROGRA~1:/cygdr...
9339 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9340 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9341 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9344 sys_lib_search_path_spec="$LIB"
9345 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9346 # It is most probably a Windows format PATH.
9347 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9349 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9351 # FIXME: find the short name or the path components, as spaces are
9352 # common. (e.g. "Program Files" -> "PROGRA~1")
9356 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9357 postinstall_cmds='base_file=`basename \${file}`~
9358 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9359 dldir=$destdir/`dirname \$dlpath`~
9360 test -d \$dldir || mkdir -p \$dldir~
9361 $install_prog $dir/$dlname \$dldir/$dlname'
9362 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9363 dlpath=$dir/\$dldll~
9365 shlibpath_overrides_runpath=yes
9366 dynamic_linker='Win32 link.exe'
9370 # Assume MSVC wrapper
9371 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9372 dynamic_linker='Win32 ld.exe'
9375 # FIXME: first we should search . and the directory the executable is in
9379 darwin* | rhapsody*)
9380 dynamic_linker="$host_os dyld"
9384 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9385 soname_spec='${libname}${release}${major}$shared_ext'
9386 shlibpath_overrides_runpath=yes
9387 shlibpath_var=DYLD_LIBRARY_PATH
9388 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9390 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9391 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9395 version_type=linux # correct to gnu/linux during the next big refactor
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 shlibpath_var=LD_LIBRARY_PATH
9403 freebsd* | dragonfly*)
9404 # DragonFly does not have aout. When/if they implement a new
9405 # versioning mechanism, adjust this.
9406 if test -x /usr/bin/objformat; then
9407 objformat=`/usr/bin/objformat`
9410 freebsd[23].*) objformat=aout ;;
9414 version_type=freebsd-$objformat
9415 case $version_type in
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9422 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9426 shlibpath_var=LD_LIBRARY_PATH
9429 shlibpath_overrides_runpath=yes
9431 freebsd3.[01]* | freebsdelf3.[01]*)
9432 shlibpath_overrides_runpath=yes
9433 hardcode_into_libs=yes
9435 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9436 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9437 shlibpath_overrides_runpath=no
9438 hardcode_into_libs=yes
9440 *) # from 4.6 on, and DragonFly
9441 shlibpath_overrides_runpath=yes
9442 hardcode_into_libs=yes
9448 version_type=linux # correct to gnu/linux during the next big refactor
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9452 soname_spec='${libname}${release}${shared_ext}$major'
9453 shlibpath_var=LD_LIBRARY_PATH
9454 shlibpath_overrides_runpath=no
9455 hardcode_into_libs=yes
9459 version_type=linux # correct to gnu/linux during the next big refactor
9462 dynamic_linker="$host_os runtime_loader"
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9464 soname_spec='${libname}${release}${shared_ext}$major'
9465 shlibpath_var=LIBRARY_PATH
9466 shlibpath_overrides_runpath=yes
9467 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9468 hardcode_into_libs=yes
9471 hpux9* | hpux10* | hpux11*)
9472 # Give a soname corresponding to the major version so that dld.sl refuses to
9473 # link against other versions.
9480 hardcode_into_libs=yes
9481 dynamic_linker="$host_os dld.so"
9482 shlibpath_var=LD_LIBRARY_PATH
9483 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 if test "X$HPUX_IA64_MODE" = X32; then
9487 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9489 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9495 hardcode_into_libs=yes
9496 dynamic_linker="$host_os dld.sl"
9497 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9498 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500 soname_spec='${libname}${release}${shared_ext}$major'
9501 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9502 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9506 dynamic_linker="$host_os dld.sl"
9507 shlibpath_var=SHLIB_PATH
9508 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9510 soname_spec='${libname}${release}${shared_ext}$major'
9513 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9514 postinstall_cmds='chmod 555 $lib'
9515 # or fails outright, so override atomically:
9516 install_override_mode=555
9520 version_type=linux # correct to gnu/linux during the next big refactor
9523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9524 soname_spec='${libname}${release}${shared_ext}$major'
9525 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9526 shlibpath_var=LD_LIBRARY_PATH
9527 shlibpath_overrides_runpath=no
9528 hardcode_into_libs=yes
9531 irix5* | irix6* | nonstopux*)
9533 nonstopux*) version_type=nonstopux ;;
9535 if test "$lt_cv_prog_gnu_ld" = yes; then
9536 version_type=linux # correct to gnu/linux during the next big refactor
9543 soname_spec='${libname}${release}${shared_ext}$major'
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9546 irix5* | nonstopux*)
9550 case $LD in # libtool.m4 will add one of these switches to LD
9551 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9552 libsuff= shlibsuff= libmagic=32-bit;;
9553 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9554 libsuff=32 shlibsuff=N32 libmagic=N32;;
9555 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9556 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9557 *) libsuff= shlibsuff= libmagic=never-match;;
9561 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9562 shlibpath_overrides_runpath=no
9563 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9564 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9565 hardcode_into_libs=yes
9568 # No shared lib support for Linux oldld, aout, or coff.
9569 linux*oldld* | linux*aout* | linux*coff*)
9573 # This must be glibc/ELF.
9574 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9575 version_type=linux # correct to gnu/linux during the next big refactor
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9579 soname_spec='${libname}${release}${shared_ext}$major'
9580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9581 shlibpath_var=LD_LIBRARY_PATH
9582 shlibpath_overrides_runpath=no
9584 # Some binutils ld are patched to set DT_RUNPATH
9585 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9586 $as_echo_n "(cached) " >&6
9588 lt_cv_shlibpath_overrides_runpath=no
9589 save_LDFLAGS=$LDFLAGS
9591 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9592 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h. */
9604 if ac_fn_c_try_link "$LINENO"; then :
9605 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9606 lt_cv_shlibpath_overrides_runpath=yes
9609 rm -f core conftest.err conftest.$ac_objext \
9610 conftest$ac_exeext conftest.$ac_ext
9611 LDFLAGS=$save_LDFLAGS
9616 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9618 # This implies no fast_install, which is unacceptable.
9619 # Some rework will be needed to allow for fast_install
9620 # before this can be enabled.
9621 hardcode_into_libs=yes
9623 # Add ABI-specific directories to the system library path.
9624 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9626 # Append ld.so.conf contents to the search path
9627 if test -f /etc/ld.so.conf; then
9628 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;s/"//g;/^$/d' | tr '\n' ' '`
9629 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9633 # We used to test for /lib/ld.so.1 and disable shared libraries on
9634 # powerpc, because MkLinux only supported shared libraries with the
9635 # GNU dynamic linker. Since this was broken with cross compilers,
9636 # most powerpc-linux boxes support dynamic linking these days and
9637 # people can always --disable-shared, the test was removed, and we
9638 # assume the GNU/Linux dynamic linker is in use.
9639 dynamic_linker='GNU/Linux ld.so'
9646 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9649 dynamic_linker='NetBSD (a.out) ld.so'
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9652 soname_spec='${libname}${release}${shared_ext}$major'
9653 dynamic_linker='NetBSD ld.elf_so'
9655 shlibpath_var=LD_LIBRARY_PATH
9656 shlibpath_overrides_runpath=yes
9657 hardcode_into_libs=yes
9661 version_type=linux # correct to gnu/linux during the next big refactor
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9663 shlibpath_var=LD_LIBRARY_PATH
9664 shlibpath_overrides_runpath=yes
9671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9672 soname_spec='${libname}${release}${shared_ext}$major'
9673 shlibpath_var=LD_LIBRARY_PATH
9674 shlibpath_overrides_runpath=no
9675 hardcode_into_libs=yes
9676 dynamic_linker='ldqnx.so'
9681 sys_lib_dlsearch_path_spec="/usr/lib"
9683 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9685 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9686 *) need_version=no ;;
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9693 openbsd2.[89] | openbsd2.[89].*)
9694 shlibpath_overrides_runpath=no
9697 shlibpath_overrides_runpath=yes
9701 shlibpath_overrides_runpath=yes
9706 libname_spec='$name'
9709 library_names_spec='$libname${shared_ext} $libname.a'
9710 dynamic_linker='OS/2 ld.exe'
9711 shlibpath_var=LIBPATH
9714 osf3* | osf4* | osf5*)
9718 soname_spec='${libname}${release}${shared_ext}$major'
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9720 shlibpath_var=LD_LIBRARY_PATH
9721 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9722 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9730 version_type=linux # correct to gnu/linux during the next big refactor
9733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734 soname_spec='${libname}${release}${shared_ext}$major'
9735 shlibpath_var=LD_LIBRARY_PATH
9736 shlibpath_overrides_runpath=yes
9737 hardcode_into_libs=yes
9738 # ldd complains unless libraries are executable
9739 postinstall_cmds='chmod +x $lib'
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9745 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9746 shlibpath_var=LD_LIBRARY_PATH
9747 shlibpath_overrides_runpath=yes
9748 if test "$with_gnu_ld" = yes; then
9755 version_type=linux # correct to gnu/linux during the next big refactor
9756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9757 soname_spec='${libname}${release}${shared_ext}$major'
9758 shlibpath_var=LD_LIBRARY_PATH
9759 case $host_vendor in
9761 shlibpath_overrides_runpath=no
9763 runpath_var=LD_RUN_PATH
9771 shlibpath_overrides_runpath=no
9772 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9778 if test -d /usr/nec ;then
9779 version_type=linux # correct to gnu/linux during the next big refactor
9780 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9781 soname_spec='$libname${shared_ext}.$major'
9782 shlibpath_var=LD_LIBRARY_PATH
9786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9787 version_type=freebsd-elf
9790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9791 soname_spec='${libname}${release}${shared_ext}$major'
9792 shlibpath_var=LD_LIBRARY_PATH
9793 shlibpath_overrides_runpath=yes
9794 hardcode_into_libs=yes
9795 if test "$with_gnu_ld" = yes; then
9796 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9798 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9801 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9805 sys_lib_dlsearch_path_spec='/usr/lib'
9809 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9810 version_type=linux # correct to gnu/linux during the next big refactor
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 shlibpath_overrides_runpath=no
9816 hardcode_into_libs=yes
9820 version_type=linux # correct to gnu/linux during the next big refactor
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 shlibpath_var=LD_LIBRARY_PATH
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9831 $as_echo "$dynamic_linker" >&6; }
9832 test "$dynamic_linker" = no && can_build_shared=no
9834 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9835 if test "$GCC" = yes; then
9836 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9839 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9840 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9842 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9843 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9938 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9940 if test -n "$hardcode_libdir_flag_spec" ||
9941 test -n "$runpath_var" ||
9942 test "X$hardcode_automatic" = "Xyes" ; then
9944 # We can hardcode non-existent directories.
9945 if test "$hardcode_direct" != no &&
9946 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9947 # have to relink, otherwise we might link with an installed library
9948 # when we should be linking with a yet-to-be-installed one
9949 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9950 test "$hardcode_minus_L" != no; then
9951 # Linking always hardcodes the temporary library directory.
9952 hardcode_action=relink
9954 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9955 hardcode_action=immediate
9958 # We cannot hardcode anything, or else we can only hardcode existing
9960 hardcode_action=unsupported
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9963 $as_echo "$hardcode_action" >&6; }
9965 if test "$hardcode_action" = relink ||
9966 test "$inherit_rpath" = yes; then
9967 # Fast installation is not supported
9968 enable_fast_install=no
9969 elif test "$shlibpath_overrides_runpath" = yes ||
9970 test "$enable_shared" = no; then
9971 # Fast installation is not necessary
9972 enable_fast_install=needless
9980 if test "x$enable_dlopen" != xyes; then
9981 enable_dlopen=unknown
9982 enable_dlopen_self=unknown
9983 enable_dlopen_self_static=unknown
9990 lt_cv_dlopen="load_add_on"
9992 lt_cv_dlopen_self=yes
9995 mingw* | pw32* | cegcc*)
9996 lt_cv_dlopen="LoadLibrary"
10001 lt_cv_dlopen="dlopen"
10006 # if libdl is installed we need to link against it
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10008 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10009 if ${ac_cv_lib_dl_dlopen+:} false; then :
10010 $as_echo_n "(cached) " >&6
10012 ac_check_lib_save_LIBS=$LIBS
10014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h. */
10017 /* Override any GCC internal prototype to avoid an error.
10018 Use char because int might match the return type of a GCC
10019 builtin and then its argument prototype would still apply. */
10032 if ac_fn_c_try_link "$LINENO"; then :
10033 ac_cv_lib_dl_dlopen=yes
10035 ac_cv_lib_dl_dlopen=no
10037 rm -f core conftest.err conftest.$ac_objext \
10038 conftest$ac_exeext conftest.$ac_ext
10039 LIBS=$ac_check_lib_save_LIBS
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10042 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10043 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10044 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10047 lt_cv_dlopen="dyld"
10049 lt_cv_dlopen_self=yes
10056 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10057 if test "x$ac_cv_func_shl_load" = xyes; then :
10058 lt_cv_dlopen="shl_load"
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10061 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10062 if ${ac_cv_lib_dld_shl_load+:} false; then :
10063 $as_echo_n "(cached) " >&6
10065 ac_check_lib_save_LIBS=$LIBS
10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10070 /* Override any GCC internal prototype to avoid an error.
10071 Use char because int might match the return type of a GCC
10072 builtin and then its argument prototype would still apply. */
10080 return shl_load ();
10085 if ac_fn_c_try_link "$LINENO"; then :
10086 ac_cv_lib_dld_shl_load=yes
10088 ac_cv_lib_dld_shl_load=no
10090 rm -f core conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10092 LIBS=$ac_check_lib_save_LIBS
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10095 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10096 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10097 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10099 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10100 if test "x$ac_cv_func_dlopen" = xyes; then :
10101 lt_cv_dlopen="dlopen"
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10104 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10105 if ${ac_cv_lib_dl_dlopen+:} false; then :
10106 $as_echo_n "(cached) " >&6
10108 ac_check_lib_save_LIBS=$LIBS
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h. */
10113 /* Override any GCC internal prototype to avoid an error.
10114 Use char because int might match the return type of a GCC
10115 builtin and then its argument prototype would still apply. */
10128 if ac_fn_c_try_link "$LINENO"; then :
10129 ac_cv_lib_dl_dlopen=yes
10131 ac_cv_lib_dl_dlopen=no
10133 rm -f core conftest.err conftest.$ac_objext \
10134 conftest$ac_exeext conftest.$ac_ext
10135 LIBS=$ac_check_lib_save_LIBS
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10138 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10139 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10140 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10143 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10144 if ${ac_cv_lib_svld_dlopen+:} false; then :
10145 $as_echo_n "(cached) " >&6
10147 ac_check_lib_save_LIBS=$LIBS
10148 LIBS="-lsvld $LIBS"
10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10152 /* Override any GCC internal prototype to avoid an error.
10153 Use char because int might match the return type of a GCC
10154 builtin and then its argument prototype would still apply. */
10167 if ac_fn_c_try_link "$LINENO"; then :
10168 ac_cv_lib_svld_dlopen=yes
10170 ac_cv_lib_svld_dlopen=no
10172 rm -f core conftest.err conftest.$ac_objext \
10173 conftest$ac_exeext conftest.$ac_ext
10174 LIBS=$ac_check_lib_save_LIBS
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10177 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10178 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10179 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10182 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10183 if ${ac_cv_lib_dld_dld_link+:} false; then :
10184 $as_echo_n "(cached) " >&6
10186 ac_check_lib_save_LIBS=$LIBS
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10191 /* Override any GCC internal prototype to avoid an error.
10192 Use char because int might match the return type of a GCC
10193 builtin and then its argument prototype would still apply. */
10201 return dld_link ();
10206 if ac_fn_c_try_link "$LINENO"; then :
10207 ac_cv_lib_dld_dld_link=yes
10209 ac_cv_lib_dld_dld_link=no
10211 rm -f core conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext conftest.$ac_ext
10213 LIBS=$ac_check_lib_save_LIBS
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10216 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10217 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10218 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10239 if test "x$lt_cv_dlopen" != xno; then
10245 case $lt_cv_dlopen in
10247 save_CPPFLAGS="$CPPFLAGS"
10248 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10250 save_LDFLAGS="$LDFLAGS"
10251 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10254 LIBS="$lt_cv_dlopen_libs $LIBS"
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10257 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10258 if ${lt_cv_dlopen_self+:} false; then :
10259 $as_echo_n "(cached) " >&6
10261 if test "$cross_compiling" = yes; then :
10262 lt_cv_dlopen_self=cross
10264 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10265 lt_status=$lt_dlunknown
10266 cat > conftest.$ac_ext <<_LT_EOF
10267 #line $LINENO "configure"
10268 #include "confdefs.h"
10277 # define LT_DLGLOBAL RTLD_GLOBAL
10280 # define LT_DLGLOBAL DL_GLOBAL
10282 # define LT_DLGLOBAL 0
10286 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10287 find out it does not work in some platform. */
10288 #ifndef LT_DLLAZY_OR_NOW
10290 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10293 # define LT_DLLAZY_OR_NOW DL_LAZY
10296 # define LT_DLLAZY_OR_NOW RTLD_NOW
10299 # define LT_DLLAZY_OR_NOW DL_NOW
10301 # define LT_DLLAZY_OR_NOW 0
10308 /* When -fvisbility=hidden is used, assume the code has been annotated
10309 correspondingly for the symbols needed. */
10310 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10311 int fnord () __attribute__((visibility("default")));
10314 int fnord () { return 42; }
10317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10318 int status = $lt_dlunknown;
10322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10325 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10326 else puts (dlerror ());
10328 /* dlclose (self); */
10336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10337 (eval $ac_link) 2>&5
10339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10340 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10341 (./conftest; exit; ) >&5 2>/dev/null
10343 case x$lt_status in
10344 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10345 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10346 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10349 # compilation failed
10350 lt_cv_dlopen_self=no
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10358 $as_echo "$lt_cv_dlopen_self" >&6; }
10360 if test "x$lt_cv_dlopen_self" = xyes; then
10361 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10363 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10364 if ${lt_cv_dlopen_self_static+:} false; then :
10365 $as_echo_n "(cached) " >&6
10367 if test "$cross_compiling" = yes; then :
10368 lt_cv_dlopen_self_static=cross
10370 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10371 lt_status=$lt_dlunknown
10372 cat > conftest.$ac_ext <<_LT_EOF
10373 #line $LINENO "configure"
10374 #include "confdefs.h"
10383 # define LT_DLGLOBAL RTLD_GLOBAL
10386 # define LT_DLGLOBAL DL_GLOBAL
10388 # define LT_DLGLOBAL 0
10392 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10393 find out it does not work in some platform. */
10394 #ifndef LT_DLLAZY_OR_NOW
10396 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10399 # define LT_DLLAZY_OR_NOW DL_LAZY
10402 # define LT_DLLAZY_OR_NOW RTLD_NOW
10405 # define LT_DLLAZY_OR_NOW DL_NOW
10407 # define LT_DLLAZY_OR_NOW 0
10414 /* When -fvisbility=hidden is used, assume the code has been annotated
10415 correspondingly for the symbols needed. */
10416 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10417 int fnord () __attribute__((visibility("default")));
10420 int fnord () { return 42; }
10423 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10424 int status = $lt_dlunknown;
10428 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10431 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10432 else puts (dlerror ());
10434 /* dlclose (self); */
10442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10443 (eval $ac_link) 2>&5
10445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10446 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10447 (./conftest; exit; ) >&5 2>/dev/null
10449 case x$lt_status in
10450 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10451 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10452 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10455 # compilation failed
10456 lt_cv_dlopen_self_static=no
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10464 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10467 CPPFLAGS="$save_CPPFLAGS"
10468 LDFLAGS="$save_LDFLAGS"
10473 case $lt_cv_dlopen_self in
10474 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10475 *) enable_dlopen_self=unknown ;;
10478 case $lt_cv_dlopen_self_static in
10479 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10480 *) enable_dlopen_self_static=unknown ;;
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10503 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10504 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10505 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10506 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10508 $as_echo "yes" >&6; }
10510 # FIXME - insert some real tests, host_os isn't really good enough
10513 if test -n "$STRIP" ; then
10514 striplib="$STRIP -x"
10515 old_striplib="$STRIP -S"
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10517 $as_echo "yes" >&6; }
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520 $as_echo "no" >&6; }
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525 $as_echo "no" >&6; }
10541 # Report which library types will actually be built
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10543 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10545 $as_echo "$can_build_shared" >&6; }
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10548 $as_echo_n "checking whether to build shared libraries... " >&6; }
10549 test "$can_build_shared" = "no" && enable_shared=no
10551 # On AIX, shared libraries and static libraries use the same namespace, and
10552 # are all built from PIC.
10555 test "$enable_shared" = yes && enable_static=no
10556 if test -n "$RANLIB"; then
10557 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10558 postinstall_cmds='$RANLIB $lib'
10563 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10564 test "$enable_shared" = yes && enable_static=no
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10569 $as_echo "$enable_shared" >&6; }
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10572 $as_echo_n "checking whether to build static libraries... " >&6; }
10573 # Make sure either enable_shared or enable_static is yes.
10574 test "$enable_shared" = yes || enable_static=yes
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10576 $as_echo "$enable_static" >&6; }
10583 ac_cpp='$CPP $CPPFLAGS'
10584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10604 ac_config_commands="$ac_config_commands libtool"
10609 # Only expand once:
10613 # Check whether --enable-shared was given.
10614 if test "${enable_shared+set}" = set; then :
10615 enableval=$enable_shared;
10622 # Check whether --enable-gettext was given.
10623 if test "${enable_gettext+set}" = set; then :
10624 enableval=$enable_gettext;
10631 # Check whether --enable-lib64 was given.
10632 if test "${enable_lib64+set}" = set; then :
10633 enableval=$enable_lib64;
10644 ac_cpp='$CPP $CPPFLAGS'
10645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10648 if test -n "$ac_tool_prefix"; then
10649 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10650 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10652 $as_echo_n "checking for $ac_word... " >&6; }
10653 if ${ac_cv_prog_CC+:} false; then :
10654 $as_echo_n "(cached) " >&6
10656 if test -n "$CC"; then
10657 ac_cv_prog_CC="$CC" # Let the user override the test.
10659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660 for as_dir in $PATH
10663 test -z "$as_dir" && as_dir=.
10664 for ac_exec_ext in '' $ac_executable_extensions; do
10665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10666 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10677 if test -n "$CC"; then
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10679 $as_echo "$CC" >&6; }
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; }
10687 if test -z "$ac_cv_prog_CC"; then
10689 # Extract the first word of "gcc", so it can be a program name with args.
10690 set dummy gcc; ac_word=$2
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10692 $as_echo_n "checking for $ac_word... " >&6; }
10693 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10694 $as_echo_n "(cached) " >&6
10696 if test -n "$ac_ct_CC"; then
10697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700 for as_dir in $PATH
10703 test -z "$as_dir" && as_dir=.
10704 for ac_exec_ext in '' $ac_executable_extensions; do
10705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10706 ac_cv_prog_ac_ct_CC="gcc"
10707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10717 if test -n "$ac_ct_CC"; then
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10719 $as_echo "$ac_ct_CC" >&6; }
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10722 $as_echo "no" >&6; }
10725 if test "x$ac_ct_CC" = x; then
10728 case $cross_compiling:$ac_tool_warned in
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10732 ac_tool_warned=yes ;;
10737 CC="$ac_cv_prog_CC"
10740 if test -z "$CC"; then
10741 if test -n "$ac_tool_prefix"; then
10742 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10743 set dummy ${ac_tool_prefix}cc; ac_word=$2
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10745 $as_echo_n "checking for $ac_word... " >&6; }
10746 if ${ac_cv_prog_CC+:} false; then :
10747 $as_echo_n "(cached) " >&6
10749 if test -n "$CC"; then
10750 ac_cv_prog_CC="$CC" # Let the user override the test.
10752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753 for as_dir in $PATH
10756 test -z "$as_dir" && as_dir=.
10757 for ac_exec_ext in '' $ac_executable_extensions; do
10758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10759 ac_cv_prog_CC="${ac_tool_prefix}cc"
10760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10770 if test -n "$CC"; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10772 $as_echo "$CC" >&6; }
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10775 $as_echo "no" >&6; }
10781 if test -z "$CC"; then
10782 # Extract the first word of "cc", so it can be a program name with args.
10783 set dummy cc; ac_word=$2
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10785 $as_echo_n "checking for $ac_word... " >&6; }
10786 if ${ac_cv_prog_CC+:} false; then :
10787 $as_echo_n "(cached) " >&6
10789 if test -n "$CC"; then
10790 ac_cv_prog_CC="$CC" # Let the user override the test.
10792 ac_prog_rejected=no
10793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10794 for as_dir in $PATH
10797 test -z "$as_dir" && as_dir=.
10798 for ac_exec_ext in '' $ac_executable_extensions; do
10799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10800 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10801 ac_prog_rejected=yes
10805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10812 if test $ac_prog_rejected = yes; then
10813 # We found a bogon in the path, so make sure we never use it.
10814 set dummy $ac_cv_prog_CC
10816 if test $# != 0; then
10817 # We chose a different compiler from the bogus one.
10818 # However, it has the same basename, so the bogon will be chosen
10819 # first if we set CC to just the basename; use the full file name.
10821 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10827 if test -n "$CC"; then
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10829 $as_echo "$CC" >&6; }
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832 $as_echo "no" >&6; }
10837 if test -z "$CC"; then
10838 if test -n "$ac_tool_prefix"; then
10839 for ac_prog in cl.exe
10841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10842 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844 $as_echo_n "checking for $ac_word... " >&6; }
10845 if ${ac_cv_prog_CC+:} false; then :
10846 $as_echo_n "(cached) " >&6
10848 if test -n "$CC"; then
10849 ac_cv_prog_CC="$CC" # Let the user override the test.
10851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10852 for as_dir in $PATH
10855 test -z "$as_dir" && as_dir=.
10856 for ac_exec_ext in '' $ac_executable_extensions; do
10857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10858 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10869 if test -n "$CC"; then
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10871 $as_echo "$CC" >&6; }
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874 $as_echo "no" >&6; }
10878 test -n "$CC" && break
10881 if test -z "$CC"; then
10883 for ac_prog in cl.exe
10885 # Extract the first word of "$ac_prog", so it can be a program name with args.
10886 set dummy $ac_prog; ac_word=$2
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10888 $as_echo_n "checking for $ac_word... " >&6; }
10889 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10890 $as_echo_n "(cached) " >&6
10892 if test -n "$ac_ct_CC"; then
10893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896 for as_dir in $PATH
10899 test -z "$as_dir" && as_dir=.
10900 for ac_exec_ext in '' $ac_executable_extensions; do
10901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10902 ac_cv_prog_ac_ct_CC="$ac_prog"
10903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10913 if test -n "$ac_ct_CC"; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10915 $as_echo "$ac_ct_CC" >&6; }
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10922 test -n "$ac_ct_CC" && break
10925 if test "x$ac_ct_CC" = x; then
10928 case $cross_compiling:$ac_tool_warned in
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10932 ac_tool_warned=yes ;;
10941 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10943 as_fn_error $? "no acceptable C compiler found in \$PATH
10944 See \`config.log' for more details" "$LINENO" 5; }
10946 # Provide some information about the compiler.
10947 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10950 for ac_option in --version -v -V -qversion; do
10951 { { ac_try="$ac_compiler $ac_option >&5"
10952 case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10957 $as_echo "$ac_try_echo"; } >&5
10958 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10960 if test -s conftest.err; then
10962 ... rest of stderr output deleted ...
10963 10q' conftest.err >conftest.er1
10964 cat conftest.er1 >&5
10966 rm -f conftest.er1 conftest.err
10967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10968 test $ac_status = 0; }
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10972 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10973 if ${ac_cv_c_compiler_gnu+:} false; then :
10974 $as_echo_n "(cached) " >&6
10976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h. */
10990 if ac_fn_c_try_compile "$LINENO"; then :
10991 ac_compiler_gnu=yes
10995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11000 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11001 if test $ac_compiler_gnu = yes; then
11006 ac_test_CFLAGS=${CFLAGS+set}
11007 ac_save_CFLAGS=$CFLAGS
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11009 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11010 if ${ac_cv_prog_cc_g+:} false; then :
11011 $as_echo_n "(cached) " >&6
11013 ac_save_c_werror_flag=$ac_c_werror_flag
11014 ac_c_werror_flag=yes
11017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11028 if ac_fn_c_try_compile "$LINENO"; then :
11029 ac_cv_prog_cc_g=yes
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11043 if ac_fn_c_try_compile "$LINENO"; then :
11046 ac_c_werror_flag=$ac_save_c_werror_flag
11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11059 if ac_fn_c_try_compile "$LINENO"; then :
11060 ac_cv_prog_cc_g=yes
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067 ac_c_werror_flag=$ac_save_c_werror_flag
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11070 $as_echo "$ac_cv_prog_cc_g" >&6; }
11071 if test "$ac_test_CFLAGS" = set; then
11072 CFLAGS=$ac_save_CFLAGS
11073 elif test $ac_cv_prog_cc_g = yes; then
11074 if test "$GCC" = yes; then
11080 if test "$GCC" = yes; then
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11087 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11088 if ${ac_cv_prog_cc_c89+:} false; then :
11089 $as_echo_n "(cached) " >&6
11091 ac_cv_prog_cc_c89=no
11093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11095 #include <stdarg.h>
11098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11099 struct buf { int x; };
11100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11101 static char *e (p, i)
11107 static char *f (char * (*g) (char **, int), char **p, ...)
11112 s = g (p, va_arg (v,int));
11117 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11118 function prototypes and stuff, but not '\xHH' hex character constants.
11119 These don't provoke an error unfortunately, instead are silently treated
11120 as 'x'. The following induces an error, until -std is added to get
11121 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11122 array size at least. It's necessary to write '\x00'==0 to get something
11123 that's true only with -std. */
11124 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11126 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11127 inside strings and character constants. */
11129 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11131 int test (int i, double x);
11132 struct s1 {int (*f) (int a);};
11133 struct s2 {int (*f) (double a);};
11134 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11140 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11145 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11146 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11148 CC="$ac_save_CC $ac_arg"
11149 if ac_fn_c_try_compile "$LINENO"; then :
11150 ac_cv_prog_cc_c89=$ac_arg
11152 rm -f core conftest.err conftest.$ac_objext
11153 test "x$ac_cv_prog_cc_c89" != "xno" && break
11155 rm -f conftest.$ac_ext
11160 case "x$ac_cv_prog_cc_c89" in
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11163 $as_echo "none needed" >&6; } ;;
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11166 $as_echo "unsupported" >&6; } ;;
11168 CC="$CC $ac_cv_prog_cc_c89"
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11170 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11172 if test "x$ac_cv_prog_cc_c89" != xno; then :
11177 ac_cpp='$CPP $CPPFLAGS'
11178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11184 pkg_version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
11186 pkg_release=$PKG_BUILD
11187 test -z "$BUILD_VERSION" || pkg_release="$BUILD_VERSION"
11190 DEBUG=${DEBUG:-'-DDEBUG'} debug_build="$DEBUG"
11193 OPTIMIZER=${OPTIMIZER:-'-g -O2'}
11194 opt_build="$OPTIMIZER"
11197 MALLOCLIB=${MALLOCLIB:-''} malloc_lib="$MALLOCLIB"
11200 pkg_user=`id -u -n`
11201 test -z "$INSTALL_USER" || pkg_user="$INSTALL_USER"
11204 pkg_group=`id -g -n`
11205 test -z "$INSTALL_GROUP" || pkg_group="$INSTALL_GROUP"
11208 pkg_distribution=`uname -s`
11209 test -z "$DISTRIBUTION" || pkg_distribution="$DISTRIBUTION"
11212 pkg_platform=`uname -s | tr 'A-Z' 'a-z' | sed -e 's/irix64/irix/'`
11213 test -z "$PLATFORM" || pkg_platform="$PLATFORM"
11217 ac_cpp='$CPP $CPPFLAGS'
11218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11221 if test -n "$ac_tool_prefix"; then
11222 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11223 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225 $as_echo_n "checking for $ac_word... " >&6; }
11226 if ${ac_cv_prog_CC+:} false; then :
11227 $as_echo_n "(cached) " >&6
11229 if test -n "$CC"; then
11230 ac_cv_prog_CC="$CC" # Let the user override the test.
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH
11236 test -z "$as_dir" && as_dir=.
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11239 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11250 if test -n "$CC"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11252 $as_echo "$CC" >&6; }
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11260 if test -z "$ac_cv_prog_CC"; then
11262 # Extract the first word of "gcc", so it can be a program name with args.
11263 set dummy gcc; ac_word=$2
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265 $as_echo_n "checking for $ac_word... " >&6; }
11266 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11267 $as_echo_n "(cached) " >&6
11269 if test -n "$ac_ct_CC"; then
11270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273 for as_dir in $PATH
11276 test -z "$as_dir" && as_dir=.
11277 for ac_exec_ext in '' $ac_executable_extensions; do
11278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11279 ac_cv_prog_ac_ct_CC="gcc"
11280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11290 if test -n "$ac_ct_CC"; then
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11292 $as_echo "$ac_ct_CC" >&6; }
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295 $as_echo "no" >&6; }
11298 if test "x$ac_ct_CC" = x; then
11301 case $cross_compiling:$ac_tool_warned in
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11305 ac_tool_warned=yes ;;
11310 CC="$ac_cv_prog_CC"
11313 if test -z "$CC"; then
11314 if test -n "$ac_tool_prefix"; then
11315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11316 set dummy ${ac_tool_prefix}cc; ac_word=$2
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11318 $as_echo_n "checking for $ac_word... " >&6; }
11319 if ${ac_cv_prog_CC+:} false; then :
11320 $as_echo_n "(cached) " >&6
11322 if test -n "$CC"; then
11323 ac_cv_prog_CC="$CC" # Let the user override the test.
11325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326 for as_dir in $PATH
11329 test -z "$as_dir" && as_dir=.
11330 for ac_exec_ext in '' $ac_executable_extensions; do
11331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11332 ac_cv_prog_CC="${ac_tool_prefix}cc"
11333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11343 if test -n "$CC"; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11345 $as_echo "$CC" >&6; }
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348 $as_echo "no" >&6; }
11354 if test -z "$CC"; then
11355 # Extract the first word of "cc", so it can be a program name with args.
11356 set dummy cc; ac_word=$2
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11358 $as_echo_n "checking for $ac_word... " >&6; }
11359 if ${ac_cv_prog_CC+:} false; then :
11360 $as_echo_n "(cached) " >&6
11362 if test -n "$CC"; then
11363 ac_cv_prog_CC="$CC" # Let the user override the test.
11365 ac_prog_rejected=no
11366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11367 for as_dir in $PATH
11370 test -z "$as_dir" && as_dir=.
11371 for ac_exec_ext in '' $ac_executable_extensions; do
11372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11373 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11374 ac_prog_rejected=yes
11378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11385 if test $ac_prog_rejected = yes; then
11386 # We found a bogon in the path, so make sure we never use it.
11387 set dummy $ac_cv_prog_CC
11389 if test $# != 0; then
11390 # We chose a different compiler from the bogus one.
11391 # However, it has the same basename, so the bogon will be chosen
11392 # first if we set CC to just the basename; use the full file name.
11394 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11400 if test -n "$CC"; then
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11402 $as_echo "$CC" >&6; }
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11410 if test -z "$CC"; then
11411 if test -n "$ac_tool_prefix"; then
11412 for ac_prog in cl.exe
11414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11417 $as_echo_n "checking for $ac_word... " >&6; }
11418 if ${ac_cv_prog_CC+:} false; then :
11419 $as_echo_n "(cached) " >&6
11421 if test -n "$CC"; then
11422 ac_cv_prog_CC="$CC" # Let the user override the test.
11424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11425 for as_dir in $PATH
11428 test -z "$as_dir" && as_dir=.
11429 for ac_exec_ext in '' $ac_executable_extensions; do
11430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 if test -n "$CC"; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11444 $as_echo "$CC" >&6; }
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447 $as_echo "no" >&6; }
11451 test -n "$CC" && break
11454 if test -z "$CC"; then
11456 for ac_prog in cl.exe
11458 # Extract the first word of "$ac_prog", so it can be a program name with args.
11459 set dummy $ac_prog; ac_word=$2
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11461 $as_echo_n "checking for $ac_word... " >&6; }
11462 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11463 $as_echo_n "(cached) " >&6
11465 if test -n "$ac_ct_CC"; then
11466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11469 for as_dir in $PATH
11472 test -z "$as_dir" && as_dir=.
11473 for ac_exec_ext in '' $ac_executable_extensions; do
11474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11475 ac_cv_prog_ac_ct_CC="$ac_prog"
11476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11486 if test -n "$ac_ct_CC"; then
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11488 $as_echo "$ac_ct_CC" >&6; }
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11491 $as_echo "no" >&6; }
11495 test -n "$ac_ct_CC" && break
11498 if test "x$ac_ct_CC" = x; then
11501 case $cross_compiling:$ac_tool_warned in
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11505 ac_tool_warned=yes ;;
11514 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11516 as_fn_error $? "no acceptable C compiler found in \$PATH
11517 See \`config.log' for more details" "$LINENO" 5; }
11519 # Provide some information about the compiler.
11520 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11523 for ac_option in --version -v -V -qversion; do
11524 { { ac_try="$ac_compiler $ac_option >&5"
11525 case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11530 $as_echo "$ac_try_echo"; } >&5
11531 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11533 if test -s conftest.err; then
11535 ... rest of stderr output deleted ...
11536 10q' conftest.err >conftest.er1
11537 cat conftest.er1 >&5
11539 rm -f conftest.er1 conftest.err
11540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11541 test $ac_status = 0; }
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11545 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11546 if ${ac_cv_c_compiler_gnu+:} false; then :
11547 $as_echo_n "(cached) " >&6
11549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h. */
11563 if ac_fn_c_try_compile "$LINENO"; then :
11564 ac_compiler_gnu=yes
11568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11573 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11574 if test $ac_compiler_gnu = yes; then
11579 ac_test_CFLAGS=${CFLAGS+set}
11580 ac_save_CFLAGS=$CFLAGS
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11582 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11583 if ${ac_cv_prog_cc_g+:} false; then :
11584 $as_echo_n "(cached) " >&6
11586 ac_save_c_werror_flag=$ac_c_werror_flag
11587 ac_c_werror_flag=yes
11590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591 /* end confdefs.h. */
11601 if ac_fn_c_try_compile "$LINENO"; then :
11602 ac_cv_prog_cc_g=yes
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11616 if ac_fn_c_try_compile "$LINENO"; then :
11619 ac_c_werror_flag=$ac_save_c_werror_flag
11621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h. */
11632 if ac_fn_c_try_compile "$LINENO"; then :
11633 ac_cv_prog_cc_g=yes
11635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640 ac_c_werror_flag=$ac_save_c_werror_flag
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11643 $as_echo "$ac_cv_prog_cc_g" >&6; }
11644 if test "$ac_test_CFLAGS" = set; then
11645 CFLAGS=$ac_save_CFLAGS
11646 elif test $ac_cv_prog_cc_g = yes; then
11647 if test "$GCC" = yes; then
11653 if test "$GCC" = yes; then
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11660 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11661 if ${ac_cv_prog_cc_c89+:} false; then :
11662 $as_echo_n "(cached) " >&6
11664 ac_cv_prog_cc_c89=no
11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11668 #include <stdarg.h>
11671 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11672 struct buf { int x; };
11673 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11674 static char *e (p, i)
11680 static char *f (char * (*g) (char **, int), char **p, ...)
11685 s = g (p, va_arg (v,int));
11690 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11691 function prototypes and stuff, but not '\xHH' hex character constants.
11692 These don't provoke an error unfortunately, instead are silently treated
11693 as 'x'. The following induces an error, until -std is added to get
11694 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11695 array size at least. It's necessary to write '\x00'==0 to get something
11696 that's true only with -std. */
11697 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11699 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11700 inside strings and character constants. */
11702 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11704 int test (int i, double x);
11705 struct s1 {int (*f) (int a);};
11706 struct s2 {int (*f) (double a);};
11707 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11713 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11718 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11719 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11721 CC="$ac_save_CC $ac_arg"
11722 if ac_fn_c_try_compile "$LINENO"; then :
11723 ac_cv_prog_cc_c89=$ac_arg
11725 rm -f core conftest.err conftest.$ac_objext
11726 test "x$ac_cv_prog_cc_c89" != "xno" && break
11728 rm -f conftest.$ac_ext
11733 case "x$ac_cv_prog_cc_c89" in
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11736 $as_echo "none needed" >&6; } ;;
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11739 $as_echo "unsupported" >&6; } ;;
11741 CC="$CC $ac_cv_prog_cc_c89"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11743 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11745 if test "x$ac_cv_prog_cc_c89" != xno; then :
11750 ac_cpp='$CPP $CPPFLAGS'
11751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11757 if test -z ""$cc""; then
11759 echo FATAL ERROR: cc does not seem to be installed.
11760 echo attr cannot be built without a working C compiler installation.
11765 search_path="$PATH$PATH_SEPARATOR/usr/freeware/bin$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR/usr/local/bin"
11767 for ac_prog in gmake make
11769 # Extract the first word of "$ac_prog", so it can be a program name with args.
11770 set dummy $ac_prog; ac_word=$2
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11772 $as_echo_n "checking for $ac_word... " >&6; }
11773 if ${ac_cv_path_MAKE+:} false; then :
11774 $as_echo_n "(cached) " >&6
11778 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
11781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782 for as_dir in $search_path
11785 test -z "$as_dir" && as_dir=.
11786 for ac_exec_ext in '' $ac_executable_extensions; do
11787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11788 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
11789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11799 MAKE=$ac_cv_path_MAKE
11800 if test -n "$MAKE"; then
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
11802 $as_echo "$MAKE" >&6; }
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11809 test -n "$MAKE" && break
11814 if test -z ""$make""; then
11816 echo FATAL ERROR: make does not seem to be installed.
11817 echo attr cannot be built without a working GNU make installation.
11822 # Extract the first word of "tar", so it can be a program name with args.
11823 set dummy tar; ac_word=$2
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825 $as_echo_n "checking for $ac_word... " >&6; }
11826 if ${ac_cv_path_TAR+:} false; then :
11827 $as_echo_n "(cached) " >&6
11831 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11835 for as_dir in $search_path
11838 test -z "$as_dir" && as_dir=.
11839 for ac_exec_ext in '' $ac_executable_extensions; do
11840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11841 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11852 TAR=$ac_cv_path_TAR
11853 if test -n "$TAR"; then
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11855 $as_echo "$TAR" >&6; }
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858 $as_echo "no" >&6; }
11865 # Extract the first word of "gzip", so it can be a program name with args.
11866 set dummy gzip; ac_word=$2
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11868 $as_echo_n "checking for $ac_word... " >&6; }
11869 if ${ac_cv_path_ZIP+:} false; then :
11870 $as_echo_n "(cached) " >&6
11874 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
11877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878 for as_dir in $search_path
11881 test -z "$as_dir" && as_dir=.
11882 for ac_exec_ext in '' $ac_executable_extensions; do
11883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11884 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
11885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11895 ZIP=$ac_cv_path_ZIP
11896 if test -n "$ZIP"; then
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
11898 $as_echo "$ZIP" >&6; }
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901 $as_echo "no" >&6; }
11908 # Extract the first word of "makedepend", so it can be a program name with args.
11909 set dummy makedepend; ac_word=$2
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11911 $as_echo_n "checking for $ac_word... " >&6; }
11912 if ${ac_cv_path_MAKEDEPEND+:} false; then :
11913 $as_echo_n "(cached) " >&6
11915 case $MAKEDEPEND in
11917 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
11920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11921 for as_dir in $PATH
11924 test -z "$as_dir" && as_dir=.
11925 for ac_exec_ext in '' $ac_executable_extensions; do
11926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11927 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
11928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11935 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="/bin/true"
11939 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
11940 if test -n "$MAKEDEPEND"; then
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
11942 $as_echo "$MAKEDEPEND" >&6; }
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 $as_echo "no" >&6; }
11949 makedepend=$MAKEDEPEND
11952 # Extract the first word of "awk", so it can be a program name with args.
11953 set dummy awk; ac_word=$2
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11955 $as_echo_n "checking for $ac_word... " >&6; }
11956 if ${ac_cv_path_AWK+:} false; then :
11957 $as_echo_n "(cached) " >&6
11961 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11965 for as_dir in $search_path
11968 test -z "$as_dir" && as_dir=.
11969 for ac_exec_ext in '' $ac_executable_extensions; do
11970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11971 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11982 AWK=$ac_cv_path_AWK
11983 if test -n "$AWK"; then
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11985 $as_echo "$AWK" >&6; }
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988 $as_echo "no" >&6; }
11995 # Extract the first word of "sed", so it can be a program name with args.
11996 set dummy sed; ac_word=$2
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998 $as_echo_n "checking for $ac_word... " >&6; }
11999 if ${ac_cv_path_SED+:} false; then :
12000 $as_echo_n "(cached) " >&6
12004 ac_cv_path_SED="$SED" # Let the user override the test with a path.
12007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008 for as_dir in $search_path
12011 test -z "$as_dir" && as_dir=.
12012 for ac_exec_ext in '' $ac_executable_extensions; do
12013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12014 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12025 SED=$ac_cv_path_SED
12026 if test -n "$SED"; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12028 $as_echo "$SED" >&6; }
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12038 # Extract the first word of "echo", so it can be a program name with args.
12039 set dummy echo; ac_word=$2
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041 $as_echo_n "checking for $ac_word... " >&6; }
12042 if ${ac_cv_path_ECHO+:} false; then :
12043 $as_echo_n "(cached) " >&6
12047 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
12050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051 for as_dir in $search_path
12054 test -z "$as_dir" && as_dir=.
12055 for ac_exec_ext in '' $ac_executable_extensions; do
12056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12057 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
12058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12068 ECHO=$ac_cv_path_ECHO
12069 if test -n "$ECHO"; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
12071 $as_echo "$ECHO" >&6; }
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12081 # Extract the first word of "sort", so it can be a program name with args.
12082 set dummy sort; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if ${ac_cv_path_SORT+:} false; then :
12086 $as_echo_n "(cached) " >&6
12090 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $search_path
12097 test -z "$as_dir" && as_dir=.
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12100 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
12101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 SORT=$ac_cv_path_SORT
12112 if test -n "$SORT"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
12114 $as_echo "$SORT" >&6; }
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12125 $as_echo_n "checking whether ln -s works... " >&6; }
12127 if test "$LN_S" = "ln -s"; then
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12129 $as_echo "yes" >&6; }
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12132 $as_echo "no, using $LN_S" >&6; }
12136 if test "$enable_gettext" = yes; then
12137 # Extract the first word of "msgfmt", so it can be a program name with args.
12138 set dummy msgfmt; ac_word=$2
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140 $as_echo_n "checking for $ac_word... " >&6; }
12141 if ${ac_cv_path_MSGFMT+:} false; then :
12142 $as_echo_n "(cached) " >&6
12146 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12150 for as_dir in $search_path
12153 test -z "$as_dir" && as_dir=.
12154 for ac_exec_ext in '' $ac_executable_extensions; do
12155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12156 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
12157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12167 MSGFMT=$ac_cv_path_MSGFMT
12168 if test -n "$MSGFMT"; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12170 $as_echo "$MSGFMT" >&6; }
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173 $as_echo "no" >&6; }
12179 if test -z ""$msgfmt""; then
12181 echo FATAL ERROR: msgfmt does not seem to be installed.
12182 echo attr cannot be built without a working gettext installation.
12187 # Extract the first word of "msgmerge", so it can be a program name with args.
12188 set dummy msgmerge; ac_word=$2
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190 $as_echo_n "checking for $ac_word... " >&6; }
12191 if ${ac_cv_path_MSGMERGE+:} false; then :
12192 $as_echo_n "(cached) " >&6
12196 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200 for as_dir in $search_path
12203 test -z "$as_dir" && as_dir=.
12204 for ac_exec_ext in '' $ac_executable_extensions; do
12205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12206 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
12207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12217 MSGMERGE=$ac_cv_path_MSGMERGE
12218 if test -n "$MSGMERGE"; then
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12220 $as_echo "$MSGMERGE" >&6; }
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 $as_echo "no" >&6; }
12229 if test -z ""$msgmerge""; then
12231 echo FATAL ERROR: msgmerge does not seem to be installed.
12232 echo attr cannot be built without a working gettext installation.
12237 # Extract the first word of "xgettext", so it can be a program name with args.
12238 set dummy xgettext; ac_word=$2
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12240 $as_echo_n "checking for $ac_word... " >&6; }
12241 if ${ac_cv_path_XGETTEXT+:} false; then :
12242 $as_echo_n "(cached) " >&6
12246 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250 for as_dir in $search_path
12253 test -z "$as_dir" && as_dir=.
12254 for ac_exec_ext in '' $ac_executable_extensions; do
12255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12256 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
12257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12267 XGETTEXT=$ac_cv_path_XGETTEXT
12268 if test -n "$XGETTEXT"; then
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12270 $as_echo "$XGETTEXT" >&6; }
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273 $as_echo "no" >&6; }
12279 if test -z ""$xgettext""; then
12281 echo FATAL ERROR: xgettext does not seem to be installed.
12282 echo attr cannot be built without a working gettext installation.
12288 $as_echo "#define ENABLE_GETTEXT 1" >>confdefs.h
12292 # Extract the first word of "rpm", so it can be a program name with args.
12293 set dummy rpm; ac_word=$2
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295 $as_echo_n "checking for $ac_word... " >&6; }
12296 if ${ac_cv_path_RPM+:} false; then :
12297 $as_echo_n "(cached) " >&6
12301 ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
12304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12305 for as_dir in $search_path
12308 test -z "$as_dir" && as_dir=.
12309 for ac_exec_ext in '' $ac_executable_extensions; do
12310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12311 ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
12312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 RPM=$ac_cv_path_RPM
12323 if test -n "$RPM"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
12325 $as_echo "$RPM" >&6; }
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12336 test -n "$RPM" && test -x "$RPM" && rpm_version=`$RPM --version \
12337 | awk '{print $NF}' | awk -F. '{V=1; print $V}'`
12339 if test $rpm_version -ge 4; then
12340 # Extract the first word of "rpmbuild", so it can be a program name with args.
12341 set dummy rpmbuild; ac_word=$2
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343 $as_echo_n "checking for $ac_word... " >&6; }
12344 if ${ac_cv_path_RPMBUILD+:} false; then :
12345 $as_echo_n "(cached) " >&6
12349 ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
12352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353 for as_dir in $PATH
12356 test -z "$as_dir" && as_dir=.
12357 for ac_exec_ext in '' $ac_executable_extensions; do
12358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12359 ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
12360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12370 RPMBUILD=$ac_cv_path_RPMBUILD
12371 if test -n "$RPMBUILD"; then
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
12373 $as_echo "$RPMBUILD" >&6; }
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376 $as_echo "no" >&6; }
12386 have_zipped_manpages=false
12387 for d in ${prefix}/share/man ${prefix}/man ; do
12388 if test -f $d/man1/man.1.gz
12390 have_zipped_manpages=true
12397 enable_lib64="$enable_lib64"
12399 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12400 if test "$enable_lib64" = "yes" -a -n "$searchpath"; then
12401 save_IFS="${IFS= }"; IFS=":"
12402 for searchdir in $searchpath; do
12403 if test -d "$searchdir"; then
12404 case "$searchdir" in
12405 */lib64/ | */lib64 ) libdirsuffix=64 ;;
12406 *) searchdir=`cd "$searchdir" && pwd`
12407 case "$searchdir" in
12408 */lib64 ) libdirsuffix=64 ;;
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12419 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12420 if ${ac_cv_c_const+:} false; then :
12421 $as_echo_n "(cached) " >&6
12423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424 /* end confdefs.h. */
12430 #ifndef __cplusplus
12431 /* Ultrix mips cc rejects this sort of thing. */
12432 typedef int charset[2];
12433 const charset cs = { 0, 0 };
12434 /* SunOS 4.1.1 cc rejects this. */
12435 char const *const *pcpcc;
12437 /* NEC SVR4.0.2 mips cc rejects this. */
12438 struct point {int x, y;};
12439 static struct point const zero = {0,0};
12440 /* AIX XL C 1.02.0.0 rejects this.
12441 It does not let you subtract one const X* pointer from another in
12442 an arm of an if-expression whose if-part is not a constant
12444 const char *g = "string";
12445 pcpcc = &g + (g ? g-g : 0);
12446 /* HPUX 7.0 cc rejects these. */
12448 ppc = (char**) pcpcc;
12449 pcpcc = (char const *const *) ppc;
12450 { /* SCO 3.2v4 cc rejects this sort of thing. */
12453 char const *s = 0 ? (char *) 0 : (char const *) 0;
12458 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12459 int x[] = {25, 17};
12460 const int *foo = &x[0];
12463 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12464 typedef const int *iptr;
12468 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12469 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12470 struct s { int j; const int *ap[3]; } bx;
12471 struct s *b = &bx; b->j = 5;
12473 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12474 const int foo = 10;
12475 if (!foo) return 0;
12477 return !cs[0] && !zero.x;
12484 if ac_fn_c_try_compile "$LINENO"; then :
12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12492 $as_echo "$ac_cv_c_const" >&6; }
12493 if test $ac_cv_c_const = no; then
12495 $as_echo "#define const /**/" >>confdefs.h
12499 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12500 if test "x$ac_cv_type_mode_t" = xyes; then :
12504 cat >>confdefs.h <<_ACEOF
12510 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12511 if test "x$ac_cv_type_size_t" = xyes; then :
12515 cat >>confdefs.h <<_ACEOF
12516 #define size_t unsigned int
12521 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12522 # for constant arguments. Useless!
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12524 $as_echo_n "checking for working alloca.h... " >&6; }
12525 if ${ac_cv_working_alloca_h+:} false; then :
12526 $as_echo_n "(cached) " >&6
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12530 #include <alloca.h>
12534 char *p = (char *) alloca (2 * sizeof (int));
12540 if ac_fn_c_try_link "$LINENO"; then :
12541 ac_cv_working_alloca_h=yes
12543 ac_cv_working_alloca_h=no
12545 rm -f core conftest.err conftest.$ac_objext \
12546 conftest$ac_exeext conftest.$ac_ext
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12549 $as_echo "$ac_cv_working_alloca_h" >&6; }
12550 if test $ac_cv_working_alloca_h = yes; then
12552 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12557 $as_echo_n "checking for alloca... " >&6; }
12558 if ${ac_cv_func_alloca_works+:} false; then :
12559 $as_echo_n "(cached) " >&6
12561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562 /* end confdefs.h. */
12564 # define alloca __builtin_alloca
12567 # include <malloc.h>
12568 # define alloca _alloca
12570 # ifdef HAVE_ALLOCA_H
12571 # include <alloca.h>
12576 # ifndef alloca /* predefined by HP cc +Olibcalls */
12577 void *alloca (size_t);
12587 char *p = (char *) alloca (1);
12593 if ac_fn_c_try_link "$LINENO"; then :
12594 ac_cv_func_alloca_works=yes
12596 ac_cv_func_alloca_works=no
12598 rm -f core conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext conftest.$ac_ext
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12602 $as_echo "$ac_cv_func_alloca_works" >&6; }
12604 if test $ac_cv_func_alloca_works = yes; then
12606 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12609 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12610 # that cause trouble. Some versions do not even contain alloca or
12611 # contain a buggy version. If you still want to use their alloca,
12612 # use ar to extract alloca.o from them instead of compiling alloca.c.
12614 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12616 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12620 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12621 if ${ac_cv_os_cray+:} false; then :
12622 $as_echo_n "(cached) " >&6
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12626 #if defined CRAY && ! defined CRAY2
12633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12634 $EGREP "webecray" >/dev/null 2>&1; then :
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12643 $as_echo "$ac_cv_os_cray" >&6; }
12644 if test $ac_cv_os_cray = yes; then
12645 for ac_func in _getb67 GETB67 getb67; do
12646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12647 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12648 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12650 cat >>confdefs.h <<_ACEOF
12651 #define CRAY_STACKSEG_END $ac_func
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12661 $as_echo_n "checking stack direction for C alloca... " >&6; }
12662 if ${ac_cv_c_stack_direction+:} false; then :
12663 $as_echo_n "(cached) " >&6
12665 if test "$cross_compiling" = yes; then :
12666 ac_cv_c_stack_direction=0
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h. */
12670 $ac_includes_default
12672 find_stack_direction (int *addr, int depth)
12674 int dir, dummy = 0;
12677 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
12678 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
12679 return dir + dummy;
12683 main (int argc, char **argv)
12685 return find_stack_direction (0, argc + !argv + 20) < 0;
12688 if ac_fn_c_try_run "$LINENO"; then :
12689 ac_cv_c_stack_direction=1
12691 ac_cv_c_stack_direction=-1
12693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12694 conftest.$ac_objext conftest.beam conftest.$ac_ext
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12699 $as_echo "$ac_cv_c_stack_direction" >&6; }
12700 cat >>confdefs.h <<_ACEOF
12701 #define STACK_DIRECTION $ac_cv_c_stack_direction
12708 ac_config_files="$ac_config_files include/builddefs"
12710 cat >confcache <<\_ACEOF
12711 # This file is a shell script that caches the results of configure
12712 # tests run on this system so they can be shared between configure
12713 # scripts and configure runs, see configure's option --config-cache.
12714 # It is not useful on other systems. If it contains results you don't
12715 # want to keep, you may remove or edit it.
12717 # config.status only pays attention to the cache file if you give it
12718 # the --recheck option to rerun configure.
12720 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12721 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12722 # following values.
12726 # The following way of writing the cache mishandles newlines in values,
12727 # but we know of no workaround that is simple, portable, and efficient.
12728 # So, we kill variables containing newlines.
12729 # Ultrix sh set writes to stderr and can't be redirected directly,
12730 # and sets the high bit in the cache file unless we assign to the vars.
12732 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12733 eval ac_val=\$$ac_var
12737 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12738 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12741 _ | IFS | as_nl) ;; #(
12742 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12743 *) { eval $ac_var=; unset $ac_var;} ;;
12749 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12750 *${as_nl}ac_space=\ *)
12751 # `set' does not quote correctly, so add quotes: double-quote
12752 # substitution turns \\\\ into \\, and sed turns \\ into \.
12755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12758 # `set' quotes correctly as required by POSIX, so do not add quotes.
12759 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12768 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12770 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12772 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12773 if test -w "$cache_file"; then
12774 if test "x$cache_file" != "x/dev/null"; then
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12776 $as_echo "$as_me: updating cache $cache_file" >&6;}
12777 if test ! -f "$cache_file" || test -h "$cache_file"; then
12778 cat confcache >"$cache_file"
12780 case $cache_file in #(
12782 mv -f confcache "$cache_file"$$ &&
12783 mv -f "$cache_file"$$ "$cache_file" ;; #(
12785 mv -f confcache "$cache_file" ;;
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12791 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12796 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12797 # Let make expand exec_prefix.
12798 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12800 DEFS=-DHAVE_CONFIG_H
12805 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12806 # 1. Remove the extension, and $U if already installed.
12807 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12808 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12809 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12810 # will be set to the directory where LIBOBJS objects are built.
12811 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12812 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12814 LIBOBJS=$ac_libobjs
12816 LTLIBOBJS=$ac_ltlibobjs
12820 : "${CONFIG_STATUS=./config.status}"
12822 ac_clean_files_save=$ac_clean_files
12823 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12825 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12827 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12829 # Generated by $as_me.
12830 # Run this file to recreate the current configuration.
12831 # Compiler output produced by configure, useful for debugging
12832 # configure, is in config.log if it exists.
12835 ac_cs_recheck=false
12838 SHELL=\${CONFIG_SHELL-$SHELL}
12841 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12842 ## -------------------- ##
12843 ## M4sh Initialization. ##
12844 ## -------------------- ##
12846 # Be more Bourne compatible
12847 DUALCASE=1; export DUALCASE # for MKS sh
12848 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12851 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12852 # is contrary to our usage. Disable this feature.
12853 alias -g '${1+"$@"}'='"$@"'
12854 setopt NO_GLOB_SUBST
12856 case `(set -o) 2>/dev/null` in #(
12868 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12869 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12870 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12871 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12872 # Prefer a ksh shell builtin over an external printf program on Solaris,
12873 # but without wasting forks for bash or zsh.
12874 if test -z "$BASH_VERSION$ZSH_VERSION" \
12875 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12876 as_echo='print -r --'
12877 as_echo_n='print -rn --'
12878 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12879 as_echo='printf %s\n'
12880 as_echo_n='printf %s'
12882 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12883 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12884 as_echo_n='/usr/ucb/echo -n'
12886 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12887 as_echo_n_body='eval
12891 expr "X$arg" : "X\\(.*\\)$as_nl";
12892 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12894 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12896 export as_echo_n_body
12897 as_echo_n='sh -c $as_echo_n_body as_echo'
12899 export as_echo_body
12900 as_echo='sh -c $as_echo_body as_echo'
12903 # The user is always right.
12904 if test "${PATH_SEPARATOR+set}" != set; then
12906 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12907 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12914 # We need space, tab and new line, in precisely that order. Quoting is
12915 # there to prevent editors from complaining about space-tab.
12916 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12917 # splitting by setting IFS to empty value.)
12920 # Find who we are. Look in the path if we contain no directory separator.
12923 *[\\/]* ) as_myself=$0 ;;
12924 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12925 for as_dir in $PATH
12928 test -z "$as_dir" && as_dir=.
12929 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12935 # We did not find ourselves, most probably we were run as `sh COMMAND'
12936 # in which case we are not to be found in the path.
12937 if test "x$as_myself" = x; then
12940 if test ! -f "$as_myself"; then
12941 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12945 # Unset variables that we do not need and which cause bugs (e.g. in
12946 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12947 # suppresses any "Segmentation fault" message there. '((' could
12948 # trigger a bug in pdksh 5.2.14.
12949 for as_var in BASH_ENV ENV MAIL MAILPATH
12950 do eval test x\${$as_var+set} = xset \
12951 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12964 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12967 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12968 # ----------------------------------------
12969 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12970 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12971 # script with STATUS, using 1 if that was 0.
12974 as_status=$1; test $as_status -eq 0 && as_status=1
12976 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12977 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12979 $as_echo "$as_me: error: $2" >&2
12980 as_fn_exit $as_status
12984 # as_fn_set_status STATUS
12985 # -----------------------
12986 # Set $? to STATUS, without forking.
12987 as_fn_set_status ()
12990 } # as_fn_set_status
12992 # as_fn_exit STATUS
12993 # -----------------
12994 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12998 as_fn_set_status $1
13004 # Portably unset VAR.
13007 { eval $1=; unset $1;}
13009 as_unset=as_fn_unset
13010 # as_fn_append VAR VALUE
13011 # ----------------------
13012 # Append the text in VALUE to the end of the definition contained in VAR. Take
13013 # advantage of any shell optimizations that allow amortized linear growth over
13014 # repeated appends, instead of the typical quadratic growth present in naive
13016 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13017 eval 'as_fn_append ()
13028 # as_fn_arith ARG...
13029 # ------------------
13030 # Perform arithmetic evaluation on the ARGs, and store the result in the
13031 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13032 # must be portable across $(()) and expr.
13033 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13034 eval 'as_fn_arith ()
13041 as_val=`expr "$@" || test $? -eq 1`
13046 if expr a : '\(a\)' >/dev/null 2>&1 &&
13047 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13053 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13054 as_basename=basename
13059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13065 as_me=`$as_basename -- "$0" ||
13066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13067 X"$0" : 'X\(//\)$' \| \
13068 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13070 sed '/^.*\/\([^/][^/]*\)\/*$/{
13084 # Avoid depending upon Character Ranges.
13085 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13086 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13087 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13088 as_cr_digits='0123456789'
13089 as_cr_alnum=$as_cr_Letters$as_cr_digits
13091 ECHO_C= ECHO_N= ECHO_T=
13092 case `echo -n x` in #(((((
13094 case `echo 'xy\c'` in
13095 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13097 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13104 rm -f conf$$ conf$$.exe conf$$.file
13105 if test -d conf$$.dir; then
13106 rm -f conf$$.dir/conf$$.file
13109 mkdir conf$$.dir 2>/dev/null
13111 if (echo >conf$$.file) 2>/dev/null; then
13112 if ln -s conf$$.file conf$$ 2>/dev/null; then
13114 # ... but there are two gotchas:
13115 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13116 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13117 # In both cases, we have to default to `cp -pR'.
13118 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13120 elif ln conf$$.file conf$$ 2>/dev/null; then
13128 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13129 rmdir conf$$.dir 2>/dev/null
13134 # Create "$as_dir" as a directory, including parents if necessary.
13139 -*) as_dir=./$as_dir;;
13141 test -d "$as_dir" || eval $as_mkdir_p || {
13145 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13146 *) as_qdir=$as_dir;;
13148 as_dirs="'$as_qdir' $as_dirs"
13149 as_dir=`$as_dirname -- "$as_dir" ||
13150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13151 X"$as_dir" : 'X\(//\)[^/]' \| \
13152 X"$as_dir" : 'X\(//\)$' \| \
13153 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13154 $as_echo X"$as_dir" |
13155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13159 /^X\(\/\/\)[^/].*/{
13172 test -d "$as_dir" && break
13174 test -z "$as_dirs" || eval "mkdir $as_dirs"
13175 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13179 if mkdir -p . 2>/dev/null; then
13180 as_mkdir_p='mkdir -p "$as_dir"'
13182 test -d ./-p && rmdir ./-p
13187 # as_fn_executable_p FILE
13188 # -----------------------
13189 # Test if FILE is an executable regular file.
13190 as_fn_executable_p ()
13192 test -f "$1" && test -x "$1"
13193 } # as_fn_executable_p
13194 as_test_x='test -x'
13195 as_executable_p=as_fn_executable_p
13197 # Sed expression to map a string onto a valid CPP name.
13198 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13200 # Sed expression to map a string onto a valid variable name.
13201 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13205 ## ----------------------------------- ##
13206 ## Main body of $CONFIG_STATUS script. ##
13207 ## ----------------------------------- ##
13209 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13212 # Save the log message, to keep $0 and so on meaningful, and to
13213 # report actual input values of CONFIG_FILES etc. instead of their
13214 # values after options handling.
13216 This file was extended by $as_me, which was
13217 generated by GNU Autoconf 2.69. Invocation command line was
13219 CONFIG_FILES = $CONFIG_FILES
13220 CONFIG_HEADERS = $CONFIG_HEADERS
13221 CONFIG_LINKS = $CONFIG_LINKS
13222 CONFIG_COMMANDS = $CONFIG_COMMANDS
13225 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13230 case $ac_config_files in *"
13231 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13234 case $ac_config_headers in *"
13235 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13240 # Files that config.status was made for.
13241 config_files="$ac_config_files"
13242 config_headers="$ac_config_headers"
13243 config_commands="$ac_config_commands"
13247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13249 \`$as_me' instantiates files and other configuration actions
13250 from templates according to the current configuration. Unless the files
13251 and actions are specified as TAGs, all are instantiated by default.
13253 Usage: $0 [OPTION]... [TAG]...
13255 -h, --help print this help, then exit
13256 -V, --version print version number and configuration settings, then exit
13257 --config print configuration, then exit
13258 -q, --quiet, --silent
13259 do not print progress messages
13260 -d, --debug don't remove temporary files
13261 --recheck update $as_me by reconfiguring in the same conditions
13262 --file=FILE[:TEMPLATE]
13263 instantiate the configuration file FILE
13264 --header=FILE[:TEMPLATE]
13265 instantiate the configuration header FILE
13267 Configuration files:
13270 Configuration headers:
13273 Configuration commands:
13276 Report bugs to the package provider."
13279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13280 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13283 configured by $0, generated by GNU Autoconf 2.69,
13284 with options \\"\$ac_cs_config\\"
13286 Copyright (C) 2012 Free Software Foundation, Inc.
13287 This config.status script is free software; the Free Software Foundation
13288 gives unlimited permission to copy, distribute and modify it."
13293 test -n "\$AWK" || AWK=awk
13296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13297 # The default lists apply if the user does not specify any file.
13303 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13304 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13308 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13320 # Handling of the options.
13321 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13323 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13324 $as_echo "$ac_cs_version"; exit ;;
13325 --config | --confi | --conf | --con | --co | --c )
13326 $as_echo "$ac_cs_config"; exit ;;
13327 --debug | --debu | --deb | --de | --d | -d )
13329 --file | --fil | --fi | --f )
13332 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13333 '') as_fn_error $? "missing file argument" ;;
13335 as_fn_append CONFIG_FILES " '$ac_optarg'"
13336 ac_need_defaults=false;;
13337 --header | --heade | --head | --hea )
13340 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13342 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13343 ac_need_defaults=false;;
13345 # Conflict between --help and --header
13346 as_fn_error $? "ambiguous option: \`$1'
13347 Try \`$0 --help' for more information.";;
13348 --help | --hel | -h )
13349 $as_echo "$ac_cs_usage"; exit ;;
13350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13351 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13354 # This is an error.
13355 -*) as_fn_error $? "unrecognized option: \`$1'
13356 Try \`$0 --help' for more information." ;;
13358 *) as_fn_append ac_config_targets " $1"
13359 ac_need_defaults=false ;;
13365 ac_configure_extra_args=
13367 if $ac_cs_silent; then
13369 ac_configure_extra_args="$ac_configure_extra_args --silent"
13373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13374 if \$ac_cs_recheck; then
13375 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13377 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13378 CONFIG_SHELL='$SHELL'
13379 export CONFIG_SHELL
13384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13388 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13389 ## Running $as_me. ##
13395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13401 # The HP-UX ksh and POSIX shell print the target directory to stdout
13402 # if CDPATH is set.
13403 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13405 sed_quote_subst='$sed_quote_subst'
13406 double_quote_subst='$double_quote_subst'
13407 delay_variable_subst='$delay_variable_subst'
13408 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13409 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13410 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13411 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13412 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13413 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13414 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13415 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13416 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13417 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13418 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13419 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13420 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13421 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13422 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13423 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13424 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13425 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13426 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13427 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13428 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13429 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13430 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13431 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13432 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13433 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13434 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13435 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13436 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13437 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13438 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13439 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13440 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13441 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13442 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13443 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13444 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13445 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13446 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13447 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13448 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13449 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13450 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13451 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13452 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13453 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13454 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13455 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13456 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13457 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13458 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13459 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13460 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13461 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13462 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13463 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13464 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13465 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13466 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13467 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13468 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13469 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13470 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13471 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13472 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13473 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13474 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13475 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13476 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13477 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13478 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13479 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13480 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13481 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13482 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13483 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13484 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13485 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13486 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13487 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13488 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13489 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13490 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13491 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13492 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13493 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13494 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13495 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13496 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13497 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13498 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13499 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13500 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13501 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13502 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13503 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13504 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13505 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13506 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13507 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13508 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13509 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13510 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13511 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13512 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13513 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13514 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13515 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13516 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13517 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13518 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13519 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13520 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13521 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13522 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13523 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13524 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13525 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13526 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13527 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13528 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13529 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13530 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13531 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13532 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13533 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13534 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13535 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13536 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13537 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13540 LTCFLAGS='$LTCFLAGS'
13541 compiler='$compiler_DEFAULT'
13543 # A function that is used when there is no print builtin or printf.
13544 func_fallback_echo ()
13546 eval 'cat <<_LTECHO_EOF
13551 # Quote evaled strings.
13566 deplibs_check_method \
13571 sharedlib_from_linklib_cmd \
13574 archiver_list_spec \
13580 lt_cv_sys_global_symbol_pipe \
13581 lt_cv_sys_global_symbol_to_cdecl \
13582 lt_cv_sys_global_symbol_to_c_name_address \
13583 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13584 nm_file_list_spec \
13585 lt_prog_compiler_no_builtin_flag \
13586 lt_prog_compiler_pic \
13587 lt_prog_compiler_wl \
13588 lt_prog_compiler_static \
13589 lt_cv_prog_compiler_c_o \
13598 export_dynamic_flag_spec \
13599 whole_archive_flag_spec \
13600 compiler_needs_object \
13602 allow_undefined_flag \
13603 no_undefined_flag \
13604 hardcode_libdir_flag_spec \
13605 hardcode_libdir_separator \
13609 variables_saved_for_relink \
13611 library_names_spec \
13613 install_override_mode \
13617 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13618 *[\\\\\\\`\\"\\\$]*)
13619 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13622 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13627 # Double-quote double-evaled strings.
13628 for var in reload_cmds \
13629 old_postinstall_cmds \
13630 old_postuninstall_cmds \
13632 extract_expsyms_cmds \
13633 old_archive_from_new_cmds \
13634 old_archive_from_expsyms_cmds \
13636 archive_expsym_cmds \
13638 module_expsym_cmds \
13639 export_symbols_cmds \
13643 postuninstall_cmds \
13645 sys_lib_search_path_spec \
13646 sys_lib_dlsearch_path_spec; do
13647 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13648 *[\\\\\\\`\\"\\\$]*)
13649 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13652 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13657 ac_aux_dir='$ac_aux_dir'
13658 xsi_shell='$xsi_shell'
13659 lt_shell_append='$lt_shell_append'
13661 # See if we are running on zsh, and set the options which allow our
13662 # commands through without removal of \ escapes INIT.
13663 if test -n "\${ZSH_VERSION+set}" ; then
13664 setopt NO_GLOB_SUBST
13670 TIMESTAMP='$TIMESTAMP'
13679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13681 # Handling of arguments.
13682 for ac_config_target in $ac_config_targets
13684 case $ac_config_target in
13685 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13686 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13687 "include/builddefs") CONFIG_FILES="$CONFIG_FILES include/builddefs" ;;
13689 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13694 # If the user did not use the arguments to specify the items to instantiate,
13695 # then the envvar interface is used. Set only those that are not.
13696 # We use the long form for the default assignment because of an extremely
13697 # bizarre bug on SunOS 4.1.3.
13698 if $ac_need_defaults; then
13699 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13700 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13701 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13704 # Have a temporary directory for convenience. Make it in the build tree
13705 # simply because there is no reason against having it here, and in addition,
13706 # creating and moving files from /tmp can sometimes cause problems.
13707 # Hook for its removal unless debugging.
13708 # Note that there is a small window in which the directory will not be cleaned:
13709 # after its creation but before its name has been assigned to `$tmp'.
13713 trap 'exit_status=$?
13714 : "${ac_tmp:=$tmp}"
13715 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13717 trap 'as_fn_exit 1' 1 2 13 15
13719 # Create a (secure) tmp directory for tmp files.
13722 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13726 tmp=./conf$$-$RANDOM
13727 (umask 077 && mkdir "$tmp")
13728 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13731 # Set up the scripts for CONFIG_FILES section.
13732 # No need to generate them if there are no CONFIG_FILES.
13733 # This happens for instance with `./config.status config.h'.
13734 if test -n "$CONFIG_FILES"; then
13737 ac_cr=`echo X | tr X '\015'`
13738 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13739 # But we know of no other shell where ac_cr would be empty at this
13740 # point, so we can use a bashism as a fallback.
13741 if test "x$ac_cr" = x; then
13742 eval ac_cr=\$\'\\r\'
13744 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13745 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13748 ac_cs_awk_cr=$ac_cr
13751 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13756 echo "cat >conf$$subs.awk <<_ACEOF" &&
13757 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13759 } >conf$$subs.sh ||
13760 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13761 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13763 for ac_last_try in false false false false false :; do
13764 . ./conf$$subs.sh ||
13765 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13767 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13768 if test $ac_delim_n = $ac_delim_num; then
13770 elif $ac_last_try; then
13771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13773 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13776 rm -f conf$$subs.sh
13778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13779 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13783 s/^/S["/; s/!.*/"]=/
13793 s/\(.\{148\}\)..*/\1/
13795 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13800 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13807 s/\(.\{148\}\)..*/\1/
13809 s/["\\]/\\&/g; s/^/"/; s/$/"/
13813 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13818 ' <conf$$subs.awk | sed '
13823 ' >>$CONFIG_STATUS || ac_write_fail=1
13824 rm -f conf$$subs.awk
13825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13827 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13828 for (key in S) S_is_set[key] = 1
13834 nfields = split(line, field, "@")
13836 len = length(field[1])
13837 for (i = 2; i < nfields; i++) {
13839 keylen = length(key)
13840 if (S_is_set[key]) {
13842 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13843 len += length(value) + length(field[++i])
13854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13855 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13856 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13859 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13860 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13863 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13864 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13865 # trailing colons and then remove the whole line if VPATH becomes empty
13866 # (actually we leave an empty line to preserve line numbers).
13867 if test "x$srcdir" = x.; then
13868 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13887 fi # test -n "$CONFIG_FILES"
13889 # Set up the scripts for CONFIG_HEADERS section.
13890 # No need to generate them if there are no CONFIG_HEADERS.
13891 # This happens for instance with `./config.status Makefile'.
13892 if test -n "$CONFIG_HEADERS"; then
13893 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13897 # Transform confdefs.h into an awk script `defines.awk', embedded as
13898 # here-document in config.status, that substitutes the proper values into
13899 # config.h.in to produce config.h.
13901 # Create a delimiter string that does not exist in confdefs.h, to ease
13902 # handling of long lines.
13904 for ac_last_try in false false :; do
13905 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13906 if test -z "$ac_tt"; then
13908 elif $ac_last_try; then
13909 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13915 # For the awk script, D is an array of macro values keyed by name,
13916 # likewise P contains macro parameters if any. Preserve backslash
13917 # newline sequences.
13919 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13921 s/.\{148\}/&'"$ac_delim"'/g
13924 s/^[ ]*#[ ]*define[ ][ ]*/ /
13931 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13933 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13937 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13938 D["\1"]=" \3\\\\\\n"\\/p
13940 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13945 s/.\{148\}/&'"$ac_delim"'/g
13950 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13953 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13955 ' <confdefs.h | sed '
13956 s/'"$ac_delim"'/"\\\
13957 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13960 for (key in D) D_is_set[key] = 1
13963 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13965 split(line, arg, " ")
13966 if (arg[1] == "#") {
13970 defundef = substr(arg[1], 2)
13973 split(mac1, mac2, "(") #)
13975 prefix = substr(line, 1, index(line, defundef) - 1)
13976 if (D_is_set[macro]) {
13977 # Preserve the white space surrounding the "#".
13978 print prefix "define", macro P[macro] D[macro]
13981 # Replace #undef with comments. This is necessary, for example,
13982 # in the case of _POSIX_SOURCE, which is predefined and required
13983 # on some systems where configure will not decide to define it.
13984 if (defundef == "undef") {
13985 print "/*", prefix defundef, macro, "*/"
13993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13994 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13995 fi # test -n "$CONFIG_HEADERS"
13998 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14003 :[FHLC]) ac_mode=$ac_tag; continue;;
14005 case $ac_mode$ac_tag in
14007 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14008 :[FH]-) ac_tag=-:-;;
14009 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14026 -) ac_f="$ac_tmp/stdin";;
14027 *) # Look for the file first in the build tree, then in the source tree
14028 # (if the path is not absolute). The absolute path cannot be DOS-style,
14029 # because $ac_f cannot contain `:'.
14033 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14035 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14037 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14038 as_fn_append ac_file_inputs " '$ac_f'"
14041 # Let's still pretend it is `configure' which instantiates (i.e., don't
14042 # use $as_me), people would be surprised to read:
14043 # /* config.h. Generated by config.status. */
14044 configure_input='Generated from '`
14045 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14047 if test x"$ac_file" != x-; then
14048 configure_input="$ac_file. $configure_input"
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14050 $as_echo "$as_me: creating $ac_file" >&6;}
14052 # Neutralize special characters interpreted by sed in replacement strings.
14053 case $configure_input in #(
14054 *\&* | *\|* | *\\* )
14055 ac_sed_conf_input=`$as_echo "$configure_input" |
14056 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14057 *) ac_sed_conf_input=$configure_input;;
14061 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14067 ac_dir=`$as_dirname -- "$ac_file" ||
14068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14069 X"$ac_file" : 'X\(//\)[^/]' \| \
14070 X"$ac_file" : 'X\(//\)$' \| \
14071 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14072 $as_echo X"$ac_file" |
14073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14077 /^X\(\/\/\)[^/].*/{
14090 as_dir="$ac_dir"; as_fn_mkdir_p
14094 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14096 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14097 # A ".." for each directory in $ac_dir_suffix.
14098 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14099 case $ac_top_builddir_sub in
14100 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14101 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14104 ac_abs_top_builddir=$ac_pwd
14105 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14106 # for backward compatibility:
14107 ac_top_builddir=$ac_top_build_prefix
14110 .) # We are building in place.
14112 ac_top_srcdir=$ac_top_builddir_sub
14113 ac_abs_top_srcdir=$ac_pwd ;;
14114 [\\/]* | ?:[\\/]* ) # Absolute name.
14115 ac_srcdir=$srcdir$ac_dir_suffix;
14116 ac_top_srcdir=$srcdir
14117 ac_abs_top_srcdir=$srcdir ;;
14118 *) # Relative name.
14119 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14120 ac_top_srcdir=$ac_top_build_prefix$srcdir
14121 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14123 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14135 # If the template does not know about datarootdir, expand it.
14136 # FIXME: This hack should be removed a few years after 2.60.
14137 ac_datarootdir_hack=; ac_datarootdir_seen=
14148 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14149 *datarootdir*) ac_datarootdir_seen=yes;;
14150 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14152 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14155 ac_datarootdir_hack='
14156 s&@datadir@&$datadir&g
14157 s&@docdir@&$docdir&g
14158 s&@infodir@&$infodir&g
14159 s&@localedir@&$localedir&g
14160 s&@mandir@&$mandir&g
14161 s&\\\${datarootdir}&$datarootdir&g' ;;
14165 # Neutralize VPATH when `$srcdir' = `.'.
14166 # Shell code in configure.ac might set extrasub.
14167 # FIXME: do we really want to maintain this feature?
14168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14169 ac_sed_extra="$ac_vpsub
14172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14174 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14175 s|@configure_input@|$ac_sed_conf_input|;t t
14176 s&@top_builddir@&$ac_top_builddir_sub&;t t
14177 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14178 s&@srcdir@&$ac_srcdir&;t t
14179 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14180 s&@top_srcdir@&$ac_top_srcdir&;t t
14181 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14182 s&@builddir@&$ac_builddir&;t t
14183 s&@abs_builddir@&$ac_abs_builddir&;t t
14184 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14185 $ac_datarootdir_hack
14187 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14188 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14190 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14191 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14192 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14193 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14195 which seems to be undefined. Please make sure it is defined" >&5
14196 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14197 which seems to be undefined. Please make sure it is defined" >&2;}
14199 rm -f "$ac_tmp/stdin"
14201 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14202 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14210 if test x"$ac_file" != x-; then
14212 $as_echo "/* $configure_input */" \
14213 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14214 } >"$ac_tmp/config.h" \
14215 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14216 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14218 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14221 mv "$ac_tmp/config.h" "$ac_file" \
14222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14225 $as_echo "/* $configure_input */" \
14226 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14227 || as_fn_error $? "could not create -" "$LINENO" 5
14231 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14232 $as_echo "$as_me: executing $ac_file commands" >&6;}
14237 case $ac_file$ac_mode in
14240 # See if we are running on zsh, and set the options which allow our
14241 # commands through without removal of \ escapes.
14242 if test -n "${ZSH_VERSION+set}" ; then
14243 setopt NO_GLOB_SUBST
14246 cfgfile="${ofile}T"
14247 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14250 cat <<_LT_EOF >> "$cfgfile"
14253 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14254 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14255 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14256 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14258 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14259 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14261 # Written by Gordon Matzigkeit, 1996
14263 # This file is part of GNU Libtool.
14265 # GNU Libtool is free software; you can redistribute it and/or
14266 # modify it under the terms of the GNU General Public License as
14267 # published by the Free Software Foundation; either version 2 of
14268 # the License, or (at your option) any later version.
14270 # As a special exception to the GNU General Public License,
14271 # if you distribute this file as part of a program or library that
14272 # is built using GNU Libtool, you may include this file under the
14273 # same distribution terms that you use for the rest of that program.
14275 # GNU Libtool is distributed in the hope that it will be useful,
14276 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14277 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14278 # GNU General Public License for more details.
14280 # You should have received a copy of the GNU General Public License
14281 # along with GNU Libtool; see the file COPYING. If not, a copy
14282 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14283 # obtained by writing to the Free Software Foundation, Inc.,
14284 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14287 # The names of the tagged configurations supported by this script.
14290 # ### BEGIN LIBTOOL CONFIG
14292 # Which release of libtool.m4 was used?
14293 macro_version=$macro_version
14294 macro_revision=$macro_revision
14296 # Whether or not to build shared libraries.
14297 build_libtool_libs=$enable_shared
14299 # Whether or not to build static libraries.
14300 build_old_libs=$enable_static
14302 # What type of objects to build.
14305 # Whether or not to optimize for fast installation.
14306 fast_install=$enable_fast_install
14308 # Shell to use when invoking shell scripts.
14311 # An echo program that protects backslashes.
14314 # The PATH separator for the build system.
14315 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14318 host_alias=$host_alias
14322 # The build system.
14323 build_alias=$build_alias
14327 # A sed program that does not truncate output.
14330 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14331 Xsed="\$SED -e 1s/^X//"
14333 # A grep program that handles long lines.
14339 # A literal string matcher.
14342 # A BSD- or MS-compatible name lister.
14345 # Whether we need soft or hard links.
14348 # What is the maximum length of a command?
14349 max_cmd_len=$max_cmd_len
14351 # Object file suffix (normally "o").
14354 # Executable file suffix (normally "").
14357 # whether the shell understands "unset".
14360 # turn spaces into newlines.
14363 # turn newlines into spaces.
14366 # convert \$build file names to \$host format.
14367 to_host_file_cmd=$lt_cv_to_host_file_cmd
14369 # convert \$build files to toolchain format.
14370 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14372 # An object symbol dumper.
14373 OBJDUMP=$lt_OBJDUMP
14375 # Method to check whether dependent libraries are shared objects.
14376 deplibs_check_method=$lt_deplibs_check_method
14378 # Command to use when deplibs_check_method = "file_magic".
14379 file_magic_cmd=$lt_file_magic_cmd
14381 # How to find potential files when deplibs_check_method = "file_magic".
14382 file_magic_glob=$lt_file_magic_glob
14384 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14385 want_nocaseglob=$lt_want_nocaseglob
14387 # DLL creation program.
14388 DLLTOOL=$lt_DLLTOOL
14390 # Command to associate shared and link libraries.
14391 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14396 # Flags to create an archive.
14397 AR_FLAGS=$lt_AR_FLAGS
14399 # How to feed a file listing to the archiver.
14400 archiver_list_spec=$lt_archiver_list_spec
14402 # A symbol stripping program.
14405 # Commands used to install an old-style archive.
14407 old_postinstall_cmds=$lt_old_postinstall_cmds
14408 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14410 # Whether to use a lock for old archive extraction.
14411 lock_old_archive_extraction=$lock_old_archive_extraction
14416 # LTCC compiler flags.
14417 LTCFLAGS=$lt_CFLAGS
14419 # Take the output of nm and produce a listing of raw symbols and C names.
14420 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14422 # Transform the output of nm in a proper C declaration.
14423 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14425 # Transform the output of nm in a C name address pair.
14426 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14428 # Transform the output of nm in a C name address pair when lib prefix is needed.
14429 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14431 # Specify filename containing input files for \$NM.
14432 nm_file_list_spec=$lt_nm_file_list_spec
14434 # The root where to search for dependent libraries,and in which our libraries should be installed.
14435 lt_sysroot=$lt_sysroot
14437 # The name of the directory that contains temporary libtool files.
14440 # Used to examine libraries when file_magic_cmd begins with "file".
14441 MAGIC_CMD=$MAGIC_CMD
14443 # Must we lock files when doing compilation?
14444 need_locks=$lt_need_locks
14447 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14449 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14450 DSYMUTIL=$lt_DSYMUTIL
14452 # Tool to change global to local symbols on Mac OS X.
14455 # Tool to manipulate fat objects and archives on Mac OS X.
14458 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14461 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14462 OTOOL64=$lt_OTOOL64
14464 # Old archive suffix (normally "a").
14467 # Shared library suffix (normally ".so").
14468 shrext_cmds=$lt_shrext_cmds
14470 # The commands to extract the exported symbol list from a shared archive.
14471 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14473 # Variables whose values should be saved in libtool wrapper scripts and
14474 # restored at link time.
14475 variables_saved_for_relink=$lt_variables_saved_for_relink
14477 # Do we need the "lib" prefix for modules?
14478 need_lib_prefix=$need_lib_prefix
14480 # Do we need a version for libraries?
14481 need_version=$need_version
14483 # Library versioning type.
14484 version_type=$version_type
14486 # Shared library runtime path variable.
14487 runpath_var=$runpath_var
14489 # Shared library path variable.
14490 shlibpath_var=$shlibpath_var
14492 # Is shlibpath searched before the hard-coded library search path?
14493 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14495 # Format of library name prefix.
14496 libname_spec=$lt_libname_spec
14498 # List of archive names. First name is the real one, the rest are links.
14499 # The last name is the one that the linker finds with -lNAME
14500 library_names_spec=$lt_library_names_spec
14502 # The coded name of the library, if different from the real name.
14503 soname_spec=$lt_soname_spec
14505 # Permission mode override for installation of shared libraries.
14506 install_override_mode=$lt_install_override_mode
14508 # Command to use after installation of a shared archive.
14509 postinstall_cmds=$lt_postinstall_cmds
14511 # Command to use after uninstallation of a shared archive.
14512 postuninstall_cmds=$lt_postuninstall_cmds
14514 # Commands used to finish a libtool library installation in a directory.
14515 finish_cmds=$lt_finish_cmds
14517 # As "finish_cmds", except a single script fragment to be evaled but
14519 finish_eval=$lt_finish_eval
14521 # Whether we should hardcode library paths into libraries.
14522 hardcode_into_libs=$hardcode_into_libs
14524 # Compile-time system search path for libraries.
14525 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14527 # Run-time system search path for libraries.
14528 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14530 # Whether dlopen is supported.
14531 dlopen_support=$enable_dlopen
14533 # Whether dlopen of programs is supported.
14534 dlopen_self=$enable_dlopen_self
14536 # Whether dlopen of statically linked programs is supported.
14537 dlopen_self_static=$enable_dlopen_self_static
14539 # Commands to strip libraries.
14540 old_striplib=$lt_old_striplib
14541 striplib=$lt_striplib
14544 # The linker used to build libraries.
14547 # How to create reloadable object files.
14548 reload_flag=$lt_reload_flag
14549 reload_cmds=$lt_reload_cmds
14551 # Commands used to build an old-style archive.
14552 old_archive_cmds=$lt_old_archive_cmds
14554 # A language specific compiler.
14557 # Is the compiler the GNU compiler?
14560 # Compiler flag to turn off builtin functions.
14561 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14563 # Additional compiler flags for building library objects.
14564 pic_flag=$lt_lt_prog_compiler_pic
14566 # How to pass a linker flag through the compiler.
14567 wl=$lt_lt_prog_compiler_wl
14569 # Compiler flag to prevent dynamic linking.
14570 link_static_flag=$lt_lt_prog_compiler_static
14572 # Does compiler simultaneously support -c and -o options?
14573 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14575 # Whether or not to add -lc for building shared libraries.
14576 build_libtool_need_lc=$archive_cmds_need_lc
14578 # Whether or not to disallow shared libs when runtime libs are static.
14579 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14581 # Compiler flag to allow reflexive dlopens.
14582 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14584 # Compiler flag to generate shared objects directly from archives.
14585 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14587 # Whether the compiler copes with passing no objects directly.
14588 compiler_needs_object=$lt_compiler_needs_object
14590 # Create an old-style archive from a shared archive.
14591 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14593 # Create a temporary old-style archive to link instead of a shared archive.
14594 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14596 # Commands used to build a shared archive.
14597 archive_cmds=$lt_archive_cmds
14598 archive_expsym_cmds=$lt_archive_expsym_cmds
14600 # Commands used to build a loadable module if different from building
14601 # a shared archive.
14602 module_cmds=$lt_module_cmds
14603 module_expsym_cmds=$lt_module_expsym_cmds
14605 # Whether we are building with GNU ld or not.
14606 with_gnu_ld=$lt_with_gnu_ld
14608 # Flag that allows shared libraries with undefined symbols to be built.
14609 allow_undefined_flag=$lt_allow_undefined_flag
14611 # Flag that enforces no undefined symbols.
14612 no_undefined_flag=$lt_no_undefined_flag
14614 # Flag to hardcode \$libdir into a binary during linking.
14615 # This must work even if \$libdir does not exist
14616 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14618 # Whether we need a single "-rpath" flag with a separated argument.
14619 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14621 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14622 # DIR into the resulting binary.
14623 hardcode_direct=$hardcode_direct
14625 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14626 # DIR into the resulting binary and the resulting library dependency is
14627 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14628 # library is relocated.
14629 hardcode_direct_absolute=$hardcode_direct_absolute
14631 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14632 # into the resulting binary.
14633 hardcode_minus_L=$hardcode_minus_L
14635 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14636 # into the resulting binary.
14637 hardcode_shlibpath_var=$hardcode_shlibpath_var
14639 # Set to "yes" if building a shared library automatically hardcodes DIR
14640 # into the library and all subsequent libraries and executables linked
14642 hardcode_automatic=$hardcode_automatic
14644 # Set to yes if linker adds runtime paths of dependent libraries
14645 # to runtime path list.
14646 inherit_rpath=$inherit_rpath
14648 # Whether libtool must link a program against all its dependency libraries.
14649 link_all_deplibs=$link_all_deplibs
14651 # Set to "yes" if exported symbols are required.
14652 always_export_symbols=$always_export_symbols
14654 # The commands to list exported symbols.
14655 export_symbols_cmds=$lt_export_symbols_cmds
14657 # Symbols that should not be listed in the preloaded symbols.
14658 exclude_expsyms=$lt_exclude_expsyms
14660 # Symbols that must always be exported.
14661 include_expsyms=$lt_include_expsyms
14663 # Commands necessary for linking programs (against libraries) with templates.
14664 prelink_cmds=$lt_prelink_cmds
14666 # Commands necessary for finishing linking programs.
14667 postlink_cmds=$lt_postlink_cmds
14669 # Specify filename containing input files.
14670 file_list_spec=$lt_file_list_spec
14672 # How to hardcode a shared library path into an executable.
14673 hardcode_action=$hardcode_action
14675 # ### END LIBTOOL CONFIG
14681 cat <<\_LT_EOF >> "$cfgfile"
14682 # AIX sometimes has problems with the GCC collect2 program. For some
14683 # reason, if we set the COLLECT_NAMES environment variable, the problems
14684 # vanish in a puff of smoke.
14685 if test "X${COLLECT_NAMES+set}" != Xset; then
14687 export COLLECT_NAMES
14694 ltmain="$ac_aux_dir/ltmain.sh"
14697 # We use sed instead of cat because bash on DJGPP gets confused if
14698 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14699 # text mode, it properly converts lines to CR/LF. This bash problem
14700 # is reportedly fixed, but why not run on old versions too?
14701 sed '$q' "$ltmain" >> "$cfgfile" \
14702 || (rm -f "$cfgfile"; exit 1)
14704 if test x"$xsi_shell" = xyes; then
14705 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14709 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14710 \ * ) func_dirname_result="${3}" ;;\
14712 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14713 && mv -f "$cfgfile.tmp" "$cfgfile" \
14714 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14715 test 0 -eq $? || _lt_function_replace_fail=:
14718 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14721 \ func_basename_result="${1##*/}"\
14722 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14723 && mv -f "$cfgfile.tmp" "$cfgfile" \
14724 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14725 test 0 -eq $? || _lt_function_replace_fail=:
14728 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14729 func_dirname_and_basename ()\
14732 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14733 \ * ) func_dirname_result="${3}" ;;\
14735 \ func_basename_result="${1##*/}"\
14736 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14737 && mv -f "$cfgfile.tmp" "$cfgfile" \
14738 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14739 test 0 -eq $? || _lt_function_replace_fail=:
14742 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14745 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14746 \ # positional parameters, so assign one to ordinary parameter first.\
14747 \ func_stripname_result=${3}\
14748 \ func_stripname_result=${func_stripname_result#"${1}"}\
14749 \ func_stripname_result=${func_stripname_result%"${2}"}\
14750 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14751 && mv -f "$cfgfile.tmp" "$cfgfile" \
14752 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14753 test 0 -eq $? || _lt_function_replace_fail=:
14756 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14757 func_split_long_opt ()\
14759 \ func_split_long_opt_name=${1%%=*}\
14760 \ func_split_long_opt_arg=${1#*=}\
14761 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14762 && mv -f "$cfgfile.tmp" "$cfgfile" \
14763 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14764 test 0 -eq $? || _lt_function_replace_fail=:
14767 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14768 func_split_short_opt ()\
14770 \ func_split_short_opt_arg=${1#??}\
14771 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14772 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14773 && mv -f "$cfgfile.tmp" "$cfgfile" \
14774 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14775 test 0 -eq $? || _lt_function_replace_fail=:
14778 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14782 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14783 \ *) func_lo2o_result=${1} ;;\
14785 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14786 && mv -f "$cfgfile.tmp" "$cfgfile" \
14787 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14788 test 0 -eq $? || _lt_function_replace_fail=:
14791 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14794 func_xform_result=${1%.*}.lo\
14795 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14796 && mv -f "$cfgfile.tmp" "$cfgfile" \
14797 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14798 test 0 -eq $? || _lt_function_replace_fail=:
14801 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14804 func_arith_result=$(( $* ))\
14805 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14806 && mv -f "$cfgfile.tmp" "$cfgfile" \
14807 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14808 test 0 -eq $? || _lt_function_replace_fail=:
14811 sed -e '/^func_len ()$/,/^} # func_len /c\
14814 func_len_result=${#1}\
14815 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14816 && mv -f "$cfgfile.tmp" "$cfgfile" \
14817 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14818 test 0 -eq $? || _lt_function_replace_fail=:
14822 if test x"$lt_shell_append" = xyes; then
14823 sed -e '/^func_append ()$/,/^} # func_append /c\
14826 eval "${1}+=\\${2}"\
14827 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14828 && mv -f "$cfgfile.tmp" "$cfgfile" \
14829 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14830 test 0 -eq $? || _lt_function_replace_fail=:
14833 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14834 func_append_quoted ()\
14836 \ func_quote_for_eval "${2}"\
14837 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14838 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14839 && mv -f "$cfgfile.tmp" "$cfgfile" \
14840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14841 test 0 -eq $? || _lt_function_replace_fail=:
14844 # Save a `func_append' function call where possible by direct use of '+='
14845 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14846 && mv -f "$cfgfile.tmp" "$cfgfile" \
14847 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14848 test 0 -eq $? || _lt_function_replace_fail=:
14850 # Save a `func_append' function call even when '+=' is not available
14851 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14852 && mv -f "$cfgfile.tmp" "$cfgfile" \
14853 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14854 test 0 -eq $? || _lt_function_replace_fail=:
14857 if test x"$_lt_function_replace_fail" = x":"; then
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14859 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14863 mv -f "$cfgfile" "$ofile" ||
14864 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14875 ac_clean_files=$ac_clean_files_save
14877 test $ac_write_fail = 0 ||
14878 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14881 # configure is writing to config.log, and then calls config.status.
14882 # config.status does its own redirection, appending to config.log.
14883 # Unfortunately, on DOS this fails, as config.log is still kept open
14884 # by configure, so config.status won't be able to write to it; its
14885 # output is simply discarded. So we exec the FD to /dev/null,
14886 # effectively closing config.log, so it can be properly (re)opened and
14887 # appended to by config.status. When coming back to configure, we
14888 # need to make the FD available again.
14889 if test "$no_create" != yes; then
14891 ac_config_status_args=
14892 test "$silent" = yes &&
14893 ac_config_status_args="$ac_config_status_args --quiet"
14895 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14897 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14898 # would make configure fail if this is the last instruction.
14899 $ac_cs_success || as_fn_exit 1
14901 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14903 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}