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/acl.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_header_mongrel LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1759 # the include files in INCLUDES and setting the cache variable VAR
1761 ac_fn_c_check_header_mongrel ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if eval \${$3+:} false; then :
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if eval \${$3+:} false; then :
1768 $as_echo_n "(cached) " >&6
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1774 # Is the header compilable?
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1776 $as_echo_n "checking $2 usability... " >&6; }
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1782 if ac_fn_c_try_compile "$LINENO"; then :
1783 ac_header_compiler=yes
1785 ac_header_compiler=no
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1789 $as_echo "$ac_header_compiler" >&6; }
1791 # Is the header present?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1793 $as_echo_n "checking $2 presence... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1798 if ac_fn_c_try_cpp "$LINENO"; then :
1799 ac_header_preproc=yes
1801 ac_header_preproc=no
1803 rm -f conftest.err conftest.i conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1805 $as_echo "$ac_header_preproc" >&6; }
1807 # So? What about this header?
1808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1811 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1813 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1817 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1819 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1821 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1823 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831 $as_echo_n "(cached) " >&6
1833 eval "$3=\$ac_header_compiler"
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 } # ac_fn_c_check_header_mongrel
1842 cat >config.log <<_ACEOF
1843 This file contains any messages produced by compilers while
1844 running configure, to aid debugging if configure makes a mistake.
1846 It was created by $as_me, which was
1847 generated by GNU Autoconf 2.69. Invocation command line was
1859 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1860 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1861 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1862 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1863 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1865 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1866 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1868 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1869 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1870 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1871 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1872 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1873 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1874 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 test -z "$as_dir" && as_dir=.
1883 $as_echo "PATH: $as_dir"
1899 # Keep a trace of the command line.
1900 # Strip out --no-create and --no-recursion so they do not pile up.
1901 # Strip out --silent because we don't want to record it for future runs.
1902 # Also quote any args containing shell meta-characters.
1903 # Make two passes to allow for proper duplicate-argument suppression.
1907 ac_must_keep_next=false
1913 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1915 | -silent | --silent | --silen | --sile | --sil)
1918 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1921 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1923 as_fn_append ac_configure_args1 " '$ac_arg'"
1924 if test $ac_must_keep_next = true; then
1925 ac_must_keep_next=false # Got value, back to normal.
1928 *=* | --config-cache | -C | -disable-* | --disable-* \
1929 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1930 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1931 | -with-* | --with-* | -without-* | --without-* | --x)
1932 case "$ac_configure_args0 " in
1933 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1936 -* ) ac_must_keep_next=true ;;
1939 as_fn_append ac_configure_args " '$ac_arg'"
1944 { ac_configure_args0=; unset ac_configure_args0;}
1945 { ac_configure_args1=; unset ac_configure_args1;}
1947 # When interrupted or exit'd, cleanup temporary files, and complete
1948 # config.log. We remove comments because anyway the quotes in there
1949 # would cause problems or look ugly.
1950 # WARNING: Use '\'' to represent an apostrophe within the trap.
1951 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1952 trap 'exit_status=$?
1953 # Save into config.log some information that might help in debugging.
1957 $as_echo "## ---------------- ##
1958 ## Cache variables. ##
1959 ## ---------------- ##"
1961 # The following way of writing the cache mishandles newlines in values,
1963 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1964 eval ac_val=\$$ac_var
1968 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1969 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1972 _ | IFS | as_nl) ;; #(
1973 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1974 *) { eval $ac_var=; unset $ac_var;} ;;
1979 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1980 *${as_nl}ac_space=\ *)
1982 "s/'\''/'\''\\\\'\'''\''/g;
1983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1986 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1993 $as_echo "## ----------------- ##
1994 ## Output variables. ##
1995 ## ----------------- ##"
1997 for ac_var in $ac_subst_vars
1999 eval ac_val=\$$ac_var
2001 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2003 $as_echo "$ac_var='\''$ac_val'\''"
2007 if test -n "$ac_subst_files"; then
2008 $as_echo "## ------------------- ##
2009 ## File substitutions. ##
2010 ## ------------------- ##"
2012 for ac_var in $ac_subst_files
2014 eval ac_val=\$$ac_var
2016 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2018 $as_echo "$ac_var='\''$ac_val'\''"
2023 if test -s confdefs.h; then
2024 $as_echo "## ----------- ##
2031 test "$ac_signal" != 0 &&
2032 $as_echo "$as_me: caught signal $ac_signal"
2033 $as_echo "$as_me: exit $exit_status"
2035 rm -f core *.core core.conftest.* &&
2036 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2039 for ac_signal in 1 2 13 15; do
2040 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2044 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2045 rm -f -r conftest* confdefs.h
2047 $as_echo "/* confdefs.h */" > confdefs.h
2049 # Predefined preprocessor variables.
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_NAME "$PACKAGE_NAME"
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_STRING "$PACKAGE_STRING"
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_URL "$PACKAGE_URL"
2076 # Let the site file select an alternate cache file if it wants to.
2077 # Prefer an explicitly selected file to automatically selected ones.
2080 if test -n "$CONFIG_SITE"; then
2081 # We do not want a PATH search for config.site.
2082 case $CONFIG_SITE in #((
2083 -*) ac_site_file1=./$CONFIG_SITE;;
2084 */*) ac_site_file1=$CONFIG_SITE;;
2085 *) ac_site_file1=./$CONFIG_SITE;;
2087 elif test "x$prefix" != xNONE; then
2088 ac_site_file1=$prefix/share/config.site
2089 ac_site_file2=$prefix/etc/config.site
2091 ac_site_file1=$ac_default_prefix/share/config.site
2092 ac_site_file2=$ac_default_prefix/etc/config.site
2094 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2096 test "x$ac_site_file" = xNONE && continue
2097 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2099 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2100 sed 's/^/| /' "$ac_site_file" >&5
2102 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2104 as_fn_error $? "failed to load site script $ac_site_file
2105 See \`config.log' for more details" "$LINENO" 5; }
2109 if test -r "$cache_file"; then
2110 # Some versions of bash will fail to source /dev/null (special files
2111 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2112 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2114 $as_echo "$as_me: loading cache $cache_file" >&6;}
2116 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2117 *) . "./$cache_file";;
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2122 $as_echo "$as_me: creating cache $cache_file" >&6;}
2126 # Check that the precious variables saved in the cache have kept the same
2128 ac_cache_corrupted=false
2129 for ac_var in $ac_precious_vars; do
2130 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2131 eval ac_new_set=\$ac_env_${ac_var}_set
2132 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2133 eval ac_new_val=\$ac_env_${ac_var}_value
2134 case $ac_old_set,$ac_new_set in
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2137 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2138 ac_cache_corrupted=: ;;
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2141 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2142 ac_cache_corrupted=: ;;
2145 if test "x$ac_old_val" != "x$ac_new_val"; then
2146 # differences in whitespace do not lead to failure.
2147 ac_old_val_w=`echo x $ac_old_val`
2148 ac_new_val_w=`echo x $ac_new_val`
2149 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2151 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2152 ac_cache_corrupted=:
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2155 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2156 eval $ac_var=\$ac_old_val
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2159 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2161 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2164 # Pass precious variables to config.status.
2165 if test "$ac_new_set" = set; then
2167 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2168 *) ac_arg=$ac_var=$ac_new_val ;;
2170 case " $ac_configure_args " in
2171 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2172 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2176 if $ac_cache_corrupted; then
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2180 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2181 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2183 ## -------------------- ##
2184 ## Main body of script. ##
2185 ## -------------------- ##
2188 ac_cpp='$CPP $CPPFLAGS'
2189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2195 for ac_dir in . "$srcdir"/.; do
2196 if test -f "$ac_dir/install-sh"; then
2198 ac_install_sh="$ac_aux_dir/install-sh -c"
2200 elif test -f "$ac_dir/install.sh"; then
2202 ac_install_sh="$ac_aux_dir/install.sh -c"
2204 elif test -f "$ac_dir/shtool"; then
2206 ac_install_sh="$ac_aux_dir/shtool install -c"
2210 if test -z "$ac_aux_dir"; then
2211 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2214 # These three variables are undocumented and unsupported,
2215 # and are intended to be withdrawn in a future Autoconf release.
2216 # They can cause serious problems if a builder's source tree is in a directory
2217 # whose full name contains unusual characters.
2218 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2219 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2220 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2224 ac_config_headers="$ac_config_headers include/config.h"
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2231 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2236 macro_version='2.4.2'
2237 macro_revision='1.3337'
2251 ltmain="$ac_aux_dir/ltmain.sh"
2253 # Make sure we can run config.sub.
2254 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2255 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2258 $as_echo_n "checking build system type... " >&6; }
2259 if ${ac_cv_build+:} false; then :
2260 $as_echo_n "(cached) " >&6
2262 ac_build_alias=$build_alias
2263 test "x$ac_build_alias" = x &&
2264 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2265 test "x$ac_build_alias" = x &&
2266 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2267 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2268 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2272 $as_echo "$ac_cv_build" >&6; }
2273 case $ac_cv_build in
2275 *) as_fn_error $? "invalid value of canonical build" "$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 $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2292 $as_echo_n "checking host system type... " >&6; }
2293 if ${ac_cv_host+:} false; then :
2294 $as_echo_n "(cached) " >&6
2296 if test "x$host_alias" = x; then
2297 ac_cv_host=$ac_cv_build
2299 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2300 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2305 $as_echo "$ac_cv_host" >&6; }
2308 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2311 ac_save_IFS=$IFS; IFS='-'
2317 # Remember, the first character of IFS is used to create $*,
2318 # except with old shells:
2321 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2324 # Backslashify metacharacters that are still active within
2325 # double-quoted strings.
2326 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2328 # Same as above, but do not quote variable references.
2329 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2331 # Sed substitution to delay expansion of an escaped shell variable in a
2332 # double_quote_subst'ed string.
2333 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2335 # Sed substitution to delay expansion of an escaped single quote.
2336 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2338 # Sed substitution to avoid accidental globbing in evaled expressions
2339 no_glob_subst='s/\*/\\\*/g'
2341 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2342 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2343 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2346 $as_echo_n "checking how to print strings... " >&6; }
2347 # Test print first, because it will be a builtin if present.
2348 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2349 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2351 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2354 # Use this function as a fallback that always works.
2355 func_fallback_echo ()
2357 eval 'cat <<_LTECHO_EOF
2361 ECHO='func_fallback_echo'
2364 # func_echo_all arg...
2365 # Invoke $ECHO with all args, space-separated.
2372 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2373 $as_echo "printf" >&6; } ;;
2374 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2375 $as_echo "print -r" >&6; } ;;
2376 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2377 $as_echo "cat" >&6; } ;;
2394 ac_cpp='$CPP $CPPFLAGS'
2395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398 if test -n "$ac_tool_prefix"; then
2399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402 $as_echo_n "checking for $ac_word... " >&6; }
2403 if ${ac_cv_prog_CC+:} false; then :
2404 $as_echo_n "(cached) " >&6
2406 if test -n "$CC"; then
2407 ac_cv_prog_CC="$CC" # Let the user override the test.
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 if test -n "$CC"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2429 $as_echo "$CC" >&6; }
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432 $as_echo "no" >&6; }
2437 if test -z "$ac_cv_prog_CC"; then
2439 # Extract the first word of "gcc", so it can be a program name with args.
2440 set dummy gcc; ac_word=$2
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442 $as_echo_n "checking for $ac_word... " >&6; }
2443 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2444 $as_echo_n "(cached) " >&6
2446 if test -n "$ac_ct_CC"; then
2447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456 ac_cv_prog_ac_ct_CC="gcc"
2457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2467 if test -n "$ac_ct_CC"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2469 $as_echo "$ac_ct_CC" >&6; }
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472 $as_echo "no" >&6; }
2475 if test "x$ac_ct_CC" = x; then
2478 case $cross_compiling:$ac_tool_warned in
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2482 ac_tool_warned=yes ;;
2490 if test -z "$CC"; then
2491 if test -n "$ac_tool_prefix"; then
2492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2493 set dummy ${ac_tool_prefix}cc; ac_word=$2
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if ${ac_cv_prog_CC+:} false; then :
2497 $as_echo_n "(cached) " >&6
2499 if test -n "$CC"; then
2500 ac_cv_prog_CC="$CC" # Let the user override the test.
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2509 ac_cv_prog_CC="${ac_tool_prefix}cc"
2510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 if test -n "$CC"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2522 $as_echo "$CC" >&6; }
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525 $as_echo "no" >&6; }
2531 if test -z "$CC"; then
2532 # Extract the first word of "cc", so it can be a program name with args.
2533 set dummy cc; ac_word=$2
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535 $as_echo_n "checking for $ac_word... " >&6; }
2536 if ${ac_cv_prog_CC+:} false; then :
2537 $as_echo_n "(cached) " >&6
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2551 ac_prog_rejected=yes
2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 if test $ac_prog_rejected = yes; then
2563 # We found a bogon in the path, so make sure we never use it.
2564 set dummy $ac_cv_prog_CC
2566 if test $# != 0; then
2567 # We chose a different compiler from the bogus one.
2568 # However, it has the same basename, so the bogon will be chosen
2569 # first if we set CC to just the basename; use the full file name.
2571 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2577 if test -n "$CC"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2579 $as_echo "$CC" >&6; }
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2587 if test -z "$CC"; then
2588 if test -n "$ac_tool_prefix"; then
2589 for ac_prog in cl.exe
2591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if ${ac_cv_prog_CC+:} false; then :
2596 $as_echo_n "(cached) " >&6
2598 if test -n "$CC"; then
2599 ac_cv_prog_CC="$CC" # Let the user override the test.
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 if test -n "$CC"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2621 $as_echo "$CC" >&6; }
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624 $as_echo "no" >&6; }
2628 test -n "$CC" && break
2631 if test -z "$CC"; then
2633 for ac_prog in cl.exe
2635 # Extract the first word of "$ac_prog", so it can be a program name with args.
2636 set dummy $ac_prog; ac_word=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2640 $as_echo_n "(cached) " >&6
2642 if test -n "$ac_ct_CC"; then
2643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 ac_cv_prog_ac_ct_CC="$ac_prog"
2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2663 if test -n "$ac_ct_CC"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2665 $as_echo "$ac_ct_CC" >&6; }
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2672 test -n "$ac_ct_CC" && break
2675 if test "x$ac_ct_CC" = x; then
2678 case $cross_compiling:$ac_tool_warned in
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2682 ac_tool_warned=yes ;;
2691 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2693 as_fn_error $? "no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details" "$LINENO" 5; }
2696 # Provide some information about the compiler.
2697 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2700 for ac_option in --version -v -V -qversion; do
2701 { { ac_try="$ac_compiler $ac_option >&5"
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2707 $as_echo "$ac_try_echo"; } >&5
2708 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2710 if test -s conftest.err; then
2712 ... rest of stderr output deleted ...
2713 10q' conftest.err >conftest.er1
2714 cat conftest.er1 >&5
2716 rm -f conftest.er1 conftest.err
2717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2718 test $ac_status = 0; }
2721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722 /* end confdefs.h. */
2732 ac_clean_files_save=$ac_clean_files
2733 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2734 # Try to create an executable without -o first, disregard a.out.
2735 # It will help us diagnose broken compilers, and finding out an intuition
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2738 $as_echo_n "checking whether the C compiler works... " >&6; }
2739 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2741 # The possible output files:
2742 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2745 for ac_file in $ac_files
2748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2749 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2754 if { { ac_try="$ac_link_default"
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2760 $as_echo "$ac_try_echo"; } >&5
2761 (eval "$ac_link_default") 2>&5
2763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2764 test $ac_status = 0; }; then :
2765 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2766 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2767 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2768 # so that the user can short-circuit this test for compilers unknown to
2770 for ac_file in $ac_files ''
2772 test -f "$ac_file" || continue
2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2777 # We found the default executable, but exeext='' is most
2781 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2783 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2785 # We set ac_cv_exeext here because the later test for it is not
2786 # safe: cross compilers may not add the suffix if given an `-o'
2787 # argument, so we may need to know it at that point already.
2788 # Even if this section looks crufty: it has the advantage of
2795 test "$ac_cv_exeext" = no && ac_cv_exeext=
2800 if test -z "$ac_file"; then :
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 $as_echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2808 as_fn_error 77 "C compiler cannot create executables
2809 See \`config.log' for more details" "$LINENO" 5; }
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2812 $as_echo "yes" >&6; }
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2815 $as_echo_n "checking for C compiler default output file name... " >&6; }
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2817 $as_echo "$ac_file" >&6; }
2818 ac_exeext=$ac_cv_exeext
2820 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2821 ac_clean_files=$ac_clean_files_save
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2823 $as_echo_n "checking for suffix of executables... " >&6; }
2824 if { { ac_try="$ac_link"
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2830 $as_echo "$ac_try_echo"; } >&5
2831 (eval "$ac_link") 2>&5
2833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2834 test $ac_status = 0; }; then :
2835 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2836 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2837 # work properly (i.e., refer to `conftest.exe'), while it won't with
2839 for ac_file in conftest.exe conftest conftest.*; do
2840 test -f "$ac_file" || continue
2842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2843 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2851 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2852 See \`config.log' for more details" "$LINENO" 5; }
2854 rm -f conftest conftest$ac_cv_exeext
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2856 $as_echo "$ac_cv_exeext" >&6; }
2858 rm -f conftest.$ac_ext
2859 EXEEXT=$ac_cv_exeext
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h. */
2867 FILE *f = fopen ("conftest.out", "w");
2868 return ferror (f) || fclose (f) != 0;
2874 ac_clean_files="$ac_clean_files conftest.out"
2875 # Check that the compiler produces executables we can run. If not, either
2876 # the compiler is broken, or we cross compile.
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2878 $as_echo_n "checking whether we are cross compiling... " >&6; }
2879 if test "$cross_compiling" != yes; then
2880 { { ac_try="$ac_link"
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2886 $as_echo "$ac_try_echo"; } >&5
2887 (eval "$ac_link") 2>&5
2889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2890 test $ac_status = 0; }
2891 if { ac_try='./conftest$ac_cv_exeext'
2892 { { case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2897 $as_echo "$ac_try_echo"; } >&5
2898 (eval "$ac_try") 2>&5
2900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2901 test $ac_status = 0; }; }; then
2904 if test "$cross_compiling" = maybe; then
2907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909 as_fn_error $? "cannot run C compiled programs.
2910 If you meant to cross compile, use \`--host'.
2911 See \`config.log' for more details" "$LINENO" 5; }
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2916 $as_echo "$cross_compiling" >&6; }
2918 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2919 ac_clean_files=$ac_clean_files_save
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2921 $as_echo_n "checking for suffix of object files... " >&6; }
2922 if ${ac_cv_objext+:} false; then :
2923 $as_echo_n "(cached) " >&6
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2936 rm -f conftest.o conftest.obj
2937 if { { ac_try="$ac_compile"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943 $as_echo "$ac_try_echo"; } >&5
2944 (eval "$ac_compile") 2>&5
2946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947 test $ac_status = 0; }; then :
2948 for ac_file in conftest.o conftest.obj conftest.*; do
2949 test -f "$ac_file" || continue;
2951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2952 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2957 $as_echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2962 as_fn_error $? "cannot compute suffix of object files: cannot compile
2963 See \`config.log' for more details" "$LINENO" 5; }
2965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2968 $as_echo "$ac_cv_objext" >&6; }
2969 OBJEXT=$ac_cv_objext
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2972 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2973 if ${ac_cv_c_compiler_gnu+:} false; then :
2974 $as_echo_n "(cached) " >&6
2976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h. */
2990 if ac_fn_c_try_compile "$LINENO"; then :
2995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3000 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3001 if test $ac_compiler_gnu = yes; then
3006 ac_test_CFLAGS=${CFLAGS+set}
3007 ac_save_CFLAGS=$CFLAGS
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3009 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3010 if ${ac_cv_prog_cc_g+:} false; then :
3011 $as_echo_n "(cached) " >&6
3013 ac_save_c_werror_flag=$ac_c_werror_flag
3014 ac_c_werror_flag=yes
3017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018 /* end confdefs.h. */
3028 if ac_fn_c_try_compile "$LINENO"; then :
3032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033 /* end confdefs.h. */
3043 if ac_fn_c_try_compile "$LINENO"; then :
3046 ac_c_werror_flag=$ac_save_c_werror_flag
3048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049 /* end confdefs.h. */
3059 if ac_fn_c_try_compile "$LINENO"; then :
3062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ac_c_werror_flag=$ac_save_c_werror_flag
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3070 $as_echo "$ac_cv_prog_cc_g" >&6; }
3071 if test "$ac_test_CFLAGS" = set; then
3072 CFLAGS=$ac_save_CFLAGS
3073 elif test $ac_cv_prog_cc_g = yes; then
3074 if test "$GCC" = yes; then
3080 if test "$GCC" = yes; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3087 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3088 if ${ac_cv_prog_cc_c89+:} false; then :
3089 $as_echo_n "(cached) " >&6
3091 ac_cv_prog_cc_c89=no
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3099 struct buf { int x; };
3100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3101 static char *e (p, i)
3107 static char *f (char * (*g) (char **, int), char **p, ...)
3112 s = g (p, va_arg (v,int));
3117 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3118 function prototypes and stuff, but not '\xHH' hex character constants.
3119 These don't provoke an error unfortunately, instead are silently treated
3120 as 'x'. The following induces an error, until -std is added to get
3121 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3122 array size at least. It's necessary to write '\x00'==0 to get something
3123 that's true only with -std. */
3124 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3126 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3127 inside strings and character constants. */
3129 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3131 int test (int i, double x);
3132 struct s1 {int (*f) (int a);};
3133 struct s2 {int (*f) (double a);};
3134 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3140 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3145 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3146 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3148 CC="$ac_save_CC $ac_arg"
3149 if ac_fn_c_try_compile "$LINENO"; then :
3150 ac_cv_prog_cc_c89=$ac_arg
3152 rm -f core conftest.err conftest.$ac_objext
3153 test "x$ac_cv_prog_cc_c89" != "xno" && break
3155 rm -f conftest.$ac_ext
3160 case "x$ac_cv_prog_cc_c89" in
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3163 $as_echo "none needed" >&6; } ;;
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3166 $as_echo "unsupported" >&6; } ;;
3168 CC="$CC $ac_cv_prog_cc_c89"
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3170 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3172 if test "x$ac_cv_prog_cc_c89" != xno; then :
3177 ac_cpp='$CPP $CPPFLAGS'
3178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3183 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3184 if ${ac_cv_path_SED+:} false; then :
3185 $as_echo_n "(cached) " >&6
3187 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3188 for ac_i in 1 2 3 4 5 6 7; do
3189 ac_script="$ac_script$as_nl$ac_script"
3191 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3192 { ac_script=; unset ac_script;}
3193 if test -z "$SED"; then
3194 ac_path_SED_found=false
3195 # Loop through the user's path and test for each of PROGNAME-LIST
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir=.
3201 for ac_prog in sed gsed; do
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3204 as_fn_executable_p "$ac_path_SED" || continue
3205 # Check for GNU ac_path_SED and select it if it is found.
3206 # Check for GNU $ac_path_SED
3207 case `"$ac_path_SED" --version 2>&1` in
3209 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3212 $as_echo_n 0123456789 >"conftest.in"
3215 cat "conftest.in" "conftest.in" >"conftest.tmp"
3216 mv "conftest.tmp" "conftest.in"
3217 cp "conftest.in" "conftest.nl"
3218 $as_echo '' >> "conftest.nl"
3219 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3221 as_fn_arith $ac_count + 1 && ac_count=$as_val
3222 if test $ac_count -gt ${ac_path_SED_max-0}; then
3223 # Best one so far, save it but keep looking for a better one
3224 ac_cv_path_SED="$ac_path_SED"
3225 ac_path_SED_max=$ac_count
3227 # 10*(2^10) chars as input seems more than enough
3228 test $ac_count -gt 10 && break
3230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3233 $ac_path_SED_found && break 3
3238 if test -z "$ac_cv_path_SED"; then
3239 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3247 $as_echo "$ac_cv_path_SED" >&6; }
3248 SED="$ac_cv_path_SED"
3251 test -z "$SED" && SED=sed
3252 Xsed="$SED -e 1s/^X//"
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3265 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3266 if ${ac_cv_path_GREP+:} false; then :
3267 $as_echo_n "(cached) " >&6
3269 if test -z "$GREP"; then
3270 ac_path_GREP_found=false
3271 # Loop through the user's path and test for each of PROGNAME-LIST
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3276 test -z "$as_dir" && as_dir=.
3277 for ac_prog in grep ggrep; do
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3280 as_fn_executable_p "$ac_path_GREP" || continue
3281 # Check for GNU ac_path_GREP and select it if it is found.
3282 # Check for GNU $ac_path_GREP
3283 case `"$ac_path_GREP" --version 2>&1` in
3285 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3288 $as_echo_n 0123456789 >"conftest.in"
3291 cat "conftest.in" "conftest.in" >"conftest.tmp"
3292 mv "conftest.tmp" "conftest.in"
3293 cp "conftest.in" "conftest.nl"
3294 $as_echo 'GREP' >> "conftest.nl"
3295 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3297 as_fn_arith $ac_count + 1 && ac_count=$as_val
3298 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3299 # Best one so far, save it but keep looking for a better one
3300 ac_cv_path_GREP="$ac_path_GREP"
3301 ac_path_GREP_max=$ac_count
3303 # 10*(2^10) chars as input seems more than enough
3304 test $ac_count -gt 10 && break
3306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3309 $ac_path_GREP_found && break 3
3314 if test -z "$ac_cv_path_GREP"; then
3315 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3318 ac_cv_path_GREP=$GREP
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3323 $as_echo "$ac_cv_path_GREP" >&6; }
3324 GREP="$ac_cv_path_GREP"
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3328 $as_echo_n "checking for egrep... " >&6; }
3329 if ${ac_cv_path_EGREP+:} false; then :
3330 $as_echo_n "(cached) " >&6
3332 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3333 then ac_cv_path_EGREP="$GREP -E"
3335 if test -z "$EGREP"; then
3336 ac_path_EGREP_found=false
3337 # Loop through the user's path and test for each of PROGNAME-LIST
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3342 test -z "$as_dir" && as_dir=.
3343 for ac_prog in egrep; do
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3346 as_fn_executable_p "$ac_path_EGREP" || continue
3347 # Check for GNU ac_path_EGREP and select it if it is found.
3348 # Check for GNU $ac_path_EGREP
3349 case `"$ac_path_EGREP" --version 2>&1` in
3351 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3354 $as_echo_n 0123456789 >"conftest.in"
3357 cat "conftest.in" "conftest.in" >"conftest.tmp"
3358 mv "conftest.tmp" "conftest.in"
3359 cp "conftest.in" "conftest.nl"
3360 $as_echo 'EGREP' >> "conftest.nl"
3361 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3362 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3363 as_fn_arith $ac_count + 1 && ac_count=$as_val
3364 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3365 # Best one so far, save it but keep looking for a better one
3366 ac_cv_path_EGREP="$ac_path_EGREP"
3367 ac_path_EGREP_max=$ac_count
3369 # 10*(2^10) chars as input seems more than enough
3370 test $ac_count -gt 10 && break
3372 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3375 $ac_path_EGREP_found && break 3
3380 if test -z "$ac_cv_path_EGREP"; then
3381 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3384 ac_cv_path_EGREP=$EGREP
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3390 $as_echo "$ac_cv_path_EGREP" >&6; }
3391 EGREP="$ac_cv_path_EGREP"
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3395 $as_echo_n "checking for fgrep... " >&6; }
3396 if ${ac_cv_path_FGREP+:} false; then :
3397 $as_echo_n "(cached) " >&6
3399 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3400 then ac_cv_path_FGREP="$GREP -F"
3402 if test -z "$FGREP"; then
3403 ac_path_FGREP_found=false
3404 # Loop through the user's path and test for each of PROGNAME-LIST
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3409 test -z "$as_dir" && as_dir=.
3410 for ac_prog in fgrep; do
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3413 as_fn_executable_p "$ac_path_FGREP" || continue
3414 # Check for GNU ac_path_FGREP and select it if it is found.
3415 # Check for GNU $ac_path_FGREP
3416 case `"$ac_path_FGREP" --version 2>&1` in
3418 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3421 $as_echo_n 0123456789 >"conftest.in"
3424 cat "conftest.in" "conftest.in" >"conftest.tmp"
3425 mv "conftest.tmp" "conftest.in"
3426 cp "conftest.in" "conftest.nl"
3427 $as_echo 'FGREP' >> "conftest.nl"
3428 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3430 as_fn_arith $ac_count + 1 && ac_count=$as_val
3431 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3432 # Best one so far, save it but keep looking for a better one
3433 ac_cv_path_FGREP="$ac_path_FGREP"
3434 ac_path_FGREP_max=$ac_count
3436 # 10*(2^10) chars as input seems more than enough
3437 test $ac_count -gt 10 && break
3439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3442 $ac_path_FGREP_found && break 3
3447 if test -z "$ac_cv_path_FGREP"; then
3448 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3451 ac_cv_path_FGREP=$FGREP
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3457 $as_echo "$ac_cv_path_FGREP" >&6; }
3458 FGREP="$ac_cv_path_FGREP"
3461 test -z "$GREP" && GREP=grep
3481 # Check whether --with-gnu-ld was given.
3482 if test "${with_gnu_ld+set}" = set; then :
3483 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3489 if test "$GCC" = yes; then
3490 # Check if gcc -print-prog-name=ld gives a path.
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3492 $as_echo_n "checking for ld used by $CC... " >&6; }
3495 # gcc leaves a trailing carriage return which upsets mingw
3496 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3498 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3501 # Accept absolute paths.
3503 re_direlt='/[^/][^/]*/\.\./'
3504 # Canonicalize the pathname of ld
3505 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3506 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3507 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3509 test -z "$LD" && LD="$ac_prog"
3512 # If it fails, then pretend we aren't using GCC.
3516 # If it is relative, then search for the first ld in PATH.
3520 elif test "$with_gnu_ld" = yes; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3522 $as_echo_n "checking for GNU ld... " >&6; }
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3525 $as_echo_n "checking for non-GNU ld... " >&6; }
3527 if ${lt_cv_path_LD+:} false; then :
3528 $as_echo_n "(cached) " >&6
3530 if test -z "$LD"; then
3531 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3532 for ac_dir in $PATH; do
3534 test -z "$ac_dir" && ac_dir=.
3535 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3536 lt_cv_path_LD="$ac_dir/$ac_prog"
3537 # Check to see if the program is GNU ld. I'd rather use --version,
3538 # but apparently some variants of GNU ld only accept -v.
3539 # Break only if it was the GNU/non-GNU ld that we prefer.
3540 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3541 *GNU* | *'with BFD'*)
3542 test "$with_gnu_ld" != no && break
3545 test "$with_gnu_ld" != yes && break
3552 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3557 if test -n "$LD"; then
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3559 $as_echo "$LD" >&6; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3564 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3566 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3567 if ${lt_cv_prog_gnu_ld+:} false; then :
3568 $as_echo_n "(cached) " >&6
3570 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3571 case `$LD -v 2>&1 </dev/null` in
3572 *GNU* | *'with BFD'*)
3573 lt_cv_prog_gnu_ld=yes
3576 lt_cv_prog_gnu_ld=no
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3581 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3582 with_gnu_ld=$lt_cv_prog_gnu_ld
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3593 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3594 if ${lt_cv_path_NM+:} false; then :
3595 $as_echo_n "(cached) " >&6
3597 if test -n "$NM"; then
3598 # Let the user override the test.
3601 lt_nm_to_check="${ac_tool_prefix}nm"
3602 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3603 lt_nm_to_check="$lt_nm_to_check nm"
3605 for lt_tmp_nm in $lt_nm_to_check; do
3606 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3607 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3609 test -z "$ac_dir" && ac_dir=.
3610 tmp_nm="$ac_dir/$lt_tmp_nm"
3611 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3612 # Check to see if the nm accepts a BSD-compat flag.
3613 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3614 # nm: unknown option "B" ignored
3615 # Tru64's nm complains that /dev/null is an invalid object file
3616 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3617 */dev/null* | *'Invalid file or object type'*)
3618 lt_cv_path_NM="$tmp_nm -B"
3622 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3624 lt_cv_path_NM="$tmp_nm -p"
3628 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3629 continue # so that we can try to find one that supports BSD flags
3638 : ${lt_cv_path_NM=no}
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3642 $as_echo "$lt_cv_path_NM" >&6; }
3643 if test "$lt_cv_path_NM" != "no"; then
3646 # Didn't find any BSD compatible name lister, look for dumpbin.
3647 if test -n "$DUMPBIN"; then :
3648 # Let the user override the test.
3650 if test -n "$ac_tool_prefix"; then
3651 for ac_prog in dumpbin "link -dump"
3653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656 $as_echo_n "checking for $ac_word... " >&6; }
3657 if ${ac_cv_prog_DUMPBIN+:} false; then :
3658 $as_echo_n "(cached) " >&6
3660 if test -n "$DUMPBIN"; then
3661 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 DUMPBIN=$ac_cv_prog_DUMPBIN
3681 if test -n "$DUMPBIN"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3683 $as_echo "$DUMPBIN" >&6; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3690 test -n "$DUMPBIN" && break
3693 if test -z "$DUMPBIN"; then
3694 ac_ct_DUMPBIN=$DUMPBIN
3695 for ac_prog in dumpbin "link -dump"
3697 # Extract the first word of "$ac_prog", so it can be a program name with args.
3698 set dummy $ac_prog; ac_word=$2
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3702 $as_echo_n "(cached) " >&6
3704 if test -n "$ac_ct_DUMPBIN"; then
3705 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3725 if test -n "$ac_ct_DUMPBIN"; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3727 $as_echo "$ac_ct_DUMPBIN" >&6; }
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3734 test -n "$ac_ct_DUMPBIN" && break
3737 if test "x$ac_ct_DUMPBIN" = x; then
3740 case $cross_compiling:$ac_tool_warned in
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3744 ac_tool_warned=yes ;;
3746 DUMPBIN=$ac_ct_DUMPBIN
3750 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3752 DUMPBIN="$DUMPBIN -symbols"
3760 if test "$DUMPBIN" != ":"; then
3764 test -z "$NM" && NM=nm
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3772 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3773 if ${lt_cv_nm_interface+:} false; then :
3774 $as_echo_n "(cached) " >&6
3776 lt_cv_nm_interface="BSD nm"
3777 echo "int some_variable = 0;" > conftest.$ac_ext
3778 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3779 (eval "$ac_compile" 2>conftest.err)
3780 cat conftest.err >&5
3781 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3782 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3783 cat conftest.err >&5
3784 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3785 cat conftest.out >&5
3786 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3787 lt_cv_nm_interface="MS dumpbin"
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3792 $as_echo "$lt_cv_nm_interface" >&6; }
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3795 $as_echo_n "checking whether ln -s works... " >&6; }
3797 if test "$LN_S" = "ln -s"; then
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3799 $as_echo "yes" >&6; }
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3802 $as_echo "no, using $LN_S" >&6; }
3805 # find the maximum length of command line arguments
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3807 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3808 if ${lt_cv_sys_max_cmd_len+:} false; then :
3809 $as_echo_n "(cached) " >&6
3816 # On DJGPP, this test can blow up pretty badly due to problems in libc
3817 # (any single argument exceeding 2000 bytes causes a buffer overrun
3818 # during glob expansion). Even if it were fixed, the result of this
3819 # check would be larger than it should be.
3820 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3824 # Under GNU Hurd, this test is not required because there is
3825 # no limit to the length of command line arguments.
3826 # Libtool will interpret -1 as no limit whatsoever
3827 lt_cv_sys_max_cmd_len=-1;
3830 cygwin* | mingw* | cegcc*)
3831 # On Win9x/ME, this test blows up -- it succeeds, but takes
3832 # about 5 minutes as the teststring grows exponentially.
3833 # Worse, since 9x/ME are not pre-emptively multitasking,
3834 # you end up with a "frozen" computer, even though with patience
3835 # the test eventually succeeds (with a max line length of 256k).
3836 # Instead, let's just punt: use the minimum linelength reported by
3837 # all of the supported platforms: 8192 (on NT/2K/XP).
3838 lt_cv_sys_max_cmd_len=8192;
3842 # On MiNT this can take a long time and run out of memory.
3843 lt_cv_sys_max_cmd_len=8192;
3847 # On AmigaOS with pdksh, this test takes hours, literally.
3848 # So we just punt and use a minimum line length of 8192.
3849 lt_cv_sys_max_cmd_len=8192;
3852 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3853 # This has been around since 386BSD, at least. Likely further.
3854 if test -x /sbin/sysctl; then
3855 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3856 elif test -x /usr/sbin/sysctl; then
3857 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3859 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3861 # And add a safety zone
3862 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3867 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3868 lt_cv_sys_max_cmd_len=196608
3872 # The test takes a long time on OS/2.
3873 lt_cv_sys_max_cmd_len=8192
3877 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3878 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3879 # nice to cause kernel panics so lets avoid the loop below.
3880 # First set a reasonable default.
3881 lt_cv_sys_max_cmd_len=16384
3883 if test -x /sbin/sysconfig; then
3884 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3885 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3890 lt_cv_sys_max_cmd_len=102400
3892 sysv5* | sco5v6* | sysv4.2uw2*)
3893 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3894 if test -n "$kargmax"; then
3895 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3897 lt_cv_sys_max_cmd_len=32768
3901 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3902 if test -n "$lt_cv_sys_max_cmd_len"; then
3903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3906 # Make teststring a little bigger before we do anything with it.
3907 # a 1K string should be a reasonable start.
3908 for i in 1 2 3 4 5 6 7 8 ; do
3909 teststring=$teststring$teststring
3911 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3912 # If test is not a shell built-in, we'll probably end up computing a
3913 # maximum length that is only half of the actual maximum length, but
3915 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
3916 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
3917 test $i != 17 # 1/2 MB should be enough
3920 teststring=$teststring$teststring
3922 # Only check the string length outside the loop.
3923 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3925 # Add a significant safety factor because C++ compilers can tack on
3926 # massive amounts of additional arguments before passing them to the
3927 # linker. It appears as though 1/2 is a usable value.
3928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3935 if test -n $lt_cv_sys_max_cmd_len ; then
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
3937 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
3940 $as_echo "none" >&6; }
3942 max_cmd_len=$lt_cv_sys_max_cmd_len
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
3954 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3955 # Try some XSI features
3958 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
3960 && eval 'test $(( 1 + 1 )) -eq 2 \
3961 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
3964 $as_echo "$xsi_shell" >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
3968 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3970 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3972 && lt_shell_append=yes
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
3974 $as_echo "$lt_shell_append" >&6; }
3977 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3987 # test EBCDIC or ASCII
3988 case `echo X|tr X '\101'` in
3989 A) # ASCII based system
3990 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3991 lt_SP2NL='tr \040 \012'
3992 lt_NL2SP='tr \015\012 \040\040'
3994 *) # EBCDIC based system
3995 lt_SP2NL='tr \100 \n'
3996 lt_NL2SP='tr \r\n \100\100'
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4009 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4010 if ${lt_cv_to_host_file_cmd+:} false; then :
4011 $as_echo_n "(cached) " >&6
4016 *-*-mingw* ) # actually msys
4017 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4020 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4022 * ) # otherwise, assume *nix
4023 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4029 *-*-mingw* ) # actually msys
4030 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4033 lt_cv_to_host_file_cmd=func_convert_file_noop
4035 * ) # otherwise, assume *nix
4036 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4040 * ) # unhandled hosts (and "normal" native builds)
4041 lt_cv_to_host_file_cmd=func_convert_file_noop
4047 to_host_file_cmd=$lt_cv_to_host_file_cmd
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4049 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4056 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4057 if ${lt_cv_to_tool_file_cmd+:} false; then :
4058 $as_echo_n "(cached) " >&6
4060 #assume ordinary cross tools, or native build.
4061 lt_cv_to_tool_file_cmd=func_convert_file_noop
4065 *-*-mingw* ) # actually msys
4066 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4074 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4076 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4083 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4084 if ${lt_cv_ld_reload_flag+:} false; then :
4085 $as_echo_n "(cached) " >&6
4087 lt_cv_ld_reload_flag='-r'
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4090 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4091 reload_flag=$lt_cv_ld_reload_flag
4092 case $reload_flag in
4094 *) reload_flag=" $reload_flag" ;;
4096 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4098 cygwin* | mingw* | pw32* | cegcc*)
4099 if test "$GCC" != yes; then
4104 if test "$GCC" = yes; then
4105 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4107 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4120 if test -n "$ac_tool_prefix"; then
4121 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4122 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if ${ac_cv_prog_OBJDUMP+:} false; then :
4126 $as_echo_n "(cached) " >&6
4128 if test -n "$OBJDUMP"; then
4129 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 OBJDUMP=$ac_cv_prog_OBJDUMP
4149 if test -n "$OBJDUMP"; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4151 $as_echo "$OBJDUMP" >&6; }
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4159 if test -z "$ac_cv_prog_OBJDUMP"; then
4160 ac_ct_OBJDUMP=$OBJDUMP
4161 # Extract the first word of "objdump", so it can be a program name with args.
4162 set dummy objdump; ac_word=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4166 $as_echo_n "(cached) " >&6
4168 if test -n "$ac_ct_OBJDUMP"; then
4169 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4189 if test -n "$ac_ct_OBJDUMP"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4191 $as_echo "$ac_ct_OBJDUMP" >&6; }
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4197 if test "x$ac_ct_OBJDUMP" = x; then
4200 case $cross_compiling:$ac_tool_warned in
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4204 ac_tool_warned=yes ;;
4206 OBJDUMP=$ac_ct_OBJDUMP
4209 OBJDUMP="$ac_cv_prog_OBJDUMP"
4212 test -z "$OBJDUMP" && OBJDUMP=objdump
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4223 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4224 if ${lt_cv_deplibs_check_method+:} false; then :
4225 $as_echo_n "(cached) " >&6
4227 lt_cv_file_magic_cmd='$MAGIC_CMD'
4228 lt_cv_file_magic_test_file=
4229 lt_cv_deplibs_check_method='unknown'
4230 # Need to set the preceding variable on all platforms that support
4231 # interlibrary dependencies.
4232 # 'none' -- dependencies not supported.
4233 # `unknown' -- same as none, but documents that we really don't know.
4234 # 'pass_all' -- all dependencies passed with no checks.
4235 # 'test_compile' -- check by making test program.
4236 # 'file_magic [[regex]]' -- check by looking for files in library path
4237 # which responds to the $file_magic_cmd with a given extended regex.
4238 # If you have `file' or equivalent on your system and you're not sure
4239 # whether `pass_all' will *always* work, you probably want this one.
4243 lt_cv_deplibs_check_method=pass_all
4247 lt_cv_deplibs_check_method=pass_all
4251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4252 lt_cv_file_magic_cmd='/usr/bin/file -L'
4253 lt_cv_file_magic_test_file=/shlib/libc.so
4257 # func_win32_libid is a shell function defined in ltmain.sh
4258 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4259 lt_cv_file_magic_cmd='func_win32_libid'
4263 # Base MSYS/MinGW do not provide the 'file' command needed by
4264 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4265 # unless we find 'file', for example because we are cross-compiling.
4266 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4267 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4268 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4269 lt_cv_file_magic_cmd='func_win32_libid'
4271 # Keep this pattern in sync with the one in func_win32_libid.
4272 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4273 lt_cv_file_magic_cmd='$OBJDUMP -f'
4278 # use the weaker test based on 'objdump'. See mingw*.
4279 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4280 lt_cv_file_magic_cmd='$OBJDUMP -f'
4283 darwin* | rhapsody*)
4284 lt_cv_deplibs_check_method=pass_all
4287 freebsd* | dragonfly*)
4288 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4291 # Not sure whether the presence of OpenBSD here was a mistake.
4292 # Let's accept both of them until this is cleared up.
4293 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4294 lt_cv_file_magic_cmd=/usr/bin/file
4295 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4299 lt_cv_deplibs_check_method=pass_all
4304 lt_cv_deplibs_check_method=pass_all
4308 lt_cv_deplibs_check_method=pass_all
4311 hpux10.20* | hpux11*)
4312 lt_cv_file_magic_cmd=/usr/bin/file
4315 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4316 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4319 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]'
4320 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4323 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4324 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4330 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4334 irix5* | irix6* | nonstopux*)
4336 *-32|*"-32 ") libmagic=32-bit;;
4337 *-n32|*"-n32 ") libmagic=N32;;
4338 *-64|*"-64 ") libmagic=64-bit;;
4339 *) libmagic=never-match;;
4341 lt_cv_deplibs_check_method=pass_all
4344 # This must be glibc/ELF.
4345 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4346 lt_cv_deplibs_check_method=pass_all
4350 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4359 lt_cv_file_magic_cmd=/usr/bin/file
4360 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4364 lt_cv_deplibs_check_method=pass_all
4368 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4375 osf3* | osf4* | osf5*)
4376 lt_cv_deplibs_check_method=pass_all
4380 lt_cv_deplibs_check_method=pass_all
4384 lt_cv_deplibs_check_method=pass_all
4387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4388 lt_cv_deplibs_check_method=pass_all
4392 case $host_vendor in
4394 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]'
4395 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4398 lt_cv_deplibs_check_method=pass_all
4401 lt_cv_file_magic_cmd='/bin/file'
4402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4405 lt_cv_file_magic_cmd='/bin/file'
4406 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4407 lt_cv_file_magic_test_file=/lib/libc.so
4410 lt_cv_deplibs_check_method=pass_all
4413 lt_cv_deplibs_check_method=pass_all
4419 lt_cv_deplibs_check_method=pass_all
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4425 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4429 if test "$build" = "$host"; then
4432 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4435 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4441 file_magic_cmd=$lt_cv_file_magic_cmd
4442 deplibs_check_method=$lt_cv_deplibs_check_method
4443 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4466 if test -n "$ac_tool_prefix"; then
4467 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4468 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470 $as_echo_n "checking for $ac_word... " >&6; }
4471 if ${ac_cv_prog_DLLTOOL+:} false; then :
4472 $as_echo_n "(cached) " >&6
4474 if test -n "$DLLTOOL"; then
4475 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 DLLTOOL=$ac_cv_prog_DLLTOOL
4495 if test -n "$DLLTOOL"; then
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4497 $as_echo "$DLLTOOL" >&6; }
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4505 if test -z "$ac_cv_prog_DLLTOOL"; then
4506 ac_ct_DLLTOOL=$DLLTOOL
4507 # Extract the first word of "dlltool", so it can be a program name with args.
4508 set dummy dlltool; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4512 $as_echo_n "(cached) " >&6
4514 if test -n "$ac_ct_DLLTOOL"; then
4515 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4535 if test -n "$ac_ct_DLLTOOL"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4537 $as_echo "$ac_ct_DLLTOOL" >&6; }
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4543 if test "x$ac_ct_DLLTOOL" = x; then
4546 case $cross_compiling:$ac_tool_warned in
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4550 ac_tool_warned=yes ;;
4552 DLLTOOL=$ac_ct_DLLTOOL
4555 DLLTOOL="$ac_cv_prog_DLLTOOL"
4558 test -z "$DLLTOOL" && DLLTOOL=dlltool
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4570 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4571 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4572 $as_echo_n "(cached) " >&6
4574 lt_cv_sharedlib_from_linklib_cmd='unknown'
4577 cygwin* | mingw* | pw32* | cegcc*)
4578 # two different shell functions defined in ltmain.sh
4579 # decide which to use based on capabilities of $DLLTOOL
4580 case `$DLLTOOL --help 2>&1` in
4581 *--identify-strict*)
4582 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4585 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4590 # fallback: assume linklib IS sharedlib
4591 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4597 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4598 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4599 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4608 if test -n "$ac_tool_prefix"; then
4611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614 $as_echo_n "checking for $ac_word... " >&6; }
4615 if ${ac_cv_prog_AR+:} false; then :
4616 $as_echo_n "(cached) " >&6
4618 if test -n "$AR"; then
4619 ac_cv_prog_AR="$AR" # Let the user override the test.
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 if test -n "$AR"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4641 $as_echo "$AR" >&6; }
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4648 test -n "$AR" && break
4651 if test -z "$AR"; then
4655 # Extract the first word of "$ac_prog", so it can be a program name with args.
4656 set dummy $ac_prog; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4660 $as_echo_n "(cached) " >&6
4662 if test -n "$ac_ct_AR"; then
4663 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4672 ac_cv_prog_ac_ct_AR="$ac_prog"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4683 if test -n "$ac_ct_AR"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4685 $as_echo "$ac_ct_AR" >&6; }
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4692 test -n "$ac_ct_AR" && break
4695 if test "x$ac_ct_AR" = x; then
4698 case $cross_compiling:$ac_tool_warned in
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702 ac_tool_warned=yes ;;
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4722 $as_echo_n "checking for archiver @FILE support... " >&6; }
4723 if ${lt_cv_ar_at_file+:} false; then :
4724 $as_echo_n "(cached) " >&6
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739 echo conftest.$ac_objext > conftest.lst
4740 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4742 (eval $lt_ar_try) 2>&5
4744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4745 test $ac_status = 0; }
4746 if test "$ac_status" -eq 0; then
4747 # Ensure the archiver fails upon bogus file names.
4748 rm -f conftest.$ac_objext libconftest.a
4749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4750 (eval $lt_ar_try) 2>&5
4752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4753 test $ac_status = 0; }
4754 if test "$ac_status" -ne 0; then
4758 rm -f conftest.* libconftest.a
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4765 $as_echo "$lt_cv_ar_at_file" >&6; }
4767 if test "x$lt_cv_ar_at_file" = xno; then
4770 archiver_list_spec=$lt_cv_ar_at_file
4779 if test -n "$ac_tool_prefix"; then
4780 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4781 set dummy ${ac_tool_prefix}strip; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_prog_STRIP+:} false; then :
4785 $as_echo_n "(cached) " >&6
4787 if test -n "$STRIP"; then
4788 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 STRIP=$ac_cv_prog_STRIP
4808 if test -n "$STRIP"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4810 $as_echo "$STRIP" >&6; }
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4818 if test -z "$ac_cv_prog_STRIP"; then
4820 # Extract the first word of "strip", so it can be a program name with args.
4821 set dummy strip; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4825 $as_echo_n "(cached) " >&6
4827 if test -n "$ac_ct_STRIP"; then
4828 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837 ac_cv_prog_ac_ct_STRIP="strip"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4848 if test -n "$ac_ct_STRIP"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4850 $as_echo "$ac_ct_STRIP" >&6; }
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4856 if test "x$ac_ct_STRIP" = x; then
4859 case $cross_compiling:$ac_tool_warned in
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4863 ac_tool_warned=yes ;;
4868 STRIP="$ac_cv_prog_STRIP"
4871 test -z "$STRIP" && STRIP=:
4878 if test -n "$ac_tool_prefix"; then
4879 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4880 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if ${ac_cv_prog_RANLIB+:} false; then :
4884 $as_echo_n "(cached) " >&6
4886 if test -n "$RANLIB"; then
4887 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 RANLIB=$ac_cv_prog_RANLIB
4907 if test -n "$RANLIB"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4909 $as_echo "$RANLIB" >&6; }
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4917 if test -z "$ac_cv_prog_RANLIB"; then
4918 ac_ct_RANLIB=$RANLIB
4919 # Extract the first word of "ranlib", so it can be a program name with args.
4920 set dummy ranlib; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4924 $as_echo_n "(cached) " >&6
4926 if test -n "$ac_ct_RANLIB"; then
4927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936 ac_cv_prog_ac_ct_RANLIB="ranlib"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4947 if test -n "$ac_ct_RANLIB"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4949 $as_echo "$ac_ct_RANLIB" >&6; }
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4955 if test "x$ac_ct_RANLIB" = x; then
4958 case $cross_compiling:$ac_tool_warned in
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4962 ac_tool_warned=yes ;;
4964 RANLIB=$ac_ct_RANLIB
4967 RANLIB="$ac_cv_prog_RANLIB"
4970 test -z "$RANLIB" && RANLIB=:
4977 # Determine commands to create old-style static archives.
4978 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4979 old_postinstall_cmds='chmod 644 $oldlib'
4980 old_postuninstall_cmds=
4982 if test -n "$RANLIB"; then
4985 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
4988 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
4991 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
4996 lock_old_archive_extraction=yes ;;
4998 lock_old_archive_extraction=no ;;
5021 for ac_prog in gawk mawk nawk awk
5023 # Extract the first word of "$ac_prog", so it can be a program name with args.
5024 set dummy $ac_prog; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if ${ac_cv_prog_AWK+:} false; then :
5028 $as_echo_n "(cached) " >&6
5030 if test -n "$AWK"; then
5031 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040 ac_cv_prog_AWK="$ac_prog"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 if test -n "$AWK"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5053 $as_echo "$AWK" >&6; }
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5060 test -n "$AWK" && break
5081 # If no C compiler was specified, use CC.
5084 # If no C compiler flags were specified, use CFLAGS.
5085 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5087 # Allow CC to be a program name with arguments.
5091 # Check for command to grab the raw symbol name followed by C symbol from nm.
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5093 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5094 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5095 $as_echo_n "(cached) " >&6
5098 # These are sane defaults that work on at least a few old systems.
5099 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5101 # Character class describing NM global symbol codes.
5102 symcode='[BCDEGRST]'
5104 # Regexp to match symbols that can be accessed directly from C.
5105 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5107 # Define system-specific variables.
5112 cygwin* | mingw* | pw32* | cegcc*)
5113 symcode='[ABCDGISTW]'
5116 if test "$host_cpu" = ia64; then
5117 symcode='[ABCDEGRST]'
5121 symcode='[BCDEGRST]'
5124 symcode='[BCDEGQRST]'
5135 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5143 # If we're using GNU nm, then use its standard symbol codes.
5144 case `$NM -V 2>&1` in
5145 *GNU* | *'with BFD'*)
5146 symcode='[ABCDGIRSTW]' ;;
5149 # Transform an extracted symbol line into a proper C declaration.
5150 # Some systems (esp. on ia64) link data and code symbols differently,
5151 # so use this general approach.
5152 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5154 # Transform an extracted symbol line into symbol name and symbol address
5155 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5156 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'"
5158 # Handle CRLF in mingw tool chain
5162 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5166 # Try without a prefix underscore, then with it.
5167 for ac_symprfx in "" "_"; do
5169 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5170 symxfrm="\\1 $ac_symprfx\\2 \\2"
5172 # Write the raw and C identifiers.
5173 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5174 # Fake it for dumpbin and say T for any non-static function
5175 # and D for any global variable.
5176 # Also find C++ and __fastcall symbols from MSVC++,
5177 # which start with @ or ?.
5178 lt_cv_sys_global_symbol_pipe="$AWK '"\
5179 " {last_section=section; section=\$ 3};"\
5180 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5181 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5182 " \$ 0!~/External *\|/{next};"\
5183 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5184 " {if(hide[section]) next};"\
5185 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5186 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5187 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5188 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5189 " ' prfx=^$ac_symprfx"
5191 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5193 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5195 # Check to see that the pipe works correctly.
5199 cat > conftest.$ac_ext <<_LT_EOF
5204 void nm_test_func(void);
5205 void nm_test_func(void){}
5209 int main(){nm_test_var='a';nm_test_func();return(0);}
5212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5213 (eval $ac_compile) 2>&5
5215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5216 test $ac_status = 0; }; then
5217 # Now try to grab the symbols.
5219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5220 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5223 test $ac_status = 0; } && test -s "$nlist"; then
5224 # Try sorting and uniquifying the output.
5225 if sort "$nlist" | uniq > "$nlist"T; then
5226 mv -f "$nlist"T "$nlist"
5231 # Make sure that we snagged all the symbols we need.
5232 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5233 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5234 cat <<_LT_EOF > conftest.$ac_ext
5235 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5236 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5237 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5238 relocations are performed -- see ld's documentation on pseudo-relocs. */
5239 # define LT_DLSYM_CONST
5240 #elif defined(__osf__)
5241 /* This system does not cope well with relocations in const data. */
5242 # define LT_DLSYM_CONST
5244 # define LT_DLSYM_CONST const
5252 # Now generate the symbol file.
5253 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5255 cat <<_LT_EOF >> conftest.$ac_ext
5257 /* The mapping between symbol names and symbols. */
5258 LT_DLSYM_CONST struct {
5262 lt__PROGRAM__LTX_preloaded_symbols[] =
5264 { "@PROGRAM@", (void *) 0 },
5266 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5267 cat <<\_LT_EOF >> conftest.$ac_ext
5271 /* This works around a problem in FreeBSD linker */
5272 #ifdef FREEBSD_WORKAROUND
5273 static const void *lt_preloaded_setup() {
5274 return lt__PROGRAM__LTX_preloaded_symbols;
5282 # Now try linking the two files.
5283 mv conftest.$ac_objext conftstm.$ac_objext
5284 lt_globsym_save_LIBS=$LIBS
5285 lt_globsym_save_CFLAGS=$CFLAGS
5286 LIBS="conftstm.$ac_objext"
5287 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5289 (eval $ac_link) 2>&5
5291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5292 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5295 LIBS=$lt_globsym_save_LIBS
5296 CFLAGS=$lt_globsym_save_CFLAGS
5298 echo "cannot find nm_test_func in $nlist" >&5
5301 echo "cannot find nm_test_var in $nlist" >&5
5304 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5307 echo "$progname: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5310 rm -rf conftest* conftst*
5312 # Do not use the global_symbol_pipe unless it works.
5313 if test "$pipe_works" = yes; then
5316 lt_cv_sys_global_symbol_pipe=
5322 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5323 lt_cv_sys_global_symbol_to_cdecl=
5325 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5327 $as_echo "failed" >&6; }
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5330 $as_echo "ok" >&6; }
5333 # Response file support.
5334 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5335 nm_file_list_spec='@'
5336 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5337 nm_file_list_spec='@'
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5367 $as_echo_n "checking for sysroot... " >&6; }
5369 # Check whether --with-sysroot was given.
5370 if test "${with_sysroot+set}" = set; then :
5371 withval=$with_sysroot;
5378 case ${with_sysroot} in #(
5380 if test "$GCC" = yes; then
5381 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5385 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5391 $as_echo "${with_sysroot}" >&6; }
5392 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5397 $as_echo "${lt_sysroot:-no}" >&6; }
5403 # Check whether --enable-libtool-lock was given.
5404 if test "${enable_libtool_lock+set}" = set; then :
5405 enableval=$enable_libtool_lock;
5408 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5410 # Some flags need to be propagated to the compiler or linker for good
5414 # Find out which ABI we are using.
5415 echo 'int i;' > conftest.$ac_ext
5416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5417 (eval $ac_compile) 2>&5
5419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5420 test $ac_status = 0; }; then
5421 case `/usr/bin/file conftest.$ac_objext` in
5433 # Find out which ABI we are using.
5434 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5436 (eval $ac_compile) 2>&5
5438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5439 test $ac_status = 0; }; then
5440 if test "$lt_cv_prog_gnu_ld" = yes; then
5441 case `/usr/bin/file conftest.$ac_objext` in
5443 LD="${LD-ld} -melf32bsmip"
5446 LD="${LD-ld} -melf32bmipn32"
5449 LD="${LD-ld} -melf64bmip"
5453 case `/usr/bin/file conftest.$ac_objext` in
5469 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5470 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5471 # Find out which ABI we are using.
5472 echo 'int i;' > conftest.$ac_ext
5473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5474 (eval $ac_compile) 2>&5
5476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5477 test $ac_status = 0; }; then
5478 case `/usr/bin/file conftest.o` in
5481 x86_64-*kfreebsd*-gnu)
5482 LD="${LD-ld} -m elf_i386_fbsd"
5485 LD="${LD-ld} -m elf_i386"
5487 ppc64-*linux*|powerpc64-*linux*)
5488 LD="${LD-ld} -m elf32ppclinux"
5491 LD="${LD-ld} -m elf_s390"
5494 LD="${LD-ld} -m elf32_sparc"
5500 x86_64-*kfreebsd*-gnu)
5501 LD="${LD-ld} -m elf_x86_64_fbsd"
5504 LD="${LD-ld} -m elf_x86_64"
5506 ppc*-*linux*|powerpc*-*linux*)
5507 LD="${LD-ld} -m elf64ppc"
5509 s390*-*linux*|s390*-*tpf*)
5510 LD="${LD-ld} -m elf64_s390"
5513 LD="${LD-ld} -m elf64_sparc"
5523 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5524 SAVE_CFLAGS="$CFLAGS"
5525 CFLAGS="$CFLAGS -belf"
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5527 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5528 if ${lt_cv_cc_needs_belf+:} false; then :
5529 $as_echo_n "(cached) " >&6
5532 ac_cpp='$CPP $CPPFLAGS'
5533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5548 if ac_fn_c_try_link "$LINENO"; then :
5549 lt_cv_cc_needs_belf=yes
5551 lt_cv_cc_needs_belf=no
5553 rm -f core conftest.err conftest.$ac_objext \
5554 conftest$ac_exeext conftest.$ac_ext
5556 ac_cpp='$CPP $CPPFLAGS'
5557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5563 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5564 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5565 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5566 CFLAGS="$SAVE_CFLAGS"
5570 # Find out which ABI we are using.
5571 echo 'int i;' > conftest.$ac_ext
5572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5573 (eval $ac_compile) 2>&5
5575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5576 test $ac_status = 0; }; then
5577 case `/usr/bin/file conftest.o` in
5579 case $lt_cv_prog_gnu_ld in
5583 LD="${LD-ld} -m elf_x86_64"
5586 LD="${LD-ld} -m elf64_sparc"
5589 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5590 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5595 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5607 need_locks="$enable_libtool_lock"
5609 if test -n "$ac_tool_prefix"; then
5610 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5611 set dummy ${ac_tool_prefix}mt; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5615 $as_echo_n "(cached) " >&6
5617 if test -n "$MANIFEST_TOOL"; then
5618 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5638 if test -n "$MANIFEST_TOOL"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5640 $as_echo "$MANIFEST_TOOL" >&6; }
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5648 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5649 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5650 # Extract the first word of "mt", so it can be a program name with args.
5651 set dummy mt; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5655 $as_echo_n "(cached) " >&6
5657 if test -n "$ac_ct_MANIFEST_TOOL"; then
5658 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5667 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5678 if test -n "$ac_ct_MANIFEST_TOOL"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5680 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5686 if test "x$ac_ct_MANIFEST_TOOL" = x; then
5689 case $cross_compiling:$ac_tool_warned in
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5693 ac_tool_warned=yes ;;
5695 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5698 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5701 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5703 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5704 if ${lt_cv_path_mainfest_tool+:} false; then :
5705 $as_echo_n "(cached) " >&6
5707 lt_cv_path_mainfest_tool=no
5708 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5709 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5710 cat conftest.err >&5
5711 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5712 lt_cv_path_mainfest_tool=yes
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5717 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
5718 if test "x$lt_cv_path_mainfest_tool" != xyes; then
5728 rhapsody* | darwin*)
5729 if test -n "$ac_tool_prefix"; then
5730 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5731 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5735 $as_echo_n "(cached) " >&6
5737 if test -n "$DSYMUTIL"; then
5738 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5758 if test -n "$DSYMUTIL"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5760 $as_echo "$DSYMUTIL" >&6; }
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5768 if test -z "$ac_cv_prog_DSYMUTIL"; then
5769 ac_ct_DSYMUTIL=$DSYMUTIL
5770 # Extract the first word of "dsymutil", so it can be a program name with args.
5771 set dummy dsymutil; ac_word=$2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5775 $as_echo_n "(cached) " >&6
5777 if test -n "$ac_ct_DSYMUTIL"; then
5778 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5787 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5798 if test -n "$ac_ct_DSYMUTIL"; then
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5800 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5806 if test "x$ac_ct_DSYMUTIL" = x; then
5809 case $cross_compiling:$ac_tool_warned in
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5813 ac_tool_warned=yes ;;
5815 DSYMUTIL=$ac_ct_DSYMUTIL
5818 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5821 if test -n "$ac_tool_prefix"; then
5822 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5823 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if ${ac_cv_prog_NMEDIT+:} false; then :
5827 $as_echo_n "(cached) " >&6
5829 if test -n "$NMEDIT"; then
5830 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 NMEDIT=$ac_cv_prog_NMEDIT
5850 if test -n "$NMEDIT"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5852 $as_echo "$NMEDIT" >&6; }
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5860 if test -z "$ac_cv_prog_NMEDIT"; then
5861 ac_ct_NMEDIT=$NMEDIT
5862 # Extract the first word of "nmedit", so it can be a program name with args.
5863 set dummy nmedit; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5867 $as_echo_n "(cached) " >&6
5869 if test -n "$ac_ct_NMEDIT"; then
5870 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5890 if test -n "$ac_ct_NMEDIT"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5892 $as_echo "$ac_ct_NMEDIT" >&6; }
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5898 if test "x$ac_ct_NMEDIT" = x; then
5901 case $cross_compiling:$ac_tool_warned in
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5905 ac_tool_warned=yes ;;
5907 NMEDIT=$ac_ct_NMEDIT
5910 NMEDIT="$ac_cv_prog_NMEDIT"
5913 if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5915 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_prog_LIPO+:} false; then :
5919 $as_echo_n "(cached) " >&6
5921 if test -n "$LIPO"; then
5922 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 LIPO=$ac_cv_prog_LIPO
5942 if test -n "$LIPO"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5944 $as_echo "$LIPO" >&6; }
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5952 if test -z "$ac_cv_prog_LIPO"; then
5954 # Extract the first word of "lipo", so it can be a program name with args.
5955 set dummy lipo; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5959 $as_echo_n "(cached) " >&6
5961 if test -n "$ac_ct_LIPO"; then
5962 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971 ac_cv_prog_ac_ct_LIPO="lipo"
5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5982 if test -n "$ac_ct_LIPO"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5984 $as_echo "$ac_ct_LIPO" >&6; }
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5990 if test "x$ac_ct_LIPO" = x; then
5993 case $cross_compiling:$ac_tool_warned in
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5997 ac_tool_warned=yes ;;
6002 LIPO="$ac_cv_prog_LIPO"
6005 if test -n "$ac_tool_prefix"; then
6006 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6007 set dummy ${ac_tool_prefix}otool; ac_word=$2
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009 $as_echo_n "checking for $ac_word... " >&6; }
6010 if ${ac_cv_prog_OTOOL+:} false; then :
6011 $as_echo_n "(cached) " >&6
6013 if test -n "$OTOOL"; then
6014 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 OTOOL=$ac_cv_prog_OTOOL
6034 if test -n "$OTOOL"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6036 $as_echo "$OTOOL" >&6; }
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6044 if test -z "$ac_cv_prog_OTOOL"; then
6046 # Extract the first word of "otool", so it can be a program name with args.
6047 set dummy otool; ac_word=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6051 $as_echo_n "(cached) " >&6
6053 if test -n "$ac_ct_OTOOL"; then
6054 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6063 ac_cv_prog_ac_ct_OTOOL="otool"
6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6074 if test -n "$ac_ct_OTOOL"; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6076 $as_echo "$ac_ct_OTOOL" >&6; }
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 $as_echo "no" >&6; }
6082 if test "x$ac_ct_OTOOL" = x; then
6085 case $cross_compiling:$ac_tool_warned in
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6089 ac_tool_warned=yes ;;
6094 OTOOL="$ac_cv_prog_OTOOL"
6097 if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6099 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_OTOOL64+:} false; then :
6103 $as_echo_n "(cached) " >&6
6105 if test -n "$OTOOL64"; then
6106 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 OTOOL64=$ac_cv_prog_OTOOL64
6126 if test -n "$OTOOL64"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6128 $as_echo "$OTOOL64" >&6; }
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6136 if test -z "$ac_cv_prog_OTOOL64"; then
6137 ac_ct_OTOOL64=$OTOOL64
6138 # Extract the first word of "otool64", so it can be a program name with args.
6139 set dummy otool64; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6143 $as_echo_n "(cached) " >&6
6145 if test -n "$ac_ct_OTOOL64"; then
6146 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155 ac_cv_prog_ac_ct_OTOOL64="otool64"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6166 if test -n "$ac_ct_OTOOL64"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6168 $as_echo "$ac_ct_OTOOL64" >&6; }
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6174 if test "x$ac_ct_OTOOL64" = x; then
6177 case $cross_compiling:$ac_tool_warned in
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6183 OTOOL64=$ac_ct_OTOOL64
6186 OTOOL64="$ac_cv_prog_OTOOL64"
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6216 $as_echo_n "checking for -single_module linker flag... " >&6; }
6217 if ${lt_cv_apple_cc_single_mod+:} false; then :
6218 $as_echo_n "(cached) " >&6
6220 lt_cv_apple_cc_single_mod=no
6221 if test -z "${LT_MULTI_MODULE}"; then
6222 # By default we will add the -single_module flag. You can override
6223 # by either setting the environment variable LT_MULTI_MODULE
6224 # non-empty at configure time, or by adding -multi_module to the
6226 rm -rf libconftest.dylib*
6227 echo "int foo(void){return 1;}" > conftest.c
6228 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6229 -dynamiclib -Wl,-single_module conftest.c" >&5
6230 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6231 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6233 # If there is a non-empty error log, and "single_module"
6234 # appears in it, assume the flag caused a linker warning
6235 if test -s conftest.err && $GREP single_module conftest.err; then
6236 cat conftest.err >&5
6237 # Otherwise, if the output was created with a 0 exit code from
6238 # the compiler, it worked.
6239 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6240 lt_cv_apple_cc_single_mod=yes
6242 cat conftest.err >&5
6244 rm -rf libconftest.dylib*
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6249 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6252 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6253 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6254 $as_echo_n "(cached) " >&6
6256 lt_cv_ld_exported_symbols_list=no
6257 save_LDFLAGS=$LDFLAGS
6258 echo "_main" > conftest.sym
6259 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6271 if ac_fn_c_try_link "$LINENO"; then :
6272 lt_cv_ld_exported_symbols_list=yes
6274 lt_cv_ld_exported_symbols_list=no
6276 rm -f core conftest.err conftest.$ac_objext \
6277 conftest$ac_exeext conftest.$ac_ext
6278 LDFLAGS="$save_LDFLAGS"
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6282 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6285 $as_echo_n "checking for -force_load linker flag... " >&6; }
6286 if ${lt_cv_ld_force_load+:} false; then :
6287 $as_echo_n "(cached) " >&6
6289 lt_cv_ld_force_load=no
6290 cat > conftest.c << _LT_EOF
6291 int forced_loaded() { return 2;}
6293 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6294 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6295 echo "$AR cru libconftest.a conftest.o" >&5
6296 $AR cru libconftest.a conftest.o 2>&5
6297 echo "$RANLIB libconftest.a" >&5
6298 $RANLIB libconftest.a 2>&5
6299 cat > conftest.c << _LT_EOF
6300 int main() { return 0;}
6302 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6303 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6305 if test -s conftest.err && $GREP force_load conftest.err; then
6306 cat conftest.err >&5
6307 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6308 lt_cv_ld_force_load=yes
6310 cat conftest.err >&5
6312 rm -f conftest.err libconftest.a conftest conftest.c
6313 rm -rf conftest.dSYM
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6317 $as_echo "$lt_cv_ld_force_load" >&6; }
6319 rhapsody* | darwin1.[012])
6320 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6322 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6323 darwin*) # darwin 5.x on
6324 # if running on 10.5 or later, the deployment target defaults
6325 # to the OS version, if on x86, and 10.4, the deployment
6326 # target defaults to 10.4. Don't you love it?
6327 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6328 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6329 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6331 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6333 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6337 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6338 _lt_dar_single_mod='$single_module'
6340 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6341 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6343 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6345 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6346 _lt_dsymutil='~$DSYMUTIL $lib || :'
6354 ac_cpp='$CPP $CPPFLAGS'
6355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6359 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6360 # On Suns, sometimes $CPP names a directory.
6361 if test -n "$CPP" && test -d "$CPP"; then
6364 if test -z "$CPP"; then
6365 if ${ac_cv_prog_CPP+:} false; then :
6366 $as_echo_n "(cached) " >&6
6368 # Double quotes because CPP needs to be expanded
6369 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6372 for ac_c_preproc_warn_flag in '' yes
6374 # Use a header file that comes with gcc, so configuring glibc
6375 # with a fresh cross-compiler works.
6376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6377 # <limits.h> exists even on freestanding compilers.
6378 # On the NeXT, cc -E runs the code through the compiler's parser,
6379 # not just through cpp. "Syntax error" is here to catch this case.
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6383 # include <limits.h>
6385 # include <assert.h>
6389 if ac_fn_c_try_cpp "$LINENO"; then :
6392 # Broken: fails on valid input.
6395 rm -f conftest.err conftest.i conftest.$ac_ext
6397 # OK, works on sane cases. Now check whether nonexistent headers
6398 # can be detected and how.
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6401 #include <ac_nonexistent.h>
6403 if ac_fn_c_try_cpp "$LINENO"; then :
6404 # Broken: success on invalid input.
6407 # Passes both tests.
6411 rm -f conftest.err conftest.i conftest.$ac_ext
6414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6415 rm -f conftest.i conftest.err conftest.$ac_ext
6416 if $ac_preproc_ok; then :
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6429 $as_echo "$CPP" >&6; }
6431 for ac_c_preproc_warn_flag in '' yes
6433 # Use a header file that comes with gcc, so configuring glibc
6434 # with a fresh cross-compiler works.
6435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6436 # <limits.h> exists even on freestanding compilers.
6437 # On the NeXT, cc -E runs the code through the compiler's parser,
6438 # not just through cpp. "Syntax error" is here to catch this case.
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6442 # include <limits.h>
6444 # include <assert.h>
6448 if ac_fn_c_try_cpp "$LINENO"; then :
6451 # Broken: fails on valid input.
6454 rm -f conftest.err conftest.i conftest.$ac_ext
6456 # OK, works on sane cases. Now check whether nonexistent headers
6457 # can be detected and how.
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 #include <ac_nonexistent.h>
6462 if ac_fn_c_try_cpp "$LINENO"; then :
6463 # Broken: success on invalid input.
6466 # Passes both tests.
6470 rm -f conftest.err conftest.i conftest.$ac_ext
6473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6474 rm -f conftest.i conftest.err conftest.$ac_ext
6475 if $ac_preproc_ok; then :
6478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6480 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6481 See \`config.log' for more details" "$LINENO" 5; }
6485 ac_cpp='$CPP $CPPFLAGS'
6486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6492 $as_echo_n "checking for ANSI C header files... " >&6; }
6493 if ${ac_cv_header_stdc+:} false; then :
6494 $as_echo_n "(cached) " >&6
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6511 if ac_fn_c_try_compile "$LINENO"; then :
6512 ac_cv_header_stdc=yes
6514 ac_cv_header_stdc=no
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518 if test $ac_cv_header_stdc = yes; then
6519 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6526 $EGREP "memchr" >/dev/null 2>&1; then :
6529 ac_cv_header_stdc=no
6535 if test $ac_cv_header_stdc = yes; then
6536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6543 $EGREP "free" >/dev/null 2>&1; then :
6546 ac_cv_header_stdc=no
6552 if test $ac_cv_header_stdc = yes; then
6553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6554 if test "$cross_compiling" = yes; then :
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6561 #if ((' ' & 0x0FF) == 0x020)
6562 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6563 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6565 # define ISLOWER(c) \
6566 (('a' <= (c) && (c) <= 'i') \
6567 || ('j' <= (c) && (c) <= 'r') \
6568 || ('s' <= (c) && (c) <= 'z'))
6569 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6572 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6577 for (i = 0; i < 256; i++)
6578 if (XOR (islower (i), ISLOWER (i))
6579 || toupper (i) != TOUPPER (i))
6584 if ac_fn_c_try_run "$LINENO"; then :
6587 ac_cv_header_stdc=no
6589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6590 conftest.$ac_objext conftest.beam conftest.$ac_ext
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6596 $as_echo "$ac_cv_header_stdc" >&6; }
6597 if test $ac_cv_header_stdc = yes; then
6599 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6603 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6604 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6605 inttypes.h stdint.h unistd.h
6607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6608 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6610 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6611 cat >>confdefs.h <<_ACEOF
6612 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6620 for ac_header in dlfcn.h
6622 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6624 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6625 cat >>confdefs.h <<_ACEOF
6626 #define HAVE_DLFCN_H 1
6647 # Check whether --enable-shared was given.
6648 if test "${enable_shared+set}" = set; then :
6649 enableval=$enable_shared; p=${PACKAGE-default}
6651 yes) enable_shared=yes ;;
6652 no) enable_shared=no ;;
6655 # Look at the argument we got. We use all the common list separators.
6656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6657 for pkg in $enableval; do
6659 if test "X$pkg" = "X$p"; then
6678 # Check whether --enable-static was given.
6679 if test "${enable_static+set}" = set; then :
6680 enableval=$enable_static; p=${PACKAGE-default}
6682 yes) enable_static=yes ;;
6683 no) enable_static=no ;;
6686 # Look at the argument we got. We use all the common list separators.
6687 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6688 for pkg in $enableval; do
6690 if test "X$pkg" = "X$p"; then
6710 # Check whether --with-pic was given.
6711 if test "${with_pic+set}" = set; then :
6712 withval=$with_pic; lt_p=${PACKAGE-default}
6714 yes|no) pic_mode=$withval ;;
6717 # Look at the argument we got. We use all the common list separators.
6718 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6719 for lt_pkg in $withval; do
6721 if test "X$lt_pkg" = "X$lt_p"; then
6733 test -z "$pic_mode" && pic_mode=default
6741 # Check whether --enable-fast-install was given.
6742 if test "${enable_fast_install+set}" = set; then :
6743 enableval=$enable_fast_install; p=${PACKAGE-default}
6745 yes) enable_fast_install=yes ;;
6746 no) enable_fast_install=no ;;
6748 enable_fast_install=no
6749 # Look at the argument we got. We use all the common list separators.
6750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6751 for pkg in $enableval; do
6753 if test "X$pkg" = "X$p"; then
6754 enable_fast_install=yes
6761 enable_fast_install=yes
6774 # This can be used to rebuild libtool when needed
6775 LIBTOOL_DEPS="$ltmain"
6777 # Always use our own libtool.
6778 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6809 test -z "$LN_S" && LN_S="ln -s"
6824 if test -n "${ZSH_VERSION+set}" ; then
6825 setopt NO_GLOB_SUBST
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6829 $as_echo_n "checking for objdir... " >&6; }
6830 if ${lt_cv_objdir+:} false; then :
6831 $as_echo_n "(cached) " >&6
6833 rm -f .libs 2>/dev/null
6834 mkdir .libs 2>/dev/null
6835 if test -d .libs; then
6838 # MS-DOS does not allow filenames that begin with a dot.
6841 rmdir .libs 2>/dev/null
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6844 $as_echo "$lt_cv_objdir" >&6; }
6845 objdir=$lt_cv_objdir
6851 cat >>confdefs.h <<_ACEOF
6852 #define LT_OBJDIR "$lt_cv_objdir/"
6860 # AIX sometimes has problems with the GCC collect2 program. For some
6861 # reason, if we set the COLLECT_NAMES environment variable, the problems
6862 # vanish in a puff of smoke.
6863 if test "X${COLLECT_NAMES+set}" != Xset; then
6865 export COLLECT_NAMES
6872 can_build_shared=yes
6874 # All known linkers require a `.a' archive for static linking (except MSVC,
6875 # which needs '.lib').
6878 with_gnu_ld="$lt_cv_prog_gnu_ld"
6881 old_CFLAGS="$CFLAGS"
6883 # Set sane defaults for various variables
6884 test -z "$CC" && CC=cc
6885 test -z "$LTCC" && LTCC=$CC
6886 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6887 test -z "$LD" && LD=ld
6888 test -z "$ac_objext" && ac_objext=o
6890 for cc_temp in $compiler""; do
6892 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6893 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6898 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6901 # Only perform the check for file, if the check method requires it
6902 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6903 case $deplibs_check_method in
6905 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6907 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6908 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6909 $as_echo_n "(cached) " >&6
6913 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6916 lt_save_MAGIC_CMD="$MAGIC_CMD"
6917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6918 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6919 for ac_dir in $ac_dummy; do
6921 test -z "$ac_dir" && ac_dir=.
6922 if test -f $ac_dir/${ac_tool_prefix}file; then
6923 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6924 if test -n "$file_magic_test_file"; then
6925 case $deplibs_check_method in
6927 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6929 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6930 $EGREP "$file_magic_regex" > /dev/null; then
6935 *** Warning: the command libtool uses to detect shared libraries,
6936 *** $file_magic_cmd, produces output that libtool cannot recognize.
6937 *** The result is that libtool may fail to recognize shared libraries
6938 *** as such. This will affect the creation of libtool libraries that
6939 *** depend on shared libraries, but programs linked with such libtool
6940 *** libraries will work regardless of this problem. Nevertheless, you
6941 *** may want to report the problem to your system manager and/or to
6942 *** bug-libtool@gnu.org
6952 MAGIC_CMD="$lt_save_MAGIC_CMD"
6957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6958 if test -n "$MAGIC_CMD"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6960 $as_echo "$MAGIC_CMD" >&6; }
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6970 if test -z "$lt_cv_path_MAGIC_CMD"; then
6971 if test -n "$ac_tool_prefix"; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6973 $as_echo_n "checking for file... " >&6; }
6974 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6975 $as_echo_n "(cached) " >&6
6979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6982 lt_save_MAGIC_CMD="$MAGIC_CMD"
6983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6985 for ac_dir in $ac_dummy; do
6987 test -z "$ac_dir" && ac_dir=.
6988 if test -f $ac_dir/file; then
6989 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6990 if test -n "$file_magic_test_file"; then
6991 case $deplibs_check_method in
6993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6996 $EGREP "$file_magic_regex" > /dev/null; then
7001 *** Warning: the command libtool uses to detect shared libraries,
7002 *** $file_magic_cmd, produces output that libtool cannot recognize.
7003 *** The result is that libtool may fail to recognize shared libraries
7004 *** as such. This will affect the creation of libtool libraries that
7005 *** depend on shared libraries, but programs linked with such libtool
7006 *** libraries will work regardless of this problem. Nevertheless, you
7007 *** may want to report the problem to your system manager and/or to
7008 *** bug-libtool@gnu.org
7018 MAGIC_CMD="$lt_save_MAGIC_CMD"
7023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7024 if test -n "$MAGIC_CMD"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7026 $as_echo "$MAGIC_CMD" >&6; }
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7042 # Use C for the default configuration in the libtool script
7046 ac_cpp='$CPP $CPPFLAGS'
7047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7052 # Source file extension for C test sources.
7055 # Object file extension for compiled C test sources.
7059 # Code to be used in simple compile tests
7060 lt_simple_compile_test_code="int some_variable = 0;"
7062 # Code to be used in simple link tests
7063 lt_simple_link_test_code='int main(){return(0);}'
7071 # If no C compiler was specified, use CC.
7074 # If no C compiler flags were specified, use CFLAGS.
7075 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7077 # Allow CC to be a program name with arguments.
7080 # Save the default compiler, since it gets overwritten when the other
7081 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7082 compiler_DEFAULT=$CC
7084 # save warnings/boilerplate of simple test code
7085 ac_outfile=conftest.$ac_objext
7086 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7087 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7088 _lt_compiler_boilerplate=`cat conftest.err`
7091 ac_outfile=conftest.$ac_objext
7092 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7093 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7094 _lt_linker_boilerplate=`cat conftest.err`
7099 ## There is no encapsulation within the following macros, do not change
7100 ## the running order or otherwise move them around unless you know exactly
7101 ## what you are doing...
7102 if test -n "$compiler"; then
7104 lt_prog_compiler_no_builtin_flag=
7106 if test "$GCC" = yes; then
7107 case $cc_basename in
7109 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7111 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7115 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7116 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7117 $as_echo_n "(cached) " >&6
7119 lt_cv_prog_compiler_rtti_exceptions=no
7120 ac_outfile=conftest.$ac_objext
7121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7122 lt_compiler_flag="-fno-rtti -fno-exceptions"
7123 # Insert the option either (1) after the last *FLAGS variable, or
7124 # (2) before a word containing "conftest.", or (3) at the end.
7125 # Note that $ac_compile itself does not contain backslashes and begins
7126 # with a dollar sign (not a hyphen), so the echo should work correctly.
7127 # The option is referenced via a variable to avoid confusing sed.
7128 lt_compile=`echo "$ac_compile" | $SED \
7129 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7131 -e 's:$: $lt_compiler_flag:'`
7132 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7133 (eval "$lt_compile" 2>conftest.err)
7135 cat conftest.err >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 if (exit $ac_status) && test -s "$ac_outfile"; then
7138 # The compiler can only warn and ignore the option if not recognized
7139 # So say no if there are warnings other than the usual output.
7140 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7142 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7143 lt_cv_prog_compiler_rtti_exceptions=yes
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7150 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7152 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7153 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7165 lt_prog_compiler_wl=
7166 lt_prog_compiler_pic=
7167 lt_prog_compiler_static=
7170 if test "$GCC" = yes; then
7171 lt_prog_compiler_wl='-Wl,'
7172 lt_prog_compiler_static='-static'
7176 # All AIX code is PIC.
7177 if test "$host_cpu" = ia64; then
7178 # AIX 5 now supports IA64 processor
7179 lt_prog_compiler_static='-Bstatic'
7186 # see comment about AmigaOS4 .so support
7187 lt_prog_compiler_pic='-fPIC'
7190 # FIXME: we need at least 68020 code to build shared libraries, but
7191 # adding the `-m68020' flag to GCC prevents building anything better,
7193 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7198 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7199 # PIC is the default for these OSes.
7202 mingw* | cygwin* | pw32* | os2* | cegcc*)
7203 # This hack is so that the source file can tell whether it is being
7204 # built for inclusion in a dll (and should export symbols for example).
7205 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7206 # (--disable-auto-import) libraries
7207 lt_prog_compiler_pic='-DDLL_EXPORT'
7210 darwin* | rhapsody*)
7211 # PIC is the default on this platform
7212 # Common symbols not allowed in MH_DYLIB files
7213 lt_prog_compiler_pic='-fno-common'
7217 # PIC is the default for Haiku.
7218 # The "-static" flag exists, but is broken.
7219 lt_prog_compiler_static=
7223 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7224 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7225 # sets the default TLS model and affects inlining.
7231 lt_prog_compiler_pic='-fPIC'
7237 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7238 # Instead, we relocate shared libraries at runtime.
7242 # Just because we use GCC doesn't mean we suddenly get shared libraries
7243 # on systems that don't support them.
7244 lt_prog_compiler_can_build_shared=no
7249 # QNX uses GNU C++, but need to define -shared option too, otherwise
7251 lt_prog_compiler_pic='-fPIC -shared'
7255 if test -d /usr/nec; then
7256 lt_prog_compiler_pic=-Kconform_pic
7261 lt_prog_compiler_pic='-fPIC'
7265 case $cc_basename in
7266 nvcc*) # Cuda Compiler Driver 2.2
7267 lt_prog_compiler_wl='-Xlinker '
7268 if test -n "$lt_prog_compiler_pic"; then
7269 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7274 # PORTME Check for flag to pass linker flags through the system compiler.
7277 lt_prog_compiler_wl='-Wl,'
7278 if test "$host_cpu" = ia64; then
7279 # AIX 5 now supports IA64 processor
7280 lt_prog_compiler_static='-Bstatic'
7282 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7286 mingw* | cygwin* | pw32* | os2* | cegcc*)
7287 # This hack is so that the source file can tell whether it is being
7288 # built for inclusion in a dll (and should export symbols for example).
7289 lt_prog_compiler_pic='-DDLL_EXPORT'
7292 hpux9* | hpux10* | hpux11*)
7293 lt_prog_compiler_wl='-Wl,'
7294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7301 lt_prog_compiler_pic='+Z'
7304 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7305 lt_prog_compiler_static='${wl}-a ${wl}archive'
7308 irix5* | irix6* | nonstopux*)
7309 lt_prog_compiler_wl='-Wl,'
7310 # PIC (with -KPIC) is the default.
7311 lt_prog_compiler_static='-non_shared'
7314 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7315 case $cc_basename in
7316 # old Intel for x86_64 which still supported -KPIC.
7318 lt_prog_compiler_wl='-Wl,'
7319 lt_prog_compiler_pic='-KPIC'
7320 lt_prog_compiler_static='-static'
7322 # icc used to be incompatible with GCC.
7323 # ICC 10 doesn't accept -KPIC any more.
7325 lt_prog_compiler_wl='-Wl,'
7326 lt_prog_compiler_pic='-fPIC'
7327 lt_prog_compiler_static='-static'
7329 # Lahey Fortran 8.1.
7331 lt_prog_compiler_wl='-Wl,'
7332 lt_prog_compiler_pic='--shared'
7333 lt_prog_compiler_static='--static'
7336 # NAG Fortran compiler
7337 lt_prog_compiler_wl='-Wl,-Wl,,'
7338 lt_prog_compiler_pic='-PIC'
7339 lt_prog_compiler_static='-Bstatic'
7341 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7342 # Portland Group compilers (*not* the Pentium gcc compiler,
7343 # which looks to be a dead project)
7344 lt_prog_compiler_wl='-Wl,'
7345 lt_prog_compiler_pic='-fpic'
7346 lt_prog_compiler_static='-Bstatic'
7349 lt_prog_compiler_wl='-Wl,'
7350 # All Alpha code is PIC.
7351 lt_prog_compiler_static='-non_shared'
7353 xl* | bgxl* | bgf* | mpixl*)
7354 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7355 lt_prog_compiler_wl='-Wl,'
7356 lt_prog_compiler_pic='-qpic'
7357 lt_prog_compiler_static='-qstaticlink'
7360 case `$CC -V 2>&1 | sed 5q` in
7361 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7362 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7363 lt_prog_compiler_pic='-KPIC'
7364 lt_prog_compiler_static='-Bstatic'
7365 lt_prog_compiler_wl=''
7367 *Sun\ F* | *Sun*Fortran*)
7368 lt_prog_compiler_pic='-KPIC'
7369 lt_prog_compiler_static='-Bstatic'
7370 lt_prog_compiler_wl='-Qoption ld '
7374 lt_prog_compiler_pic='-KPIC'
7375 lt_prog_compiler_static='-Bstatic'
7376 lt_prog_compiler_wl='-Wl,'
7378 *Intel*\ [CF]*Compiler*)
7379 lt_prog_compiler_wl='-Wl,'
7380 lt_prog_compiler_pic='-fPIC'
7381 lt_prog_compiler_static='-static'
7384 lt_prog_compiler_wl='-Wl,'
7385 lt_prog_compiler_pic='-fpic'
7386 lt_prog_compiler_static='-Bstatic'
7394 lt_prog_compiler_pic='-KPIC'
7395 lt_prog_compiler_static='-Bstatic'
7399 # QNX uses GNU C++, but need to define -shared option too, otherwise
7401 lt_prog_compiler_pic='-fPIC -shared'
7404 osf3* | osf4* | osf5*)
7405 lt_prog_compiler_wl='-Wl,'
7406 # All OSF/1 code is PIC.
7407 lt_prog_compiler_static='-non_shared'
7411 lt_prog_compiler_static='-non_shared'
7415 lt_prog_compiler_pic='-KPIC'
7416 lt_prog_compiler_static='-Bstatic'
7417 case $cc_basename in
7418 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7419 lt_prog_compiler_wl='-Qoption ld ';;
7421 lt_prog_compiler_wl='-Wl,';;
7426 lt_prog_compiler_wl='-Qoption ld '
7427 lt_prog_compiler_pic='-PIC'
7428 lt_prog_compiler_static='-Bstatic'
7431 sysv4 | sysv4.2uw2* | sysv4.3*)
7432 lt_prog_compiler_wl='-Wl,'
7433 lt_prog_compiler_pic='-KPIC'
7434 lt_prog_compiler_static='-Bstatic'
7438 if test -d /usr/nec ;then
7439 lt_prog_compiler_pic='-Kconform_pic'
7440 lt_prog_compiler_static='-Bstatic'
7444 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7445 lt_prog_compiler_wl='-Wl,'
7446 lt_prog_compiler_pic='-KPIC'
7447 lt_prog_compiler_static='-Bstatic'
7451 lt_prog_compiler_wl='-Wl,'
7452 lt_prog_compiler_can_build_shared=no
7456 lt_prog_compiler_pic='-pic'
7457 lt_prog_compiler_static='-Bstatic'
7461 lt_prog_compiler_can_build_shared=no
7467 # For platforms which do not support PIC, -DPIC is meaningless:
7469 lt_prog_compiler_pic=
7472 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7477 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7478 if ${lt_cv_prog_compiler_pic+:} false; then :
7479 $as_echo_n "(cached) " >&6
7481 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7484 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7485 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7488 # Check to make sure the PIC flag actually works.
7490 if test -n "$lt_prog_compiler_pic"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7492 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7493 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7494 $as_echo_n "(cached) " >&6
7496 lt_cv_prog_compiler_pic_works=no
7497 ac_outfile=conftest.$ac_objext
7498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7499 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7500 # Insert the option either (1) after the last *FLAGS variable, or
7501 # (2) before a word containing "conftest.", or (3) at the end.
7502 # Note that $ac_compile itself does not contain backslashes and begins
7503 # with a dollar sign (not a hyphen), so the echo should work correctly.
7504 # The option is referenced via a variable to avoid confusing sed.
7505 lt_compile=`echo "$ac_compile" | $SED \
7506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7508 -e 's:$: $lt_compiler_flag:'`
7509 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7510 (eval "$lt_compile" 2>conftest.err)
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 if (exit $ac_status) && test -s "$ac_outfile"; then
7515 # The compiler can only warn and ignore the option if not recognized
7516 # So say no if there are warnings other than the usual output.
7517 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7519 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7520 lt_cv_prog_compiler_pic_works=yes
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7527 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7529 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7530 case $lt_prog_compiler_pic in
7532 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7535 lt_prog_compiler_pic=
7536 lt_prog_compiler_can_build_shared=no
7552 # Check to make sure the static flag actually works.
7554 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7556 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7557 if ${lt_cv_prog_compiler_static_works+:} false; then :
7558 $as_echo_n "(cached) " >&6
7560 lt_cv_prog_compiler_static_works=no
7561 save_LDFLAGS="$LDFLAGS"
7562 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7563 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7564 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7565 # The linker can only warn and ignore the option if not recognized
7566 # So say no if there are warnings
7567 if test -s conftest.err; then
7568 # Append any errors to the config.log.
7569 cat conftest.err 1>&5
7570 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7572 if diff conftest.exp conftest.er2 >/dev/null; then
7573 lt_cv_prog_compiler_static_works=yes
7576 lt_cv_prog_compiler_static_works=yes
7580 LDFLAGS="$save_LDFLAGS"
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7584 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7586 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7589 lt_prog_compiler_static=
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7599 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7600 if ${lt_cv_prog_compiler_c_o+:} false; then :
7601 $as_echo_n "(cached) " >&6
7603 lt_cv_prog_compiler_c_o=no
7604 $RM -r conftest 2>/dev/null
7608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7610 lt_compiler_flag="-o out/conftest2.$ac_objext"
7611 # Insert the option either (1) after the last *FLAGS variable, or
7612 # (2) before a word containing "conftest.", or (3) at the end.
7613 # Note that $ac_compile itself does not contain backslashes and begins
7614 # with a dollar sign (not a hyphen), so the echo should work correctly.
7615 lt_compile=`echo "$ac_compile" | $SED \
7616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7618 -e 's:$: $lt_compiler_flag:'`
7619 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7620 (eval "$lt_compile" 2>out/conftest.err)
7622 cat out/conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7626 # The compiler can only warn and ignore the option if not recognized
7627 # So say no if there are warnings
7628 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7629 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7630 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7631 lt_cv_prog_compiler_c_o=yes
7636 # SGI C++ compiler will create directory out/ii_files/ for
7637 # template instantiation
7638 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7639 $RM out/* && rmdir out
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7646 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7654 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7655 if ${lt_cv_prog_compiler_c_o+:} false; then :
7656 $as_echo_n "(cached) " >&6
7658 lt_cv_prog_compiler_c_o=no
7659 $RM -r conftest 2>/dev/null
7663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7665 lt_compiler_flag="-o out/conftest2.$ac_objext"
7666 # Insert the option either (1) after the last *FLAGS variable, or
7667 # (2) before a word containing "conftest.", or (3) at the end.
7668 # Note that $ac_compile itself does not contain backslashes and begins
7669 # with a dollar sign (not a hyphen), so the echo should work correctly.
7670 lt_compile=`echo "$ac_compile" | $SED \
7671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7673 -e 's:$: $lt_compiler_flag:'`
7674 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7675 (eval "$lt_compile" 2>out/conftest.err)
7677 cat out/conftest.err >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7681 # The compiler can only warn and ignore the option if not recognized
7682 # So say no if there are warnings
7683 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7684 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7685 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7686 lt_cv_prog_compiler_c_o=yes
7691 # SGI C++ compiler will create directory out/ii_files/ for
7692 # template instantiation
7693 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7694 $RM out/* && rmdir out
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7701 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7706 hard_links="nottested"
7707 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7708 # do not overwrite the value of need_locks provided by the user
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7710 $as_echo_n "checking if we can lock with hard links... " >&6; }
7713 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7715 ln conftest.a conftest.b 2>&5 || hard_links=no
7716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7718 $as_echo "$hard_links" >&6; }
7719 if test "$hard_links" = no; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7721 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7734 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7737 allow_undefined_flag=
7738 always_export_symbols=no
7740 archive_expsym_cmds=
7741 compiler_needs_object=no
7742 enable_shared_with_static_runtimes=no
7743 export_dynamic_flag_spec=
7744 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7745 hardcode_automatic=no
7747 hardcode_direct_absolute=no
7748 hardcode_libdir_flag_spec=
7749 hardcode_libdir_separator=
7751 hardcode_shlibpath_var=unsupported
7753 link_all_deplibs=unknown
7756 old_archive_from_new_cmds=
7757 old_archive_from_expsyms_cmds=
7758 thread_safe_flag_spec=
7759 whole_archive_flag_spec=
7760 # include_expsyms should be a list of space-separated symbols to be *always*
7761 # included in the symbol list
7763 # exclude_expsyms can be an extended regexp of symbols to exclude
7764 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7765 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7766 # as well as any symbol that contains `d'.
7767 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7768 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7769 # platforms (ab)use it in PIC code, but their linkers get confused if
7770 # the symbol is explicitly referenced. Since portable code cannot
7771 # rely on this symbol name, it's probably fine to never include it in
7772 # preloaded symbol tables.
7773 # Exclude shared library initialization/finalization symbols.
7774 extract_expsyms_cmds=
7777 cygwin* | mingw* | pw32* | cegcc*)
7778 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7779 # When not using gcc, we currently assume that we are using
7780 # Microsoft Visual C++.
7781 if test "$GCC" != yes; then
7786 # we just hope/assume this is gcc and not c89 (= MSVC++)
7796 # On some targets, GNU ld is compatible enough with the native linker
7797 # that we're better off using the native interface for both.
7798 lt_use_gnu_ld_interface=no
7799 if test "$with_gnu_ld" = yes; then
7802 # The AIX port of GNU ld has always aspired to compatibility
7803 # with the native linker. However, as the warning in the GNU ld
7804 # block says, versions before 2.19.5* couldn't really create working
7805 # shared libraries, regardless of the interface used.
7806 case `$LD -v 2>&1` in
7807 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7808 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7809 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7811 lt_use_gnu_ld_interface=yes
7816 lt_use_gnu_ld_interface=yes
7821 if test "$lt_use_gnu_ld_interface" = yes; then
7822 # If archive_cmds runs LD, not CC, wlarc should be empty
7825 # Set some defaults for GNU ld with shared library support. These
7826 # are reset later if shared libraries are not supported. Putting them
7827 # here allows them to be overridden if necessary.
7828 runpath_var=LD_RUN_PATH
7829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7830 export_dynamic_flag_spec='${wl}--export-dynamic'
7831 # ancient GNU ld didn't support --whole-archive et. al.
7832 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7833 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7835 whole_archive_flag_spec=
7837 supports_anon_versioning=no
7838 case `$LD -v 2>&1` in
7839 *GNU\ gold*) supports_anon_versioning=yes ;;
7840 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7841 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7842 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7843 *\ 2.11.*) ;; # other 2.11 versions
7844 *) supports_anon_versioning=yes ;;
7847 # See if GNU ld supports shared libraries.
7850 # On AIX/PPC, the GNU linker is very broken
7851 if test "$host_cpu" != ia64; then
7855 *** Warning: the GNU linker, at least up to release 2.19, is reported
7856 *** to be unable to reliably create shared libraries on AIX.
7857 *** Therefore, libtool is disabling shared libraries support. If you
7858 *** really care for shared libraries, you may want to install binutils
7859 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7860 *** You will then need to restart the configuration process.
7869 # see comment about AmigaOS4 .so support
7870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7871 archive_expsym_cmds=''
7874 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)'
7875 hardcode_libdir_flag_spec='-L$libdir'
7876 hardcode_minus_L=yes
7882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7883 allow_undefined_flag=unsupported
7884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7885 # support --undefined. This deserves some investigation. FIXME
7886 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7892 cygwin* | mingw* | pw32* | cegcc*)
7893 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7894 # as there is no search path for DLLs.
7895 hardcode_libdir_flag_spec='-L$libdir'
7896 export_dynamic_flag_spec='${wl}--export-all-symbols'
7897 allow_undefined_flag=unsupported
7898 always_export_symbols=no
7899 enable_shared_with_static_runtimes=yes
7900 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'
7901 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
7903 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7905 # If the export-symbols file already is a .def file (1st line
7906 # is EXPORTS), use it as is; otherwise, prepend...
7907 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7908 cp $export_symbols $output_objdir/$soname.def;
7910 echo EXPORTS > $output_objdir/$soname.def;
7911 cat $export_symbols >> $output_objdir/$soname.def;
7913 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7921 link_all_deplibs=yes
7926 hardcode_shlibpath_var=no
7927 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7928 export_dynamic_flag_spec='${wl}-E'
7929 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7930 # Instead, shared libraries are loaded at an image base (0x10000000 by
7931 # default) and relocated if they conflict, which is a slow very memory
7932 # consuming and fragmenting process. To avoid this, we pick a random,
7933 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7934 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7935 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7936 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'
7939 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7941 if test "$host_os" = linux-dietlibc; then
7942 case $cc_basename in
7943 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7946 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7947 && test "$tmp_diet" = no
7949 tmp_addflag=' $pic_flag'
7950 tmp_sharedflag='-shared'
7951 case $cc_basename,$host_cpu in
7952 pgcc*) # Portland Group C compiler
7953 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'
7954 tmp_addflag=' $pic_flag'
7956 pgf77* | pgf90* | pgf95* | pgfortran*)
7957 # Portland Group f77 and f90 compilers
7958 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'
7959 tmp_addflag=' $pic_flag -Mnomain' ;;
7960 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7961 tmp_addflag=' -i_dynamic' ;;
7962 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7963 tmp_addflag=' -i_dynamic -nofor_main' ;;
7964 ifc* | ifort*) # Intel Fortran compiler
7965 tmp_addflag=' -nofor_main' ;;
7966 lf95*) # Lahey Fortran 8.1
7967 whole_archive_flag_spec=
7968 tmp_sharedflag='--shared' ;;
7969 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7970 tmp_sharedflag='-qmkshrobj'
7972 nvcc*) # Cuda Compiler Driver 2.2
7973 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'
7974 compiler_needs_object=yes
7977 case `$CC -V 2>&1 | sed 5q` in
7978 *Sun\ C*) # Sun C 5.9
7979 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'
7980 compiler_needs_object=yes
7981 tmp_sharedflag='-G' ;;
7982 *Sun\ F*) # Sun Fortran 8.3
7983 tmp_sharedflag='-G' ;;
7985 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7987 if test "x$supports_anon_versioning" = xyes; then
7988 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7989 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7990 echo "local: *; };" >> $output_objdir/$libname.ver~
7991 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7994 case $cc_basename in
7995 xlf* | bgf* | bgxlf* | mpixlf*)
7996 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7997 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7998 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7999 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8000 if test "x$supports_anon_versioning" = xyes; then
8001 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8002 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8003 echo "local: *; };" >> $output_objdir/$libname.ver~
8004 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8014 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8015 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8018 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8019 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8024 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8028 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8029 *** create shared libraries on Solaris systems. Therefore, libtool
8030 *** is disabling shared libraries support. We urge you to upgrade GNU
8031 *** binutils to release 2.9.1 or newer. Another option is to modify
8032 *** your PATH or compiler configuration so that the native linker is
8033 *** used, and then restart.
8036 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8037 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8038 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8045 case `$LD -v 2>&1` in
8046 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8050 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8051 *** reliably create shared libraries on SCO systems. Therefore, libtool
8052 *** is disabling shared libraries support. We urge you to upgrade GNU
8053 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8054 *** your PATH or compiler configuration so that the native linker is
8055 *** used, and then restart.
8060 # For security reasons, it is highly recommended that you always
8061 # use absolute paths for naming shared libraries, and exclude the
8062 # DT_RUNPATH tag from executables and libraries. But doing so
8063 # requires that you compile everything twice, which is a pain.
8064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8067 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8076 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8079 hardcode_shlibpath_var=no
8083 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8084 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8085 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8092 if test "$ld_shlibs" = no; then
8094 hardcode_libdir_flag_spec=
8095 export_dynamic_flag_spec=
8096 whole_archive_flag_spec=
8099 # PORTME fill in a description of your system's linker (not GNU ld)
8102 allow_undefined_flag=unsupported
8103 always_export_symbols=yes
8104 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'
8105 # Note: this linker hardcodes the directories in LIBPATH if there
8106 # are no directories specified by -L.
8107 hardcode_minus_L=yes
8108 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8109 # Neither direct hardcoding nor static linking is supported with a
8111 hardcode_direct=unsupported
8116 if test "$host_cpu" = ia64; then
8117 # On IA64, the linker does run time linking by default, so we don't
8118 # have to do anything special.
8119 aix_use_runtimelinking=no
8120 exp_sym_flag='-Bexport'
8123 # If we're using GNU nm, then we don't want the "-C" option.
8124 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8125 # Also, AIX nm treats weak defined symbols like other global
8126 # defined symbols, whereas GNU nm marks them as "W".
8127 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8128 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'
8130 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'
8132 aix_use_runtimelinking=no
8134 # Test if we are trying to use run time linking or normal
8135 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8136 # need to do runtime linking.
8137 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8138 for ld_flag in $LDFLAGS; do
8139 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8140 aix_use_runtimelinking=yes
8147 exp_sym_flag='-bexport'
8148 no_entry_flag='-bnoentry'
8151 # When large executables or shared objects are built, AIX ld can
8152 # have problems creating the table of contents. If linking a library
8153 # or program results in "error TOC overflow" add -mminimal-toc to
8154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8159 hardcode_direct_absolute=yes
8160 hardcode_libdir_separator=':'
8161 link_all_deplibs=yes
8162 file_list_spec='${wl}-f,'
8164 if test "$GCC" = yes; then
8165 case $host_os in aix4.[012]|aix4.[012].*)
8166 # We only want to do this on AIX 4.2 and lower, the check
8167 # below for broken collect2 doesn't work under 4.3+
8168 collect2name=`${CC} -print-prog-name=collect2`
8169 if test -f "$collect2name" &&
8170 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8172 # We have reworked collect2
8175 # We have old collect2
8176 hardcode_direct=unsupported
8177 # It fails to find uninstalled libraries when the uninstalled
8178 # path is not listed in the libpath. Setting hardcode_minus_L
8179 # to unsupported forces relinking
8180 hardcode_minus_L=yes
8181 hardcode_libdir_flag_spec='-L$libdir'
8182 hardcode_libdir_separator=
8186 shared_flag='-shared'
8187 if test "$aix_use_runtimelinking" = yes; then
8188 shared_flag="$shared_flag "'${wl}-G'
8192 if test "$host_cpu" = ia64; then
8193 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8194 # chokes on -Wl,-G. The following line is correct:
8197 if test "$aix_use_runtimelinking" = yes; then
8198 shared_flag='${wl}-G'
8200 shared_flag='${wl}-bM:SRE'
8205 export_dynamic_flag_spec='${wl}-bexpall'
8206 # It seems that -bexpall does not export symbols beginning with
8207 # underscore (_), so it is better to generate a list of symbols to export.
8208 always_export_symbols=yes
8209 if test "$aix_use_runtimelinking" = yes; then
8210 # Warning - without using the other runtime loading flags (-brtl),
8211 # -berok will link without error, but may produce a broken library.
8212 allow_undefined_flag='-berok'
8213 # Determine the default libpath from the value encoded in an
8215 if test "${lt_cv_aix_libpath+set}" = set; then
8216 aix_libpath=$lt_cv_aix_libpath
8218 if ${lt_cv_aix_libpath_+:} false; then :
8219 $as_echo_n "(cached) " >&6
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8232 if ac_fn_c_try_link "$LINENO"; then :
8234 lt_aix_libpath_sed='
8235 /Import File Strings/,/^$/ {
8237 s/^0 *\([^ ]*\) *$/\1/
8241 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8242 # Check for a 64-bit object if we didn't find anything.
8243 if test -z "$lt_cv_aix_libpath_"; then
8244 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8247 rm -f core conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
8249 if test -z "$lt_cv_aix_libpath_"; then
8250 lt_cv_aix_libpath_="/usr/lib:/lib"
8255 aix_libpath=$lt_cv_aix_libpath_
8258 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8259 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"
8261 if test "$host_cpu" = ia64; then
8262 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8263 allow_undefined_flag="-z nodefs"
8264 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"
8266 # Determine the default libpath from the value encoded in an
8268 if test "${lt_cv_aix_libpath+set}" = set; then
8269 aix_libpath=$lt_cv_aix_libpath
8271 if ${lt_cv_aix_libpath_+:} false; then :
8272 $as_echo_n "(cached) " >&6
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h. */
8285 if ac_fn_c_try_link "$LINENO"; then :
8287 lt_aix_libpath_sed='
8288 /Import File Strings/,/^$/ {
8290 s/^0 *\([^ ]*\) *$/\1/
8294 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8295 # Check for a 64-bit object if we didn't find anything.
8296 if test -z "$lt_cv_aix_libpath_"; then
8297 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8300 rm -f core conftest.err conftest.$ac_objext \
8301 conftest$ac_exeext conftest.$ac_ext
8302 if test -z "$lt_cv_aix_libpath_"; then
8303 lt_cv_aix_libpath_="/usr/lib:/lib"
8308 aix_libpath=$lt_cv_aix_libpath_
8311 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8312 # Warning - without using the other run time loading flags,
8313 # -berok will link without error, but may produce a broken library.
8314 no_undefined_flag=' ${wl}-bernotok'
8315 allow_undefined_flag=' ${wl}-berok'
8316 if test "$with_gnu_ld" = yes; then
8317 # We only use this code for GNU lds that support --whole-archive.
8318 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8320 # Exported symbols can be pulled into shared objects from archives
8321 whole_archive_flag_spec='$convenience'
8323 archive_cmds_need_lc=yes
8324 # This is similar to how AIX traditionally builds its shared libraries.
8325 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'
8333 # see comment about AmigaOS4 .so support
8334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8335 archive_expsym_cmds=''
8338 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)'
8339 hardcode_libdir_flag_spec='-L$libdir'
8340 hardcode_minus_L=yes
8346 export_dynamic_flag_spec=-rdynamic
8349 cygwin* | mingw* | pw32* | cegcc*)
8350 # When not using gcc, we currently assume that we are using
8351 # Microsoft Visual C++.
8352 # hardcode_libdir_flag_spec is actually meaningless, as there is
8353 # no search path for DLLs.
8354 case $cc_basename in
8357 hardcode_libdir_flag_spec=' '
8358 allow_undefined_flag=unsupported
8359 always_export_symbols=yes
8361 # Tell ltmain to make .lib files, not .a files.
8363 # Tell ltmain to make .dll files, not .so files.
8365 # FIXME: Setting linknames here is a bad hack.
8366 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8367 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8368 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8370 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8372 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8374 # The linker will not automatically build a static lib if we build a DLL.
8375 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8376 enable_shared_with_static_runtimes=yes
8377 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8378 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8380 old_postinstall_cmds='chmod 644 $oldlib'
8381 postlink_cmds='lt_outputfile="@OUTPUT@"~
8382 lt_tool_outputfile="@TOOL_OUTPUT@"~
8383 case $lt_outputfile in
8386 lt_outputfile="$lt_outputfile.exe"
8387 lt_tool_outputfile="$lt_tool_outputfile.exe"
8390 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8391 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8392 $RM "$lt_outputfile.manifest";
8396 # Assume MSVC wrapper
8397 hardcode_libdir_flag_spec=' '
8398 allow_undefined_flag=unsupported
8399 # Tell ltmain to make .lib files, not .a files.
8401 # Tell ltmain to make .dll files, not .so files.
8403 # FIXME: Setting linknames here is a bad hack.
8404 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8405 # The linker will automatically build a .lib file if we build a DLL.
8406 old_archive_from_new_cmds='true'
8407 # FIXME: Should let the user specify the lib program.
8408 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8409 enable_shared_with_static_runtimes=yes
8414 darwin* | rhapsody*)
8417 archive_cmds_need_lc=no
8419 hardcode_automatic=yes
8420 hardcode_shlibpath_var=unsupported
8421 if test "$lt_cv_ld_force_load" = "yes"; then
8422 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\"`'
8425 whole_archive_flag_spec=''
8427 link_all_deplibs=yes
8428 allow_undefined_flag="$_lt_dar_allow_undefined"
8429 case $cc_basename in
8430 ifort*) _lt_dar_can_shared=yes ;;
8431 *) _lt_dar_can_shared=$GCC ;;
8433 if test "$_lt_dar_can_shared" = "yes"; then
8434 output_verbose_link_cmd=func_echo_all
8435 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8436 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8437 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}"
8438 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}"
8447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8448 hardcode_libdir_flag_spec='-L$libdir'
8449 hardcode_shlibpath_var=no
8452 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8453 # support. Future versions do this automatically, but an explicit c++rt0.o
8454 # does not break anything, and helps significantly (at the cost of a little
8457 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8458 hardcode_libdir_flag_spec='-R$libdir'
8460 hardcode_shlibpath_var=no
8463 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8467 hardcode_minus_L=yes
8468 hardcode_shlibpath_var=no
8471 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8472 freebsd* | dragonfly*)
8473 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8474 hardcode_libdir_flag_spec='-R$libdir'
8476 hardcode_shlibpath_var=no
8480 if test "$GCC" = yes; then
8481 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'
8483 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'
8485 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8486 hardcode_libdir_separator=:
8489 # hardcode_minus_L: Not really in the search PATH,
8490 # but as the default location of the library.
8491 hardcode_minus_L=yes
8492 export_dynamic_flag_spec='${wl}-E'
8496 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8497 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8499 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8501 if test "$with_gnu_ld" = no; then
8502 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8503 hardcode_libdir_separator=:
8505 hardcode_direct_absolute=yes
8506 export_dynamic_flag_spec='${wl}-E'
8507 # hardcode_minus_L: Not really in the search PATH,
8508 # but as the default location of the library.
8509 hardcode_minus_L=yes
8514 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8517 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8520 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8523 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8529 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8532 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8536 # Older versions of the 11.00 compiler do not understand -b yet
8537 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8539 $as_echo_n "checking if $CC understands -b... " >&6; }
8540 if ${lt_cv_prog_compiler__b+:} false; then :
8541 $as_echo_n "(cached) " >&6
8543 lt_cv_prog_compiler__b=no
8544 save_LDFLAGS="$LDFLAGS"
8545 LDFLAGS="$LDFLAGS -b"
8546 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8547 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8548 # The linker can only warn and ignore the option if not recognized
8549 # So say no if there are warnings
8550 if test -s conftest.err; then
8551 # Append any errors to the config.log.
8552 cat conftest.err 1>&5
8553 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8555 if diff conftest.exp conftest.er2 >/dev/null; then
8556 lt_cv_prog_compiler__b=yes
8559 lt_cv_prog_compiler__b=yes
8563 LDFLAGS="$save_LDFLAGS"
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8567 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8569 if test x"$lt_cv_prog_compiler__b" = xyes; then
8570 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8572 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8578 if test "$with_gnu_ld" = no; then
8579 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8580 hardcode_libdir_separator=:
8585 hardcode_shlibpath_var=no
8589 hardcode_direct_absolute=yes
8590 export_dynamic_flag_spec='${wl}-E'
8592 # hardcode_minus_L: Not really in the search PATH,
8593 # but as the default location of the library.
8594 hardcode_minus_L=yes
8600 irix5* | irix6* | nonstopux*)
8601 if test "$GCC" = yes; then
8602 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'
8603 # Try to use the -exported_symbol ld option, if it does not
8604 # work, assume that -exports_file does not work either and
8605 # implicitly export all symbols.
8606 # This should be the same for all languages, so no per-tag cache variable.
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8608 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8609 if ${lt_cv_irix_exported_symbol+:} false; then :
8610 $as_echo_n "(cached) " >&6
8612 save_LDFLAGS="$LDFLAGS"
8613 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 int foo (void) { return 0; }
8618 if ac_fn_c_try_link "$LINENO"; then :
8619 lt_cv_irix_exported_symbol=yes
8621 lt_cv_irix_exported_symbol=no
8623 rm -f core conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
8625 LDFLAGS="$save_LDFLAGS"
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
8628 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
8629 if test "$lt_cv_irix_exported_symbol" = yes; then
8630 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'
8633 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'
8634 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'
8636 archive_cmds_need_lc='no'
8637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8638 hardcode_libdir_separator=:
8640 link_all_deplibs=yes
8644 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8647 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8649 hardcode_libdir_flag_spec='-R$libdir'
8651 hardcode_shlibpath_var=no
8655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8658 hardcode_libdir_separator=:
8659 hardcode_shlibpath_var=no
8666 if test -f /usr/libexec/ld.so; then
8668 hardcode_shlibpath_var=no
8669 hardcode_direct_absolute=yes
8670 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8671 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8672 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8673 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8674 export_dynamic_flag_spec='${wl}-E'
8677 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8679 hardcode_libdir_flag_spec='-R$libdir'
8682 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8683 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8693 hardcode_libdir_flag_spec='-L$libdir'
8694 hardcode_minus_L=yes
8695 allow_undefined_flag=unsupported
8696 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'
8697 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8701 if test "$GCC" = yes; then
8702 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8703 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'
8705 allow_undefined_flag=' -expect_unresolved \*'
8706 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'
8708 archive_cmds_need_lc='no'
8709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8710 hardcode_libdir_separator=:
8713 osf4* | osf5*) # as osf3* with the addition of -msym flag
8714 if test "$GCC" = yes; then
8715 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8716 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'
8717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8719 allow_undefined_flag=' -expect_unresolved \*'
8720 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'
8721 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~
8722 $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'
8724 # Both c and cxx compiler support -rpath directly
8725 hardcode_libdir_flag_spec='-rpath $libdir'
8727 archive_cmds_need_lc='no'
8728 hardcode_libdir_separator=:
8732 no_undefined_flag=' -z defs'
8733 if test "$GCC" = yes; then
8735 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8736 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8737 $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'
8739 case `$CC -V 2>&1` in
8742 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8743 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8744 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8748 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8749 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8750 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8754 hardcode_libdir_flag_spec='-R$libdir'
8755 hardcode_shlibpath_var=no
8757 solaris2.[0-5] | solaris2.[0-5].*) ;;
8759 # The compiler driver will combine and reorder linker options,
8760 # but understands `-z linker_flag'. GCC discards it without `$wl',
8761 # but is careful enough not to reorder.
8762 # Supported since Solaris 2.6 (maybe 2.5.1?)
8763 if test "$GCC" = yes; then
8764 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8766 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8770 link_all_deplibs=yes
8774 if test "x$host_vendor" = xsequent; then
8775 # Use $CC to link under sequent, because it throws in some extra .o
8776 # files that make .init and .fini sections work.
8777 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8779 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8781 hardcode_libdir_flag_spec='-L$libdir'
8783 hardcode_minus_L=yes
8784 hardcode_shlibpath_var=no
8788 case $host_vendor in
8790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791 hardcode_direct=yes # is this really true???
8794 ## LD is ld it makes a PLAMLIB
8795 ## CC just makes a GrossModule.
8796 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8797 reload_cmds='$CC -r -o $output$reload_objs'
8801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8805 runpath_var='LD_RUN_PATH'
8806 hardcode_shlibpath_var=no
8810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8811 hardcode_shlibpath_var=no
8812 export_dynamic_flag_spec='-Bexport'
8816 if test -d /usr/nec; then
8817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8818 hardcode_shlibpath_var=no
8819 runpath_var=LD_RUN_PATH
8820 hardcode_runpath_var=yes
8825 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8826 no_undefined_flag='${wl}-z,text'
8827 archive_cmds_need_lc=no
8828 hardcode_shlibpath_var=no
8829 runpath_var='LD_RUN_PATH'
8831 if test "$GCC" = yes; then
8832 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8833 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8835 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8836 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 sysv5* | sco3.2v5* | sco5v6*)
8841 # Note: We can NOT use -z defs as we might desire, because we do not
8842 # link with -lc, and that would cause any symbols used from libc to
8843 # always be unresolved, which means just about no library would
8844 # ever link correctly. If we're not using GNU ld we use -z text
8845 # though, which does catch some bad symbols but isn't as heavy-handed
8847 no_undefined_flag='${wl}-z,text'
8848 allow_undefined_flag='${wl}-z,nodefs'
8849 archive_cmds_need_lc=no
8850 hardcode_shlibpath_var=no
8851 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8852 hardcode_libdir_separator=':'
8853 link_all_deplibs=yes
8854 export_dynamic_flag_spec='${wl}-Bexport'
8855 runpath_var='LD_RUN_PATH'
8857 if test "$GCC" = yes; then
8858 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8859 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8861 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8862 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8868 hardcode_libdir_flag_spec='-L$libdir'
8869 hardcode_shlibpath_var=no
8877 if test x$host_vendor = xsni; then
8879 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8880 export_dynamic_flag_spec='${wl}-Blargedynsym'
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8887 $as_echo "$ld_shlibs" >&6; }
8888 test "$ld_shlibs" = no && can_build_shared=no
8890 with_gnu_ld=$with_gnu_ld
8907 # Do we need to explicitly link libc?
8909 case "x$archive_cmds_need_lc" in
8911 # Assume -lc should be added
8912 archive_cmds_need_lc=yes
8914 if test "$enable_shared" = yes && test "$GCC" = yes; then
8915 case $archive_cmds in
8917 # FIXME: we may have to deal with multi-command sequences.
8920 # Test whether the compiler implicitly links with -lc since on some
8921 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8922 # to ld, don't add -lc before -lgcc.
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8924 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8925 if ${lt_cv_archive_cmds_need_lc+:} false; then :
8926 $as_echo_n "(cached) " >&6
8929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8932 (eval $ac_compile) 2>&5
8934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8935 test $ac_status = 0; } 2>conftest.err; then
8938 libobjs=conftest.$ac_objext
8940 wl=$lt_prog_compiler_wl
8941 pic_flag=$lt_prog_compiler_pic
8947 lt_save_allow_undefined_flag=$allow_undefined_flag
8948 allow_undefined_flag=
8949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8950 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8953 test $ac_status = 0; }
8955 lt_cv_archive_cmds_need_lc=no
8957 lt_cv_archive_cmds_need_lc=yes
8959 allow_undefined_flag=$lt_save_allow_undefined_flag
8961 cat conftest.err 1>&5
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8967 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8968 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9127 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9129 if test "$GCC" = yes; then
9131 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9132 *) lt_awk_arg="/^libraries:/" ;;
9135 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9136 *) lt_sed_strip_eq="s,=/,/,g" ;;
9138 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9139 case $lt_search_path_spec in
9141 # if the path contains ";" then we assume it to be the separator
9142 # otherwise default to the standard path separator (i.e. ":") - it is
9143 # assumed that no part of a normal pathname contains ";" but that should
9144 # okay in the real world where ";" in dirpaths is itself problematic.
9145 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9148 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9151 # Ok, now we have the path, separated by spaces, we can step through it
9152 # and add multilib dir if necessary.
9153 lt_tmp_lt_search_path_spec=
9154 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9155 for lt_sys_path in $lt_search_path_spec; do
9156 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9157 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9159 test -d "$lt_sys_path" && \
9160 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9163 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9164 BEGIN {RS=" "; FS="/|\n";} {
9167 for (lt_i = NF; lt_i > 0; lt_i--) {
9168 if ($lt_i != "" && $lt_i != ".") {
9169 if ($lt_i == "..") {
9172 if (lt_count == 0) {
9173 lt_foo="/" $lt_i lt_foo;
9180 if (lt_foo != "") { lt_freq[lt_foo]++; }
9181 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9183 # AWK program above erroneously prepends '/' to C:/dos/paths
9186 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9187 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9189 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9191 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9194 libname_spec='lib$name'
9202 shlibpath_overrides_runpath=unknown
9204 dynamic_linker="$host_os ld.so"
9205 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9206 need_lib_prefix=unknown
9207 hardcode_into_libs=no
9209 # when you set need_version to no, make sure it does not cause -set_version
9210 # flags to be left without arguments
9211 need_version=unknown
9215 version_type=linux # correct to gnu/linux during the next big refactor
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9217 shlibpath_var=LIBPATH
9219 # AIX 3 has no versioning support, so we append a major version to the name.
9220 soname_spec='${libname}${release}${shared_ext}$major'
9224 version_type=linux # correct to gnu/linux during the next big refactor
9227 hardcode_into_libs=yes
9228 if test "$host_cpu" = ia64; then
9229 # AIX 5 supports IA64
9230 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9231 shlibpath_var=LD_LIBRARY_PATH
9233 # With GCC up to 2.95.x, collect2 would create an import file
9234 # for dependence libraries. The import file would start with
9235 # the line `#! .'. This would cause the generated library to
9236 # depend on `.', always an invalid library. This was fixed in
9237 # development snapshots of GCC prior to 3.0.
9239 aix4 | aix4.[01] | aix4.[01].*)
9240 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9242 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9249 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9250 # soname into executable. Probably we can add versioning support to
9251 # collect2, so additional links can be useful in future.
9252 if test "$aix_use_runtimelinking" = yes; then
9253 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9254 # instead of lib<name>.a to let people know that these are not
9255 # typical AIX shared libraries.
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258 # We preserve .a as extension for shared libraries through AIX4.2
9259 # and later when we are not doing run time linking.
9260 library_names_spec='${libname}${release}.a $libname.a'
9261 soname_spec='${libname}${release}${shared_ext}$major'
9263 shlibpath_var=LIBPATH
9270 # Since July 2007 AmigaOS4 officially supports .so libraries.
9271 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275 library_names_spec='$libname.ixlibrary $libname.a'
9276 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9277 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'
9283 library_names_spec='${libname}${shared_ext}'
9284 dynamic_linker="$host_os ld.so"
9285 shlibpath_var=LIBRARY_PATH
9289 version_type=linux # correct to gnu/linux during the next big refactor
9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9292 soname_spec='${libname}${release}${shared_ext}$major'
9293 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9296 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9297 # the default ld.so.conf also contains /usr/contrib/lib and
9298 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9299 # libtool to hard-code these into programs
9302 cygwin* | mingw* | pw32* | cegcc*)
9303 version_type=windows
9308 case $GCC,$cc_basename in
9311 library_names_spec='$libname.dll.a'
9312 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9313 postinstall_cmds='base_file=`basename \${file}`~
9314 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9315 dldir=$destdir/`dirname \$dlpath`~
9316 test -d \$dldir || mkdir -p \$dldir~
9317 $install_prog $dir/$dlname \$dldir/$dlname~
9318 chmod a+x \$dldir/$dlname~
9319 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9320 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9322 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9323 dlpath=$dir/\$dldll~
9325 shlibpath_overrides_runpath=yes
9329 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9330 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9332 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9335 # MinGW DLLs use traditional 'lib' prefix
9336 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9339 # pw32 DLLs use 'pw' prefix rather than 'lib'
9340 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9343 dynamic_linker='Win32 ld.exe'
9348 libname_spec='$name'
9349 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9350 library_names_spec='${libname}.dll.lib'
9354 sys_lib_search_path_spec=
9360 # Let DOS variable expansion print the short 8.3 style file name.
9361 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9362 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9365 # Convert to MSYS style.
9366 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9369 # Convert to unix form, then to dos form, then back to unix form
9370 # but this time dos style (no spaces!) so that the unix form looks
9371 # like /cygdrive/c/PROGRA~1:/cygdr...
9372 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9373 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9374 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9377 sys_lib_search_path_spec="$LIB"
9378 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9379 # It is most probably a Windows format PATH.
9380 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9382 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9384 # FIXME: find the short name or the path components, as spaces are
9385 # common. (e.g. "Program Files" -> "PROGRA~1")
9389 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9390 postinstall_cmds='base_file=`basename \${file}`~
9391 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9392 dldir=$destdir/`dirname \$dlpath`~
9393 test -d \$dldir || mkdir -p \$dldir~
9394 $install_prog $dir/$dlname \$dldir/$dlname'
9395 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9396 dlpath=$dir/\$dldll~
9398 shlibpath_overrides_runpath=yes
9399 dynamic_linker='Win32 link.exe'
9403 # Assume MSVC wrapper
9404 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9405 dynamic_linker='Win32 ld.exe'
9408 # FIXME: first we should search . and the directory the executable is in
9412 darwin* | rhapsody*)
9413 dynamic_linker="$host_os dyld"
9417 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9418 soname_spec='${libname}${release}${major}$shared_ext'
9419 shlibpath_overrides_runpath=yes
9420 shlibpath_var=DYLD_LIBRARY_PATH
9421 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9423 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9424 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9428 version_type=linux # correct to gnu/linux during the next big refactor
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9432 soname_spec='${libname}${release}${shared_ext}$major'
9433 shlibpath_var=LD_LIBRARY_PATH
9436 freebsd* | dragonfly*)
9437 # DragonFly does not have aout. When/if they implement a new
9438 # versioning mechanism, adjust this.
9439 if test -x /usr/bin/objformat; then
9440 objformat=`/usr/bin/objformat`
9443 freebsd[23].*) objformat=aout ;;
9447 version_type=freebsd-$objformat
9448 case $version_type in
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9459 shlibpath_var=LD_LIBRARY_PATH
9462 shlibpath_overrides_runpath=yes
9464 freebsd3.[01]* | freebsdelf3.[01]*)
9465 shlibpath_overrides_runpath=yes
9466 hardcode_into_libs=yes
9468 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9469 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9470 shlibpath_overrides_runpath=no
9471 hardcode_into_libs=yes
9473 *) # from 4.6 on, and DragonFly
9474 shlibpath_overrides_runpath=yes
9475 hardcode_into_libs=yes
9481 version_type=linux # correct to gnu/linux during the next big refactor
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 shlibpath_var=LD_LIBRARY_PATH
9487 shlibpath_overrides_runpath=no
9488 hardcode_into_libs=yes
9492 version_type=linux # correct to gnu/linux during the next big refactor
9495 dynamic_linker="$host_os runtime_loader"
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9497 soname_spec='${libname}${release}${shared_ext}$major'
9498 shlibpath_var=LIBRARY_PATH
9499 shlibpath_overrides_runpath=yes
9500 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9501 hardcode_into_libs=yes
9504 hpux9* | hpux10* | hpux11*)
9505 # Give a soname corresponding to the major version so that dld.sl refuses to
9506 # link against other versions.
9513 hardcode_into_libs=yes
9514 dynamic_linker="$host_os dld.so"
9515 shlibpath_var=LD_LIBRARY_PATH
9516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518 soname_spec='${libname}${release}${shared_ext}$major'
9519 if test "X$HPUX_IA64_MODE" = X32; then
9520 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9522 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9528 hardcode_into_libs=yes
9529 dynamic_linker="$host_os dld.sl"
9530 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9533 soname_spec='${libname}${release}${shared_ext}$major'
9534 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9539 dynamic_linker="$host_os dld.sl"
9540 shlibpath_var=SHLIB_PATH
9541 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543 soname_spec='${libname}${release}${shared_ext}$major'
9546 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9547 postinstall_cmds='chmod 555 $lib'
9548 # or fails outright, so override atomically:
9549 install_override_mode=555
9553 version_type=linux # correct to gnu/linux during the next big refactor
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9557 soname_spec='${libname}${release}${shared_ext}$major'
9558 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9559 shlibpath_var=LD_LIBRARY_PATH
9560 shlibpath_overrides_runpath=no
9561 hardcode_into_libs=yes
9564 irix5* | irix6* | nonstopux*)
9566 nonstopux*) version_type=nonstopux ;;
9568 if test "$lt_cv_prog_gnu_ld" = yes; then
9569 version_type=linux # correct to gnu/linux during the next big refactor
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9579 irix5* | nonstopux*)
9583 case $LD in # libtool.m4 will add one of these switches to LD
9584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9585 libsuff= shlibsuff= libmagic=32-bit;;
9586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9587 libsuff=32 shlibsuff=N32 libmagic=N32;;
9588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9589 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9590 *) libsuff= shlibsuff= libmagic=never-match;;
9594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9595 shlibpath_overrides_runpath=no
9596 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9597 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9598 hardcode_into_libs=yes
9601 # No shared lib support for Linux oldld, aout, or coff.
9602 linux*oldld* | linux*aout* | linux*coff*)
9606 # This must be glibc/ELF.
9607 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9608 version_type=linux # correct to gnu/linux during the next big refactor
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612 soname_spec='${libname}${release}${shared_ext}$major'
9613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9614 shlibpath_var=LD_LIBRARY_PATH
9615 shlibpath_overrides_runpath=no
9617 # Some binutils ld are patched to set DT_RUNPATH
9618 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9619 $as_echo_n "(cached) " >&6
9621 lt_cv_shlibpath_overrides_runpath=no
9622 save_LDFLAGS=$LDFLAGS
9624 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9625 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9637 if ac_fn_c_try_link "$LINENO"; then :
9638 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9639 lt_cv_shlibpath_overrides_runpath=yes
9642 rm -f core conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9644 LDFLAGS=$save_LDFLAGS
9649 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9651 # This implies no fast_install, which is unacceptable.
9652 # Some rework will be needed to allow for fast_install
9653 # before this can be enabled.
9654 hardcode_into_libs=yes
9656 # Add ABI-specific directories to the system library path.
9657 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9659 # Append ld.so.conf contents to the search path
9660 if test -f /etc/ld.so.conf; then
9661 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' ' '`
9662 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9666 # We used to test for /lib/ld.so.1 and disable shared libraries on
9667 # powerpc, because MkLinux only supported shared libraries with the
9668 # GNU dynamic linker. Since this was broken with cross compilers,
9669 # most powerpc-linux boxes support dynamic linking these days and
9670 # people can always --disable-shared, the test was removed, and we
9671 # assume the GNU/Linux dynamic linker is in use.
9672 dynamic_linker='GNU/Linux ld.so'
9679 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9682 dynamic_linker='NetBSD (a.out) ld.so'
9684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9685 soname_spec='${libname}${release}${shared_ext}$major'
9686 dynamic_linker='NetBSD ld.elf_so'
9688 shlibpath_var=LD_LIBRARY_PATH
9689 shlibpath_overrides_runpath=yes
9690 hardcode_into_libs=yes
9694 version_type=linux # correct to gnu/linux during the next big refactor
9695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9696 shlibpath_var=LD_LIBRARY_PATH
9697 shlibpath_overrides_runpath=yes
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9705 soname_spec='${libname}${release}${shared_ext}$major'
9706 shlibpath_var=LD_LIBRARY_PATH
9707 shlibpath_overrides_runpath=no
9708 hardcode_into_libs=yes
9709 dynamic_linker='ldqnx.so'
9714 sys_lib_dlsearch_path_spec="/usr/lib"
9716 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9718 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9719 *) need_version=no ;;
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9723 shlibpath_var=LD_LIBRARY_PATH
9724 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9726 openbsd2.[89] | openbsd2.[89].*)
9727 shlibpath_overrides_runpath=no
9730 shlibpath_overrides_runpath=yes
9734 shlibpath_overrides_runpath=yes
9739 libname_spec='$name'
9742 library_names_spec='$libname${shared_ext} $libname.a'
9743 dynamic_linker='OS/2 ld.exe'
9744 shlibpath_var=LIBPATH
9747 osf3* | osf4* | osf5*)
9751 soname_spec='${libname}${release}${shared_ext}$major'
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753 shlibpath_var=LD_LIBRARY_PATH
9754 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9755 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9763 version_type=linux # correct to gnu/linux during the next big refactor
9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9767 soname_spec='${libname}${release}${shared_ext}$major'
9768 shlibpath_var=LD_LIBRARY_PATH
9769 shlibpath_overrides_runpath=yes
9770 hardcode_into_libs=yes
9771 # ldd complains unless libraries are executable
9772 postinstall_cmds='chmod +x $lib'
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9778 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9779 shlibpath_var=LD_LIBRARY_PATH
9780 shlibpath_overrides_runpath=yes
9781 if test "$with_gnu_ld" = yes; then
9788 version_type=linux # correct to gnu/linux during the next big refactor
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790 soname_spec='${libname}${release}${shared_ext}$major'
9791 shlibpath_var=LD_LIBRARY_PATH
9792 case $host_vendor in
9794 shlibpath_overrides_runpath=no
9796 runpath_var=LD_RUN_PATH
9804 shlibpath_overrides_runpath=no
9805 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9811 if test -d /usr/nec ;then
9812 version_type=linux # correct to gnu/linux during the next big refactor
9813 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9814 soname_spec='$libname${shared_ext}.$major'
9815 shlibpath_var=LD_LIBRARY_PATH
9819 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9820 version_type=freebsd-elf
9823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9824 soname_spec='${libname}${release}${shared_ext}$major'
9825 shlibpath_var=LD_LIBRARY_PATH
9826 shlibpath_overrides_runpath=yes
9827 hardcode_into_libs=yes
9828 if test "$with_gnu_ld" = yes; then
9829 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9831 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9834 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9838 sys_lib_dlsearch_path_spec='/usr/lib'
9842 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9843 version_type=linux # correct to gnu/linux during the next big refactor
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 shlibpath_overrides_runpath=no
9849 hardcode_into_libs=yes
9853 version_type=linux # correct to gnu/linux during the next big refactor
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9855 soname_spec='${libname}${release}${shared_ext}$major'
9856 shlibpath_var=LD_LIBRARY_PATH
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9864 $as_echo "$dynamic_linker" >&6; }
9865 test "$dynamic_linker" = no && can_build_shared=no
9867 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9868 if test "$GCC" = yes; then
9869 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9872 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9873 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9875 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9876 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9971 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9973 if test -n "$hardcode_libdir_flag_spec" ||
9974 test -n "$runpath_var" ||
9975 test "X$hardcode_automatic" = "Xyes" ; then
9977 # We can hardcode non-existent directories.
9978 if test "$hardcode_direct" != no &&
9979 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9980 # have to relink, otherwise we might link with an installed library
9981 # when we should be linking with a yet-to-be-installed one
9982 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9983 test "$hardcode_minus_L" != no; then
9984 # Linking always hardcodes the temporary library directory.
9985 hardcode_action=relink
9987 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9988 hardcode_action=immediate
9991 # We cannot hardcode anything, or else we can only hardcode existing
9993 hardcode_action=unsupported
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9996 $as_echo "$hardcode_action" >&6; }
9998 if test "$hardcode_action" = relink ||
9999 test "$inherit_rpath" = yes; then
10000 # Fast installation is not supported
10001 enable_fast_install=no
10002 elif test "$shlibpath_overrides_runpath" = yes ||
10003 test "$enable_shared" = no; then
10004 # Fast installation is not necessary
10005 enable_fast_install=needless
10013 if test "x$enable_dlopen" != xyes; then
10014 enable_dlopen=unknown
10015 enable_dlopen_self=unknown
10016 enable_dlopen_self_static=unknown
10023 lt_cv_dlopen="load_add_on"
10025 lt_cv_dlopen_self=yes
10028 mingw* | pw32* | cegcc*)
10029 lt_cv_dlopen="LoadLibrary"
10034 lt_cv_dlopen="dlopen"
10039 # if libdl is installed we need to link against it
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10041 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10042 if ${ac_cv_lib_dl_dlopen+:} false; then :
10043 $as_echo_n "(cached) " >&6
10045 ac_check_lib_save_LIBS=$LIBS
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10050 /* Override any GCC internal prototype to avoid an error.
10051 Use char because int might match the return type of a GCC
10052 builtin and then its argument prototype would still apply. */
10065 if ac_fn_c_try_link "$LINENO"; then :
10066 ac_cv_lib_dl_dlopen=yes
10068 ac_cv_lib_dl_dlopen=no
10070 rm -f core conftest.err conftest.$ac_objext \
10071 conftest$ac_exeext conftest.$ac_ext
10072 LIBS=$ac_check_lib_save_LIBS
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10075 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10076 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10077 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10080 lt_cv_dlopen="dyld"
10082 lt_cv_dlopen_self=yes
10089 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10090 if test "x$ac_cv_func_shl_load" = xyes; then :
10091 lt_cv_dlopen="shl_load"
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10094 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10095 if ${ac_cv_lib_dld_shl_load+:} false; then :
10096 $as_echo_n "(cached) " >&6
10098 ac_check_lib_save_LIBS=$LIBS
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10103 /* Override any GCC internal prototype to avoid an error.
10104 Use char because int might match the return type of a GCC
10105 builtin and then its argument prototype would still apply. */
10113 return shl_load ();
10118 if ac_fn_c_try_link "$LINENO"; then :
10119 ac_cv_lib_dld_shl_load=yes
10121 ac_cv_lib_dld_shl_load=no
10123 rm -f core conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10125 LIBS=$ac_check_lib_save_LIBS
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10128 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10129 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10130 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10132 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10133 if test "x$ac_cv_func_dlopen" = xyes; then :
10134 lt_cv_dlopen="dlopen"
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10137 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10138 if ${ac_cv_lib_dl_dlopen+:} false; then :
10139 $as_echo_n "(cached) " >&6
10141 ac_check_lib_save_LIBS=$LIBS
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10146 /* Override any GCC internal prototype to avoid an error.
10147 Use char because int might match the return type of a GCC
10148 builtin and then its argument prototype would still apply. */
10161 if ac_fn_c_try_link "$LINENO"; then :
10162 ac_cv_lib_dl_dlopen=yes
10164 ac_cv_lib_dl_dlopen=no
10166 rm -f core conftest.err conftest.$ac_objext \
10167 conftest$ac_exeext conftest.$ac_ext
10168 LIBS=$ac_check_lib_save_LIBS
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10171 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10172 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10176 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10177 if ${ac_cv_lib_svld_dlopen+:} false; then :
10178 $as_echo_n "(cached) " >&6
10180 ac_check_lib_save_LIBS=$LIBS
10181 LIBS="-lsvld $LIBS"
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10185 /* Override any GCC internal prototype to avoid an error.
10186 Use char because int might match the return type of a GCC
10187 builtin and then its argument prototype would still apply. */
10200 if ac_fn_c_try_link "$LINENO"; then :
10201 ac_cv_lib_svld_dlopen=yes
10203 ac_cv_lib_svld_dlopen=no
10205 rm -f core conftest.err conftest.$ac_objext \
10206 conftest$ac_exeext conftest.$ac_ext
10207 LIBS=$ac_check_lib_save_LIBS
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10210 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10211 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10212 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10215 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10216 if ${ac_cv_lib_dld_dld_link+:} false; then :
10217 $as_echo_n "(cached) " >&6
10219 ac_check_lib_save_LIBS=$LIBS
10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h. */
10224 /* Override any GCC internal prototype to avoid an error.
10225 Use char because int might match the return type of a GCC
10226 builtin and then its argument prototype would still apply. */
10234 return dld_link ();
10239 if ac_fn_c_try_link "$LINENO"; then :
10240 ac_cv_lib_dld_dld_link=yes
10242 ac_cv_lib_dld_dld_link=no
10244 rm -f core conftest.err conftest.$ac_objext \
10245 conftest$ac_exeext conftest.$ac_ext
10246 LIBS=$ac_check_lib_save_LIBS
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10249 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10250 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10251 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10272 if test "x$lt_cv_dlopen" != xno; then
10278 case $lt_cv_dlopen in
10280 save_CPPFLAGS="$CPPFLAGS"
10281 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10283 save_LDFLAGS="$LDFLAGS"
10284 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10287 LIBS="$lt_cv_dlopen_libs $LIBS"
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10290 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10291 if ${lt_cv_dlopen_self+:} false; then :
10292 $as_echo_n "(cached) " >&6
10294 if test "$cross_compiling" = yes; then :
10295 lt_cv_dlopen_self=cross
10297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10298 lt_status=$lt_dlunknown
10299 cat > conftest.$ac_ext <<_LT_EOF
10300 #line $LINENO "configure"
10301 #include "confdefs.h"
10310 # define LT_DLGLOBAL RTLD_GLOBAL
10313 # define LT_DLGLOBAL DL_GLOBAL
10315 # define LT_DLGLOBAL 0
10319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10320 find out it does not work in some platform. */
10321 #ifndef LT_DLLAZY_OR_NOW
10323 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10326 # define LT_DLLAZY_OR_NOW DL_LAZY
10329 # define LT_DLLAZY_OR_NOW RTLD_NOW
10332 # define LT_DLLAZY_OR_NOW DL_NOW
10334 # define LT_DLLAZY_OR_NOW 0
10341 /* When -fvisbility=hidden is used, assume the code has been annotated
10342 correspondingly for the symbols needed. */
10343 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10344 int fnord () __attribute__((visibility("default")));
10347 int fnord () { return 42; }
10350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10351 int status = $lt_dlunknown;
10355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10358 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10359 else puts (dlerror ());
10361 /* dlclose (self); */
10369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10370 (eval $ac_link) 2>&5
10372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10373 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10374 (./conftest; exit; ) >&5 2>/dev/null
10376 case x$lt_status in
10377 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10378 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10379 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10382 # compilation failed
10383 lt_cv_dlopen_self=no
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10391 $as_echo "$lt_cv_dlopen_self" >&6; }
10393 if test "x$lt_cv_dlopen_self" = xyes; then
10394 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10396 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10397 if ${lt_cv_dlopen_self_static+:} false; then :
10398 $as_echo_n "(cached) " >&6
10400 if test "$cross_compiling" = yes; then :
10401 lt_cv_dlopen_self_static=cross
10403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10404 lt_status=$lt_dlunknown
10405 cat > conftest.$ac_ext <<_LT_EOF
10406 #line $LINENO "configure"
10407 #include "confdefs.h"
10416 # define LT_DLGLOBAL RTLD_GLOBAL
10419 # define LT_DLGLOBAL DL_GLOBAL
10421 # define LT_DLGLOBAL 0
10425 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10426 find out it does not work in some platform. */
10427 #ifndef LT_DLLAZY_OR_NOW
10429 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10432 # define LT_DLLAZY_OR_NOW DL_LAZY
10435 # define LT_DLLAZY_OR_NOW RTLD_NOW
10438 # define LT_DLLAZY_OR_NOW DL_NOW
10440 # define LT_DLLAZY_OR_NOW 0
10447 /* When -fvisbility=hidden is used, assume the code has been annotated
10448 correspondingly for the symbols needed. */
10449 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10450 int fnord () __attribute__((visibility("default")));
10453 int fnord () { return 42; }
10456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10457 int status = $lt_dlunknown;
10461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10464 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10465 else puts (dlerror ());
10467 /* dlclose (self); */
10475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10476 (eval $ac_link) 2>&5
10478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10479 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10480 (./conftest; exit; ) >&5 2>/dev/null
10482 case x$lt_status in
10483 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10484 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10485 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10488 # compilation failed
10489 lt_cv_dlopen_self_static=no
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10497 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10500 CPPFLAGS="$save_CPPFLAGS"
10501 LDFLAGS="$save_LDFLAGS"
10506 case $lt_cv_dlopen_self in
10507 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10508 *) enable_dlopen_self=unknown ;;
10511 case $lt_cv_dlopen_self_static in
10512 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10513 *) enable_dlopen_self_static=unknown ;;
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10536 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10537 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10538 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10539 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10541 $as_echo "yes" >&6; }
10543 # FIXME - insert some real tests, host_os isn't really good enough
10546 if test -n "$STRIP" ; then
10547 striplib="$STRIP -x"
10548 old_striplib="$STRIP -S"
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10550 $as_echo "yes" >&6; }
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10553 $as_echo "no" >&6; }
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 $as_echo "no" >&6; }
10574 # Report which library types will actually be built
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10576 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10578 $as_echo "$can_build_shared" >&6; }
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10581 $as_echo_n "checking whether to build shared libraries... " >&6; }
10582 test "$can_build_shared" = "no" && enable_shared=no
10584 # On AIX, shared libraries and static libraries use the same namespace, and
10585 # are all built from PIC.
10588 test "$enable_shared" = yes && enable_static=no
10589 if test -n "$RANLIB"; then
10590 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10591 postinstall_cmds='$RANLIB $lib'
10596 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10597 test "$enable_shared" = yes && enable_static=no
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10602 $as_echo "$enable_shared" >&6; }
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10605 $as_echo_n "checking whether to build static libraries... " >&6; }
10606 # Make sure either enable_shared or enable_static is yes.
10607 test "$enable_shared" = yes || enable_static=yes
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10609 $as_echo "$enable_static" >&6; }
10616 ac_cpp='$CPP $CPPFLAGS'
10617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10637 ac_config_commands="$ac_config_commands libtool"
10642 # Only expand once:
10646 # Check whether --enable-shared was given.
10647 if test "${enable_shared+set}" = set; then :
10648 enableval=$enable_shared;
10655 # Check whether --enable-gettext was given.
10656 if test "${enable_gettext+set}" = set; then :
10657 enableval=$enable_gettext;
10664 # Check whether --enable-lib64 was given.
10665 if test "${enable_lib64+set}" = set; then :
10666 enableval=$enable_lib64;
10677 ac_cpp='$CPP $CPPFLAGS'
10678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10681 if test -n "$ac_tool_prefix"; then
10682 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10683 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10685 $as_echo_n "checking for $ac_word... " >&6; }
10686 if ${ac_cv_prog_CC+:} false; then :
10687 $as_echo_n "(cached) " >&6
10689 if test -n "$CC"; then
10690 ac_cv_prog_CC="$CC" # Let the user override the test.
10692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693 for as_dir in $PATH
10696 test -z "$as_dir" && as_dir=.
10697 for ac_exec_ext in '' $ac_executable_extensions; do
10698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10699 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10710 if test -n "$CC"; then
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10712 $as_echo "$CC" >&6; }
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715 $as_echo "no" >&6; }
10720 if test -z "$ac_cv_prog_CC"; then
10722 # Extract the first word of "gcc", so it can be a program name with args.
10723 set dummy gcc; ac_word=$2
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10725 $as_echo_n "checking for $ac_word... " >&6; }
10726 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10727 $as_echo_n "(cached) " >&6
10729 if test -n "$ac_ct_CC"; then
10730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733 for as_dir in $PATH
10736 test -z "$as_dir" && as_dir=.
10737 for ac_exec_ext in '' $ac_executable_extensions; do
10738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10739 ac_cv_prog_ac_ct_CC="gcc"
10740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10750 if test -n "$ac_ct_CC"; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10752 $as_echo "$ac_ct_CC" >&6; }
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755 $as_echo "no" >&6; }
10758 if test "x$ac_ct_CC" = x; then
10761 case $cross_compiling:$ac_tool_warned in
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10765 ac_tool_warned=yes ;;
10770 CC="$ac_cv_prog_CC"
10773 if test -z "$CC"; then
10774 if test -n "$ac_tool_prefix"; then
10775 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10776 set dummy ${ac_tool_prefix}cc; ac_word=$2
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10778 $as_echo_n "checking for $ac_word... " >&6; }
10779 if ${ac_cv_prog_CC+:} false; then :
10780 $as_echo_n "(cached) " >&6
10782 if test -n "$CC"; then
10783 ac_cv_prog_CC="$CC" # Let the user override the test.
10785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786 for as_dir in $PATH
10789 test -z "$as_dir" && as_dir=.
10790 for ac_exec_ext in '' $ac_executable_extensions; do
10791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10792 ac_cv_prog_CC="${ac_tool_prefix}cc"
10793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 if test -n "$CC"; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10805 $as_echo "$CC" >&6; }
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808 $as_echo "no" >&6; }
10814 if test -z "$CC"; then
10815 # Extract the first word of "cc", so it can be a program name with args.
10816 set dummy cc; ac_word=$2
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10818 $as_echo_n "checking for $ac_word... " >&6; }
10819 if ${ac_cv_prog_CC+:} false; then :
10820 $as_echo_n "(cached) " >&6
10822 if test -n "$CC"; then
10823 ac_cv_prog_CC="$CC" # Let the user override the test.
10825 ac_prog_rejected=no
10826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827 for as_dir in $PATH
10830 test -z "$as_dir" && as_dir=.
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10833 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10834 ac_prog_rejected=yes
10838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 if test $ac_prog_rejected = yes; then
10846 # We found a bogon in the path, so make sure we never use it.
10847 set dummy $ac_cv_prog_CC
10849 if test $# != 0; then
10850 # We chose a different compiler from the bogus one.
10851 # However, it has the same basename, so the bogon will be chosen
10852 # first if we set CC to just the basename; use the full file name.
10854 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10860 if test -n "$CC"; then
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10862 $as_echo "$CC" >&6; }
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10865 $as_echo "no" >&6; }
10870 if test -z "$CC"; then
10871 if test -n "$ac_tool_prefix"; then
10872 for ac_prog in cl.exe
10874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10877 $as_echo_n "checking for $ac_word... " >&6; }
10878 if ${ac_cv_prog_CC+:} false; then :
10879 $as_echo_n "(cached) " >&6
10881 if test -n "$CC"; then
10882 ac_cv_prog_CC="$CC" # Let the user override the test.
10884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885 for as_dir in $PATH
10888 test -z "$as_dir" && as_dir=.
10889 for ac_exec_ext in '' $ac_executable_extensions; do
10890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10891 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 if test -n "$CC"; then
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10904 $as_echo "$CC" >&6; }
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907 $as_echo "no" >&6; }
10911 test -n "$CC" && break
10914 if test -z "$CC"; then
10916 for ac_prog in cl.exe
10918 # Extract the first word of "$ac_prog", so it can be a program name with args.
10919 set dummy $ac_prog; ac_word=$2
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10921 $as_echo_n "checking for $ac_word... " >&6; }
10922 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10923 $as_echo_n "(cached) " >&6
10925 if test -n "$ac_ct_CC"; then
10926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10929 for as_dir in $PATH
10932 test -z "$as_dir" && as_dir=.
10933 for ac_exec_ext in '' $ac_executable_extensions; do
10934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10935 ac_cv_prog_ac_ct_CC="$ac_prog"
10936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10946 if test -n "$ac_ct_CC"; then
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10948 $as_echo "$ac_ct_CC" >&6; }
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10951 $as_echo "no" >&6; }
10955 test -n "$ac_ct_CC" && break
10958 if test "x$ac_ct_CC" = x; then
10961 case $cross_compiling:$ac_tool_warned in
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10965 ac_tool_warned=yes ;;
10974 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10976 as_fn_error $? "no acceptable C compiler found in \$PATH
10977 See \`config.log' for more details" "$LINENO" 5; }
10979 # Provide some information about the compiler.
10980 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10983 for ac_option in --version -v -V -qversion; do
10984 { { ac_try="$ac_compiler $ac_option >&5"
10985 case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10990 $as_echo "$ac_try_echo"; } >&5
10991 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10993 if test -s conftest.err; then
10995 ... rest of stderr output deleted ...
10996 10q' conftest.err >conftest.er1
10997 cat conftest.er1 >&5
10999 rm -f conftest.er1 conftest.err
11000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11001 test $ac_status = 0; }
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11005 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11006 if ${ac_cv_c_compiler_gnu+:} false; then :
11007 $as_echo_n "(cached) " >&6
11009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h. */
11023 if ac_fn_c_try_compile "$LINENO"; then :
11024 ac_compiler_gnu=yes
11028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11029 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11033 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11034 if test $ac_compiler_gnu = yes; then
11039 ac_test_CFLAGS=${CFLAGS+set}
11040 ac_save_CFLAGS=$CFLAGS
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11042 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11043 if ${ac_cv_prog_cc_g+:} false; then :
11044 $as_echo_n "(cached) " >&6
11046 ac_save_c_werror_flag=$ac_c_werror_flag
11047 ac_c_werror_flag=yes
11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h. */
11061 if ac_fn_c_try_compile "$LINENO"; then :
11062 ac_cv_prog_cc_g=yes
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11076 if ac_fn_c_try_compile "$LINENO"; then :
11079 ac_c_werror_flag=$ac_save_c_werror_flag
11081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h. */
11092 if ac_fn_c_try_compile "$LINENO"; then :
11093 ac_cv_prog_cc_g=yes
11095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11100 ac_c_werror_flag=$ac_save_c_werror_flag
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11103 $as_echo "$ac_cv_prog_cc_g" >&6; }
11104 if test "$ac_test_CFLAGS" = set; then
11105 CFLAGS=$ac_save_CFLAGS
11106 elif test $ac_cv_prog_cc_g = yes; then
11107 if test "$GCC" = yes; then
11113 if test "$GCC" = yes; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11120 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11121 if ${ac_cv_prog_cc_c89+:} false; then :
11122 $as_echo_n "(cached) " >&6
11124 ac_cv_prog_cc_c89=no
11126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h. */
11128 #include <stdarg.h>
11131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11132 struct buf { int x; };
11133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11134 static char *e (p, i)
11140 static char *f (char * (*g) (char **, int), char **p, ...)
11145 s = g (p, va_arg (v,int));
11150 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11151 function prototypes and stuff, but not '\xHH' hex character constants.
11152 These don't provoke an error unfortunately, instead are silently treated
11153 as 'x'. The following induces an error, until -std is added to get
11154 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11155 array size at least. It's necessary to write '\x00'==0 to get something
11156 that's true only with -std. */
11157 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11159 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11160 inside strings and character constants. */
11162 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11164 int test (int i, double x);
11165 struct s1 {int (*f) (int a);};
11166 struct s2 {int (*f) (double a);};
11167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11173 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11178 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11179 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11181 CC="$ac_save_CC $ac_arg"
11182 if ac_fn_c_try_compile "$LINENO"; then :
11183 ac_cv_prog_cc_c89=$ac_arg
11185 rm -f core conftest.err conftest.$ac_objext
11186 test "x$ac_cv_prog_cc_c89" != "xno" && break
11188 rm -f conftest.$ac_ext
11193 case "x$ac_cv_prog_cc_c89" in
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11196 $as_echo "none needed" >&6; } ;;
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11199 $as_echo "unsupported" >&6; } ;;
11201 CC="$CC $ac_cv_prog_cc_c89"
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11203 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11205 if test "x$ac_cv_prog_cc_c89" != xno; then :
11210 ac_cpp='$CPP $CPPFLAGS'
11211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11217 pkg_version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
11219 pkg_release=$PKG_BUILD
11220 test -z "$BUILD_VERSION" || pkg_release="$BUILD_VERSION"
11223 DEBUG=${DEBUG:-'-DDEBUG'} debug_build="$DEBUG"
11226 OPTIMIZER=${OPTIMIZER:-'-g -O2'}
11227 opt_build="$OPTIMIZER"
11230 MALLOCLIB=${MALLOCLIB:-''} malloc_lib="$MALLOCLIB"
11233 pkg_user=`id -u -n`
11234 test -z "$INSTALL_USER" || pkg_user="$INSTALL_USER"
11237 pkg_group=`id -g -n`
11238 test -z "$INSTALL_GROUP" || pkg_group="$INSTALL_GROUP"
11241 pkg_distribution=`uname -s`
11242 test -z "$DISTRIBUTION" || pkg_distribution="$DISTRIBUTION"
11245 pkg_platform=`uname -s | tr 'A-Z' 'a-z' | sed -e 's/irix64/irix/'`
11246 test -z "$PLATFORM" || pkg_platform="$PLATFORM"
11250 ac_cpp='$CPP $CPPFLAGS'
11251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11254 if test -n "$ac_tool_prefix"; then
11255 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11256 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11258 $as_echo_n "checking for $ac_word... " >&6; }
11259 if ${ac_cv_prog_CC+:} false; then :
11260 $as_echo_n "(cached) " >&6
11262 if test -n "$CC"; then
11263 ac_cv_prog_CC="$CC" # Let the user override the test.
11265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266 for as_dir in $PATH
11269 test -z "$as_dir" && as_dir=.
11270 for ac_exec_ext in '' $ac_executable_extensions; do
11271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11272 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11283 if test -n "$CC"; then
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11285 $as_echo "$CC" >&6; }
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288 $as_echo "no" >&6; }
11293 if test -z "$ac_cv_prog_CC"; then
11295 # Extract the first word of "gcc", so it can be a program name with args.
11296 set dummy gcc; ac_word=$2
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11298 $as_echo_n "checking for $ac_word... " >&6; }
11299 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11300 $as_echo_n "(cached) " >&6
11302 if test -n "$ac_ct_CC"; then
11303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306 for as_dir in $PATH
11309 test -z "$as_dir" && as_dir=.
11310 for ac_exec_ext in '' $ac_executable_extensions; do
11311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11312 ac_cv_prog_ac_ct_CC="gcc"
11313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11323 if test -n "$ac_ct_CC"; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11325 $as_echo "$ac_ct_CC" >&6; }
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11331 if test "x$ac_ct_CC" = x; then
11334 case $cross_compiling:$ac_tool_warned in
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11338 ac_tool_warned=yes ;;
11343 CC="$ac_cv_prog_CC"
11346 if test -z "$CC"; then
11347 if test -n "$ac_tool_prefix"; then
11348 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11349 set dummy ${ac_tool_prefix}cc; ac_word=$2
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11351 $as_echo_n "checking for $ac_word... " >&6; }
11352 if ${ac_cv_prog_CC+:} false; then :
11353 $as_echo_n "(cached) " >&6
11355 if test -n "$CC"; then
11356 ac_cv_prog_CC="$CC" # Let the user override the test.
11358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359 for as_dir in $PATH
11362 test -z "$as_dir" && as_dir=.
11363 for ac_exec_ext in '' $ac_executable_extensions; do
11364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11365 ac_cv_prog_CC="${ac_tool_prefix}cc"
11366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11376 if test -n "$CC"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11378 $as_echo "$CC" >&6; }
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11387 if test -z "$CC"; then
11388 # Extract the first word of "cc", so it can be a program name with args.
11389 set dummy cc; ac_word=$2
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11391 $as_echo_n "checking for $ac_word... " >&6; }
11392 if ${ac_cv_prog_CC+:} false; then :
11393 $as_echo_n "(cached) " >&6
11395 if test -n "$CC"; then
11396 ac_cv_prog_CC="$CC" # Let the user override the test.
11398 ac_prog_rejected=no
11399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400 for as_dir in $PATH
11403 test -z "$as_dir" && as_dir=.
11404 for ac_exec_ext in '' $ac_executable_extensions; do
11405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11406 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11407 ac_prog_rejected=yes
11411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11418 if test $ac_prog_rejected = yes; then
11419 # We found a bogon in the path, so make sure we never use it.
11420 set dummy $ac_cv_prog_CC
11422 if test $# != 0; then
11423 # We chose a different compiler from the bogus one.
11424 # However, it has the same basename, so the bogon will be chosen
11425 # first if we set CC to just the basename; use the full file name.
11427 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11433 if test -n "$CC"; then
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11435 $as_echo "$CC" >&6; }
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438 $as_echo "no" >&6; }
11443 if test -z "$CC"; then
11444 if test -n "$ac_tool_prefix"; then
11445 for ac_prog in cl.exe
11447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450 $as_echo_n "checking for $ac_word... " >&6; }
11451 if ${ac_cv_prog_CC+:} false; then :
11452 $as_echo_n "(cached) " >&6
11454 if test -n "$CC"; then
11455 ac_cv_prog_CC="$CC" # Let the user override the test.
11457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458 for as_dir in $PATH
11461 test -z "$as_dir" && as_dir=.
11462 for ac_exec_ext in '' $ac_executable_extensions; do
11463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11464 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11475 if test -n "$CC"; then
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11477 $as_echo "$CC" >&6; }
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480 $as_echo "no" >&6; }
11484 test -n "$CC" && break
11487 if test -z "$CC"; then
11489 for ac_prog in cl.exe
11491 # Extract the first word of "$ac_prog", so it can be a program name with args.
11492 set dummy $ac_prog; ac_word=$2
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11494 $as_echo_n "checking for $ac_word... " >&6; }
11495 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11496 $as_echo_n "(cached) " >&6
11498 if test -n "$ac_ct_CC"; then
11499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502 for as_dir in $PATH
11505 test -z "$as_dir" && as_dir=.
11506 for ac_exec_ext in '' $ac_executable_extensions; do
11507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11508 ac_cv_prog_ac_ct_CC="$ac_prog"
11509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11519 if test -n "$ac_ct_CC"; then
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11521 $as_echo "$ac_ct_CC" >&6; }
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524 $as_echo "no" >&6; }
11528 test -n "$ac_ct_CC" && break
11531 if test "x$ac_ct_CC" = x; then
11534 case $cross_compiling:$ac_tool_warned in
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11538 ac_tool_warned=yes ;;
11547 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11549 as_fn_error $? "no acceptable C compiler found in \$PATH
11550 See \`config.log' for more details" "$LINENO" 5; }
11552 # Provide some information about the compiler.
11553 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11556 for ac_option in --version -v -V -qversion; do
11557 { { ac_try="$ac_compiler $ac_option >&5"
11558 case "(($ac_try" in
11559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560 *) ac_try_echo=$ac_try;;
11562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11563 $as_echo "$ac_try_echo"; } >&5
11564 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11566 if test -s conftest.err; then
11568 ... rest of stderr output deleted ...
11569 10q' conftest.err >conftest.er1
11570 cat conftest.er1 >&5
11572 rm -f conftest.er1 conftest.err
11573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574 test $ac_status = 0; }
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11578 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11579 if ${ac_cv_c_compiler_gnu+:} false; then :
11580 $as_echo_n "(cached) " >&6
11582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h. */
11596 if ac_fn_c_try_compile "$LINENO"; then :
11597 ac_compiler_gnu=yes
11601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11602 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11606 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11607 if test $ac_compiler_gnu = yes; then
11612 ac_test_CFLAGS=${CFLAGS+set}
11613 ac_save_CFLAGS=$CFLAGS
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11615 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11616 if ${ac_cv_prog_cc_g+:} false; then :
11617 $as_echo_n "(cached) " >&6
11619 ac_save_c_werror_flag=$ac_c_werror_flag
11620 ac_c_werror_flag=yes
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11634 if ac_fn_c_try_compile "$LINENO"; then :
11635 ac_cv_prog_cc_g=yes
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h. */
11649 if ac_fn_c_try_compile "$LINENO"; then :
11652 ac_c_werror_flag=$ac_save_c_werror_flag
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h. */
11665 if ac_fn_c_try_compile "$LINENO"; then :
11666 ac_cv_prog_cc_g=yes
11668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11673 ac_c_werror_flag=$ac_save_c_werror_flag
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11676 $as_echo "$ac_cv_prog_cc_g" >&6; }
11677 if test "$ac_test_CFLAGS" = set; then
11678 CFLAGS=$ac_save_CFLAGS
11679 elif test $ac_cv_prog_cc_g = yes; then
11680 if test "$GCC" = yes; then
11686 if test "$GCC" = yes; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11693 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11694 if ${ac_cv_prog_cc_c89+:} false; then :
11695 $as_echo_n "(cached) " >&6
11697 ac_cv_prog_cc_c89=no
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11701 #include <stdarg.h>
11704 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11705 struct buf { int x; };
11706 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11707 static char *e (p, i)
11713 static char *f (char * (*g) (char **, int), char **p, ...)
11718 s = g (p, va_arg (v,int));
11723 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11724 function prototypes and stuff, but not '\xHH' hex character constants.
11725 These don't provoke an error unfortunately, instead are silently treated
11726 as 'x'. The following induces an error, until -std is added to get
11727 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11728 array size at least. It's necessary to write '\x00'==0 to get something
11729 that's true only with -std. */
11730 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11732 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11733 inside strings and character constants. */
11735 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11737 int test (int i, double x);
11738 struct s1 {int (*f) (int a);};
11739 struct s2 {int (*f) (double a);};
11740 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11746 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11751 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11752 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11754 CC="$ac_save_CC $ac_arg"
11755 if ac_fn_c_try_compile "$LINENO"; then :
11756 ac_cv_prog_cc_c89=$ac_arg
11758 rm -f core conftest.err conftest.$ac_objext
11759 test "x$ac_cv_prog_cc_c89" != "xno" && break
11761 rm -f conftest.$ac_ext
11766 case "x$ac_cv_prog_cc_c89" in
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11769 $as_echo "none needed" >&6; } ;;
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11772 $as_echo "unsupported" >&6; } ;;
11774 CC="$CC $ac_cv_prog_cc_c89"
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11776 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11778 if test "x$ac_cv_prog_cc_c89" != xno; then :
11783 ac_cpp='$CPP $CPPFLAGS'
11784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11790 if test -z ""$cc""; then
11792 echo FATAL ERROR: cc does not seem to be installed.
11793 echo acl cannot be built without a working C compiler installation.
11798 search_path="$PATH$PATH_SEPARATOR/usr/freeware/bin$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR/usr/local/bin"
11800 for ac_prog in gmake make
11802 # Extract the first word of "$ac_prog", so it can be a program name with args.
11803 set dummy $ac_prog; ac_word=$2
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805 $as_echo_n "checking for $ac_word... " >&6; }
11806 if ${ac_cv_path_MAKE+:} false; then :
11807 $as_echo_n "(cached) " >&6
11811 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $search_path
11818 test -z "$as_dir" && as_dir=.
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11821 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11832 MAKE=$ac_cv_path_MAKE
11833 if test -n "$MAKE"; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
11835 $as_echo "$MAKE" >&6; }
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11842 test -n "$MAKE" && break
11847 if test -z ""$make""; then
11849 echo FATAL ERROR: make does not seem to be installed.
11850 echo acl cannot be built without a working GNU make installation.
11855 # Extract the first word of "tar", so it can be a program name with args.
11856 set dummy tar; ac_word=$2
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858 $as_echo_n "checking for $ac_word... " >&6; }
11859 if ${ac_cv_path_TAR+:} false; then :
11860 $as_echo_n "(cached) " >&6
11864 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $search_path
11871 test -z "$as_dir" && as_dir=.
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11874 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11885 TAR=$ac_cv_path_TAR
11886 if test -n "$TAR"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11888 $as_echo "$TAR" >&6; }
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11898 # Extract the first word of "gzip", so it can be a program name with args.
11899 set dummy gzip; ac_word=$2
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901 $as_echo_n "checking for $ac_word... " >&6; }
11902 if ${ac_cv_path_ZIP+:} false; then :
11903 $as_echo_n "(cached) " >&6
11907 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
11910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911 for as_dir in $search_path
11914 test -z "$as_dir" && as_dir=.
11915 for ac_exec_ext in '' $ac_executable_extensions; do
11916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11917 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
11918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11928 ZIP=$ac_cv_path_ZIP
11929 if test -n "$ZIP"; then
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
11931 $as_echo "$ZIP" >&6; }
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934 $as_echo "no" >&6; }
11941 # Extract the first word of "makedepend", so it can be a program name with args.
11942 set dummy makedepend; ac_word=$2
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944 $as_echo_n "checking for $ac_word... " >&6; }
11945 if ${ac_cv_path_MAKEDEPEND+:} false; then :
11946 $as_echo_n "(cached) " >&6
11948 case $MAKEDEPEND in
11950 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
11953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11954 for as_dir in $PATH
11957 test -z "$as_dir" && as_dir=.
11958 for ac_exec_ext in '' $ac_executable_extensions; do
11959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11960 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
11961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11968 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="/bin/true"
11972 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
11973 if test -n "$MAKEDEPEND"; then
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
11975 $as_echo "$MAKEDEPEND" >&6; }
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11982 makedepend=$MAKEDEPEND
11985 # Extract the first word of "awk", so it can be a program name with args.
11986 set dummy awk; ac_word=$2
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11988 $as_echo_n "checking for $ac_word... " >&6; }
11989 if ${ac_cv_path_AWK+:} false; then :
11990 $as_echo_n "(cached) " >&6
11994 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11998 for as_dir in $search_path
12001 test -z "$as_dir" && as_dir=.
12002 for ac_exec_ext in '' $ac_executable_extensions; do
12003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12004 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
12005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12015 AWK=$ac_cv_path_AWK
12016 if test -n "$AWK"; then
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12018 $as_echo "$AWK" >&6; }
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12028 # Extract the first word of "sed", so it can be a program name with args.
12029 set dummy sed; ac_word=$2
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if ${ac_cv_path_SED+:} false; then :
12033 $as_echo_n "(cached) " >&6
12037 ac_cv_path_SED="$SED" # Let the user override the test with a path.
12040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $search_path
12044 test -z "$as_dir" && as_dir=.
12045 for ac_exec_ext in '' $ac_executable_extensions; do
12046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12047 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12058 SED=$ac_cv_path_SED
12059 if test -n "$SED"; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12061 $as_echo "$SED" >&6; }
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064 $as_echo "no" >&6; }
12071 # Extract the first word of "echo", so it can be a program name with args.
12072 set dummy echo; ac_word=$2
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074 $as_echo_n "checking for $ac_word... " >&6; }
12075 if ${ac_cv_path_ECHO+:} false; then :
12076 $as_echo_n "(cached) " >&6
12080 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
12083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12084 for as_dir in $search_path
12087 test -z "$as_dir" && as_dir=.
12088 for ac_exec_ext in '' $ac_executable_extensions; do
12089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12090 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
12091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 ECHO=$ac_cv_path_ECHO
12102 if test -n "$ECHO"; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
12104 $as_echo "$ECHO" >&6; }
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12114 # Extract the first word of "sort", so it can be a program name with args.
12115 set dummy sort; ac_word=$2
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117 $as_echo_n "checking for $ac_word... " >&6; }
12118 if ${ac_cv_path_SORT+:} false; then :
12119 $as_echo_n "(cached) " >&6
12123 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
12126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127 for as_dir in $search_path
12130 test -z "$as_dir" && as_dir=.
12131 for ac_exec_ext in '' $ac_executable_extensions; do
12132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12133 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
12134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12144 SORT=$ac_cv_path_SORT
12145 if test -n "$SORT"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
12147 $as_echo "$SORT" >&6; }
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12158 $as_echo_n "checking whether ln -s works... " >&6; }
12160 if test "$LN_S" = "ln -s"; then
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12162 $as_echo "yes" >&6; }
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12165 $as_echo "no, using $LN_S" >&6; }
12169 if test "$enable_gettext" = yes; then
12170 # Extract the first word of "msgfmt", so it can be a program name with args.
12171 set dummy msgfmt; ac_word=$2
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173 $as_echo_n "checking for $ac_word... " >&6; }
12174 if ${ac_cv_path_MSGFMT+:} false; then :
12175 $as_echo_n "(cached) " >&6
12179 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183 for as_dir in $search_path
12186 test -z "$as_dir" && as_dir=.
12187 for ac_exec_ext in '' $ac_executable_extensions; do
12188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12189 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
12190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12200 MSGFMT=$ac_cv_path_MSGFMT
12201 if test -n "$MSGFMT"; then
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12203 $as_echo "$MSGFMT" >&6; }
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206 $as_echo "no" >&6; }
12212 if test -z ""$msgfmt""; then
12214 echo FATAL ERROR: msgfmt does not seem to be installed.
12215 echo acl cannot be built without a working gettext installation.
12220 # Extract the first word of "msgmerge", so it can be a program name with args.
12221 set dummy msgmerge; ac_word=$2
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12223 $as_echo_n "checking for $ac_word... " >&6; }
12224 if ${ac_cv_path_MSGMERGE+:} false; then :
12225 $as_echo_n "(cached) " >&6
12229 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233 for as_dir in $search_path
12236 test -z "$as_dir" && as_dir=.
12237 for ac_exec_ext in '' $ac_executable_extensions; do
12238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12239 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
12240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12250 MSGMERGE=$ac_cv_path_MSGMERGE
12251 if test -n "$MSGMERGE"; then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12253 $as_echo "$MSGMERGE" >&6; }
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256 $as_echo "no" >&6; }
12262 if test -z ""$msgmerge""; then
12264 echo FATAL ERROR: msgmerge does not seem to be installed.
12265 echo acl cannot be built without a working gettext installation.
12270 # Extract the first word of "xgettext", so it can be a program name with args.
12271 set dummy xgettext; ac_word=$2
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273 $as_echo_n "checking for $ac_word... " >&6; }
12274 if ${ac_cv_path_XGETTEXT+:} false; then :
12275 $as_echo_n "(cached) " >&6
12279 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283 for as_dir in $search_path
12286 test -z "$as_dir" && as_dir=.
12287 for ac_exec_ext in '' $ac_executable_extensions; do
12288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12289 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
12290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12300 XGETTEXT=$ac_cv_path_XGETTEXT
12301 if test -n "$XGETTEXT"; then
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12303 $as_echo "$XGETTEXT" >&6; }
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 $as_echo "no" >&6; }
12312 if test -z ""$xgettext""; then
12314 echo FATAL ERROR: xgettext does not seem to be installed.
12315 echo acl cannot be built without a working gettext installation.
12321 $as_echo "#define ENABLE_GETTEXT 1" >>confdefs.h
12325 # Extract the first word of "rpm", so it can be a program name with args.
12326 set dummy rpm; ac_word=$2
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328 $as_echo_n "checking for $ac_word... " >&6; }
12329 if ${ac_cv_path_RPM+:} false; then :
12330 $as_echo_n "(cached) " >&6
12334 ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
12337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338 for as_dir in $search_path
12341 test -z "$as_dir" && as_dir=.
12342 for ac_exec_ext in '' $ac_executable_extensions; do
12343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12344 ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
12345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12355 RPM=$ac_cv_path_RPM
12356 if test -n "$RPM"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
12358 $as_echo "$RPM" >&6; }
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12369 test -n "$RPM" && test -x "$RPM" && rpm_version=`$RPM --version \
12370 | awk '{print $NF}' | awk -F. '{V=1; print $V}'`
12372 if test $rpm_version -ge 4; then
12373 # Extract the first word of "rpmbuild", so it can be a program name with args.
12374 set dummy rpmbuild; ac_word=$2
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12376 $as_echo_n "checking for $ac_word... " >&6; }
12377 if ${ac_cv_path_RPMBUILD+:} false; then :
12378 $as_echo_n "(cached) " >&6
12382 ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
12385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386 for as_dir in $PATH
12389 test -z "$as_dir" && as_dir=.
12390 for ac_exec_ext in '' $ac_executable_extensions; do
12391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12392 ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
12393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12403 RPMBUILD=$ac_cv_path_RPMBUILD
12404 if test -n "$RPMBUILD"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
12406 $as_echo "$RPMBUILD" >&6; }
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12419 for ac_header in attr/xattr.h
12421 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
12422 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
12423 cat >>confdefs.h <<_ACEOF
12424 #define HAVE_ATTR_XATTR_H 1
12431 if test "$ac_cv_header_attr_xattr_h" != "yes"; then
12433 echo 'FATAL ERROR: attr/xattr.h does not exist.'
12434 echo 'Install the extended attributes (attr) development package.'
12435 echo 'Alternatively, run "make install-dev" from the attr source.'
12439 for ac_header in attr/error_context.h
12441 ac_fn_c_check_header_mongrel "$LINENO" "attr/error_context.h" "ac_cv_header_attr_error_context_h" "$ac_includes_default"
12442 if test "x$ac_cv_header_attr_error_context_h" = xyes; then :
12443 cat >>confdefs.h <<_ACEOF
12444 #define HAVE_ATTR_ERROR_CONTEXT_H 1
12451 if test "$ac_cv_header_attr_error_context_h" != "yes"; then
12453 echo 'FATAL ERROR: attr/error_context.h does not exist.'
12454 echo 'Install the extended attributes (attr) development package.'
12455 echo 'Alternatively, run "make install-dev" from the attr source.'
12460 enable_lib64="$enable_lib64"
12462 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12463 if test "$enable_lib64" = "yes" -a -n "$searchpath"; then
12464 save_IFS="${IFS= }"; IFS=":"
12465 for searchdir in $searchpath; do
12466 if test -d "$searchdir"; then
12467 case "$searchdir" in
12468 */lib64/ | */lib64 ) libdirsuffix=64 ;;
12469 *) searchdir=`cd "$searchdir" && pwd`
12470 case "$searchdir" in
12471 */lib64 ) libdirsuffix=64 ;;
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5
12481 $as_echo_n "checking for getxattr in -lattr... " >&6; }
12482 if ${ac_cv_lib_attr_getxattr+:} false; then :
12483 $as_echo_n "(cached) " >&6
12485 ac_check_lib_save_LIBS=$LIBS
12486 LIBS="-lattr $LIBS"
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12490 /* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply. */
12500 return getxattr ();
12505 if ac_fn_c_try_link "$LINENO"; then :
12506 ac_cv_lib_attr_getxattr=yes
12508 ac_cv_lib_attr_getxattr=no
12510 rm -f core conftest.err conftest.$ac_objext \
12511 conftest$ac_exeext conftest.$ac_ext
12512 LIBS=$ac_check_lib_save_LIBS
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5
12515 $as_echo "$ac_cv_lib_attr_getxattr" >&6; }
12516 if test "x$ac_cv_lib_attr_getxattr" = xyes; then :
12517 cat >>confdefs.h <<_ACEOF
12518 #define HAVE_LIBATTR 1
12521 LIBS="-lattr $LIBS"
12526 echo 'FATAL ERROR: could not find a valid Extended Attributes library.'
12527 echo 'Install the extended attributes (attr) development package.'
12528 echo 'Alternatively, run "make install-lib" from the attr source.'
12534 test -f `pwd`/../attr/libattr/libattr.la && \
12535 libattr="`pwd`/../attr/libattr/libattr.la"
12538 have_zipped_manpages=false
12539 for d in ${prefix}/share/man ${prefix}/man ; do
12540 if test -f $d/man1/man.1.gz
12542 have_zipped_manpages=true
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
12550 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
12551 if ${libc_cv_visibility_attribute+:} false; then :
12552 $as_echo_n "(cached) " >&6
12554 cat > conftest.c <<EOF
12555 int foo __attribute__ ((visibility ("hidden"))) = 1;
12556 int bar __attribute__ ((visibility ("protected"))) = 1;
12558 libc_cv_visibility_attribute=no
12559 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
12560 >/dev/null 2>&1; then
12561 if grep '\.hidden.*foo' conftest.s >/dev/null; then
12562 if grep '\.protected.*bar' conftest.s >/dev/null; then
12563 libc_cv_visibility_attribute=yes
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_visibility_attribute" >&5
12571 $as_echo "$libc_cv_visibility_attribute" >&6; }
12572 if test $libc_cv_visibility_attribute = yes; then
12574 $as_echo "#define HAVE_VISIBILITY_ATTRIBUTE /**/" >>confdefs.h
12579 ac_config_files="$ac_config_files include/builddefs"
12581 cat >confcache <<\_ACEOF
12582 # This file is a shell script that caches the results of configure
12583 # tests run on this system so they can be shared between configure
12584 # scripts and configure runs, see configure's option --config-cache.
12585 # It is not useful on other systems. If it contains results you don't
12586 # want to keep, you may remove or edit it.
12588 # config.status only pays attention to the cache file if you give it
12589 # the --recheck option to rerun configure.
12591 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12592 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12593 # following values.
12597 # The following way of writing the cache mishandles newlines in values,
12598 # but we know of no workaround that is simple, portable, and efficient.
12599 # So, we kill variables containing newlines.
12600 # Ultrix sh set writes to stderr and can't be redirected directly,
12601 # and sets the high bit in the cache file unless we assign to the vars.
12603 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12604 eval ac_val=\$$ac_var
12608 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12609 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12612 _ | IFS | as_nl) ;; #(
12613 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12614 *) { eval $ac_var=; unset $ac_var;} ;;
12620 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12621 *${as_nl}ac_space=\ *)
12622 # `set' does not quote correctly, so add quotes: double-quote
12623 # substitution turns \\\\ into \\, and sed turns \\ into \.
12626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12629 # `set' quotes correctly as required by POSIX, so do not add quotes.
12630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12639 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12641 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12643 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12644 if test -w "$cache_file"; then
12645 if test "x$cache_file" != "x/dev/null"; then
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12647 $as_echo "$as_me: updating cache $cache_file" >&6;}
12648 if test ! -f "$cache_file" || test -h "$cache_file"; then
12649 cat confcache >"$cache_file"
12651 case $cache_file in #(
12653 mv -f confcache "$cache_file"$$ &&
12654 mv -f "$cache_file"$$ "$cache_file" ;; #(
12656 mv -f confcache "$cache_file" ;;
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12662 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12667 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12668 # Let make expand exec_prefix.
12669 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12671 DEFS=-DHAVE_CONFIG_H
12676 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12677 # 1. Remove the extension, and $U if already installed.
12678 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12679 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12680 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12681 # will be set to the directory where LIBOBJS objects are built.
12682 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12683 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12685 LIBOBJS=$ac_libobjs
12687 LTLIBOBJS=$ac_ltlibobjs
12691 : "${CONFIG_STATUS=./config.status}"
12693 ac_clean_files_save=$ac_clean_files
12694 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12696 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12698 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12700 # Generated by $as_me.
12701 # Run this file to recreate the current configuration.
12702 # Compiler output produced by configure, useful for debugging
12703 # configure, is in config.log if it exists.
12706 ac_cs_recheck=false
12709 SHELL=\${CONFIG_SHELL-$SHELL}
12712 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12713 ## -------------------- ##
12714 ## M4sh Initialization. ##
12715 ## -------------------- ##
12717 # Be more Bourne compatible
12718 DUALCASE=1; export DUALCASE # for MKS sh
12719 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12722 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12723 # is contrary to our usage. Disable this feature.
12724 alias -g '${1+"$@"}'='"$@"'
12725 setopt NO_GLOB_SUBST
12727 case `(set -o) 2>/dev/null` in #(
12739 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12740 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12741 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12742 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12743 # Prefer a ksh shell builtin over an external printf program on Solaris,
12744 # but without wasting forks for bash or zsh.
12745 if test -z "$BASH_VERSION$ZSH_VERSION" \
12746 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12747 as_echo='print -r --'
12748 as_echo_n='print -rn --'
12749 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12750 as_echo='printf %s\n'
12751 as_echo_n='printf %s'
12753 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12754 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12755 as_echo_n='/usr/ucb/echo -n'
12757 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12758 as_echo_n_body='eval
12762 expr "X$arg" : "X\\(.*\\)$as_nl";
12763 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12765 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12767 export as_echo_n_body
12768 as_echo_n='sh -c $as_echo_n_body as_echo'
12770 export as_echo_body
12771 as_echo='sh -c $as_echo_body as_echo'
12774 # The user is always right.
12775 if test "${PATH_SEPARATOR+set}" != set; then
12777 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12778 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12785 # We need space, tab and new line, in precisely that order. Quoting is
12786 # there to prevent editors from complaining about space-tab.
12787 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12788 # splitting by setting IFS to empty value.)
12791 # Find who we are. Look in the path if we contain no directory separator.
12794 *[\\/]* ) as_myself=$0 ;;
12795 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796 for as_dir in $PATH
12799 test -z "$as_dir" && as_dir=.
12800 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12806 # We did not find ourselves, most probably we were run as `sh COMMAND'
12807 # in which case we are not to be found in the path.
12808 if test "x$as_myself" = x; then
12811 if test ! -f "$as_myself"; then
12812 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12816 # Unset variables that we do not need and which cause bugs (e.g. in
12817 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12818 # suppresses any "Segmentation fault" message there. '((' could
12819 # trigger a bug in pdksh 5.2.14.
12820 for as_var in BASH_ENV ENV MAIL MAILPATH
12821 do eval test x\${$as_var+set} = xset \
12822 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12835 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12838 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12839 # ----------------------------------------
12840 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12841 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12842 # script with STATUS, using 1 if that was 0.
12845 as_status=$1; test $as_status -eq 0 && as_status=1
12847 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12848 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12850 $as_echo "$as_me: error: $2" >&2
12851 as_fn_exit $as_status
12855 # as_fn_set_status STATUS
12856 # -----------------------
12857 # Set $? to STATUS, without forking.
12858 as_fn_set_status ()
12861 } # as_fn_set_status
12863 # as_fn_exit STATUS
12864 # -----------------
12865 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12869 as_fn_set_status $1
12875 # Portably unset VAR.
12878 { eval $1=; unset $1;}
12880 as_unset=as_fn_unset
12881 # as_fn_append VAR VALUE
12882 # ----------------------
12883 # Append the text in VALUE to the end of the definition contained in VAR. Take
12884 # advantage of any shell optimizations that allow amortized linear growth over
12885 # repeated appends, instead of the typical quadratic growth present in naive
12887 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12888 eval 'as_fn_append ()
12899 # as_fn_arith ARG...
12900 # ------------------
12901 # Perform arithmetic evaluation on the ARGs, and store the result in the
12902 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12903 # must be portable across $(()) and expr.
12904 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12905 eval 'as_fn_arith ()
12912 as_val=`expr "$@" || test $? -eq 1`
12917 if expr a : '\(a\)' >/dev/null 2>&1 &&
12918 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12924 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12925 as_basename=basename
12930 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12936 as_me=`$as_basename -- "$0" ||
12937 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12938 X"$0" : 'X\(//\)$' \| \
12939 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12941 sed '/^.*\/\([^/][^/]*\)\/*$/{
12955 # Avoid depending upon Character Ranges.
12956 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12957 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12958 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12959 as_cr_digits='0123456789'
12960 as_cr_alnum=$as_cr_Letters$as_cr_digits
12962 ECHO_C= ECHO_N= ECHO_T=
12963 case `echo -n x` in #(((((
12965 case `echo 'xy\c'` in
12966 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12968 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12975 rm -f conf$$ conf$$.exe conf$$.file
12976 if test -d conf$$.dir; then
12977 rm -f conf$$.dir/conf$$.file
12980 mkdir conf$$.dir 2>/dev/null
12982 if (echo >conf$$.file) 2>/dev/null; then
12983 if ln -s conf$$.file conf$$ 2>/dev/null; then
12985 # ... but there are two gotchas:
12986 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12987 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12988 # In both cases, we have to default to `cp -pR'.
12989 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12991 elif ln conf$$.file conf$$ 2>/dev/null; then
12999 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13000 rmdir conf$$.dir 2>/dev/null
13005 # Create "$as_dir" as a directory, including parents if necessary.
13010 -*) as_dir=./$as_dir;;
13012 test -d "$as_dir" || eval $as_mkdir_p || {
13016 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13017 *) as_qdir=$as_dir;;
13019 as_dirs="'$as_qdir' $as_dirs"
13020 as_dir=`$as_dirname -- "$as_dir" ||
13021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13022 X"$as_dir" : 'X\(//\)[^/]' \| \
13023 X"$as_dir" : 'X\(//\)$' \| \
13024 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13025 $as_echo X"$as_dir" |
13026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13030 /^X\(\/\/\)[^/].*/{
13043 test -d "$as_dir" && break
13045 test -z "$as_dirs" || eval "mkdir $as_dirs"
13046 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13050 if mkdir -p . 2>/dev/null; then
13051 as_mkdir_p='mkdir -p "$as_dir"'
13053 test -d ./-p && rmdir ./-p
13058 # as_fn_executable_p FILE
13059 # -----------------------
13060 # Test if FILE is an executable regular file.
13061 as_fn_executable_p ()
13063 test -f "$1" && test -x "$1"
13064 } # as_fn_executable_p
13065 as_test_x='test -x'
13066 as_executable_p=as_fn_executable_p
13068 # Sed expression to map a string onto a valid CPP name.
13069 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13071 # Sed expression to map a string onto a valid variable name.
13072 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13076 ## ----------------------------------- ##
13077 ## Main body of $CONFIG_STATUS script. ##
13078 ## ----------------------------------- ##
13080 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13083 # Save the log message, to keep $0 and so on meaningful, and to
13084 # report actual input values of CONFIG_FILES etc. instead of their
13085 # values after options handling.
13087 This file was extended by $as_me, which was
13088 generated by GNU Autoconf 2.69. Invocation command line was
13090 CONFIG_FILES = $CONFIG_FILES
13091 CONFIG_HEADERS = $CONFIG_HEADERS
13092 CONFIG_LINKS = $CONFIG_LINKS
13093 CONFIG_COMMANDS = $CONFIG_COMMANDS
13096 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13101 case $ac_config_files in *"
13102 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13105 case $ac_config_headers in *"
13106 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13111 # Files that config.status was made for.
13112 config_files="$ac_config_files"
13113 config_headers="$ac_config_headers"
13114 config_commands="$ac_config_commands"
13118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13120 \`$as_me' instantiates files and other configuration actions
13121 from templates according to the current configuration. Unless the files
13122 and actions are specified as TAGs, all are instantiated by default.
13124 Usage: $0 [OPTION]... [TAG]...
13126 -h, --help print this help, then exit
13127 -V, --version print version number and configuration settings, then exit
13128 --config print configuration, then exit
13129 -q, --quiet, --silent
13130 do not print progress messages
13131 -d, --debug don't remove temporary files
13132 --recheck update $as_me by reconfiguring in the same conditions
13133 --file=FILE[:TEMPLATE]
13134 instantiate the configuration file FILE
13135 --header=FILE[:TEMPLATE]
13136 instantiate the configuration header FILE
13138 Configuration files:
13141 Configuration headers:
13144 Configuration commands:
13147 Report bugs to the package provider."
13150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13151 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13154 configured by $0, generated by GNU Autoconf 2.69,
13155 with options \\"\$ac_cs_config\\"
13157 Copyright (C) 2012 Free Software Foundation, Inc.
13158 This config.status script is free software; the Free Software Foundation
13159 gives unlimited permission to copy, distribute and modify it."
13164 test -n "\$AWK" || AWK=awk
13167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13168 # The default lists apply if the user does not specify any file.
13174 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13175 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13179 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13191 # Handling of the options.
13192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13194 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13195 $as_echo "$ac_cs_version"; exit ;;
13196 --config | --confi | --conf | --con | --co | --c )
13197 $as_echo "$ac_cs_config"; exit ;;
13198 --debug | --debu | --deb | --de | --d | -d )
13200 --file | --fil | --fi | --f )
13203 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13204 '') as_fn_error $? "missing file argument" ;;
13206 as_fn_append CONFIG_FILES " '$ac_optarg'"
13207 ac_need_defaults=false;;
13208 --header | --heade | --head | --hea )
13211 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13213 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13214 ac_need_defaults=false;;
13216 # Conflict between --help and --header
13217 as_fn_error $? "ambiguous option: \`$1'
13218 Try \`$0 --help' for more information.";;
13219 --help | --hel | -h )
13220 $as_echo "$ac_cs_usage"; exit ;;
13221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13222 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13225 # This is an error.
13226 -*) as_fn_error $? "unrecognized option: \`$1'
13227 Try \`$0 --help' for more information." ;;
13229 *) as_fn_append ac_config_targets " $1"
13230 ac_need_defaults=false ;;
13236 ac_configure_extra_args=
13238 if $ac_cs_silent; then
13240 ac_configure_extra_args="$ac_configure_extra_args --silent"
13244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13245 if \$ac_cs_recheck; then
13246 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13248 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13249 CONFIG_SHELL='$SHELL'
13250 export CONFIG_SHELL
13255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13259 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13260 ## Running $as_me. ##
13266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13272 # The HP-UX ksh and POSIX shell print the target directory to stdout
13273 # if CDPATH is set.
13274 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13276 sed_quote_subst='$sed_quote_subst'
13277 double_quote_subst='$double_quote_subst'
13278 delay_variable_subst='$delay_variable_subst'
13279 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13280 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13281 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13282 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13283 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13284 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13285 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13286 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13287 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13288 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13289 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13290 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13291 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13292 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13293 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13294 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13295 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13296 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13297 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13298 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13299 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13300 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13301 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13302 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13303 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13304 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13305 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13306 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13307 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13308 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13309 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13310 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13311 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13312 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13313 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13314 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13315 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13316 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13317 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13318 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13319 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13320 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13321 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13322 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13323 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13324 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13325 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13326 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13327 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13328 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13329 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13330 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13331 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13332 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13333 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13334 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13335 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"`'
13336 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13337 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13338 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13339 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13340 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13341 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13342 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13343 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13344 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13345 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13346 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13347 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13348 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13349 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13350 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13351 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13352 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13353 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13354 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13355 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13356 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13357 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13358 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13359 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13360 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13361 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13362 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13363 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13364 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13365 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13366 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13367 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13368 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13369 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13370 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13371 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13372 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13373 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13374 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13375 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13376 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13377 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13378 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13379 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13380 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13381 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13382 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13383 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13384 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13385 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13386 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13387 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13388 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13389 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13390 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13391 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13392 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13393 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13394 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13395 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13396 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13397 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13398 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13399 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13400 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13401 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13402 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13403 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13404 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13405 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13406 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13407 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13408 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13411 LTCFLAGS='$LTCFLAGS'
13412 compiler='$compiler_DEFAULT'
13414 # A function that is used when there is no print builtin or printf.
13415 func_fallback_echo ()
13417 eval 'cat <<_LTECHO_EOF
13422 # Quote evaled strings.
13437 deplibs_check_method \
13442 sharedlib_from_linklib_cmd \
13445 archiver_list_spec \
13451 lt_cv_sys_global_symbol_pipe \
13452 lt_cv_sys_global_symbol_to_cdecl \
13453 lt_cv_sys_global_symbol_to_c_name_address \
13454 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13455 nm_file_list_spec \
13456 lt_prog_compiler_no_builtin_flag \
13457 lt_prog_compiler_pic \
13458 lt_prog_compiler_wl \
13459 lt_prog_compiler_static \
13460 lt_cv_prog_compiler_c_o \
13469 export_dynamic_flag_spec \
13470 whole_archive_flag_spec \
13471 compiler_needs_object \
13473 allow_undefined_flag \
13474 no_undefined_flag \
13475 hardcode_libdir_flag_spec \
13476 hardcode_libdir_separator \
13480 variables_saved_for_relink \
13482 library_names_spec \
13484 install_override_mode \
13488 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13489 *[\\\\\\\`\\"\\\$]*)
13490 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13493 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13498 # Double-quote double-evaled strings.
13499 for var in reload_cmds \
13500 old_postinstall_cmds \
13501 old_postuninstall_cmds \
13503 extract_expsyms_cmds \
13504 old_archive_from_new_cmds \
13505 old_archive_from_expsyms_cmds \
13507 archive_expsym_cmds \
13509 module_expsym_cmds \
13510 export_symbols_cmds \
13514 postuninstall_cmds \
13516 sys_lib_search_path_spec \
13517 sys_lib_dlsearch_path_spec; do
13518 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13519 *[\\\\\\\`\\"\\\$]*)
13520 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13523 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13528 ac_aux_dir='$ac_aux_dir'
13529 xsi_shell='$xsi_shell'
13530 lt_shell_append='$lt_shell_append'
13532 # See if we are running on zsh, and set the options which allow our
13533 # commands through without removal of \ escapes INIT.
13534 if test -n "\${ZSH_VERSION+set}" ; then
13535 setopt NO_GLOB_SUBST
13541 TIMESTAMP='$TIMESTAMP'
13550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13552 # Handling of arguments.
13553 for ac_config_target in $ac_config_targets
13555 case $ac_config_target in
13556 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13557 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13558 "include/builddefs") CONFIG_FILES="$CONFIG_FILES include/builddefs" ;;
13560 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13565 # If the user did not use the arguments to specify the items to instantiate,
13566 # then the envvar interface is used. Set only those that are not.
13567 # We use the long form for the default assignment because of an extremely
13568 # bizarre bug on SunOS 4.1.3.
13569 if $ac_need_defaults; then
13570 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13571 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13572 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13575 # Have a temporary directory for convenience. Make it in the build tree
13576 # simply because there is no reason against having it here, and in addition,
13577 # creating and moving files from /tmp can sometimes cause problems.
13578 # Hook for its removal unless debugging.
13579 # Note that there is a small window in which the directory will not be cleaned:
13580 # after its creation but before its name has been assigned to `$tmp'.
13584 trap 'exit_status=$?
13585 : "${ac_tmp:=$tmp}"
13586 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13588 trap 'as_fn_exit 1' 1 2 13 15
13590 # Create a (secure) tmp directory for tmp files.
13593 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13597 tmp=./conf$$-$RANDOM
13598 (umask 077 && mkdir "$tmp")
13599 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13602 # Set up the scripts for CONFIG_FILES section.
13603 # No need to generate them if there are no CONFIG_FILES.
13604 # This happens for instance with `./config.status config.h'.
13605 if test -n "$CONFIG_FILES"; then
13608 ac_cr=`echo X | tr X '\015'`
13609 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13610 # But we know of no other shell where ac_cr would be empty at this
13611 # point, so we can use a bashism as a fallback.
13612 if test "x$ac_cr" = x; then
13613 eval ac_cr=\$\'\\r\'
13615 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13616 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13619 ac_cs_awk_cr=$ac_cr
13622 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13627 echo "cat >conf$$subs.awk <<_ACEOF" &&
13628 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13630 } >conf$$subs.sh ||
13631 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13632 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13634 for ac_last_try in false false false false false :; do
13635 . ./conf$$subs.sh ||
13636 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13638 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13639 if test $ac_delim_n = $ac_delim_num; then
13641 elif $ac_last_try; then
13642 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13644 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13647 rm -f conf$$subs.sh
13649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13650 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13654 s/^/S["/; s/!.*/"]=/
13664 s/\(.\{148\}\)..*/\1/
13666 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13671 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13678 s/\(.\{148\}\)..*/\1/
13680 s/["\\]/\\&/g; s/^/"/; s/$/"/
13684 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13689 ' <conf$$subs.awk | sed '
13694 ' >>$CONFIG_STATUS || ac_write_fail=1
13695 rm -f conf$$subs.awk
13696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13698 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13699 for (key in S) S_is_set[key] = 1
13705 nfields = split(line, field, "@")
13707 len = length(field[1])
13708 for (i = 2; i < nfields; i++) {
13710 keylen = length(key)
13711 if (S_is_set[key]) {
13713 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13714 len += length(value) + length(field[++i])
13725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13726 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13727 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13730 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13731 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13734 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13735 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13736 # trailing colons and then remove the whole line if VPATH becomes empty
13737 # (actually we leave an empty line to preserve line numbers).
13738 if test "x$srcdir" = x.; then
13739 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13758 fi # test -n "$CONFIG_FILES"
13760 # Set up the scripts for CONFIG_HEADERS section.
13761 # No need to generate them if there are no CONFIG_HEADERS.
13762 # This happens for instance with `./config.status Makefile'.
13763 if test -n "$CONFIG_HEADERS"; then
13764 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13768 # Transform confdefs.h into an awk script `defines.awk', embedded as
13769 # here-document in config.status, that substitutes the proper values into
13770 # config.h.in to produce config.h.
13772 # Create a delimiter string that does not exist in confdefs.h, to ease
13773 # handling of long lines.
13775 for ac_last_try in false false :; do
13776 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13777 if test -z "$ac_tt"; then
13779 elif $ac_last_try; then
13780 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13786 # For the awk script, D is an array of macro values keyed by name,
13787 # likewise P contains macro parameters if any. Preserve backslash
13788 # newline sequences.
13790 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13792 s/.\{148\}/&'"$ac_delim"'/g
13795 s/^[ ]*#[ ]*define[ ][ ]*/ /
13802 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13804 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13808 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13809 D["\1"]=" \3\\\\\\n"\\/p
13811 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13816 s/.\{148\}/&'"$ac_delim"'/g
13821 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13824 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13826 ' <confdefs.h | sed '
13827 s/'"$ac_delim"'/"\\\
13828 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13831 for (key in D) D_is_set[key] = 1
13834 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13836 split(line, arg, " ")
13837 if (arg[1] == "#") {
13841 defundef = substr(arg[1], 2)
13844 split(mac1, mac2, "(") #)
13846 prefix = substr(line, 1, index(line, defundef) - 1)
13847 if (D_is_set[macro]) {
13848 # Preserve the white space surrounding the "#".
13849 print prefix "define", macro P[macro] D[macro]
13852 # Replace #undef with comments. This is necessary, for example,
13853 # in the case of _POSIX_SOURCE, which is predefined and required
13854 # on some systems where configure will not decide to define it.
13855 if (defundef == "undef") {
13856 print "/*", prefix defundef, macro, "*/"
13864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13865 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13866 fi # test -n "$CONFIG_HEADERS"
13869 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13874 :[FHLC]) ac_mode=$ac_tag; continue;;
13876 case $ac_mode$ac_tag in
13878 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13879 :[FH]-) ac_tag=-:-;;
13880 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13897 -) ac_f="$ac_tmp/stdin";;
13898 *) # Look for the file first in the build tree, then in the source tree
13899 # (if the path is not absolute). The absolute path cannot be DOS-style,
13900 # because $ac_f cannot contain `:'.
13904 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13906 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13908 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13909 as_fn_append ac_file_inputs " '$ac_f'"
13912 # Let's still pretend it is `configure' which instantiates (i.e., don't
13913 # use $as_me), people would be surprised to read:
13914 # /* config.h. Generated by config.status. */
13915 configure_input='Generated from '`
13916 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13918 if test x"$ac_file" != x-; then
13919 configure_input="$ac_file. $configure_input"
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13921 $as_echo "$as_me: creating $ac_file" >&6;}
13923 # Neutralize special characters interpreted by sed in replacement strings.
13924 case $configure_input in #(
13925 *\&* | *\|* | *\\* )
13926 ac_sed_conf_input=`$as_echo "$configure_input" |
13927 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13928 *) ac_sed_conf_input=$configure_input;;
13932 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13938 ac_dir=`$as_dirname -- "$ac_file" ||
13939 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13940 X"$ac_file" : 'X\(//\)[^/]' \| \
13941 X"$ac_file" : 'X\(//\)$' \| \
13942 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13943 $as_echo X"$ac_file" |
13944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13948 /^X\(\/\/\)[^/].*/{
13961 as_dir="$ac_dir"; as_fn_mkdir_p
13965 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13967 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13968 # A ".." for each directory in $ac_dir_suffix.
13969 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13970 case $ac_top_builddir_sub in
13971 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13972 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13975 ac_abs_top_builddir=$ac_pwd
13976 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13977 # for backward compatibility:
13978 ac_top_builddir=$ac_top_build_prefix
13981 .) # We are building in place.
13983 ac_top_srcdir=$ac_top_builddir_sub
13984 ac_abs_top_srcdir=$ac_pwd ;;
13985 [\\/]* | ?:[\\/]* ) # Absolute name.
13986 ac_srcdir=$srcdir$ac_dir_suffix;
13987 ac_top_srcdir=$srcdir
13988 ac_abs_top_srcdir=$srcdir ;;
13989 *) # Relative name.
13990 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13991 ac_top_srcdir=$ac_top_build_prefix$srcdir
13992 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13994 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14006 # If the template does not know about datarootdir, expand it.
14007 # FIXME: This hack should be removed a few years after 2.60.
14008 ac_datarootdir_hack=; ac_datarootdir_seen=
14019 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14020 *datarootdir*) ac_datarootdir_seen=yes;;
14021 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14023 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14026 ac_datarootdir_hack='
14027 s&@datadir@&$datadir&g
14028 s&@docdir@&$docdir&g
14029 s&@infodir@&$infodir&g
14030 s&@localedir@&$localedir&g
14031 s&@mandir@&$mandir&g
14032 s&\\\${datarootdir}&$datarootdir&g' ;;
14036 # Neutralize VPATH when `$srcdir' = `.'.
14037 # Shell code in configure.ac might set extrasub.
14038 # FIXME: do we really want to maintain this feature?
14039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14040 ac_sed_extra="$ac_vpsub
14043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14046 s|@configure_input@|$ac_sed_conf_input|;t t
14047 s&@top_builddir@&$ac_top_builddir_sub&;t t
14048 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14049 s&@srcdir@&$ac_srcdir&;t t
14050 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14051 s&@top_srcdir@&$ac_top_srcdir&;t t
14052 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14053 s&@builddir@&$ac_builddir&;t t
14054 s&@abs_builddir@&$ac_abs_builddir&;t t
14055 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14056 $ac_datarootdir_hack
14058 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14059 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14061 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14062 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14063 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14064 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14066 which seems to be undefined. Please make sure it is defined" >&5
14067 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14068 which seems to be undefined. Please make sure it is defined" >&2;}
14070 rm -f "$ac_tmp/stdin"
14072 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14073 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14081 if test x"$ac_file" != x-; then
14083 $as_echo "/* $configure_input */" \
14084 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14085 } >"$ac_tmp/config.h" \
14086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14087 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14089 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14092 mv "$ac_tmp/config.h" "$ac_file" \
14093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14096 $as_echo "/* $configure_input */" \
14097 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14098 || as_fn_error $? "could not create -" "$LINENO" 5
14102 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14103 $as_echo "$as_me: executing $ac_file commands" >&6;}
14108 case $ac_file$ac_mode in
14111 # See if we are running on zsh, and set the options which allow our
14112 # commands through without removal of \ escapes.
14113 if test -n "${ZSH_VERSION+set}" ; then
14114 setopt NO_GLOB_SUBST
14117 cfgfile="${ofile}T"
14118 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14121 cat <<_LT_EOF >> "$cfgfile"
14124 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14125 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14126 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14127 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14129 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14130 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14132 # Written by Gordon Matzigkeit, 1996
14134 # This file is part of GNU Libtool.
14136 # GNU Libtool is free software; you can redistribute it and/or
14137 # modify it under the terms of the GNU General Public License as
14138 # published by the Free Software Foundation; either version 2 of
14139 # the License, or (at your option) any later version.
14141 # As a special exception to the GNU General Public License,
14142 # if you distribute this file as part of a program or library that
14143 # is built using GNU Libtool, you may include this file under the
14144 # same distribution terms that you use for the rest of that program.
14146 # GNU Libtool is distributed in the hope that it will be useful,
14147 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14148 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14149 # GNU General Public License for more details.
14151 # You should have received a copy of the GNU General Public License
14152 # along with GNU Libtool; see the file COPYING. If not, a copy
14153 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14154 # obtained by writing to the Free Software Foundation, Inc.,
14155 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14158 # The names of the tagged configurations supported by this script.
14161 # ### BEGIN LIBTOOL CONFIG
14163 # Which release of libtool.m4 was used?
14164 macro_version=$macro_version
14165 macro_revision=$macro_revision
14167 # Whether or not to build shared libraries.
14168 build_libtool_libs=$enable_shared
14170 # Whether or not to build static libraries.
14171 build_old_libs=$enable_static
14173 # What type of objects to build.
14176 # Whether or not to optimize for fast installation.
14177 fast_install=$enable_fast_install
14179 # Shell to use when invoking shell scripts.
14182 # An echo program that protects backslashes.
14185 # The PATH separator for the build system.
14186 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14189 host_alias=$host_alias
14193 # The build system.
14194 build_alias=$build_alias
14198 # A sed program that does not truncate output.
14201 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14202 Xsed="\$SED -e 1s/^X//"
14204 # A grep program that handles long lines.
14210 # A literal string matcher.
14213 # A BSD- or MS-compatible name lister.
14216 # Whether we need soft or hard links.
14219 # What is the maximum length of a command?
14220 max_cmd_len=$max_cmd_len
14222 # Object file suffix (normally "o").
14225 # Executable file suffix (normally "").
14228 # whether the shell understands "unset".
14231 # turn spaces into newlines.
14234 # turn newlines into spaces.
14237 # convert \$build file names to \$host format.
14238 to_host_file_cmd=$lt_cv_to_host_file_cmd
14240 # convert \$build files to toolchain format.
14241 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14243 # An object symbol dumper.
14244 OBJDUMP=$lt_OBJDUMP
14246 # Method to check whether dependent libraries are shared objects.
14247 deplibs_check_method=$lt_deplibs_check_method
14249 # Command to use when deplibs_check_method = "file_magic".
14250 file_magic_cmd=$lt_file_magic_cmd
14252 # How to find potential files when deplibs_check_method = "file_magic".
14253 file_magic_glob=$lt_file_magic_glob
14255 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14256 want_nocaseglob=$lt_want_nocaseglob
14258 # DLL creation program.
14259 DLLTOOL=$lt_DLLTOOL
14261 # Command to associate shared and link libraries.
14262 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14267 # Flags to create an archive.
14268 AR_FLAGS=$lt_AR_FLAGS
14270 # How to feed a file listing to the archiver.
14271 archiver_list_spec=$lt_archiver_list_spec
14273 # A symbol stripping program.
14276 # Commands used to install an old-style archive.
14278 old_postinstall_cmds=$lt_old_postinstall_cmds
14279 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14281 # Whether to use a lock for old archive extraction.
14282 lock_old_archive_extraction=$lock_old_archive_extraction
14287 # LTCC compiler flags.
14288 LTCFLAGS=$lt_CFLAGS
14290 # Take the output of nm and produce a listing of raw symbols and C names.
14291 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14293 # Transform the output of nm in a proper C declaration.
14294 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14296 # Transform the output of nm in a C name address pair.
14297 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14299 # Transform the output of nm in a C name address pair when lib prefix is needed.
14300 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14302 # Specify filename containing input files for \$NM.
14303 nm_file_list_spec=$lt_nm_file_list_spec
14305 # The root where to search for dependent libraries,and in which our libraries should be installed.
14306 lt_sysroot=$lt_sysroot
14308 # The name of the directory that contains temporary libtool files.
14311 # Used to examine libraries when file_magic_cmd begins with "file".
14312 MAGIC_CMD=$MAGIC_CMD
14314 # Must we lock files when doing compilation?
14315 need_locks=$lt_need_locks
14318 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14320 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14321 DSYMUTIL=$lt_DSYMUTIL
14323 # Tool to change global to local symbols on Mac OS X.
14326 # Tool to manipulate fat objects and archives on Mac OS X.
14329 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14332 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14333 OTOOL64=$lt_OTOOL64
14335 # Old archive suffix (normally "a").
14338 # Shared library suffix (normally ".so").
14339 shrext_cmds=$lt_shrext_cmds
14341 # The commands to extract the exported symbol list from a shared archive.
14342 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14344 # Variables whose values should be saved in libtool wrapper scripts and
14345 # restored at link time.
14346 variables_saved_for_relink=$lt_variables_saved_for_relink
14348 # Do we need the "lib" prefix for modules?
14349 need_lib_prefix=$need_lib_prefix
14351 # Do we need a version for libraries?
14352 need_version=$need_version
14354 # Library versioning type.
14355 version_type=$version_type
14357 # Shared library runtime path variable.
14358 runpath_var=$runpath_var
14360 # Shared library path variable.
14361 shlibpath_var=$shlibpath_var
14363 # Is shlibpath searched before the hard-coded library search path?
14364 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14366 # Format of library name prefix.
14367 libname_spec=$lt_libname_spec
14369 # List of archive names. First name is the real one, the rest are links.
14370 # The last name is the one that the linker finds with -lNAME
14371 library_names_spec=$lt_library_names_spec
14373 # The coded name of the library, if different from the real name.
14374 soname_spec=$lt_soname_spec
14376 # Permission mode override for installation of shared libraries.
14377 install_override_mode=$lt_install_override_mode
14379 # Command to use after installation of a shared archive.
14380 postinstall_cmds=$lt_postinstall_cmds
14382 # Command to use after uninstallation of a shared archive.
14383 postuninstall_cmds=$lt_postuninstall_cmds
14385 # Commands used to finish a libtool library installation in a directory.
14386 finish_cmds=$lt_finish_cmds
14388 # As "finish_cmds", except a single script fragment to be evaled but
14390 finish_eval=$lt_finish_eval
14392 # Whether we should hardcode library paths into libraries.
14393 hardcode_into_libs=$hardcode_into_libs
14395 # Compile-time system search path for libraries.
14396 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14398 # Run-time system search path for libraries.
14399 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14401 # Whether dlopen is supported.
14402 dlopen_support=$enable_dlopen
14404 # Whether dlopen of programs is supported.
14405 dlopen_self=$enable_dlopen_self
14407 # Whether dlopen of statically linked programs is supported.
14408 dlopen_self_static=$enable_dlopen_self_static
14410 # Commands to strip libraries.
14411 old_striplib=$lt_old_striplib
14412 striplib=$lt_striplib
14415 # The linker used to build libraries.
14418 # How to create reloadable object files.
14419 reload_flag=$lt_reload_flag
14420 reload_cmds=$lt_reload_cmds
14422 # Commands used to build an old-style archive.
14423 old_archive_cmds=$lt_old_archive_cmds
14425 # A language specific compiler.
14428 # Is the compiler the GNU compiler?
14431 # Compiler flag to turn off builtin functions.
14432 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14434 # Additional compiler flags for building library objects.
14435 pic_flag=$lt_lt_prog_compiler_pic
14437 # How to pass a linker flag through the compiler.
14438 wl=$lt_lt_prog_compiler_wl
14440 # Compiler flag to prevent dynamic linking.
14441 link_static_flag=$lt_lt_prog_compiler_static
14443 # Does compiler simultaneously support -c and -o options?
14444 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14446 # Whether or not to add -lc for building shared libraries.
14447 build_libtool_need_lc=$archive_cmds_need_lc
14449 # Whether or not to disallow shared libs when runtime libs are static.
14450 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14452 # Compiler flag to allow reflexive dlopens.
14453 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14455 # Compiler flag to generate shared objects directly from archives.
14456 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14458 # Whether the compiler copes with passing no objects directly.
14459 compiler_needs_object=$lt_compiler_needs_object
14461 # Create an old-style archive from a shared archive.
14462 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14464 # Create a temporary old-style archive to link instead of a shared archive.
14465 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14467 # Commands used to build a shared archive.
14468 archive_cmds=$lt_archive_cmds
14469 archive_expsym_cmds=$lt_archive_expsym_cmds
14471 # Commands used to build a loadable module if different from building
14472 # a shared archive.
14473 module_cmds=$lt_module_cmds
14474 module_expsym_cmds=$lt_module_expsym_cmds
14476 # Whether we are building with GNU ld or not.
14477 with_gnu_ld=$lt_with_gnu_ld
14479 # Flag that allows shared libraries with undefined symbols to be built.
14480 allow_undefined_flag=$lt_allow_undefined_flag
14482 # Flag that enforces no undefined symbols.
14483 no_undefined_flag=$lt_no_undefined_flag
14485 # Flag to hardcode \$libdir into a binary during linking.
14486 # This must work even if \$libdir does not exist
14487 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14489 # Whether we need a single "-rpath" flag with a separated argument.
14490 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14492 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14493 # DIR into the resulting binary.
14494 hardcode_direct=$hardcode_direct
14496 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14497 # DIR into the resulting binary and the resulting library dependency is
14498 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14499 # library is relocated.
14500 hardcode_direct_absolute=$hardcode_direct_absolute
14502 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14503 # into the resulting binary.
14504 hardcode_minus_L=$hardcode_minus_L
14506 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14507 # into the resulting binary.
14508 hardcode_shlibpath_var=$hardcode_shlibpath_var
14510 # Set to "yes" if building a shared library automatically hardcodes DIR
14511 # into the library and all subsequent libraries and executables linked
14513 hardcode_automatic=$hardcode_automatic
14515 # Set to yes if linker adds runtime paths of dependent libraries
14516 # to runtime path list.
14517 inherit_rpath=$inherit_rpath
14519 # Whether libtool must link a program against all its dependency libraries.
14520 link_all_deplibs=$link_all_deplibs
14522 # Set to "yes" if exported symbols are required.
14523 always_export_symbols=$always_export_symbols
14525 # The commands to list exported symbols.
14526 export_symbols_cmds=$lt_export_symbols_cmds
14528 # Symbols that should not be listed in the preloaded symbols.
14529 exclude_expsyms=$lt_exclude_expsyms
14531 # Symbols that must always be exported.
14532 include_expsyms=$lt_include_expsyms
14534 # Commands necessary for linking programs (against libraries) with templates.
14535 prelink_cmds=$lt_prelink_cmds
14537 # Commands necessary for finishing linking programs.
14538 postlink_cmds=$lt_postlink_cmds
14540 # Specify filename containing input files.
14541 file_list_spec=$lt_file_list_spec
14543 # How to hardcode a shared library path into an executable.
14544 hardcode_action=$hardcode_action
14546 # ### END LIBTOOL CONFIG
14552 cat <<\_LT_EOF >> "$cfgfile"
14553 # AIX sometimes has problems with the GCC collect2 program. For some
14554 # reason, if we set the COLLECT_NAMES environment variable, the problems
14555 # vanish in a puff of smoke.
14556 if test "X${COLLECT_NAMES+set}" != Xset; then
14558 export COLLECT_NAMES
14565 ltmain="$ac_aux_dir/ltmain.sh"
14568 # We use sed instead of cat because bash on DJGPP gets confused if
14569 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14570 # text mode, it properly converts lines to CR/LF. This bash problem
14571 # is reportedly fixed, but why not run on old versions too?
14572 sed '$q' "$ltmain" >> "$cfgfile" \
14573 || (rm -f "$cfgfile"; exit 1)
14575 if test x"$xsi_shell" = xyes; then
14576 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14580 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14581 \ * ) func_dirname_result="${3}" ;;\
14583 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14584 && mv -f "$cfgfile.tmp" "$cfgfile" \
14585 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14586 test 0 -eq $? || _lt_function_replace_fail=:
14589 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14592 \ func_basename_result="${1##*/}"\
14593 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14594 && mv -f "$cfgfile.tmp" "$cfgfile" \
14595 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14596 test 0 -eq $? || _lt_function_replace_fail=:
14599 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14600 func_dirname_and_basename ()\
14603 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14604 \ * ) func_dirname_result="${3}" ;;\
14606 \ func_basename_result="${1##*/}"\
14607 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14608 && mv -f "$cfgfile.tmp" "$cfgfile" \
14609 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14610 test 0 -eq $? || _lt_function_replace_fail=:
14613 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14616 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14617 \ # positional parameters, so assign one to ordinary parameter first.\
14618 \ func_stripname_result=${3}\
14619 \ func_stripname_result=${func_stripname_result#"${1}"}\
14620 \ func_stripname_result=${func_stripname_result%"${2}"}\
14621 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14622 && mv -f "$cfgfile.tmp" "$cfgfile" \
14623 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14624 test 0 -eq $? || _lt_function_replace_fail=:
14627 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14628 func_split_long_opt ()\
14630 \ func_split_long_opt_name=${1%%=*}\
14631 \ func_split_long_opt_arg=${1#*=}\
14632 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14633 && mv -f "$cfgfile.tmp" "$cfgfile" \
14634 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14635 test 0 -eq $? || _lt_function_replace_fail=:
14638 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14639 func_split_short_opt ()\
14641 \ func_split_short_opt_arg=${1#??}\
14642 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14643 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14644 && mv -f "$cfgfile.tmp" "$cfgfile" \
14645 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14646 test 0 -eq $? || _lt_function_replace_fail=:
14649 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14653 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14654 \ *) func_lo2o_result=${1} ;;\
14656 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14657 && mv -f "$cfgfile.tmp" "$cfgfile" \
14658 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14659 test 0 -eq $? || _lt_function_replace_fail=:
14662 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14665 func_xform_result=${1%.*}.lo\
14666 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14667 && mv -f "$cfgfile.tmp" "$cfgfile" \
14668 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14669 test 0 -eq $? || _lt_function_replace_fail=:
14672 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14675 func_arith_result=$(( $* ))\
14676 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14677 && mv -f "$cfgfile.tmp" "$cfgfile" \
14678 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14679 test 0 -eq $? || _lt_function_replace_fail=:
14682 sed -e '/^func_len ()$/,/^} # func_len /c\
14685 func_len_result=${#1}\
14686 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14687 && mv -f "$cfgfile.tmp" "$cfgfile" \
14688 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14689 test 0 -eq $? || _lt_function_replace_fail=:
14693 if test x"$lt_shell_append" = xyes; then
14694 sed -e '/^func_append ()$/,/^} # func_append /c\
14697 eval "${1}+=\\${2}"\
14698 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14699 && mv -f "$cfgfile.tmp" "$cfgfile" \
14700 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14701 test 0 -eq $? || _lt_function_replace_fail=:
14704 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14705 func_append_quoted ()\
14707 \ func_quote_for_eval "${2}"\
14708 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14709 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14710 && mv -f "$cfgfile.tmp" "$cfgfile" \
14711 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14712 test 0 -eq $? || _lt_function_replace_fail=:
14715 # Save a `func_append' function call where possible by direct use of '+='
14716 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14717 && mv -f "$cfgfile.tmp" "$cfgfile" \
14718 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14719 test 0 -eq $? || _lt_function_replace_fail=:
14721 # Save a `func_append' function call even when '+=' is not available
14722 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $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 if test x"$_lt_function_replace_fail" = x":"; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14730 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14734 mv -f "$cfgfile" "$ofile" ||
14735 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14746 ac_clean_files=$ac_clean_files_save
14748 test $ac_write_fail = 0 ||
14749 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14752 # configure is writing to config.log, and then calls config.status.
14753 # config.status does its own redirection, appending to config.log.
14754 # Unfortunately, on DOS this fails, as config.log is still kept open
14755 # by configure, so config.status won't be able to write to it; its
14756 # output is simply discarded. So we exec the FD to /dev/null,
14757 # effectively closing config.log, so it can be properly (re)opened and
14758 # appended to by config.status. When coming back to configure, we
14759 # need to make the FD available again.
14760 if test "$no_create" != yes; then
14762 ac_config_status_args=
14763 test "$silent" = yes &&
14764 ac_config_status_args="$ac_config_status_args --quiet"
14766 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14768 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14769 # would make configure fail if this is the last instruction.
14770 $ac_cs_success || as_fn_exit 1
14772 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14774 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}