2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for HarfBuzz 2.6.4.
5 # Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://github.com/harfbuzz/harfbuzz/issues/new about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='HarfBuzz'
592 PACKAGE_TARNAME='harfbuzz'
593 PACKAGE_VERSION='2.6.4'
594 PACKAGE_STRING='HarfBuzz 2.6.4'
595 PACKAGE_BUGREPORT='https://github.com/harfbuzz/harfbuzz/issues/new'
596 PACKAGE_URL='http://harfbuzz.org/'
598 ac_unique_file="src/harfbuzz.pc.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
643 HAVE_DIRECTWRITE_FALSE
644 HAVE_DIRECTWRITE_TRUE
665 HAVE_ICU_BUILTIN_FALSE
666 HAVE_ICU_BUILTIN_TRUE
672 HAVE_FONTCONFIG_FALSE
684 HAVE_INTROSPECTION_FALSE
685 HAVE_INTROSPECTION_TRUE
686 INTROSPECTION_MAKEFILE
689 INTROSPECTION_TYPELIBDIR
691 INTROSPECTION_GENERATE
692 INTROSPECTION_COMPILER
693 INTROSPECTION_SCANNER
715 GTK_DOC_USE_REBASE_FALSE
716 GTK_DOC_USE_REBASE_TRUE
717 GTK_DOC_USE_LIBTOOL_FALSE
718 GTK_DOC_USE_LIBTOOL_TRUE
719 GTK_DOC_BUILD_PDF_FALSE
720 GTK_DOC_BUILD_PDF_TRUE
721 GTK_DOC_BUILD_HTML_FALSE
722 GTK_DOC_BUILD_HTML_TRUE
736 HB_LIBTOOL_VERSION_INFO
801 CODE_COVERAGE_LDFLAGS
803 CODE_COVERAGE_CXXFLAGS
805 CODE_COVERAGE_CPPFLAGS
809 CODE_COVERAGE_ENABLED
810 CODE_COVERAGE_ENABLED_FALSE
811 CODE_COVERAGE_ENABLED_TRUE
825 INSTALL_STRIP_PROGRAM
867 program_transform_name
881 enable_option_checking
885 enable_dependency_tracking
913 ac_precious_vars='build_alias
950 # Initialize some variables set by options.
952 ac_init_version=false
953 ac_unrecognized_opts=
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
964 program_transform_name=s,x,x,
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989 infodir='${datarootdir}/info'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
1004 eval $ac_prev=\$ac_option
1010 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1017 case $ac_dashdash$ac_option in
1021 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024 bindir=$ac_optarg ;;
1026 -build | --build | --buil | --bui | --bu)
1027 ac_prev=build_alias ;;
1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029 build_alias=$ac_optarg ;;
1031 -cache-file | --cache-file | --cache-fil | --cache-fi \
1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033 ac_prev=cache_file ;;
1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036 cache_file=$ac_optarg ;;
1038 --config-cache | -C)
1039 cache_file=config.cache ;;
1041 -datadir | --datadir | --datadi | --datad)
1043 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044 datadir=$ac_optarg ;;
1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047 | --dataroo | --dataro | --datar)
1048 ac_prev=datarootdir ;;
1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051 datarootdir=$ac_optarg ;;
1053 -disable-* | --disable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid feature name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_$ac_useropt"
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1067 eval enable_$ac_useropt=no ;;
1069 -docdir | --docdir | --docdi | --doc | --do)
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
1079 -enable-* | --enable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error $? "invalid feature name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_$ac_useropt"
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1093 eval enable_$ac_useropt=\$ac_optarg ;;
1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097 | --exec | --exe | --ex)
1098 ac_prev=exec_prefix ;;
1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101 | --exec=* | --exe=* | --ex=*)
1102 exec_prefix=$ac_optarg ;;
1104 -gas | --gas | --ga | --g)
1105 # Obsolete; use --with-gas.
1108 -help | --help | --hel | --he | -h)
1109 ac_init_help=long ;;
1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111 ac_init_help=recursive ;;
1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113 ac_init_help=short ;;
1115 -host | --host | --hos | --ho)
1116 ac_prev=host_alias ;;
1117 -host=* | --host=* | --hos=* | --ho=*)
1118 host_alias=$ac_optarg ;;
1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124 htmldir=$ac_optarg ;;
1126 -includedir | --includedir | --includedi | --included | --include \
1127 | --includ | --inclu | --incl | --inc)
1128 ac_prev=includedir ;;
1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130 | --includ=* | --inclu=* | --incl=* | --inc=*)
1131 includedir=$ac_optarg ;;
1133 -infodir | --infodir | --infodi | --infod | --info | --inf)
1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136 infodir=$ac_optarg ;;
1138 -libdir | --libdir | --libdi | --libd)
1140 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141 libdir=$ac_optarg ;;
1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144 | --libexe | --libex | --libe)
1145 ac_prev=libexecdir ;;
1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147 | --libexe=* | --libex=* | --libe=*)
1148 libexecdir=$ac_optarg ;;
1150 -localedir | --localedir | --localedi | --localed | --locale)
1151 ac_prev=localedir ;;
1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153 localedir=$ac_optarg ;;
1155 -localstatedir | --localstatedir | --localstatedi | --localstated \
1156 | --localstate | --localstat | --localsta | --localst | --locals)
1157 ac_prev=localstatedir ;;
1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160 localstatedir=$ac_optarg ;;
1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165 mandir=$ac_optarg ;;
1167 -nfp | --nfp | --nf)
1168 # Obsolete; use --without-fp.
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n)
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181 | --oldin | --oldi | --old | --ol | --o)
1182 ac_prev=oldincludedir ;;
1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186 oldincludedir=$ac_optarg ;;
1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191 prefix=$ac_optarg ;;
1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194 | --program-pre | --program-pr | --program-p)
1195 ac_prev=program_prefix ;;
1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198 program_prefix=$ac_optarg ;;
1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201 | --program-suf | --program-su | --program-s)
1202 ac_prev=program_suffix ;;
1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205 program_suffix=$ac_optarg ;;
1207 -program-transform-name | --program-transform-name \
1208 | --program-transform-nam | --program-transform-na \
1209 | --program-transform-n | --program-transform- \
1210 | --program-transform | --program-transfor \
1211 | --program-transfo | --program-transf \
1212 | --program-trans | --program-tran \
1213 | --progr-tra | --program-tr | --program-t)
1214 ac_prev=program_transform_name ;;
1215 -program-transform-name=* | --program-transform-name=* \
1216 | --program-transform-nam=* | --program-transform-na=* \
1217 | --program-transform-n=* | --program-transform-=* \
1218 | --program-transform=* | --program-transfor=* \
1219 | --program-transfo=* | --program-transf=* \
1220 | --program-trans=* | --program-tran=* \
1221 | --progr-tra=* | --program-tr=* | --program-t=*)
1222 program_transform_name=$ac_optarg ;;
1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227 pdfdir=$ac_optarg ;;
1229 -psdir | --psdir | --psdi | --psd | --ps)
1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242 sbindir=$ac_optarg ;;
1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246 | --sharedst | --shareds | --shared | --share | --shar \
1248 ac_prev=sharedstatedir ;;
1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253 sharedstatedir=$ac_optarg ;;
1255 -site | --site | --sit)
1257 -site=* | --site=* | --sit=*)
1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263 srcdir=$ac_optarg ;;
1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266 | --syscon | --sysco | --sysc | --sys | --sy)
1267 ac_prev=sysconfdir ;;
1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270 sysconfdir=$ac_optarg ;;
1272 -target | --target | --targe | --targ | --tar | --ta | --t)
1273 ac_prev=target_alias ;;
1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275 target_alias=$ac_optarg ;;
1277 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280 -version | --version | --versio | --versi | --vers | -V)
1281 ac_init_version=: ;;
1284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287 as_fn_error $? "invalid package name: $ac_useropt"
1288 ac_useropt_orig=$ac_useropt
1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1295 ac_unrecognized_sep=', ';;
1297 eval with_$ac_useropt=\$ac_optarg ;;
1299 -without-* | --without-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 as_fn_error $? "invalid package name: $ac_useropt"
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1313 eval with_$ac_useropt=no ;;
1316 # Obsolete; use --with-x.
1319 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1320 | --x-incl | --x-inc | --x-in | --x-i)
1321 ac_prev=x_includes ;;
1322 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1323 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1324 x_includes=$ac_optarg ;;
1326 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1327 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1328 ac_prev=x_libraries ;;
1329 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1330 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1331 x_libraries=$ac_optarg ;;
1333 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1334 Try \`$0 --help' for more information"
1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339 # Reject names that are not valid shell variable names.
1340 case $ac_envvar in #(
1341 '' | [0-9]* | *[!_$as_cr_alnum]* )
1342 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1344 eval $ac_envvar=\$ac_optarg
1345 export $ac_envvar ;;
1348 # FIXME: should be removed in autoconf 3.0.
1349 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1358 if test -n "$ac_prev"; then
1359 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1360 as_fn_error $? "missing argument to $ac_option"
1363 if test -n "$ac_unrecognized_opts"; then
1364 case $enable_option_checking in
1366 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1367 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1371 # Check all directory arguments for consistency.
1372 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373 datadir sysconfdir sharedstatedir localstatedir includedir \
1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375 libdir localedir mandir
1377 eval ac_val=\$$ac_var
1378 # Remove trailing slashes.
1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382 eval $ac_var=\$ac_val;;
1384 # Be sure to have absolute directory names.
1386 [\\/$]* | ?:[\\/]* ) continue;;
1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1389 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1392 # There might be people who depend on the old broken behavior: `$host'
1393 # used to hold the argument of --host etc.
1394 # FIXME: To remove some day.
1397 target=$target_alias
1399 # FIXME: To remove some day.
1400 if test "x$host_alias" != x; then
1401 if test "x$build_alias" = x; then
1402 cross_compiling=maybe
1403 elif test "x$build_alias" != "x$host_alias"; then
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411 test "$silent" = yes && exec 6>/dev/null
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error $? "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error $? "pwd does not report name of working directory"
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1454 ac_srcdir_defaulted=no
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474 for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1482 # Report the --help message.
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1488 \`configure' configures HarfBuzz 2.6.4 to adapt to many kinds of systems.
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1495 Defaults for the options are specified in brackets.
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking ...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1519 For better control, use the options below.
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/harfbuzz]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1556 if test -n "$ac_init_help"; then
1557 case $ac_init_help in
1558 short | recursive ) echo "Configuration of HarfBuzz 2.6.4:";;
1563 --disable-option-checking ignore unrecognized --enable/--with options
1564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1566 --enable-silent-rules less verbose build output (undo: "make V=1")
1567 --disable-silent-rules verbose build output (undo: "make V=0")
1568 --enable-code-coverage Whether to enable code coverage support
1569 --enable-dependency-tracking
1570 do not reject slow dependency extractors
1571 --disable-dependency-tracking
1572 speeds up one-time build
1573 --enable-static[=PKGS] build static libraries [default=no]
1574 --enable-shared[=PKGS] build shared libraries [default=yes]
1575 --enable-fast-install[=PKGS]
1576 optimize for fast installation [default=yes]
1577 --disable-libtool-lock avoid locking (might break parallel builds)
1578 --disable-largefile omit support for large files
1579 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1580 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1581 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1582 --enable-introspection=[no/auto/yes]
1583 Enable introspection for this build
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1588 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1589 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1591 --with-aix-soname=aix|svr4|both
1592 shared library versioning (aka "SONAME") variant to
1593 provide on AIX, [default=aix].
1594 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1595 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1596 compiler's sysroot if not specified).
1597 --with-libstdc++=[yes/no]
1598 Allow linking with libstdc++ [default=no]
1599 --with-html-dir=PATH path to installed docs
1600 --with-glib=[yes/no/auto]
1601 Use glib [default=auto]
1602 --with-gobject=[yes/no/auto]
1603 Use gobject [default=no]
1604 --with-cairo=[yes/no/auto]
1605 Use cairo [default=auto]
1606 --with-fontconfig=[yes/no/auto]
1607 Use fontconfig [default=auto]
1608 --with-icu=[yes/no/builtin/auto]
1609 Use ICU [default=auto]
1610 --with-graphite2=[yes/no/auto]
1611 Use the graphite2 library [default=no]
1612 --with-freetype=[yes/no/auto]
1613 Use the FreeType library [default=auto]
1614 --with-uniscribe=[yes/no/auto]
1615 Use the Uniscribe library [default=no]
1616 --with-gdi=[yes/no/auto]
1617 Provide GDI integration helpers [default=no]
1618 --with-directwrite=[yes/no/auto]
1619 Use the DirectWrite library (experimental)
1621 --with-coretext=[yes/no/auto]
1622 Use CoreText [default=no]
1624 Some influential environment variables:
1625 CC C compiler command
1626 CFLAGS C compiler flags
1627 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1628 nonstandard directory <lib dir>
1629 LIBS libraries to pass to the linker, e.g. -l<library>
1630 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1631 you have headers in a nonstandard directory <include dir>
1633 User-defined run-time library search path.
1635 CXX C++ compiler command
1636 CXXFLAGS C++ compiler flags
1637 CXXCPP C++ preprocessor
1638 PKG_CONFIG path to pkg-config utility
1640 directories to add to pkg-config's search path
1642 path overriding pkg-config's built-in search path
1644 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1646 linker flags for GTKDOC_DEPS, overriding pkg-config
1647 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1648 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1650 C compiler flags for GOBJECT, overriding pkg-config
1652 linker flags for GOBJECT, overriding pkg-config
1654 C compiler flags for CAIRO, overriding pkg-config
1655 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1657 C compiler flags for CAIRO_FT, overriding pkg-config
1659 linker flags for CAIRO_FT, overriding pkg-config
1661 C compiler flags for FONTCONFIG, overriding pkg-config
1663 linker flags for FONTCONFIG, overriding pkg-config
1664 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1665 ICU_LIBS linker flags for ICU, overriding pkg-config
1667 C compiler flags for GRAPHITE2, overriding pkg-config
1669 linker flags for GRAPHITE2, overriding pkg-config
1671 C compiler flags for FREETYPE, overriding pkg-config
1673 linker flags for FREETYPE, overriding pkg-config
1675 Use these variables to override the choices made by `configure' or to help
1676 it to find libraries and programs with nonstandard names/locations.
1678 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
1679 HarfBuzz home page: <http://harfbuzz.org/>.
1684 if test "$ac_init_help" = "recursive"; then
1685 # If there are subdirs, report their specific --help.
1686 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1687 test -d "$ac_dir" ||
1688 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1693 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1696 # A ".." for each directory in $ac_dir_suffix.
1697 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1698 case $ac_top_builddir_sub in
1699 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1703 ac_abs_top_builddir=$ac_pwd
1704 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1705 # for backward compatibility:
1706 ac_top_builddir=$ac_top_build_prefix
1709 .) # We are building in place.
1711 ac_top_srcdir=$ac_top_builddir_sub
1712 ac_abs_top_srcdir=$ac_pwd ;;
1713 [\\/]* | ?:[\\/]* ) # Absolute name.
1714 ac_srcdir=$srcdir$ac_dir_suffix;
1715 ac_top_srcdir=$srcdir
1716 ac_abs_top_srcdir=$srcdir ;;
1718 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1719 ac_top_srcdir=$ac_top_build_prefix$srcdir
1720 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1722 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1724 cd "$ac_dir" || { ac_status=$?; continue; }
1725 # Check for guested configure.
1726 if test -f "$ac_srcdir/configure.gnu"; then
1728 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1729 elif test -f "$ac_srcdir/configure"; then
1731 $SHELL "$ac_srcdir/configure" --help=recursive
1733 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1735 cd "$ac_pwd" || { ac_status=$?; break; }
1739 test -n "$ac_init_help" && exit $ac_status
1740 if $ac_init_version; then
1742 HarfBuzz configure 2.6.4
1743 generated by GNU Autoconf 2.69
1745 Copyright (C) 2012 Free Software Foundation, Inc.
1746 This configure script is free software; the Free Software Foundation
1747 gives unlimited permission to copy, distribute and modify it.
1752 ## ------------------------ ##
1753 ## Autoconf initialization. ##
1754 ## ------------------------ ##
1756 # ac_fn_c_try_compile LINENO
1757 # --------------------------
1758 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_compile ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext
1763 if { { ac_try="$ac_compile"
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_compile") 2>conftest.err
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest.$ac_objext; then :
1784 $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1792 } # ac_fn_c_try_compile
1794 # ac_fn_c_try_link LINENO
1795 # -----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded.
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext conftest$ac_exeext
1801 if { { ac_try="$ac_link"
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>conftest.err
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_c_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest$ac_exeext && {
1820 test "$cross_compiling" = yes ||
1821 test -x conftest$ac_exeext
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1830 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1831 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1832 # interfere with the next link command; also delete a directory that is
1833 # left behind by Apple's compiler. We do this before executing the actions.
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1838 } # ac_fn_c_try_link
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1857 if ac_fn_c_try_compile "$LINENO"; then :
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 } # ac_fn_c_check_header_compile
1871 # ac_fn_c_try_cpp LINENO
1872 # ----------------------
1873 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 if { { ac_try="$ac_cpp conftest.$ac_ext"
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } > conftest.i && {
1893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 as_fn_set_status $ac_retval
1908 # ac_fn_c_try_run LINENO
1909 # ----------------------
1910 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1911 # that executables *can* be run.
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 if { { ac_try="$ac_link"
1917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918 *) ac_try_echo=$ac_try;;
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 $as_echo "$ac_try_echo"; } >&5
1922 (eval "$ac_link") 2>&5
1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1926 { { case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_try") 2>&5
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; }; }; then :
1938 $as_echo "$as_me: program exited with status $ac_status" >&5
1939 $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1942 ac_retval=$ac_status
1944 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 as_fn_set_status $ac_retval
1950 # ac_fn_c_check_func LINENO FUNC VAR
1951 # ----------------------------------
1952 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1953 ac_fn_c_check_func ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1965 #define $2 innocuous_$2
1967 /* System header to define __stub macros and hopefully few prototypes,
1968 which can conflict with char $2 (); below.
1969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1970 <limits.h> exists even on freestanding compilers. */
1973 # include <limits.h>
1975 # include <assert.h>
1980 /* Override any GCC internal prototype to avoid an error.
1981 Use char because int might match the return type of a GCC
1982 builtin and then its argument prototype would still apply. */
1987 /* The GNU C library defines this for functions which it implements
1988 to always fail with ENOSYS. Some functions are actually named
1989 something starting with __ and the normal name is an alias. */
1990 #if defined __stub_$2 || defined __stub___$2
2002 if ac_fn_c_try_link "$LINENO"; then :
2007 rm -f core conftest.err conftest.$ac_objext \
2008 conftest$ac_exeext conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 } # ac_fn_c_check_func
2017 # ac_fn_cxx_try_compile LINENO
2018 # ----------------------------
2019 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2020 ac_fn_cxx_try_compile ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 rm -f conftest.$ac_objext
2024 if { { ac_try="$ac_compile"
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_compile") 2>conftest.err
2033 if test -s conftest.err; then
2034 grep -v '^ *+' conftest.err >conftest.er1
2035 cat conftest.er1 >&5
2036 mv -f conftest.er1 conftest.err
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && {
2040 test -z "$ac_cxx_werror_flag" ||
2041 test ! -s conftest.err
2042 } && test -s conftest.$ac_objext; then :
2045 $as_echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 as_fn_set_status $ac_retval
2053 } # ac_fn_cxx_try_compile
2055 # ac_fn_cxx_try_cpp LINENO
2056 # ------------------------
2057 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2058 ac_fn_cxx_try_cpp ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if { { ac_try="$ac_cpp conftest.$ac_ext"
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2070 if test -s conftest.err; then
2071 grep -v '^ *+' conftest.err >conftest.er1
2072 cat conftest.er1 >&5
2073 mv -f conftest.er1 conftest.err
2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076 test $ac_status = 0; } > conftest.i && {
2077 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2078 test ! -s conftest.err
2082 $as_echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088 as_fn_set_status $ac_retval
2090 } # ac_fn_cxx_try_cpp
2092 # ac_fn_cxx_try_link LINENO
2093 # -------------------------
2094 # Try to link conftest.$ac_ext, and return whether this succeeded.
2095 ac_fn_cxx_try_link ()
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 rm -f conftest.$ac_objext conftest$ac_exeext
2099 if { { ac_try="$ac_link"
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2105 $as_echo "$ac_try_echo"; } >&5
2106 (eval "$ac_link") 2>conftest.err
2108 if test -s conftest.err; then
2109 grep -v '^ *+' conftest.err >conftest.er1
2110 cat conftest.er1 >&5
2111 mv -f conftest.er1 conftest.err
2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114 test $ac_status = 0; } && {
2115 test -z "$ac_cxx_werror_flag" ||
2116 test ! -s conftest.err
2117 } && test -s conftest$ac_exeext && {
2118 test "$cross_compiling" = yes ||
2119 test -x conftest$ac_exeext
2123 $as_echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2128 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2129 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2130 # interfere with the next link command; also delete a directory that is
2131 # left behind by Apple's compiler. We do this before executing the actions.
2132 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134 as_fn_set_status $ac_retval
2136 } # ac_fn_cxx_try_link
2138 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2139 # -------------------------------------------------------
2140 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2141 # the include files in INCLUDES and setting the cache variable VAR
2143 ac_fn_c_check_header_mongrel ()
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 if eval \${$3+:} false; then :
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2148 $as_echo_n "checking for $2... " >&6; }
2149 if eval \${$3+:} false; then :
2150 $as_echo_n "(cached) " >&6
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2156 # Is the header compilable?
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2158 $as_echo_n "checking $2 usability... " >&6; }
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 ac_header_compiler=yes
2167 ac_header_compiler=no
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2171 $as_echo "$ac_header_compiler" >&6; }
2173 # Is the header present?
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2175 $as_echo_n "checking $2 presence... " >&6; }
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2180 if ac_fn_c_try_cpp "$LINENO"; then :
2181 ac_header_preproc=yes
2183 ac_header_preproc=no
2185 rm -f conftest.err conftest.i conftest.$ac_ext
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2187 $as_echo "$ac_header_preproc" >&6; }
2189 # So? What about this header?
2190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2193 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2195 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2199 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2201 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2203 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2205 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2207 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2208 ( $as_echo "## -------------------------------------------------------------- ##
2209 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2210 ## -------------------------------------------------------------- ##"
2211 ) | sed "s/^/$as_me: WARNING: /" >&2
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2215 $as_echo_n "checking for $2... " >&6; }
2216 if eval \${$3+:} false; then :
2217 $as_echo_n "(cached) " >&6
2219 eval "$3=\$ac_header_compiler"
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2223 $as_echo "$ac_res" >&6; }
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227 } # ac_fn_c_check_header_mongrel
2229 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2230 # --------------------------------------------
2231 # Tries to find the compile-time value of EXPR in a program that includes
2232 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2234 ac_fn_c_compute_int ()
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 if test "$cross_compiling" = yes; then
2238 # Depending upon the size, compute the lo and hi bounds.
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2245 static int test_array [1 - 2 * !(($2) >= 0)];
2247 return test_array [0];
2253 if ac_fn_c_try_compile "$LINENO"; then :
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2262 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2264 return test_array [0];
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271 ac_hi=$ac_mid; break
2273 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2274 if test $ac_lo -le $ac_mid; then
2278 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2289 static int test_array [1 - 2 * !(($2) < 0)];
2291 return test_array [0];
2297 if ac_fn_c_try_compile "$LINENO"; then :
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2306 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2308 return test_array [0];
2314 if ac_fn_c_try_compile "$LINENO"; then :
2315 ac_lo=$ac_mid; break
2317 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2318 if test $ac_mid -le $ac_hi; then
2322 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 # Binary search between lo and hi bounds.
2333 while test "x$ac_lo" != "x$ac_hi"; do
2334 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2341 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2343 return test_array [0];
2349 if ac_fn_c_try_compile "$LINENO"; then :
2352 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2364 static long int longval () { return $2; }
2365 static unsigned long int ulongval () { return $2; }
2372 FILE *f = fopen ("conftest.val", "w");
2377 long int i = longval ();
2380 fprintf (f, "%ld", i);
2384 unsigned long int i = ulongval ();
2387 fprintf (f, "%lu", i);
2389 /* Do not output a trailing newline, as this causes \r\n confusion
2390 on some platforms. */
2391 return ferror (f) || fclose (f) != 0;
2397 if ac_fn_c_try_run "$LINENO"; then :
2398 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2403 conftest.$ac_objext conftest.beam conftest.$ac_ext
2407 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2408 as_fn_set_status $ac_retval
2410 } # ac_fn_c_compute_int
2412 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2413 # ---------------------------------------------------------
2414 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2415 # the include files in INCLUDES and setting the cache variable VAR
2417 ac_fn_cxx_check_header_mongrel ()
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 if eval \${$3+:} false; then :
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2422 $as_echo_n "checking for $2... " >&6; }
2423 if eval \${$3+:} false; then :
2424 $as_echo_n "(cached) " >&6
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2428 $as_echo "$ac_res" >&6; }
2430 # Is the header compilable?
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2432 $as_echo_n "checking $2 usability... " >&6; }
2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h. */
2438 if ac_fn_cxx_try_compile "$LINENO"; then :
2439 ac_header_compiler=yes
2441 ac_header_compiler=no
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2445 $as_echo "$ac_header_compiler" >&6; }
2447 # Is the header present?
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2449 $as_echo_n "checking $2 presence... " >&6; }
2450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451 /* end confdefs.h. */
2454 if ac_fn_cxx_try_cpp "$LINENO"; then :
2455 ac_header_preproc=yes
2457 ac_header_preproc=no
2459 rm -f conftest.err conftest.i conftest.$ac_ext
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2461 $as_echo "$ac_header_preproc" >&6; }
2463 # So? What about this header?
2464 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2467 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2469 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2473 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2475 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2477 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2479 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2481 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2482 ( $as_echo "## -------------------------------------------------------------- ##
2483 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2484 ## -------------------------------------------------------------- ##"
2485 ) | sed "s/^/$as_me: WARNING: /" >&2
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2489 $as_echo_n "checking for $2... " >&6; }
2490 if eval \${$3+:} false; then :
2491 $as_echo_n "(cached) " >&6
2493 eval "$3=\$ac_header_compiler"
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2497 $as_echo "$ac_res" >&6; }
2499 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2501 } # ac_fn_cxx_check_header_mongrel
2503 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2504 # -------------------------------------------
2505 # Tests whether TYPE exists after having included INCLUDES, setting cache
2506 # variable VAR accordingly.
2507 ac_fn_c_check_type ()
2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2511 $as_echo_n "checking for $2... " >&6; }
2512 if eval \${$3+:} false; then :
2513 $as_echo_n "(cached) " >&6
2516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2517 /* end confdefs.h. */
2528 if ac_fn_c_try_compile "$LINENO"; then :
2529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h. */
2541 if ac_fn_c_try_compile "$LINENO"; then :
2546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2552 $as_echo "$ac_res" >&6; }
2553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2555 } # ac_fn_c_check_type
2556 cat >config.log <<_ACEOF
2557 This file contains any messages produced by compilers while
2558 running configure, to aid debugging if configure makes a mistake.
2560 It was created by HarfBuzz $as_me 2.6.4, which was
2561 generated by GNU Autoconf 2.69. Invocation command line was
2573 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2574 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2575 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2576 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2577 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2579 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2580 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2582 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2583 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2584 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2585 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2586 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2587 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2588 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 $as_echo "PATH: $as_dir"
2613 # Keep a trace of the command line.
2614 # Strip out --no-create and --no-recursion so they do not pile up.
2615 # Strip out --silent because we don't want to record it for future runs.
2616 # Also quote any args containing shell meta-characters.
2617 # Make two passes to allow for proper duplicate-argument suppression.
2621 ac_must_keep_next=false
2627 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2628 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2629 | -silent | --silent | --silen | --sile | --sil)
2632 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2635 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2637 as_fn_append ac_configure_args1 " '$ac_arg'"
2638 if test $ac_must_keep_next = true; then
2639 ac_must_keep_next=false # Got value, back to normal.
2642 *=* | --config-cache | -C | -disable-* | --disable-* \
2643 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2644 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2645 | -with-* | --with-* | -without-* | --without-* | --x)
2646 case "$ac_configure_args0 " in
2647 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2650 -* ) ac_must_keep_next=true ;;
2653 as_fn_append ac_configure_args " '$ac_arg'"
2658 { ac_configure_args0=; unset ac_configure_args0;}
2659 { ac_configure_args1=; unset ac_configure_args1;}
2661 # When interrupted or exit'd, cleanup temporary files, and complete
2662 # config.log. We remove comments because anyway the quotes in there
2663 # would cause problems or look ugly.
2664 # WARNING: Use '\'' to represent an apostrophe within the trap.
2665 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2666 trap 'exit_status=$?
2667 # Save into config.log some information that might help in debugging.
2671 $as_echo "## ---------------- ##
2672 ## Cache variables. ##
2673 ## ---------------- ##"
2675 # The following way of writing the cache mishandles newlines in values,
2677 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2678 eval ac_val=\$$ac_var
2682 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2683 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2686 _ | IFS | as_nl) ;; #(
2687 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2688 *) { eval $ac_var=; unset $ac_var;} ;;
2693 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2694 *${as_nl}ac_space=\ *)
2696 "s/'\''/'\''\\\\'\'''\''/g;
2697 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2700 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2707 $as_echo "## ----------------- ##
2708 ## Output variables. ##
2709 ## ----------------- ##"
2711 for ac_var in $ac_subst_vars
2713 eval ac_val=\$$ac_var
2715 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2717 $as_echo "$ac_var='\''$ac_val'\''"
2721 if test -n "$ac_subst_files"; then
2722 $as_echo "## ------------------- ##
2723 ## File substitutions. ##
2724 ## ------------------- ##"
2726 for ac_var in $ac_subst_files
2728 eval ac_val=\$$ac_var
2730 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2732 $as_echo "$ac_var='\''$ac_val'\''"
2737 if test -s confdefs.h; then
2738 $as_echo "## ----------- ##
2745 test "$ac_signal" != 0 &&
2746 $as_echo "$as_me: caught signal $ac_signal"
2747 $as_echo "$as_me: exit $exit_status"
2749 rm -f core *.core core.conftest.* &&
2750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2753 for ac_signal in 1 2 13 15; do
2754 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2759 rm -f -r conftest* confdefs.h
2761 $as_echo "/* confdefs.h */" > confdefs.h
2763 # Predefined preprocessor variables.
2765 cat >>confdefs.h <<_ACEOF
2766 #define PACKAGE_NAME "$PACKAGE_NAME"
2769 cat >>confdefs.h <<_ACEOF
2770 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2773 cat >>confdefs.h <<_ACEOF
2774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2777 cat >>confdefs.h <<_ACEOF
2778 #define PACKAGE_STRING "$PACKAGE_STRING"
2781 cat >>confdefs.h <<_ACEOF
2782 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2785 cat >>confdefs.h <<_ACEOF
2786 #define PACKAGE_URL "$PACKAGE_URL"
2790 # Let the site file select an alternate cache file if it wants to.
2791 # Prefer an explicitly selected file to automatically selected ones.
2794 if test -n "$CONFIG_SITE"; then
2795 # We do not want a PATH search for config.site.
2796 case $CONFIG_SITE in #((
2797 -*) ac_site_file1=./$CONFIG_SITE;;
2798 */*) ac_site_file1=$CONFIG_SITE;;
2799 *) ac_site_file1=./$CONFIG_SITE;;
2801 elif test "x$prefix" != xNONE; then
2802 ac_site_file1=$prefix/share/config.site
2803 ac_site_file2=$prefix/etc/config.site
2805 ac_site_file1=$ac_default_prefix/share/config.site
2806 ac_site_file2=$ac_default_prefix/etc/config.site
2808 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2810 test "x$ac_site_file" = xNONE && continue
2811 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2813 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2814 sed 's/^/| /' "$ac_site_file" >&5
2816 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2818 as_fn_error $? "failed to load site script $ac_site_file
2819 See \`config.log' for more details" "$LINENO" 5; }
2823 if test -r "$cache_file"; then
2824 # Some versions of bash will fail to source /dev/null (special files
2825 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2826 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2828 $as_echo "$as_me: loading cache $cache_file" >&6;}
2830 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2831 *) . "./$cache_file";;
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2836 $as_echo "$as_me: creating cache $cache_file" >&6;}
2840 # Check that the precious variables saved in the cache have kept the same
2842 ac_cache_corrupted=false
2843 for ac_var in $ac_precious_vars; do
2844 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2845 eval ac_new_set=\$ac_env_${ac_var}_set
2846 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2847 eval ac_new_val=\$ac_env_${ac_var}_value
2848 case $ac_old_set,$ac_new_set in
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2851 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2852 ac_cache_corrupted=: ;;
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2855 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2856 ac_cache_corrupted=: ;;
2859 if test "x$ac_old_val" != "x$ac_new_val"; then
2860 # differences in whitespace do not lead to failure.
2861 ac_old_val_w=`echo x $ac_old_val`
2862 ac_new_val_w=`echo x $ac_new_val`
2863 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2865 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2866 ac_cache_corrupted=:
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2869 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2870 eval $ac_var=\$ac_old_val
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2873 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2875 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2878 # Pass precious variables to config.status.
2879 if test "$ac_new_set" = set; then
2881 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2882 *) ac_arg=$ac_var=$ac_new_val ;;
2884 case " $ac_configure_args " in
2885 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2886 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2890 if $ac_cache_corrupted; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2894 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2895 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2897 ## -------------------- ##
2898 ## Main body of script. ##
2899 ## -------------------- ##
2902 ac_cpp='$CPP $CPPFLAGS'
2903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2911 ac_config_headers="$ac_config_headers config.h"
2914 am__api_version='1.16'
2917 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2918 if test -f "$ac_dir/install-sh"; then
2920 ac_install_sh="$ac_aux_dir/install-sh -c"
2922 elif test -f "$ac_dir/install.sh"; then
2924 ac_install_sh="$ac_aux_dir/install.sh -c"
2926 elif test -f "$ac_dir/shtool"; then
2928 ac_install_sh="$ac_aux_dir/shtool install -c"
2932 if test -z "$ac_aux_dir"; then
2933 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2936 # These three variables are undocumented and unsupported,
2937 # and are intended to be withdrawn in a future Autoconf release.
2938 # They can cause serious problems if a builder's source tree is in a directory
2939 # whose full name contains unusual characters.
2940 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2941 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2942 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2945 # Find a good install program. We prefer a C program (faster),
2946 # so one script is as good as another. But avoid the broken or
2947 # incompatible versions:
2948 # SysV /etc/install, /usr/sbin/install
2949 # SunOS /usr/etc/install
2950 # IRIX /sbin/install
2952 # AmigaOS /C/install, which installs bootblocks on floppy discs
2953 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2954 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2955 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2956 # OS/2's system install, which has a completely different semantic
2957 # ./install, which can be erroneously created by make from ./install.sh.
2958 # Reject install programs that cannot install multiple files.
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2960 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2961 if test -z "$INSTALL"; then
2962 if ${ac_cv_path_install+:} false; then :
2963 $as_echo_n "(cached) " >&6
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 test -z "$as_dir" && as_dir=.
2970 # Account for people who put trailing slashes in PATH elements.
2971 case $as_dir/ in #((
2972 ./ | .// | /[cC]/* | \
2973 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2974 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2977 # OSF1 and SCO ODT 3.0 have their own names for install.
2978 # Don't use installbsd from OSF since it installs stuff as root
2980 for ac_prog in ginstall scoinst install; do
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2983 if test $ac_prog = install &&
2984 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2985 # AIX install. It has an incompatible calling convention.
2987 elif test $ac_prog = install &&
2988 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2989 # program-specific install script used by HP pwplus--don't use.
2992 rm -rf conftest.one conftest.two conftest.dir
2993 echo one > conftest.one
2994 echo two > conftest.two
2996 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2997 test -s conftest.one && test -s conftest.two &&
2998 test -s conftest.dir/conftest.one &&
2999 test -s conftest.dir/conftest.two
3001 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3014 rm -rf conftest.one conftest.two conftest.dir
3017 if test "${ac_cv_path_install+set}" = set; then
3018 INSTALL=$ac_cv_path_install
3020 # As a last resort, use the slow shell script. Don't cache a
3021 # value for INSTALL within a source directory, because that will
3022 # break other packages using the cache if that directory is
3023 # removed, or if the value is a relative name.
3024 INSTALL=$ac_install_sh
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3028 $as_echo "$INSTALL" >&6; }
3030 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3031 # It thinks the first close brace ends the variable substitution.
3032 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3034 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3036 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3039 $as_echo_n "checking whether build environment is sane... " >&6; }
3040 # Reject unsafe characters in $srcdir or the absolute working directory
3041 # name. Accept space and tab only in the latter.
3045 *[\\\"\#\$\&\'\`$am_lf]*)
3046 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3049 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3050 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3053 # Do 'set' in a subshell so we don't clobber the current shell's
3054 # arguments. Must try -L first in case configure is actually a
3055 # symlink; some systems play weird games with the mod time of symlinks
3056 # (eg FreeBSD returns the mod time of the symlink's containing
3060 for am_try in 1 2; do
3061 echo "timestamp, slept: $am_has_slept" > conftest.file
3062 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3063 if test "$*" = "X"; then
3065 set X `ls -t "$srcdir/configure" conftest.file`
3067 if test "$*" != "X $srcdir/configure conftest.file" \
3068 && test "$*" != "X conftest.file $srcdir/configure"; then
3070 # If neither matched, then we have a broken ls. This can happen
3071 # if, for instance, CONFIG_SHELL is bash and it inherits a
3072 # broken ls alias from the environment. This has actually
3073 # happened. Such a system could not be considered "sane".
3074 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3075 alias in your environment" "$LINENO" 5
3077 if test "$2" = conftest.file || test $am_try -eq 2; then
3084 test "$2" = conftest.file
3090 as_fn_error $? "newly created file is older than distributed files!
3091 Check your system clock" "$LINENO" 5
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3094 $as_echo "yes" >&6; }
3095 # If we didn't sleep, we still need to ensure time stamps of config.status and
3096 # generated files are strictly newer.
3098 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3105 test "$program_prefix" != NONE &&
3106 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3107 # Use a double $ so make ignores it.
3108 test "$program_suffix" != NONE &&
3109 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3110 # Double any \ or $.
3111 # By default was `s,x,x', remove it if useless.
3112 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3113 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3115 # Expand $ac_aux_dir to an absolute path.
3116 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3118 if test x"${MISSING+set}" != xset; then
3121 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3123 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3126 # Use eval to expand $SHELL
3127 if eval "$MISSING --is-lightweight"; then
3128 am_missing_run="$MISSING "
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3132 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3135 if test x"${install_sh+set}" != xset; then
3138 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3140 install_sh="\${SHELL} $am_aux_dir/install-sh"
3144 # Installed binaries are usually stripped using 'strip' when the user
3145 # run "make install-strip". However 'strip' might not be the right
3146 # tool to use in cross-compilation environments, therefore Automake
3147 # will honor the 'STRIP' environment variable to overrule this program.
3148 if test "$cross_compiling" != no; then
3149 if test -n "$ac_tool_prefix"; then
3150 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3151 set dummy ${ac_tool_prefix}strip; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if ${ac_cv_prog_STRIP+:} false; then :
3155 $as_echo_n "(cached) " >&6
3157 if test -n "$STRIP"; then
3158 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 STRIP=$ac_cv_prog_STRIP
3178 if test -n "$STRIP"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3180 $as_echo "$STRIP" >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3188 if test -z "$ac_cv_prog_STRIP"; then
3190 # Extract the first word of "strip", so it can be a program name with args.
3191 set dummy strip; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3195 $as_echo_n "(cached) " >&6
3197 if test -n "$ac_ct_STRIP"; then
3198 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207 ac_cv_prog_ac_ct_STRIP="strip"
3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3218 if test -n "$ac_ct_STRIP"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3220 $as_echo "$ac_ct_STRIP" >&6; }
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3226 if test "x$ac_ct_STRIP" = x; then
3229 case $cross_compiling:$ac_tool_warned in
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233 ac_tool_warned=yes ;;
3238 STRIP="$ac_cv_prog_STRIP"
3242 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3245 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3246 if test -z "$MKDIR_P"; then
3247 if ${ac_cv_path_mkdir+:} false; then :
3248 $as_echo_n "(cached) " >&6
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3254 test -z "$as_dir" && as_dir=.
3255 for ac_prog in mkdir gmkdir; do
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3258 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3259 'mkdir (GNU coreutils) '* | \
3260 'mkdir (coreutils) '* | \
3261 'mkdir (fileutils) '4.1*)
3262 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3272 test -d ./--version && rmdir ./--version
3273 if test "${ac_cv_path_mkdir+set}" = set; then
3274 MKDIR_P="$ac_cv_path_mkdir -p"
3276 # As a last resort, use the slow shell script. Don't cache a
3277 # value for MKDIR_P within a source directory, because that will
3278 # break other packages using the cache if that directory is
3279 # removed, or if the value is a relative name.
3280 MKDIR_P="$ac_install_sh -d"
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3284 $as_echo "$MKDIR_P" >&6; }
3286 for ac_prog in gawk mawk nawk awk
3288 # Extract the first word of "$ac_prog", so it can be a program name with args.
3289 set dummy $ac_prog; ac_word=$2
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if ${ac_cv_prog_AWK+:} false; then :
3293 $as_echo_n "(cached) " >&6
3295 if test -n "$AWK"; then
3296 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_AWK="$ac_prog"
3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 if test -n "$AWK"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3318 $as_echo "$AWK" >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3325 test -n "$AWK" && break
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3329 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3331 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3332 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3333 $as_echo_n "(cached) " >&6
3335 cat >conftest.make <<\_ACEOF
3338 @echo '@@@%%%=$(MAKE)=@@@%%%'
3340 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3341 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3343 eval ac_cv_prog_make_${ac_make}_set=yes;;
3345 eval ac_cv_prog_make_${ac_make}_set=no;;
3349 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3351 $as_echo "yes" >&6; }
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3356 SET_MAKE="MAKE=${MAKE-make}"
3359 rm -rf .tst 2>/dev/null
3360 mkdir .tst 2>/dev/null
3361 if test -d .tst; then
3366 rmdir .tst 2>/dev/null
3368 # Check whether --enable-silent-rules was given.
3369 if test "${enable_silent_rules+set}" = set; then :
3370 enableval=$enable_silent_rules;
3373 case $enable_silent_rules in # (((
3374 yes) AM_DEFAULT_VERBOSITY=0;;
3375 no) AM_DEFAULT_VERBOSITY=1;;
3376 *) AM_DEFAULT_VERBOSITY=1;;
3378 am_make=${MAKE-make}
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3380 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3381 if ${am_cv_make_support_nested_variables+:} false; then :
3382 $as_echo_n "(cached) " >&6
3384 if $as_echo 'TRUE=$(BAR$(V))
3390 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3391 am_cv_make_support_nested_variables=yes
3393 am_cv_make_support_nested_variables=no
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3397 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3398 if test $am_cv_make_support_nested_variables = yes; then
3400 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3402 AM_V=$AM_DEFAULT_VERBOSITY
3403 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3407 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3408 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3409 # is not polluted with repeated "-I."
3410 am__isrc=' -I$(srcdir)'
3411 # test to see if srcdir already configured
3412 if test -f $srcdir/config.status; then
3413 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3417 # test whether we have cygpath
3418 if test -z "$CYGPATH_W"; then
3419 if (cygpath --version) >/dev/null 2>/dev/null; then
3420 CYGPATH_W='cygpath -w'
3427 # Define the identity of the package.
3432 # Some tools Automake needs.
3434 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3437 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3440 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3443 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3446 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3448 # For better backward compatibility. To be removed once Automake 1.9.x
3449 # dies out for good. For more background, see:
3450 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3451 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3452 mkdir_p='$(MKDIR_P)'
3454 # We need awk for the "check" target (and possibly the TAP driver). The
3455 # system "awk" is bad on some platforms.
3456 # Always define AMTAR for backward compatibility. Yes, it's still used
3457 # in the wild :-( We should find a proper way to deprecate it ...
3461 # We'll loop over all known methods to create a tar archive until one works.
3462 _am_tools='gnutar plaintar pax cpio none'
3464 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3465 # There is notably a 21 bits limit for the UID and the GID. In fact,
3466 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3468 am_max_uid=2097151 # 2^21 - 1
3469 am_max_gid=$am_max_uid
3470 # The $UID and $GID variables are not portable, so we need to resort
3471 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3472 # below are definitely unexpected, so allow the users to see them
3473 # (that is, avoid stderr redirection).
3474 am_uid=`id -u || echo unknown`
3475 am_gid=`id -g || echo unknown`
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3477 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3478 if test $am_uid -le $am_max_uid; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3480 $as_echo "yes" >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3487 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3488 if test $am_gid -le $am_max_gid; then
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3490 $as_echo "yes" >&6; }
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3498 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3500 # Go ahead even if we have the value already cached. We do so because we
3501 # need to set the values for the 'am__tar' and 'am__untar' variables.
3502 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3504 for _am_tool in $_am_tools; do
3507 for _am_tar in tar gnutar gtar; do
3508 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3509 ($_am_tar --version) >&5 2>&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } && break
3514 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3515 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3516 am__untar="$_am_tar -xf -"
3519 # Must skip GNU tar: if it does not support --format= it doesn't create
3520 # ustar tarball either.
3521 (tar --version) >/dev/null 2>&1 && continue
3522 am__tar='tar chf - "$$tardir"'
3523 am__tar_='tar chf - "$tardir"'
3524 am__untar='tar xf -'
3527 am__tar='pax -L -x ustar -w "$$tardir"'
3528 am__tar_='pax -L -x ustar -w "$tardir"'
3532 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3533 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3534 am__untar='cpio -i -H ustar -d'
3543 # If the value was cached, stop now. We just wanted to have am__tar
3544 # and am__untar set.
3545 test -n "${am_cv_prog_tar_ustar}" && break
3547 # tar/untar a dummy directory, and stop if the command works.
3550 echo GrepMe > conftest.dir/file
3551 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3552 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }
3557 if test -s conftest.tar; then
3558 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3559 ($am__untar <conftest.tar) >&5 2>&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }
3563 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3564 (cat conftest.dir/file) >&5 2>&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }
3568 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3573 if ${am_cv_prog_tar_ustar+:} false; then :
3574 $as_echo_n "(cached) " >&6
3576 am_cv_prog_tar_ustar=$_am_tool
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3580 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3587 # POSIX will say in a future version that running "rm -f" with no argument
3588 # is OK; and we want to be able to make that assumption in our Makefile
3589 # recipes. So use an aggressive probe to check that the usage we want is
3590 # actually supported "in the wild" to an acceptable degree.
3591 # See automake bug#10828.
3592 # To make any issue more visible, cause the running configure to be aborted
3593 # by default if the 'rm' program in use doesn't match our expectations; the
3594 # user can still override this though.
3595 if rm -f && rm -fr && rm -rf; then : OK; else
3599 Your 'rm' program seems unable to run without file operands specified
3600 on the command line, even when the '-f' option is present. This is contrary
3601 to the behaviour of most rm programs out there, and not conforming with
3602 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3604 Please tell bug-automake@gnu.org about your system, including the value
3605 of your $PATH and any error possibly output before this message. This
3606 can help us improve future automake versions.
3609 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3610 echo 'Configuration will proceed anyway, since you have set the' >&2
3611 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3615 Aborting the configuration process, to ensure you take notice of the issue.
3617 You can download and install GNU coreutils to get an 'rm' implementation
3618 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3620 If you want to complete the configuration process using your problematic
3621 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3622 to "yes", and re-run configure.
3625 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3629 # Check whether --enable-silent-rules was given.
3630 if test "${enable_silent_rules+set}" = set; then :
3631 enableval=$enable_silent_rules;
3634 case $enable_silent_rules in # (((
3635 yes) AM_DEFAULT_VERBOSITY=0;;
3636 no) AM_DEFAULT_VERBOSITY=1;;
3637 *) AM_DEFAULT_VERBOSITY=0;;
3639 am_make=${MAKE-make}
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3641 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3642 if ${am_cv_make_support_nested_variables+:} false; then :
3643 $as_echo_n "(cached) " >&6
3645 if $as_echo 'TRUE=$(BAR$(V))
3651 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3652 am_cv_make_support_nested_variables=yes
3654 am_cv_make_support_nested_variables=no
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3658 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3659 if test $am_cv_make_support_nested_variables = yes; then
3661 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3663 AM_V=$AM_DEFAULT_VERBOSITY
3664 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3669 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3670 if ${ac_cv_path_SED+:} false; then :
3671 $as_echo_n "(cached) " >&6
3673 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3674 for ac_i in 1 2 3 4 5 6 7; do
3675 ac_script="$ac_script$as_nl$ac_script"
3677 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3678 { ac_script=; unset ac_script;}
3679 if test -z "$SED"; then
3680 ac_path_SED_found=false
3681 # Loop through the user's path and test for each of PROGNAME-LIST
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 test -z "$as_dir" && as_dir=.
3687 for ac_prog in sed gsed; do
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3690 as_fn_executable_p "$ac_path_SED" || continue
3691 # Check for GNU ac_path_SED and select it if it is found.
3692 # Check for GNU $ac_path_SED
3693 case `"$ac_path_SED" --version 2>&1` in
3695 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3698 $as_echo_n 0123456789 >"conftest.in"
3701 cat "conftest.in" "conftest.in" >"conftest.tmp"
3702 mv "conftest.tmp" "conftest.in"
3703 cp "conftest.in" "conftest.nl"
3704 $as_echo '' >> "conftest.nl"
3705 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3707 as_fn_arith $ac_count + 1 && ac_count=$as_val
3708 if test $ac_count -gt ${ac_path_SED_max-0}; then
3709 # Best one so far, save it but keep looking for a better one
3710 ac_cv_path_SED="$ac_path_SED"
3711 ac_path_SED_max=$ac_count
3713 # 10*(2^10) chars as input seems more than enough
3714 test $ac_count -gt 10 && break
3716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3719 $ac_path_SED_found && break 3
3724 if test -z "$ac_cv_path_SED"; then
3725 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3733 $as_echo "$ac_cv_path_SED" >&6; }
3734 SED="$ac_cv_path_SED"
3740 # allow to override gcov location
3742 # Check whether --with-gcov was given.
3743 if test "${with_gcov+set}" = set; then :
3744 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3746 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3751 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3752 # Check whether --enable-code-coverage was given.
3753 if test "${enable_code_coverage+set}" = set; then :
3754 enableval=$enable_code_coverage;
3756 enable_code_coverage=no
3760 if test x$enable_code_coverage = xyes; then
3761 CODE_COVERAGE_ENABLED_TRUE=
3762 CODE_COVERAGE_ENABLED_FALSE='#'
3764 CODE_COVERAGE_ENABLED_TRUE='#'
3765 CODE_COVERAGE_ENABLED_FALSE=
3768 CODE_COVERAGE_ENABLED=$enable_code_coverage
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3771 $as_echo "$enable_code_coverage" >&6; }
3773 if test "$enable_code_coverage" = "yes" ; then :
3776 if test -n "$ac_tool_prefix"; then
3777 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3778 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780 $as_echo_n "checking for $ac_word... " >&6; }
3781 if ${ac_cv_prog_GCOV+:} false; then :
3782 $as_echo_n "(cached) " >&6
3784 if test -n "$GCOV"; then
3785 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3794 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 GCOV=$ac_cv_prog_GCOV
3805 if test -n "$GCOV"; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3807 $as_echo "$GCOV" >&6; }
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3815 if test -z "$ac_cv_prog_GCOV"; then
3817 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3818 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820 $as_echo_n "checking for $ac_word... " >&6; }
3821 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3822 $as_echo_n "(cached) " >&6
3824 if test -n "$ac_ct_GCOV"; then
3825 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3845 if test -n "$ac_ct_GCOV"; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3847 $as_echo "$ac_ct_GCOV" >&6; }
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3853 if test "x$ac_ct_GCOV" = x; then
3856 case $cross_compiling:$ac_tool_warned in
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3860 ac_tool_warned=yes ;;
3865 GCOV="$ac_cv_prog_GCOV"
3868 if test "X$GCOV" = "X:"; then :
3869 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3873 if test "$GCC" = "no" ; then :
3875 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3879 # Extract the first word of "lcov", so it can be a program name with args.
3880 set dummy lcov; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_prog_LCOV+:} false; then :
3884 $as_echo_n "(cached) " >&6
3886 if test -n "$LCOV"; then
3887 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_LCOV="lcov"
3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 LCOV=$ac_cv_prog_LCOV
3907 if test -n "$LCOV"; then
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3909 $as_echo "$LCOV" >&6; }
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 $as_echo "no" >&6; }
3916 # Extract the first word of "genhtml", so it can be a program name with args.
3917 set dummy genhtml; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if ${ac_cv_prog_GENHTML+:} false; then :
3921 $as_echo_n "(cached) " >&6
3923 if test -n "$GENHTML"; then
3924 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933 ac_cv_prog_GENHTML="genhtml"
3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 GENHTML=$ac_cv_prog_GENHTML
3944 if test -n "$GENHTML"; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3946 $as_echo "$GENHTML" >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3954 if test -z "$LCOV" ; then :
3956 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
3960 if test -z "$GENHTML" ; then :
3962 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3966 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
3967 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3968 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3969 CODE_COVERAGE_LIBS="-lgcov"
3970 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
3978 CODE_COVERAGE_RULES_CHECK='
3979 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
3980 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3982 CODE_COVERAGE_RULES_CAPTURE='
3983 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
3984 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
3985 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3986 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
3987 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
3989 CODE_COVERAGE_RULES_CLEAN='
3990 clean: code-coverage-clean
3991 distclean: code-coverage-clean
3992 code-coverage-clean:
3993 -$(LCOV) --directory $(top_builddir) -z
3994 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3995 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
4000 CODE_COVERAGE_RULES_CHECK='
4001 @echo "Need to reconfigure with --enable-code-coverage"
4003 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
4004 CODE_COVERAGE_RULES_CLEAN=''
4008 CODE_COVERAGE_RULES='
4012 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
4013 # Multiple directories may be specified, separated by whitespace.
4014 # (Default: $(top_builddir))
4015 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
4016 # by lcov for code coverage. (Default:
4017 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
4018 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
4019 # reports to be created. (Default:
4020 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
4021 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
4022 # set to 0 to disable it and leave empty to stay with the default.
4024 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
4025 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4026 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
4027 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4028 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
4029 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
4030 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4031 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
4032 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4033 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
4034 # lcov instance. (Default: empty)
4035 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
4036 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4037 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
4038 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4039 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
4040 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4041 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
4043 # The generated report will be titled using the $(PACKAGE_NAME) and
4044 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
4045 # use the git-version-gen script, available online.
4047 # Optional variables
4048 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
4049 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
4050 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
4051 CODE_COVERAGE_BRANCH_COVERAGE ?=
4052 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4053 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4054 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4055 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
4056 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4057 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4058 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
4059 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4060 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
4061 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4062 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4063 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4064 CODE_COVERAGE_IGNORE_PATTERN ?=
4067 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4069 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
4070 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
4071 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
4072 $(CODE_COVERAGE_OUTPUT_FILE);
4073 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
4074 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
4075 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
4076 $(CODE_COVERAGE_IGNORE_PATTERN);
4077 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
4078 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
4079 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
4080 code_coverage_quiet = $(code_coverage_quiet_$(V))
4081 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
4082 code_coverage_quiet_0 = --quiet
4084 # sanitizes the test-name: replaces with underscores: dashes and dots
4085 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
4087 # Use recursive makes in order to ignore errors during check
4088 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
4090 # Capture code coverage data
4091 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
4093 # Hook rule executed before code-coverage-capture, overridable by the user
4094 code-coverage-capture-hook:
4096 '"$CODE_COVERAGE_RULES_CLEAN"'
4098 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4099 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
4101 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
4108 # Initialize libtool
4109 DEPDIR="${am__leading_dot}deps"
4111 ac_config_commands="$ac_config_commands depfiles"
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4114 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4115 cat > confinc.mk << 'END'
4117 @echo this is the am__doit target >confinc.out
4122 # BSD make does it like this.
4123 echo '.include "confinc.mk" # ignored' > confmf.BSD
4124 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4125 echo 'include confinc.mk # ignored' > confmf.GNU
4127 for s in GNU BSD; do
4128 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4129 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }
4133 case $?:`cat confinc.out 2>/dev/null` in #(
4134 '0:this is the am__doit target') :
4137 am__include='.include' am__quote='"' ;; #(
4139 am__include='include' am__quote='' ;;
4144 if test "$am__include" != "#"; then
4145 _am_result="yes ($s style)"
4149 rm -f confinc.* confmf.*
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4151 $as_echo "${_am_result}" >&6; }
4153 # Check whether --enable-dependency-tracking was given.
4154 if test "${enable_dependency_tracking+set}" = set; then :
4155 enableval=$enable_dependency_tracking;
4158 if test "x$enable_dependency_tracking" != xno; then
4159 am_depcomp="$ac_aux_dir/depcomp"
4163 if test "x$enable_dependency_tracking" != xno; then
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 if test -n "$ac_tool_prefix"; then
4178 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4179 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_CC+:} false; then :
4183 $as_echo_n "(cached) " >&6
4185 if test -n "$CC"; then
4186 ac_cv_prog_CC="$CC" # Let the user override the test.
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 if test -n "$CC"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4208 $as_echo "$CC" >&6; }
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4216 if test -z "$ac_cv_prog_CC"; then
4218 # Extract the first word of "gcc", so it can be a program name with args.
4219 set dummy gcc; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4223 $as_echo_n "(cached) " >&6
4225 if test -n "$ac_ct_CC"; then
4226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_prog_ac_ct_CC="gcc"
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4246 if test -n "$ac_ct_CC"; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4248 $as_echo "$ac_ct_CC" >&6; }
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4254 if test "x$ac_ct_CC" = x; then
4257 case $cross_compiling:$ac_tool_warned in
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4261 ac_tool_warned=yes ;;
4269 if test -z "$CC"; then
4270 if test -n "$ac_tool_prefix"; then
4271 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4272 set dummy ${ac_tool_prefix}cc; ac_word=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if ${ac_cv_prog_CC+:} false; then :
4276 $as_echo_n "(cached) " >&6
4278 if test -n "$CC"; then
4279 ac_cv_prog_CC="$CC" # Let the user override the test.
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4288 ac_cv_prog_CC="${ac_tool_prefix}cc"
4289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 if test -n "$CC"; then
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4301 $as_echo "$CC" >&6; }
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304 $as_echo "no" >&6; }
4310 if test -z "$CC"; then
4311 # Extract the first word of "cc", so it can be a program name with args.
4312 set dummy cc; ac_word=$2
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314 $as_echo_n "checking for $ac_word... " >&6; }
4315 if ${ac_cv_prog_CC+:} false; then :
4316 $as_echo_n "(cached) " >&6
4318 if test -n "$CC"; then
4319 ac_cv_prog_CC="$CC" # Let the user override the test.
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4330 ac_prog_rejected=yes
4334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 if test $ac_prog_rejected = yes; then
4342 # We found a bogon in the path, so make sure we never use it.
4343 set dummy $ac_cv_prog_CC
4345 if test $# != 0; then
4346 # We chose a different compiler from the bogus one.
4347 # However, it has the same basename, so the bogon will be chosen
4348 # first if we set CC to just the basename; use the full file name.
4350 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4356 if test -n "$CC"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4358 $as_echo "$CC" >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4366 if test -z "$CC"; then
4367 if test -n "$ac_tool_prefix"; then
4368 for ac_prog in cl.exe
4370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4371 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4373 $as_echo_n "checking for $ac_word... " >&6; }
4374 if ${ac_cv_prog_CC+:} false; then :
4375 $as_echo_n "(cached) " >&6
4377 if test -n "$CC"; then
4378 ac_cv_prog_CC="$CC" # Let the user override the test.
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4387 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 if test -n "$CC"; then
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4400 $as_echo "$CC" >&6; }
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 $as_echo "no" >&6; }
4407 test -n "$CC" && break
4410 if test -z "$CC"; then
4412 for ac_prog in cl.exe
4414 # Extract the first word of "$ac_prog", so it can be a program name with args.
4415 set dummy $ac_prog; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4419 $as_echo_n "(cached) " >&6
4421 if test -n "$ac_ct_CC"; then
4422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_prog_ac_ct_CC="$ac_prog"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4442 if test -n "$ac_ct_CC"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4444 $as_echo "$ac_ct_CC" >&6; }
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4451 test -n "$ac_ct_CC" && break
4454 if test "x$ac_ct_CC" = x; then
4457 case $cross_compiling:$ac_tool_warned in
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4461 ac_tool_warned=yes ;;
4470 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4472 as_fn_error $? "no acceptable C compiler found in \$PATH
4473 See \`config.log' for more details" "$LINENO" 5; }
4475 # Provide some information about the compiler.
4476 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4479 for ac_option in --version -v -V -qversion; do
4480 { { ac_try="$ac_compiler $ac_option >&5"
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4486 $as_echo "$ac_try_echo"; } >&5
4487 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4489 if test -s conftest.err; then
4491 ... rest of stderr output deleted ...
4492 10q' conftest.err >conftest.er1
4493 cat conftest.er1 >&5
4495 rm -f conftest.er1 conftest.err
4496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497 test $ac_status = 0; }
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4511 ac_clean_files_save=$ac_clean_files
4512 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4513 # Try to create an executable without -o first, disregard a.out.
4514 # It will help us diagnose broken compilers, and finding out an intuition
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4517 $as_echo_n "checking whether the C compiler works... " >&6; }
4518 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4520 # The possible output files:
4521 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4524 for ac_file in $ac_files
4527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4528 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4533 if { { ac_try="$ac_link_default"
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4539 $as_echo "$ac_try_echo"; } >&5
4540 (eval "$ac_link_default") 2>&5
4542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4543 test $ac_status = 0; }; then :
4544 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4545 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4546 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4547 # so that the user can short-circuit this test for compilers unknown to
4549 for ac_file in $ac_files ''
4551 test -f "$ac_file" || continue
4553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4556 # We found the default executable, but exeext='' is most
4560 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4562 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4564 # We set ac_cv_exeext here because the later test for it is not
4565 # safe: cross compilers may not add the suffix if given an `-o'
4566 # argument, so we may need to know it at that point already.
4567 # Even if this section looks crufty: it has the advantage of
4574 test "$ac_cv_exeext" = no && ac_cv_exeext=
4579 if test -z "$ac_file"; then :
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4582 $as_echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4587 as_fn_error 77 "C compiler cannot create executables
4588 See \`config.log' for more details" "$LINENO" 5; }
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4591 $as_echo "yes" >&6; }
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4594 $as_echo_n "checking for C compiler default output file name... " >&6; }
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4596 $as_echo "$ac_file" >&6; }
4597 ac_exeext=$ac_cv_exeext
4599 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4600 ac_clean_files=$ac_clean_files_save
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4602 $as_echo_n "checking for suffix of executables... " >&6; }
4603 if { { ac_try="$ac_link"
4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4609 $as_echo "$ac_try_echo"; } >&5
4610 (eval "$ac_link") 2>&5
4612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4613 test $ac_status = 0; }; then :
4614 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4615 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4616 # work properly (i.e., refer to `conftest.exe'), while it won't with
4618 for ac_file in conftest.exe conftest conftest.*; do
4619 test -f "$ac_file" || continue
4621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4622 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4630 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4631 See \`config.log' for more details" "$LINENO" 5; }
4633 rm -f conftest conftest$ac_cv_exeext
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4635 $as_echo "$ac_cv_exeext" >&6; }
4637 rm -f conftest.$ac_ext
4638 EXEEXT=$ac_cv_exeext
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4646 FILE *f = fopen ("conftest.out", "w");
4647 return ferror (f) || fclose (f) != 0;
4653 ac_clean_files="$ac_clean_files conftest.out"
4654 # Check that the compiler produces executables we can run. If not, either
4655 # the compiler is broken, or we cross compile.
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4657 $as_echo_n "checking whether we are cross compiling... " >&6; }
4658 if test "$cross_compiling" != yes; then
4659 { { ac_try="$ac_link"
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4665 $as_echo "$ac_try_echo"; } >&5
4666 (eval "$ac_link") 2>&5
4668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4669 test $ac_status = 0; }
4670 if { ac_try='./conftest$ac_cv_exeext'
4671 { { case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4676 $as_echo "$ac_try_echo"; } >&5
4677 (eval "$ac_try") 2>&5
4679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4680 test $ac_status = 0; }; }; then
4683 if test "$cross_compiling" = maybe; then
4686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4688 as_fn_error $? "cannot run C compiled programs.
4689 If you meant to cross compile, use \`--host'.
4690 See \`config.log' for more details" "$LINENO" 5; }
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4695 $as_echo "$cross_compiling" >&6; }
4697 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4698 ac_clean_files=$ac_clean_files_save
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4700 $as_echo_n "checking for suffix of object files... " >&6; }
4701 if ${ac_cv_objext+:} false; then :
4702 $as_echo_n "(cached) " >&6
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4715 rm -f conftest.o conftest.obj
4716 if { { ac_try="$ac_compile"
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4722 $as_echo "$ac_try_echo"; } >&5
4723 (eval "$ac_compile") 2>&5
4725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4726 test $ac_status = 0; }; then :
4727 for ac_file in conftest.o conftest.obj conftest.*; do
4728 test -f "$ac_file" || continue;
4730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4731 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4736 $as_echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4741 as_fn_error $? "cannot compute suffix of object files: cannot compile
4742 See \`config.log' for more details" "$LINENO" 5; }
4744 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4747 $as_echo "$ac_cv_objext" >&6; }
4748 OBJEXT=$ac_cv_objext
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4751 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4752 if ${ac_cv_c_compiler_gnu+:} false; then :
4753 $as_echo_n "(cached) " >&6
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4769 if ac_fn_c_try_compile "$LINENO"; then :
4774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4779 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4780 if test $ac_compiler_gnu = yes; then
4785 ac_test_CFLAGS=${CFLAGS+set}
4786 ac_save_CFLAGS=$CFLAGS
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4788 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4789 if ${ac_cv_prog_cc_g+:} false; then :
4790 $as_echo_n "(cached) " >&6
4792 ac_save_c_werror_flag=$ac_c_werror_flag
4793 ac_c_werror_flag=yes
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4807 if ac_fn_c_try_compile "$LINENO"; then :
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4822 if ac_fn_c_try_compile "$LINENO"; then :
4825 ac_c_werror_flag=$ac_save_c_werror_flag
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4838 if ac_fn_c_try_compile "$LINENO"; then :
4841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 ac_c_werror_flag=$ac_save_c_werror_flag
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4849 $as_echo "$ac_cv_prog_cc_g" >&6; }
4850 if test "$ac_test_CFLAGS" = set; then
4851 CFLAGS=$ac_save_CFLAGS
4852 elif test $ac_cv_prog_cc_g = yes; then
4853 if test "$GCC" = yes; then
4859 if test "$GCC" = yes; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4866 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4867 if ${ac_cv_prog_cc_c89+:} false; then :
4868 $as_echo_n "(cached) " >&6
4870 ac_cv_prog_cc_c89=no
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4877 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4878 struct buf { int x; };
4879 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4880 static char *e (p, i)
4886 static char *f (char * (*g) (char **, int), char **p, ...)
4891 s = g (p, va_arg (v,int));
4896 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4897 function prototypes and stuff, but not '\xHH' hex character constants.
4898 These don't provoke an error unfortunately, instead are silently treated
4899 as 'x'. The following induces an error, until -std is added to get
4900 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4901 array size at least. It's necessary to write '\x00'==0 to get something
4902 that's true only with -std. */
4903 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4905 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4906 inside strings and character constants. */
4908 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4910 int test (int i, double x);
4911 struct s1 {int (*f) (int a);};
4912 struct s2 {int (*f) (double a);};
4913 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4919 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4924 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4925 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4927 CC="$ac_save_CC $ac_arg"
4928 if ac_fn_c_try_compile "$LINENO"; then :
4929 ac_cv_prog_cc_c89=$ac_arg
4931 rm -f core conftest.err conftest.$ac_objext
4932 test "x$ac_cv_prog_cc_c89" != "xno" && break
4934 rm -f conftest.$ac_ext
4939 case "x$ac_cv_prog_cc_c89" in
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4942 $as_echo "none needed" >&6; } ;;
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4945 $as_echo "unsupported" >&6; } ;;
4947 CC="$CC $ac_cv_prog_cc_c89"
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4949 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4951 if test "x$ac_cv_prog_cc_c89" != xno; then :
4956 ac_cpp='$CPP $CPPFLAGS'
4957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4967 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4968 if ${am_cv_prog_cc_c_o+:} false; then :
4969 $as_echo_n "(cached) " >&6
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4982 # Make sure it works both with $CC and with simple cc.
4983 # Following AC_PROG_CC_C_O, we do the test twice because some
4984 # compilers refuse to overwrite an existing .o file with -o,
4985 # though they will create one.
4986 am_cv_prog_cc_c_o=yes
4988 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4989 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } \
4993 && test -f conftest2.$ac_objext; then
4996 am_cv_prog_cc_c_o=no
5000 rm -f core conftest*
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5004 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5005 if test "$am_cv_prog_cc_c_o" != yes; then
5006 # Losing compiler, so override with the script.
5007 # FIXME: It is wrong to rewrite CC.
5008 # But if we don't then we get into trouble of one sort or another.
5009 # A longer-term fix would be to have automake use am__CC in this case,
5010 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5011 CC="$am_aux_dir/compile $CC"
5014 ac_cpp='$CPP $CPPFLAGS'
5015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020 depcc="$CC" am_compiler_list=
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5023 $as_echo_n "checking dependency style of $depcc... " >&6; }
5024 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5025 $as_echo_n "(cached) " >&6
5027 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5028 # We make a subdir and do the tests there. Otherwise we can end up
5029 # making bogus files that we don't know about and never remove. For
5030 # instance it was reported that on HP-UX the gcc test will end up
5031 # making a dummy file named 'D' -- because '-MD' means "put the output
5035 # Copy depcomp to subdir because otherwise we won't find it if we're
5036 # using a relative directory.
5037 cp "$am_depcomp" conftest.dir
5039 # We will build objects and dependencies in a subdirectory because
5040 # it helps to detect inapplicable dependency modes. For instance
5041 # both Tru64's cc and ICC support -MD to output dependencies as a
5042 # side effect of compilation, but ICC will put the dependencies in
5043 # the current directory while Tru64 will put them in the object
5047 am_cv_CC_dependencies_compiler_type=none
5048 if test "$am_compiler_list" = ""; then
5049 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5052 case " $depcc " in #(
5053 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5056 for depmode in $am_compiler_list; do
5057 # Setup a source with many dependencies, because some compilers
5058 # like to wrap large dependency lists on column 80 (with \), and
5059 # we should not choose a depcomp mode which is confused by this.
5061 # We need to recreate these files for each test, as the compiler may
5062 # overwrite some of them when testing with obscure command lines.
5063 # This happens at least with the AIX C compiler.
5065 for i in 1 2 3 4 5 6; do
5066 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5067 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5068 # Solaris 10 /bin/sh.
5069 echo '/* dummy */' > sub/conftst$i.h
5071 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5073 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5074 # mode. It turns out that the SunPro C++ compiler does not properly
5075 # handle '-M -o', and we need to detect this. Also, some Intel
5076 # versions had trouble with output in subdirs.
5077 am__obj=sub/conftest.${OBJEXT-o}
5078 am__minus_obj="-o $am__obj"
5081 # This depmode causes a compiler race in universal mode.
5082 test "$am__universal" = false || continue
5085 # After this tag, mechanisms are not by side-effect, so they'll
5086 # only be used when explicitly requested.
5087 if test "x$enable_dependency_tracking" = xyes; then
5093 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5094 # This compiler won't grok '-c -o', but also, the minuso test has
5095 # not run yet. These depmodes are late enough in the game, and
5096 # so weak that their functioning should not be impacted.
5097 am__obj=conftest.${OBJEXT-o}
5102 if depmode=$depmode \
5103 source=sub/conftest.c object=$am__obj \
5104 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5105 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5106 >/dev/null 2>conftest.err &&
5107 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5108 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5109 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5110 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5111 # icc doesn't choke on unknown options, it will just issue warnings
5112 # or remarks (even with -Werror). So we grep stderr for any message
5113 # that says an option was ignored or not supported.
5114 # When given -MP, icc 7.0 and 7.1 complain thusly:
5115 # icc: Command line warning: ignoring option '-M'; no argument required
5116 # The diagnosis changed in icc 8.0:
5117 # icc: Command line remark: option '-MP' not supported
5118 if (grep 'ignoring option' conftest.err ||
5119 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5120 am_cv_CC_dependencies_compiler_type=$depmode
5129 am_cv_CC_dependencies_compiler_type=none
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5134 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5135 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5138 test "x$enable_dependency_tracking" != xno \
5139 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5141 am__fastdepCC_FALSE='#'
5143 am__fastdepCC_TRUE='#'
5144 am__fastdepCC_FALSE=
5149 if test -n "$ac_tool_prefix"; then
5150 for ac_prog in ar lib "link -lib"
5152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if ${ac_cv_prog_AR+:} false; then :
5157 $as_echo_n "(cached) " >&6
5159 if test -n "$AR"; then
5160 ac_cv_prog_AR="$AR" # Let the user override the test.
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 if test -n "$AR"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5182 $as_echo "$AR" >&6; }
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5189 test -n "$AR" && break
5192 if test -z "$AR"; then
5194 for ac_prog in ar lib "link -lib"
5196 # Extract the first word of "$ac_prog", so it can be a program name with args.
5197 set dummy $ac_prog; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5201 $as_echo_n "(cached) " >&6
5203 if test -n "$ac_ct_AR"; then
5204 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213 ac_cv_prog_ac_ct_AR="$ac_prog"
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5224 if test -n "$ac_ct_AR"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5226 $as_echo "$ac_ct_AR" >&6; }
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5233 test -n "$ac_ct_AR" && break
5236 if test "x$ac_ct_AR" = x; then
5239 case $cross_compiling:$ac_tool_warned in
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5243 ac_tool_warned=yes ;;
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5252 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5253 if ${am_cv_ar_interface+:} false; then :
5254 $as_echo_n "(cached) " >&6
5257 ac_cpp='$CPP $CPPFLAGS'
5258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262 am_cv_ar_interface=ar
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5265 int some_variable = 0;
5267 if ac_fn_c_try_compile "$LINENO"; then :
5268 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5270 (eval $am_ar_try) 2>&5
5272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5273 test $ac_status = 0; }
5274 if test "$ac_status" -eq 0; then
5275 am_cv_ar_interface=ar
5277 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5279 (eval $am_ar_try) 2>&5
5281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5282 test $ac_status = 0; }
5283 if test "$ac_status" -eq 0; then
5284 am_cv_ar_interface=lib
5286 am_cv_ar_interface=unknown
5289 rm -f conftest.lib libconftest.a
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 ac_cpp='$CPP $CPPFLAGS'
5295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5301 $as_echo "$am_cv_ar_interface" >&6; }
5303 case $am_cv_ar_interface in
5307 # Microsoft lib, so override with the ar-lib wrapper script.
5308 # FIXME: It is wrong to rewrite AR.
5309 # But if we don't then we get into trouble of one sort or another.
5310 # A longer-term fix would be to have automake use am__AR in this case,
5311 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5313 AR="$am_aux_dir/ar-lib $AR"
5316 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5324 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5329 macro_version='2.4.6'
5330 macro_revision='2.4.6'
5344 ltmain=$ac_aux_dir/ltmain.sh
5346 # Make sure we can run config.sub.
5347 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5348 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5351 $as_echo_n "checking build system type... " >&6; }
5352 if ${ac_cv_build+:} false; then :
5353 $as_echo_n "(cached) " >&6
5355 ac_build_alias=$build_alias
5356 test "x$ac_build_alias" = x &&
5357 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5358 test "x$ac_build_alias" = x &&
5359 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5360 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5361 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5365 $as_echo "$ac_cv_build" >&6; }
5366 case $ac_cv_build in
5368 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5371 ac_save_IFS=$IFS; IFS='-'
5377 # Remember, the first character of IFS is used to create $*,
5378 # except with old shells:
5381 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5385 $as_echo_n "checking host system type... " >&6; }
5386 if ${ac_cv_host+:} false; then :
5387 $as_echo_n "(cached) " >&6
5389 if test "x$host_alias" = x; then
5390 ac_cv_host=$ac_cv_build
5392 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5393 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5398 $as_echo "$ac_cv_host" >&6; }
5401 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5404 ac_save_IFS=$IFS; IFS='-'
5410 # Remember, the first character of IFS is used to create $*,
5411 # except with old shells:
5414 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5417 # Backslashify metacharacters that are still active within
5418 # double-quoted strings.
5419 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5421 # Same as above, but do not quote variable references.
5422 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5424 # Sed substitution to delay expansion of an escaped shell variable in a
5425 # double_quote_subst'ed string.
5426 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5428 # Sed substitution to delay expansion of an escaped single quote.
5429 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5431 # Sed substitution to avoid accidental globbing in evaled expressions
5432 no_glob_subst='s/\*/\\\*/g'
5434 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5435 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5436 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5439 $as_echo_n "checking how to print strings... " >&6; }
5440 # Test print first, because it will be a builtin if present.
5441 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5442 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5444 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5447 # Use this function as a fallback that always works.
5448 func_fallback_echo ()
5450 eval 'cat <<_LTECHO_EOF
5454 ECHO='func_fallback_echo'
5457 # func_echo_all arg...
5458 # Invoke $ECHO with all args, space-separated.
5465 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5466 $as_echo "printf" >&6; } ;;
5467 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5468 $as_echo "print -r" >&6; } ;;
5469 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5470 $as_echo "cat" >&6; } ;;
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5487 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5488 if ${ac_cv_path_SED+:} false; then :
5489 $as_echo_n "(cached) " >&6
5491 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5492 for ac_i in 1 2 3 4 5 6 7; do
5493 ac_script="$ac_script$as_nl$ac_script"
5495 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5496 { ac_script=; unset ac_script;}
5497 if test -z "$SED"; then
5498 ac_path_SED_found=false
5499 # Loop through the user's path and test for each of PROGNAME-LIST
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 test -z "$as_dir" && as_dir=.
5505 for ac_prog in sed gsed; do
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5508 as_fn_executable_p "$ac_path_SED" || continue
5509 # Check for GNU ac_path_SED and select it if it is found.
5510 # Check for GNU $ac_path_SED
5511 case `"$ac_path_SED" --version 2>&1` in
5513 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5516 $as_echo_n 0123456789 >"conftest.in"
5519 cat "conftest.in" "conftest.in" >"conftest.tmp"
5520 mv "conftest.tmp" "conftest.in"
5521 cp "conftest.in" "conftest.nl"
5522 $as_echo '' >> "conftest.nl"
5523 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5525 as_fn_arith $ac_count + 1 && ac_count=$as_val
5526 if test $ac_count -gt ${ac_path_SED_max-0}; then
5527 # Best one so far, save it but keep looking for a better one
5528 ac_cv_path_SED="$ac_path_SED"
5529 ac_path_SED_max=$ac_count
5531 # 10*(2^10) chars as input seems more than enough
5532 test $ac_count -gt 10 && break
5534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5537 $ac_path_SED_found && break 3
5542 if test -z "$ac_cv_path_SED"; then
5543 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5551 $as_echo "$ac_cv_path_SED" >&6; }
5552 SED="$ac_cv_path_SED"
5555 test -z "$SED" && SED=sed
5556 Xsed="$SED -e 1s/^X//"
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5569 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5570 if ${ac_cv_path_GREP+:} false; then :
5571 $as_echo_n "(cached) " >&6
5573 if test -z "$GREP"; then
5574 ac_path_GREP_found=false
5575 # Loop through the user's path and test for each of PROGNAME-LIST
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5580 test -z "$as_dir" && as_dir=.
5581 for ac_prog in grep ggrep; do
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5584 as_fn_executable_p "$ac_path_GREP" || continue
5585 # Check for GNU ac_path_GREP and select it if it is found.
5586 # Check for GNU $ac_path_GREP
5587 case `"$ac_path_GREP" --version 2>&1` in
5589 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5592 $as_echo_n 0123456789 >"conftest.in"
5595 cat "conftest.in" "conftest.in" >"conftest.tmp"
5596 mv "conftest.tmp" "conftest.in"
5597 cp "conftest.in" "conftest.nl"
5598 $as_echo 'GREP' >> "conftest.nl"
5599 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5601 as_fn_arith $ac_count + 1 && ac_count=$as_val
5602 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5603 # Best one so far, save it but keep looking for a better one
5604 ac_cv_path_GREP="$ac_path_GREP"
5605 ac_path_GREP_max=$ac_count
5607 # 10*(2^10) chars as input seems more than enough
5608 test $ac_count -gt 10 && break
5610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5613 $ac_path_GREP_found && break 3
5618 if test -z "$ac_cv_path_GREP"; then
5619 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5622 ac_cv_path_GREP=$GREP
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5627 $as_echo "$ac_cv_path_GREP" >&6; }
5628 GREP="$ac_cv_path_GREP"
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5632 $as_echo_n "checking for egrep... " >&6; }
5633 if ${ac_cv_path_EGREP+:} false; then :
5634 $as_echo_n "(cached) " >&6
5636 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5637 then ac_cv_path_EGREP="$GREP -E"
5639 if test -z "$EGREP"; then
5640 ac_path_EGREP_found=false
5641 # Loop through the user's path and test for each of PROGNAME-LIST
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5646 test -z "$as_dir" && as_dir=.
5647 for ac_prog in egrep; do
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5650 as_fn_executable_p "$ac_path_EGREP" || continue
5651 # Check for GNU ac_path_EGREP and select it if it is found.
5652 # Check for GNU $ac_path_EGREP
5653 case `"$ac_path_EGREP" --version 2>&1` in
5655 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5658 $as_echo_n 0123456789 >"conftest.in"
5661 cat "conftest.in" "conftest.in" >"conftest.tmp"
5662 mv "conftest.tmp" "conftest.in"
5663 cp "conftest.in" "conftest.nl"
5664 $as_echo 'EGREP' >> "conftest.nl"
5665 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5667 as_fn_arith $ac_count + 1 && ac_count=$as_val
5668 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5669 # Best one so far, save it but keep looking for a better one
5670 ac_cv_path_EGREP="$ac_path_EGREP"
5671 ac_path_EGREP_max=$ac_count
5673 # 10*(2^10) chars as input seems more than enough
5674 test $ac_count -gt 10 && break
5676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5679 $ac_path_EGREP_found && break 3
5684 if test -z "$ac_cv_path_EGREP"; then
5685 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5688 ac_cv_path_EGREP=$EGREP
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5694 $as_echo "$ac_cv_path_EGREP" >&6; }
5695 EGREP="$ac_cv_path_EGREP"
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5699 $as_echo_n "checking for fgrep... " >&6; }
5700 if ${ac_cv_path_FGREP+:} false; then :
5701 $as_echo_n "(cached) " >&6
5703 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5704 then ac_cv_path_FGREP="$GREP -F"
5706 if test -z "$FGREP"; then
5707 ac_path_FGREP_found=false
5708 # Loop through the user's path and test for each of PROGNAME-LIST
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5713 test -z "$as_dir" && as_dir=.
5714 for ac_prog in fgrep; do
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5717 as_fn_executable_p "$ac_path_FGREP" || continue
5718 # Check for GNU ac_path_FGREP and select it if it is found.
5719 # Check for GNU $ac_path_FGREP
5720 case `"$ac_path_FGREP" --version 2>&1` in
5722 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5725 $as_echo_n 0123456789 >"conftest.in"
5728 cat "conftest.in" "conftest.in" >"conftest.tmp"
5729 mv "conftest.tmp" "conftest.in"
5730 cp "conftest.in" "conftest.nl"
5731 $as_echo 'FGREP' >> "conftest.nl"
5732 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5734 as_fn_arith $ac_count + 1 && ac_count=$as_val
5735 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5736 # Best one so far, save it but keep looking for a better one
5737 ac_cv_path_FGREP="$ac_path_FGREP"
5738 ac_path_FGREP_max=$ac_count
5740 # 10*(2^10) chars as input seems more than enough
5741 test $ac_count -gt 10 && break
5743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5746 $ac_path_FGREP_found && break 3
5751 if test -z "$ac_cv_path_FGREP"; then
5752 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5755 ac_cv_path_FGREP=$FGREP
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5761 $as_echo "$ac_cv_path_FGREP" >&6; }
5762 FGREP="$ac_cv_path_FGREP"
5765 test -z "$GREP" && GREP=grep
5785 # Check whether --with-gnu-ld was given.
5786 if test "${with_gnu_ld+set}" = set; then :
5787 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5793 if test yes = "$GCC"; then
5794 # Check if gcc -print-prog-name=ld gives a path.
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5796 $as_echo_n "checking for ld used by $CC... " >&6; }
5799 # gcc leaves a trailing carriage return, which upsets mingw
5800 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5802 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5805 # Accept absolute paths.
5807 re_direlt='/[^/][^/]*/\.\./'
5808 # Canonicalize the pathname of ld
5809 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5810 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5811 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5813 test -z "$LD" && LD=$ac_prog
5816 # If it fails, then pretend we aren't using GCC.
5820 # If it is relative, then search for the first ld in PATH.
5824 elif test yes = "$with_gnu_ld"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5826 $as_echo_n "checking for GNU ld... " >&6; }
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5829 $as_echo_n "checking for non-GNU ld... " >&6; }
5831 if ${lt_cv_path_LD+:} false; then :
5832 $as_echo_n "(cached) " >&6
5834 if test -z "$LD"; then
5835 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5836 for ac_dir in $PATH; do
5838 test -z "$ac_dir" && ac_dir=.
5839 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5840 lt_cv_path_LD=$ac_dir/$ac_prog
5841 # Check to see if the program is GNU ld. I'd rather use --version,
5842 # but apparently some variants of GNU ld only accept -v.
5843 # Break only if it was the GNU/non-GNU ld that we prefer.
5844 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5845 *GNU* | *'with BFD'*)
5846 test no != "$with_gnu_ld" && break
5849 test yes != "$with_gnu_ld" && break
5856 lt_cv_path_LD=$LD # Let the user override the test with a path.
5861 if test -n "$LD"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5863 $as_echo "$LD" >&6; }
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5868 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5870 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5871 if ${lt_cv_prog_gnu_ld+:} false; then :
5872 $as_echo_n "(cached) " >&6
5874 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5875 case `$LD -v 2>&1 </dev/null` in
5876 *GNU* | *'with BFD'*)
5877 lt_cv_prog_gnu_ld=yes
5880 lt_cv_prog_gnu_ld=no
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5885 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5886 with_gnu_ld=$lt_cv_prog_gnu_ld
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5897 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5898 if ${lt_cv_path_NM+:} false; then :
5899 $as_echo_n "(cached) " >&6
5901 if test -n "$NM"; then
5902 # Let the user override the test.
5905 lt_nm_to_check=${ac_tool_prefix}nm
5906 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5907 lt_nm_to_check="$lt_nm_to_check nm"
5909 for lt_tmp_nm in $lt_nm_to_check; do
5910 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5911 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5913 test -z "$ac_dir" && ac_dir=.
5914 tmp_nm=$ac_dir/$lt_tmp_nm
5915 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5916 # Check to see if the nm accepts a BSD-compat flag.
5917 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5918 # nm: unknown option "B" ignored
5919 # Tru64's nm complains that /dev/null is an invalid object file
5920 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5922 mingw*) lt_bad_file=conftest.nm/nofile ;;
5923 *) lt_bad_file=/dev/null ;;
5925 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5926 *$lt_bad_file* | *'Invalid file or object type'*)
5927 lt_cv_path_NM="$tmp_nm -B"
5931 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5933 lt_cv_path_NM="$tmp_nm -p"
5937 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5938 continue # so that we can try to find one that supports BSD flags
5947 : ${lt_cv_path_NM=no}
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5951 $as_echo "$lt_cv_path_NM" >&6; }
5952 if test no != "$lt_cv_path_NM"; then
5955 # Didn't find any BSD compatible name lister, look for dumpbin.
5956 if test -n "$DUMPBIN"; then :
5957 # Let the user override the test.
5959 if test -n "$ac_tool_prefix"; then
5960 for ac_prog in dumpbin "link -dump"
5962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965 $as_echo_n "checking for $ac_word... " >&6; }
5966 if ${ac_cv_prog_DUMPBIN+:} false; then :
5967 $as_echo_n "(cached) " >&6
5969 if test -n "$DUMPBIN"; then
5970 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 DUMPBIN=$ac_cv_prog_DUMPBIN
5990 if test -n "$DUMPBIN"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5992 $as_echo "$DUMPBIN" >&6; }
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5999 test -n "$DUMPBIN" && break
6002 if test -z "$DUMPBIN"; then
6003 ac_ct_DUMPBIN=$DUMPBIN
6004 for ac_prog in dumpbin "link -dump"
6006 # Extract the first word of "$ac_prog", so it can be a program name with args.
6007 set dummy $ac_prog; 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_ac_ct_DUMPBIN+:} false; then :
6011 $as_echo_n "(cached) " >&6
6013 if test -n "$ac_ct_DUMPBIN"; then
6014 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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_ac_ct_DUMPBIN="$ac_prog"
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6034 if test -n "$ac_ct_DUMPBIN"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6036 $as_echo "$ac_ct_DUMPBIN" >&6; }
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6043 test -n "$ac_ct_DUMPBIN" && break
6046 if test "x$ac_ct_DUMPBIN" = x; then
6049 case $cross_compiling:$ac_tool_warned in
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6053 ac_tool_warned=yes ;;
6055 DUMPBIN=$ac_ct_DUMPBIN
6059 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6061 DUMPBIN="$DUMPBIN -symbols -headers"
6069 if test : != "$DUMPBIN"; then
6073 test -z "$NM" && NM=nm
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6081 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6082 if ${lt_cv_nm_interface+:} false; then :
6083 $as_echo_n "(cached) " >&6
6085 lt_cv_nm_interface="BSD nm"
6086 echo "int some_variable = 0;" > conftest.$ac_ext
6087 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6088 (eval "$ac_compile" 2>conftest.err)
6089 cat conftest.err >&5
6090 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6091 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6092 cat conftest.err >&5
6093 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6094 cat conftest.out >&5
6095 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6096 lt_cv_nm_interface="MS dumpbin"
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6101 $as_echo "$lt_cv_nm_interface" >&6; }
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6104 $as_echo_n "checking whether ln -s works... " >&6; }
6106 if test "$LN_S" = "ln -s"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6108 $as_echo "yes" >&6; }
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6111 $as_echo "no, using $LN_S" >&6; }
6114 # find the maximum length of command line arguments
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6116 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6117 if ${lt_cv_sys_max_cmd_len+:} false; then :
6118 $as_echo_n "(cached) " >&6
6125 # On DJGPP, this test can blow up pretty badly due to problems in libc
6126 # (any single argument exceeding 2000 bytes causes a buffer overrun
6127 # during glob expansion). Even if it were fixed, the result of this
6128 # check would be larger than it should be.
6129 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6133 # Under GNU Hurd, this test is not required because there is
6134 # no limit to the length of command line arguments.
6135 # Libtool will interpret -1 as no limit whatsoever
6136 lt_cv_sys_max_cmd_len=-1;
6139 cygwin* | mingw* | cegcc*)
6140 # On Win9x/ME, this test blows up -- it succeeds, but takes
6141 # about 5 minutes as the teststring grows exponentially.
6142 # Worse, since 9x/ME are not pre-emptively multitasking,
6143 # you end up with a "frozen" computer, even though with patience
6144 # the test eventually succeeds (with a max line length of 256k).
6145 # Instead, let's just punt: use the minimum linelength reported by
6146 # all of the supported platforms: 8192 (on NT/2K/XP).
6147 lt_cv_sys_max_cmd_len=8192;
6151 # On MiNT this can take a long time and run out of memory.
6152 lt_cv_sys_max_cmd_len=8192;
6156 # On AmigaOS with pdksh, this test takes hours, literally.
6157 # So we just punt and use a minimum line length of 8192.
6158 lt_cv_sys_max_cmd_len=8192;
6161 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6162 # This has been around since 386BSD, at least. Likely further.
6163 if test -x /sbin/sysctl; then
6164 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6165 elif test -x /usr/sbin/sysctl; then
6166 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6168 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6170 # And add a safety zone
6171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6176 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6177 lt_cv_sys_max_cmd_len=196608
6181 # The test takes a long time on OS/2.
6182 lt_cv_sys_max_cmd_len=8192
6186 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6187 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6188 # nice to cause kernel panics so lets avoid the loop below.
6189 # First set a reasonable default.
6190 lt_cv_sys_max_cmd_len=16384
6192 if test -x /sbin/sysconfig; then
6193 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6194 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6199 lt_cv_sys_max_cmd_len=102400
6201 sysv5* | sco5v6* | sysv4.2uw2*)
6202 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6203 if test -n "$kargmax"; then
6204 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6206 lt_cv_sys_max_cmd_len=32768
6210 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6211 if test -n "$lt_cv_sys_max_cmd_len" && \
6212 test undefined != "$lt_cv_sys_max_cmd_len"; then
6213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6216 # Make teststring a little bigger before we do anything with it.
6217 # a 1K string should be a reasonable start.
6218 for i in 1 2 3 4 5 6 7 8; do
6219 teststring=$teststring$teststring
6221 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6222 # If test is not a shell built-in, we'll probably end up computing a
6223 # maximum length that is only half of the actual maximum length, but
6225 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6226 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6227 test 17 != "$i" # 1/2 MB should be enough
6230 teststring=$teststring$teststring
6232 # Only check the string length outside the loop.
6233 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6235 # Add a significant safety factor because C++ compilers can tack on
6236 # massive amounts of additional arguments before passing them to the
6237 # linker. It appears as though 1/2 is a usable value.
6238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6245 if test -n "$lt_cv_sys_max_cmd_len"; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6247 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6250 $as_echo "none" >&6; }
6252 max_cmd_len=$lt_cv_sys_max_cmd_len
6263 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6273 # test EBCDIC or ASCII
6274 case `echo X|tr X '\101'` in
6275 A) # ASCII based system
6276 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6277 lt_SP2NL='tr \040 \012'
6278 lt_NL2SP='tr \015\012 \040\040'
6280 *) # EBCDIC based system
6281 lt_SP2NL='tr \100 \n'
6282 lt_NL2SP='tr \r\n \100\100'
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6295 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6296 if ${lt_cv_to_host_file_cmd+:} false; then :
6297 $as_echo_n "(cached) " >&6
6302 *-*-mingw* ) # actually msys
6303 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6306 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6308 * ) # otherwise, assume *nix
6309 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6315 *-*-mingw* ) # actually msys
6316 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6319 lt_cv_to_host_file_cmd=func_convert_file_noop
6321 * ) # otherwise, assume *nix
6322 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6326 * ) # unhandled hosts (and "normal" native builds)
6327 lt_cv_to_host_file_cmd=func_convert_file_noop
6333 to_host_file_cmd=$lt_cv_to_host_file_cmd
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6335 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6342 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6343 if ${lt_cv_to_tool_file_cmd+:} false; then :
6344 $as_echo_n "(cached) " >&6
6346 #assume ordinary cross tools, or native build.
6347 lt_cv_to_tool_file_cmd=func_convert_file_noop
6351 *-*-mingw* ) # actually msys
6352 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6360 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6362 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6369 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6370 if ${lt_cv_ld_reload_flag+:} false; then :
6371 $as_echo_n "(cached) " >&6
6373 lt_cv_ld_reload_flag='-r'
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6376 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6377 reload_flag=$lt_cv_ld_reload_flag
6378 case $reload_flag in
6380 *) reload_flag=" $reload_flag" ;;
6382 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6384 cygwin* | mingw* | pw32* | cegcc*)
6385 if test yes != "$GCC"; then
6390 if test yes = "$GCC"; then
6391 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6393 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6406 if test -n "$ac_tool_prefix"; then
6407 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6408 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 $as_echo_n "checking for $ac_word... " >&6; }
6411 if ${ac_cv_prog_OBJDUMP+:} false; then :
6412 $as_echo_n "(cached) " >&6
6414 if test -n "$OBJDUMP"; then
6415 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 OBJDUMP=$ac_cv_prog_OBJDUMP
6435 if test -n "$OBJDUMP"; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6437 $as_echo "$OBJDUMP" >&6; }
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6445 if test -z "$ac_cv_prog_OBJDUMP"; then
6446 ac_ct_OBJDUMP=$OBJDUMP
6447 # Extract the first word of "objdump", so it can be a program name with args.
6448 set dummy objdump; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6452 $as_echo_n "(cached) " >&6
6454 if test -n "$ac_ct_OBJDUMP"; then
6455 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6464 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6475 if test -n "$ac_ct_OBJDUMP"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6477 $as_echo "$ac_ct_OBJDUMP" >&6; }
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6483 if test "x$ac_ct_OBJDUMP" = x; then
6486 case $cross_compiling:$ac_tool_warned in
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6490 ac_tool_warned=yes ;;
6492 OBJDUMP=$ac_ct_OBJDUMP
6495 OBJDUMP="$ac_cv_prog_OBJDUMP"
6498 test -z "$OBJDUMP" && OBJDUMP=objdump
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6509 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6510 if ${lt_cv_deplibs_check_method+:} false; then :
6511 $as_echo_n "(cached) " >&6
6513 lt_cv_file_magic_cmd='$MAGIC_CMD'
6514 lt_cv_file_magic_test_file=
6515 lt_cv_deplibs_check_method='unknown'
6516 # Need to set the preceding variable on all platforms that support
6517 # interlibrary dependencies.
6518 # 'none' -- dependencies not supported.
6519 # 'unknown' -- same as none, but documents that we really don't know.
6520 # 'pass_all' -- all dependencies passed with no checks.
6521 # 'test_compile' -- check by making test program.
6522 # 'file_magic [[regex]]' -- check by looking for files in library path
6523 # that responds to the $file_magic_cmd with a given extended regex.
6524 # If you have 'file' or equivalent on your system and you're not sure
6525 # whether 'pass_all' will *always* work, you probably want this one.
6529 lt_cv_deplibs_check_method=pass_all
6533 lt_cv_deplibs_check_method=pass_all
6537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6538 lt_cv_file_magic_cmd='/usr/bin/file -L'
6539 lt_cv_file_magic_test_file=/shlib/libc.so
6543 # func_win32_libid is a shell function defined in ltmain.sh
6544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6545 lt_cv_file_magic_cmd='func_win32_libid'
6549 # Base MSYS/MinGW do not provide the 'file' command needed by
6550 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6551 # unless we find 'file', for example because we are cross-compiling.
6552 if ( file / ) >/dev/null 2>&1; then
6553 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6554 lt_cv_file_magic_cmd='func_win32_libid'
6556 # Keep this pattern in sync with the one in func_win32_libid.
6557 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6558 lt_cv_file_magic_cmd='$OBJDUMP -f'
6563 # use the weaker test based on 'objdump'. See mingw*.
6564 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6565 lt_cv_file_magic_cmd='$OBJDUMP -f'
6568 darwin* | rhapsody*)
6569 lt_cv_deplibs_check_method=pass_all
6572 freebsd* | dragonfly*)
6573 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6576 # Not sure whether the presence of OpenBSD here was a mistake.
6577 # Let's accept both of them until this is cleared up.
6578 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6579 lt_cv_file_magic_cmd=/usr/bin/file
6580 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6584 lt_cv_deplibs_check_method=pass_all
6589 lt_cv_deplibs_check_method=pass_all
6592 hpux10.20* | hpux11*)
6593 lt_cv_file_magic_cmd=/usr/bin/file
6596 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6597 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6600 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]'
6601 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6604 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6605 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6611 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6615 irix5* | irix6* | nonstopux*)
6617 *-32|*"-32 ") libmagic=32-bit;;
6618 *-n32|*"-n32 ") libmagic=N32;;
6619 *-64|*"-64 ") libmagic=64-bit;;
6620 *) libmagic=never-match;;
6622 lt_cv_deplibs_check_method=pass_all
6625 # This must be glibc/ELF.
6626 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6627 lt_cv_deplibs_check_method=pass_all
6631 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6639 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6640 lt_cv_file_magic_cmd=/usr/bin/file
6641 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6645 lt_cv_deplibs_check_method=pass_all
6649 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6652 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6656 osf3* | osf4* | osf5*)
6657 lt_cv_deplibs_check_method=pass_all
6661 lt_cv_deplibs_check_method=pass_all
6665 lt_cv_deplibs_check_method=pass_all
6668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6669 lt_cv_deplibs_check_method=pass_all
6673 case $host_vendor in
6675 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]'
6676 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6679 lt_cv_deplibs_check_method=pass_all
6682 lt_cv_file_magic_cmd='/bin/file'
6683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6686 lt_cv_file_magic_cmd='/bin/file'
6687 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6688 lt_cv_file_magic_test_file=/lib/libc.so
6691 lt_cv_deplibs_check_method=pass_all
6694 lt_cv_deplibs_check_method=pass_all
6700 lt_cv_deplibs_check_method=pass_all
6703 lt_cv_deplibs_check_method=pass_all
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6709 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6713 if test "$build" = "$host"; then
6716 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6719 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6725 file_magic_cmd=$lt_cv_file_magic_cmd
6726 deplibs_check_method=$lt_cv_deplibs_check_method
6727 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6750 if test -n "$ac_tool_prefix"; then
6751 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6752 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if ${ac_cv_prog_DLLTOOL+:} false; then :
6756 $as_echo_n "(cached) " >&6
6758 if test -n "$DLLTOOL"; then
6759 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 DLLTOOL=$ac_cv_prog_DLLTOOL
6779 if test -n "$DLLTOOL"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6781 $as_echo "$DLLTOOL" >&6; }
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6789 if test -z "$ac_cv_prog_DLLTOOL"; then
6790 ac_ct_DLLTOOL=$DLLTOOL
6791 # Extract the first word of "dlltool", so it can be a program name with args.
6792 set dummy dlltool; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6796 $as_echo_n "(cached) " >&6
6798 if test -n "$ac_ct_DLLTOOL"; then
6799 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6819 if test -n "$ac_ct_DLLTOOL"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6821 $as_echo "$ac_ct_DLLTOOL" >&6; }
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6827 if test "x$ac_ct_DLLTOOL" = x; then
6830 case $cross_compiling:$ac_tool_warned in
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6834 ac_tool_warned=yes ;;
6836 DLLTOOL=$ac_ct_DLLTOOL
6839 DLLTOOL="$ac_cv_prog_DLLTOOL"
6842 test -z "$DLLTOOL" && DLLTOOL=dlltool
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6854 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6855 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6856 $as_echo_n "(cached) " >&6
6858 lt_cv_sharedlib_from_linklib_cmd='unknown'
6861 cygwin* | mingw* | pw32* | cegcc*)
6862 # two different shell functions defined in ltmain.sh;
6863 # decide which one to use based on capabilities of $DLLTOOL
6864 case `$DLLTOOL --help 2>&1` in
6865 *--identify-strict*)
6866 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6869 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6874 # fallback: assume linklib IS sharedlib
6875 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6881 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6882 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6883 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6891 if test -n "$ac_tool_prefix"; then
6894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897 $as_echo_n "checking for $ac_word... " >&6; }
6898 if ${ac_cv_prog_AR+:} false; then :
6899 $as_echo_n "(cached) " >&6
6901 if test -n "$AR"; then
6902 ac_cv_prog_AR="$AR" # Let the user override the test.
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6911 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 if test -n "$AR"; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6924 $as_echo "$AR" >&6; }
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927 $as_echo "no" >&6; }
6931 test -n "$AR" && break
6934 if test -z "$AR"; then
6938 # Extract the first word of "$ac_prog", so it can be a program name with args.
6939 set dummy $ac_prog; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6943 $as_echo_n "(cached) " >&6
6945 if test -n "$ac_ct_AR"; then
6946 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_ac_ct_AR="$ac_prog"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6966 if test -n "$ac_ct_AR"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6968 $as_echo "$ac_ct_AR" >&6; }
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6975 test -n "$ac_ct_AR" && break
6978 if test "x$ac_ct_AR" = x; then
6981 case $cross_compiling:$ac_tool_warned in
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985 ac_tool_warned=yes ;;
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7005 $as_echo_n "checking for archiver @FILE support... " >&6; }
7006 if ${lt_cv_ar_at_file+:} false; then :
7007 $as_echo_n "(cached) " >&6
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7021 if ac_fn_c_try_compile "$LINENO"; then :
7022 echo conftest.$ac_objext > conftest.lst
7023 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7025 (eval $lt_ar_try) 2>&5
7027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028 test $ac_status = 0; }
7029 if test 0 -eq "$ac_status"; then
7030 # Ensure the archiver fails upon bogus file names.
7031 rm -f conftest.$ac_objext libconftest.a
7032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7033 (eval $lt_ar_try) 2>&5
7035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7036 test $ac_status = 0; }
7037 if test 0 -ne "$ac_status"; then
7041 rm -f conftest.* libconftest.a
7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7048 $as_echo "$lt_cv_ar_at_file" >&6; }
7050 if test no = "$lt_cv_ar_at_file"; then
7053 archiver_list_spec=$lt_cv_ar_at_file
7062 if test -n "$ac_tool_prefix"; then
7063 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7064 set dummy ${ac_tool_prefix}strip; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if ${ac_cv_prog_STRIP+:} false; then :
7068 $as_echo_n "(cached) " >&6
7070 if test -n "$STRIP"; then
7071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7080 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 STRIP=$ac_cv_prog_STRIP
7091 if test -n "$STRIP"; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7093 $as_echo "$STRIP" >&6; }
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7101 if test -z "$ac_cv_prog_STRIP"; then
7103 # Extract the first word of "strip", so it can be a program name with args.
7104 set dummy strip; ac_word=$2
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106 $as_echo_n "checking for $ac_word... " >&6; }
7107 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7108 $as_echo_n "(cached) " >&6
7110 if test -n "$ac_ct_STRIP"; then
7111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120 ac_cv_prog_ac_ct_STRIP="strip"
7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7131 if test -n "$ac_ct_STRIP"; then
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7133 $as_echo "$ac_ct_STRIP" >&6; }
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7139 if test "x$ac_ct_STRIP" = x; then
7142 case $cross_compiling:$ac_tool_warned in
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7146 ac_tool_warned=yes ;;
7151 STRIP="$ac_cv_prog_STRIP"
7154 test -z "$STRIP" && STRIP=:
7161 if test -n "$ac_tool_prefix"; then
7162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7163 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_prog_RANLIB+:} false; then :
7167 $as_echo_n "(cached) " >&6
7169 if test -n "$RANLIB"; then
7170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 RANLIB=$ac_cv_prog_RANLIB
7190 if test -n "$RANLIB"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7192 $as_echo "$RANLIB" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7200 if test -z "$ac_cv_prog_RANLIB"; then
7201 ac_ct_RANLIB=$RANLIB
7202 # Extract the first word of "ranlib", so it can be a program name with args.
7203 set dummy ranlib; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7207 $as_echo_n "(cached) " >&6
7209 if test -n "$ac_ct_RANLIB"; then
7210 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_ac_ct_RANLIB="ranlib"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7230 if test -n "$ac_ct_RANLIB"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7232 $as_echo "$ac_ct_RANLIB" >&6; }
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7238 if test "x$ac_ct_RANLIB" = x; then
7241 case $cross_compiling:$ac_tool_warned in
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7245 ac_tool_warned=yes ;;
7247 RANLIB=$ac_ct_RANLIB
7250 RANLIB="$ac_cv_prog_RANLIB"
7253 test -z "$RANLIB" && RANLIB=:
7260 # Determine commands to create old-style static archives.
7261 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7262 old_postinstall_cmds='chmod 644 $oldlib'
7263 old_postuninstall_cmds=
7265 if test -n "$RANLIB"; then
7268 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7271 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7274 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7279 lock_old_archive_extraction=yes ;;
7281 lock_old_archive_extraction=no ;;
7322 # If no C compiler was specified, use CC.
7325 # If no C compiler flags were specified, use CFLAGS.
7326 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7328 # Allow CC to be a program name with arguments.
7332 # Check for command to grab the raw symbol name followed by C symbol from nm.
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7334 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7335 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7336 $as_echo_n "(cached) " >&6
7339 # These are sane defaults that work on at least a few old systems.
7340 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7342 # Character class describing NM global symbol codes.
7343 symcode='[BCDEGRST]'
7345 # Regexp to match symbols that can be accessed directly from C.
7346 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7348 # Define system-specific variables.
7353 cygwin* | mingw* | pw32* | cegcc*)
7354 symcode='[ABCDGISTW]'
7357 if test ia64 = "$host_cpu"; then
7358 symcode='[ABCDEGRST]'
7362 symcode='[BCDEGRST]'
7365 symcode='[BCDEGQRST]'
7376 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7384 # If we're using GNU nm, then use its standard symbol codes.
7385 case `$NM -V 2>&1` in
7386 *GNU* | *'with BFD'*)
7387 symcode='[ABCDGIRSTW]' ;;
7390 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7391 # Gets list of data symbols to import.
7392 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7393 # Adjust the below global symbol transforms to fixup imported variables.
7394 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7395 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7396 lt_c_name_lib_hook="\
7397 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7398 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7400 # Disable hooks by default.
7401 lt_cv_sys_global_symbol_to_import=
7407 # Transform an extracted symbol line into a proper C declaration.
7408 # Some systems (esp. on ia64) link data and code symbols differently,
7409 # so use this general approach.
7410 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7412 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7413 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7415 # Transform an extracted symbol line into symbol name and symbol address
7416 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7418 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7419 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7421 # Transform an extracted symbol line into symbol name with lib prefix and
7423 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7424 $lt_c_name_lib_hook\
7425 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7426 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7427 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7429 # Handle CRLF in mingw tool chain
7433 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7437 # Try without a prefix underscore, then with it.
7438 for ac_symprfx in "" "_"; do
7440 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7441 symxfrm="\\1 $ac_symprfx\\2 \\2"
7443 # Write the raw and C identifiers.
7444 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7445 # Fake it for dumpbin and say T for any non-static function,
7446 # D for any global variable and I for any imported variable.
7447 # Also find C++ and __fastcall symbols from MSVC++,
7448 # which start with @ or ?.
7449 lt_cv_sys_global_symbol_pipe="$AWK '"\
7450 " {last_section=section; section=\$ 3};"\
7451 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7452 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7453 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7454 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7455 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7456 " \$ 0!~/External *\|/{next};"\
7457 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7458 " {if(hide[section]) next};"\
7459 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7460 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7461 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7462 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7463 " ' prfx=^$ac_symprfx"
7465 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7467 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7469 # Check to see that the pipe works correctly.
7473 cat > conftest.$ac_ext <<_LT_EOF
7478 void nm_test_func(void);
7479 void nm_test_func(void){}
7483 int main(){nm_test_var='a';nm_test_func();return(0);}
7486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7487 (eval $ac_compile) 2>&5
7489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7490 test $ac_status = 0; }; then
7491 # Now try to grab the symbols.
7493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7494 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497 test $ac_status = 0; } && test -s "$nlist"; then
7498 # Try sorting and uniquifying the output.
7499 if sort "$nlist" | uniq > "$nlist"T; then
7500 mv -f "$nlist"T "$nlist"
7505 # Make sure that we snagged all the symbols we need.
7506 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7507 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7508 cat <<_LT_EOF > conftest.$ac_ext
7509 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7510 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7511 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7512 relocations are performed -- see ld's documentation on pseudo-relocs. */
7513 # define LT_DLSYM_CONST
7514 #elif defined __osf__
7515 /* This system does not cope well with relocations in const data. */
7516 # define LT_DLSYM_CONST
7518 # define LT_DLSYM_CONST const
7526 # Now generate the symbol file.
7527 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7529 cat <<_LT_EOF >> conftest.$ac_ext
7531 /* The mapping between symbol names and symbols. */
7532 LT_DLSYM_CONST struct {
7536 lt__PROGRAM__LTX_preloaded_symbols[] =
7538 { "@PROGRAM@", (void *) 0 },
7540 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7541 cat <<\_LT_EOF >> conftest.$ac_ext
7545 /* This works around a problem in FreeBSD linker */
7546 #ifdef FREEBSD_WORKAROUND
7547 static const void *lt_preloaded_setup() {
7548 return lt__PROGRAM__LTX_preloaded_symbols;
7556 # Now try linking the two files.
7557 mv conftest.$ac_objext conftstm.$ac_objext
7558 lt_globsym_save_LIBS=$LIBS
7559 lt_globsym_save_CFLAGS=$CFLAGS
7560 LIBS=conftstm.$ac_objext
7561 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7563 (eval $ac_link) 2>&5
7565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7566 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7569 LIBS=$lt_globsym_save_LIBS
7570 CFLAGS=$lt_globsym_save_CFLAGS
7572 echo "cannot find nm_test_func in $nlist" >&5
7575 echo "cannot find nm_test_var in $nlist" >&5
7578 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7581 echo "$progname: failed program was:" >&5
7582 cat conftest.$ac_ext >&5
7584 rm -rf conftest* conftst*
7586 # Do not use the global_symbol_pipe unless it works.
7587 if test yes = "$pipe_works"; then
7590 lt_cv_sys_global_symbol_pipe=
7596 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7597 lt_cv_sys_global_symbol_to_cdecl=
7599 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7601 $as_echo "failed" >&6; }
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7604 $as_echo "ok" >&6; }
7607 # Response file support.
7608 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7609 nm_file_list_spec='@'
7610 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7611 nm_file_list_spec='@'
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7651 $as_echo_n "checking for sysroot... " >&6; }
7653 # Check whether --with-sysroot was given.
7654 if test "${with_sysroot+set}" = set; then :
7655 withval=$with_sysroot;
7662 case $with_sysroot in #(
7664 if test yes = "$GCC"; then
7665 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7669 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7675 $as_echo "$with_sysroot" >&6; }
7676 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7681 $as_echo "${lt_sysroot:-no}" >&6; }
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7688 $as_echo_n "checking for a working dd... " >&6; }
7689 if ${ac_cv_path_lt_DD+:} false; then :
7690 $as_echo_n "(cached) " >&6
7692 printf 0123456789abcdef0123456789abcdef >conftest.i
7693 cat conftest.i conftest.i >conftest2.i
7695 if test -z "$lt_DD"; then
7696 ac_path_lt_DD_found=false
7697 # Loop through the user's path and test for each of PROGNAME-LIST
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 test -z "$as_dir" && as_dir=.
7703 for ac_prog in dd; do
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7706 as_fn_executable_p "$ac_path_lt_DD" || continue
7707 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7708 cmp -s conftest.i conftest.out \
7709 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7711 $ac_path_lt_DD_found && break 3
7716 if test -z "$ac_cv_path_lt_DD"; then
7720 ac_cv_path_lt_DD=$lt_DD
7723 rm -f conftest.i conftest2.i conftest.out
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7726 $as_echo "$ac_cv_path_lt_DD" >&6; }
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7730 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7731 if ${lt_cv_truncate_bin+:} false; then :
7732 $as_echo_n "(cached) " >&6
7734 printf 0123456789abcdef0123456789abcdef >conftest.i
7735 cat conftest.i conftest.i >conftest2.i
7737 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7738 cmp -s conftest.i conftest.out \
7739 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7741 rm -f conftest.i conftest2.i conftest.out
7742 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7745 $as_echo "$lt_cv_truncate_bin" >&6; }
7753 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7756 for cc_temp in $*""; do
7758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7764 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7767 # Check whether --enable-libtool-lock was given.
7768 if test "${enable_libtool_lock+set}" = set; then :
7769 enableval=$enable_libtool_lock;
7772 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7774 # Some flags need to be propagated to the compiler or linker for good
7778 # Find out what ABI is being produced by ac_compile, and set mode
7779 # options accordingly.
7780 echo 'int i;' > conftest.$ac_ext
7781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7782 (eval $ac_compile) 2>&5
7784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7785 test $ac_status = 0; }; then
7786 case `/usr/bin/file conftest.$ac_objext` in
7798 # Find out what ABI is being produced by ac_compile, and set linker
7799 # options accordingly.
7800 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7802 (eval $ac_compile) 2>&5
7804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805 test $ac_status = 0; }; then
7806 if test yes = "$lt_cv_prog_gnu_ld"; then
7807 case `/usr/bin/file conftest.$ac_objext` in
7809 LD="${LD-ld} -melf32bsmip"
7812 LD="${LD-ld} -melf32bmipn32"
7815 LD="${LD-ld} -melf64bmip"
7819 case `/usr/bin/file conftest.$ac_objext` in
7836 # Find out what ABI is being produced by ac_compile, and set linker
7837 # options accordingly.
7838 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7840 (eval $ac_compile) 2>&5
7842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843 test $ac_status = 0; }; then
7845 case `/usr/bin/file conftest.$ac_objext` in
7853 case `/usr/bin/file conftest.$ac_objext` in
7855 emul="${emul}btsmip"
7858 emul="${emul}ltsmip"
7861 case `/usr/bin/file conftest.$ac_objext` in
7866 LD="${LD-ld} -m $emul"
7871 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7872 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7873 # Find out what ABI is being produced by ac_compile, and set linker
7874 # options accordingly. Note that the listed cases only cover the
7875 # situations where additional linker options are needed (such as when
7876 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7877 # vice versa); the common cases where no linker options are needed do
7878 # not appear in the list.
7879 echo 'int i;' > conftest.$ac_ext
7880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7881 (eval $ac_compile) 2>&5
7883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7884 test $ac_status = 0; }; then
7885 case `/usr/bin/file conftest.o` in
7888 x86_64-*kfreebsd*-gnu)
7889 LD="${LD-ld} -m elf_i386_fbsd"
7892 case `/usr/bin/file conftest.o` in
7894 LD="${LD-ld} -m elf32_x86_64"
7897 LD="${LD-ld} -m elf_i386"
7901 powerpc64le-*linux*)
7902 LD="${LD-ld} -m elf32lppclinux"
7905 LD="${LD-ld} -m elf32ppclinux"
7908 LD="${LD-ld} -m elf_s390"
7911 LD="${LD-ld} -m elf32_sparc"
7917 x86_64-*kfreebsd*-gnu)
7918 LD="${LD-ld} -m elf_x86_64_fbsd"
7921 LD="${LD-ld} -m elf_x86_64"
7924 LD="${LD-ld} -m elf64lppc"
7927 LD="${LD-ld} -m elf64ppc"
7929 s390*-*linux*|s390*-*tpf*)
7930 LD="${LD-ld} -m elf64_s390"
7933 LD="${LD-ld} -m elf64_sparc"
7943 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7945 CFLAGS="$CFLAGS -belf"
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7947 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7948 if ${lt_cv_cc_needs_belf+:} false; then :
7949 $as_echo_n "(cached) " >&6
7952 ac_cpp='$CPP $CPPFLAGS'
7953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7968 if ac_fn_c_try_link "$LINENO"; then :
7969 lt_cv_cc_needs_belf=yes
7971 lt_cv_cc_needs_belf=no
7973 rm -f core conftest.err conftest.$ac_objext \
7974 conftest$ac_exeext conftest.$ac_ext
7976 ac_cpp='$CPP $CPPFLAGS'
7977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7983 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7984 if test yes != "$lt_cv_cc_needs_belf"; then
7985 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7990 # Find out what ABI is being produced by ac_compile, and set linker
7991 # options accordingly.
7992 echo 'int i;' > conftest.$ac_ext
7993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7994 (eval $ac_compile) 2>&5
7996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7997 test $ac_status = 0; }; then
7998 case `/usr/bin/file conftest.o` in
8000 case $lt_cv_prog_gnu_ld in
8003 i?86-*-solaris*|x86_64-*-solaris*)
8004 LD="${LD-ld} -m elf_x86_64"
8007 LD="${LD-ld} -m elf64_sparc"
8010 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8011 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8016 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8028 need_locks=$enable_libtool_lock
8030 if test -n "$ac_tool_prefix"; then
8031 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8032 set dummy ${ac_tool_prefix}mt; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8036 $as_echo_n "(cached) " >&6
8038 if test -n "$MANIFEST_TOOL"; then
8039 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8059 if test -n "$MANIFEST_TOOL"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8061 $as_echo "$MANIFEST_TOOL" >&6; }
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8069 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8070 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8071 # Extract the first word of "mt", so it can be a program name with args.
8072 set dummy mt; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 $as_echo_n "checking for $ac_word... " >&6; }
8075 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8076 $as_echo_n "(cached) " >&6
8078 if test -n "$ac_ct_MANIFEST_TOOL"; then
8079 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8099 if test -n "$ac_ct_MANIFEST_TOOL"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8101 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8107 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8110 case $cross_compiling:$ac_tool_warned in
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8114 ac_tool_warned=yes ;;
8116 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8119 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8122 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8124 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8125 if ${lt_cv_path_mainfest_tool+:} false; then :
8126 $as_echo_n "(cached) " >&6
8128 lt_cv_path_mainfest_tool=no
8129 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8130 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8131 cat conftest.err >&5
8132 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8133 lt_cv_path_mainfest_tool=yes
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8138 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8139 if test yes != "$lt_cv_path_mainfest_tool"; then
8149 rhapsody* | darwin*)
8150 if test -n "$ac_tool_prefix"; then
8151 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8152 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8156 $as_echo_n "(cached) " >&6
8158 if test -n "$DSYMUTIL"; then
8159 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8179 if test -n "$DSYMUTIL"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8181 $as_echo "$DSYMUTIL" >&6; }
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8189 if test -z "$ac_cv_prog_DSYMUTIL"; then
8190 ac_ct_DSYMUTIL=$DSYMUTIL
8191 # Extract the first word of "dsymutil", so it can be a program name with args.
8192 set dummy dsymutil; ac_word=$2
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 $as_echo_n "checking for $ac_word... " >&6; }
8195 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8196 $as_echo_n "(cached) " >&6
8198 if test -n "$ac_ct_DSYMUTIL"; then
8199 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
8207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8208 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8219 if test -n "$ac_ct_DSYMUTIL"; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8221 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8227 if test "x$ac_ct_DSYMUTIL" = x; then
8230 case $cross_compiling:$ac_tool_warned in
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8234 ac_tool_warned=yes ;;
8236 DSYMUTIL=$ac_ct_DSYMUTIL
8239 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8242 if test -n "$ac_tool_prefix"; then
8243 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8244 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246 $as_echo_n "checking for $ac_word... " >&6; }
8247 if ${ac_cv_prog_NMEDIT+:} false; then :
8248 $as_echo_n "(cached) " >&6
8250 if test -n "$NMEDIT"; then
8251 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 test -z "$as_dir" && as_dir=.
8258 for ac_exec_ext in '' $ac_executable_extensions; do
8259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8260 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8270 NMEDIT=$ac_cv_prog_NMEDIT
8271 if test -n "$NMEDIT"; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8273 $as_echo "$NMEDIT" >&6; }
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276 $as_echo "no" >&6; }
8281 if test -z "$ac_cv_prog_NMEDIT"; then
8282 ac_ct_NMEDIT=$NMEDIT
8283 # Extract the first word of "nmedit", so it can be a program name with args.
8284 set dummy nmedit; ac_word=$2
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8286 $as_echo_n "checking for $ac_word... " >&6; }
8287 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8288 $as_echo_n "(cached) " >&6
8290 if test -n "$ac_ct_NMEDIT"; then
8291 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 test -z "$as_dir" && as_dir=.
8298 for ac_exec_ext in '' $ac_executable_extensions; do
8299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8300 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8311 if test -n "$ac_ct_NMEDIT"; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8313 $as_echo "$ac_ct_NMEDIT" >&6; }
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316 $as_echo "no" >&6; }
8319 if test "x$ac_ct_NMEDIT" = x; then
8322 case $cross_compiling:$ac_tool_warned in
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8326 ac_tool_warned=yes ;;
8328 NMEDIT=$ac_ct_NMEDIT
8331 NMEDIT="$ac_cv_prog_NMEDIT"
8334 if test -n "$ac_tool_prefix"; then
8335 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8336 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338 $as_echo_n "checking for $ac_word... " >&6; }
8339 if ${ac_cv_prog_LIPO+:} false; then :
8340 $as_echo_n "(cached) " >&6
8342 if test -n "$LIPO"; then
8343 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 test -z "$as_dir" && as_dir=.
8350 for ac_exec_ext in '' $ac_executable_extensions; do
8351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8352 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362 LIPO=$ac_cv_prog_LIPO
8363 if test -n "$LIPO"; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8365 $as_echo "$LIPO" >&6; }
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8373 if test -z "$ac_cv_prog_LIPO"; then
8375 # Extract the first word of "lipo", so it can be a program name with args.
8376 set dummy lipo; ac_word=$2
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8378 $as_echo_n "checking for $ac_word... " >&6; }
8379 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8380 $as_echo_n "(cached) " >&6
8382 if test -n "$ac_ct_LIPO"; then
8383 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 test -z "$as_dir" && as_dir=.
8390 for ac_exec_ext in '' $ac_executable_extensions; do
8391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8392 ac_cv_prog_ac_ct_LIPO="lipo"
8393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8403 if test -n "$ac_ct_LIPO"; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8405 $as_echo "$ac_ct_LIPO" >&6; }
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408 $as_echo "no" >&6; }
8411 if test "x$ac_ct_LIPO" = x; then
8414 case $cross_compiling:$ac_tool_warned in
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8418 ac_tool_warned=yes ;;
8423 LIPO="$ac_cv_prog_LIPO"
8426 if test -n "$ac_tool_prefix"; then
8427 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8428 set dummy ${ac_tool_prefix}otool; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if ${ac_cv_prog_OTOOL+:} false; then :
8432 $as_echo_n "(cached) " >&6
8434 if test -n "$OTOOL"; then
8435 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8444 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 OTOOL=$ac_cv_prog_OTOOL
8455 if test -n "$OTOOL"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8457 $as_echo "$OTOOL" >&6; }
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8465 if test -z "$ac_cv_prog_OTOOL"; then
8467 # Extract the first word of "otool", so it can be a program name with args.
8468 set dummy otool; ac_word=$2
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8470 $as_echo_n "checking for $ac_word... " >&6; }
8471 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8472 $as_echo_n "(cached) " >&6
8474 if test -n "$ac_ct_OTOOL"; then
8475 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481 test -z "$as_dir" && as_dir=.
8482 for ac_exec_ext in '' $ac_executable_extensions; do
8483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8484 ac_cv_prog_ac_ct_OTOOL="otool"
8485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8494 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8495 if test -n "$ac_ct_OTOOL"; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8497 $as_echo "$ac_ct_OTOOL" >&6; }
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500 $as_echo "no" >&6; }
8503 if test "x$ac_ct_OTOOL" = x; then
8506 case $cross_compiling:$ac_tool_warned in
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8510 ac_tool_warned=yes ;;
8515 OTOOL="$ac_cv_prog_OTOOL"
8518 if test -n "$ac_tool_prefix"; then
8519 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8520 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8522 $as_echo_n "checking for $ac_word... " >&6; }
8523 if ${ac_cv_prog_OTOOL64+:} false; then :
8524 $as_echo_n "(cached) " >&6
8526 if test -n "$OTOOL64"; then
8527 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 test -z "$as_dir" && as_dir=.
8534 for ac_exec_ext in '' $ac_executable_extensions; do
8535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8536 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8546 OTOOL64=$ac_cv_prog_OTOOL64
8547 if test -n "$OTOOL64"; then
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8549 $as_echo "$OTOOL64" >&6; }
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo "no" >&6; }
8557 if test -z "$ac_cv_prog_OTOOL64"; then
8558 ac_ct_OTOOL64=$OTOOL64
8559 # Extract the first word of "otool64", so it can be a program name with args.
8560 set dummy otool64; ac_word=$2
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8562 $as_echo_n "checking for $ac_word... " >&6; }
8563 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8564 $as_echo_n "(cached) " >&6
8566 if test -n "$ac_ct_OTOOL64"; then
8567 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 test -z "$as_dir" && as_dir=.
8574 for ac_exec_ext in '' $ac_executable_extensions; do
8575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8576 ac_cv_prog_ac_ct_OTOOL64="otool64"
8577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8586 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8587 if test -n "$ac_ct_OTOOL64"; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8589 $as_echo "$ac_ct_OTOOL64" >&6; }
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592 $as_echo "no" >&6; }
8595 if test "x$ac_ct_OTOOL64" = x; then
8598 case $cross_compiling:$ac_tool_warned in
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8602 ac_tool_warned=yes ;;
8604 OTOOL64=$ac_ct_OTOOL64
8607 OTOOL64="$ac_cv_prog_OTOOL64"
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8637 $as_echo_n "checking for -single_module linker flag... " >&6; }
8638 if ${lt_cv_apple_cc_single_mod+:} false; then :
8639 $as_echo_n "(cached) " >&6
8641 lt_cv_apple_cc_single_mod=no
8642 if test -z "$LT_MULTI_MODULE"; then
8643 # By default we will add the -single_module flag. You can override
8644 # by either setting the environment variable LT_MULTI_MODULE
8645 # non-empty at configure time, or by adding -multi_module to the
8647 rm -rf libconftest.dylib*
8648 echo "int foo(void){return 1;}" > conftest.c
8649 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8650 -dynamiclib -Wl,-single_module conftest.c" >&5
8651 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8652 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8654 # If there is a non-empty error log, and "single_module"
8655 # appears in it, assume the flag caused a linker warning
8656 if test -s conftest.err && $GREP single_module conftest.err; then
8657 cat conftest.err >&5
8658 # Otherwise, if the output was created with a 0 exit code from
8659 # the compiler, it worked.
8660 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8661 lt_cv_apple_cc_single_mod=yes
8663 cat conftest.err >&5
8665 rm -rf libconftest.dylib*
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8670 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8673 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8674 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8675 $as_echo_n "(cached) " >&6
8677 lt_cv_ld_exported_symbols_list=no
8678 save_LDFLAGS=$LDFLAGS
8679 echo "_main" > conftest.sym
8680 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h. */
8692 if ac_fn_c_try_link "$LINENO"; then :
8693 lt_cv_ld_exported_symbols_list=yes
8695 lt_cv_ld_exported_symbols_list=no
8697 rm -f core conftest.err conftest.$ac_objext \
8698 conftest$ac_exeext conftest.$ac_ext
8699 LDFLAGS=$save_LDFLAGS
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8703 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8706 $as_echo_n "checking for -force_load linker flag... " >&6; }
8707 if ${lt_cv_ld_force_load+:} false; then :
8708 $as_echo_n "(cached) " >&6
8710 lt_cv_ld_force_load=no
8711 cat > conftest.c << _LT_EOF
8712 int forced_loaded() { return 2;}
8714 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8715 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8716 echo "$AR cru libconftest.a conftest.o" >&5
8717 $AR cru libconftest.a conftest.o 2>&5
8718 echo "$RANLIB libconftest.a" >&5
8719 $RANLIB libconftest.a 2>&5
8720 cat > conftest.c << _LT_EOF
8721 int main() { return 0;}
8723 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8724 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8726 if test -s conftest.err && $GREP force_load conftest.err; then
8727 cat conftest.err >&5
8728 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8729 lt_cv_ld_force_load=yes
8731 cat conftest.err >&5
8733 rm -f conftest.err libconftest.a conftest conftest.c
8734 rm -rf conftest.dSYM
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8738 $as_echo "$lt_cv_ld_force_load" >&6; }
8740 rhapsody* | darwin1.[012])
8741 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8743 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8744 darwin*) # darwin 5.x on
8745 # if running on 10.5 or later, the deployment target defaults
8746 # to the OS version, if on x86, and 10.4, the deployment
8747 # target defaults to 10.4. Don't you love it?
8748 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8749 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8750 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8752 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8754 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8758 if test yes = "$lt_cv_apple_cc_single_mod"; then
8759 _lt_dar_single_mod='$single_module'
8761 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8762 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8764 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8766 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8767 _lt_dsymutil='~$DSYMUTIL $lib || :'
8774 # func_munge_path_list VARIABLE PATH
8775 # -----------------------------------
8776 # VARIABLE is name of variable containing _space_ separated list of
8777 # directories to be munged by the contents of PATH, which is string
8780 # string "DIR[ DIR]" will be prepended to VARIABLE
8782 # string "DIR[ DIR]" will be appended to VARIABLE
8783 # "DIRP[:DIRP]::[DIRA:]DIRA"
8784 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8785 # "DIRA[ DIRA]" will be appended to VARIABLE
8787 # VARIABLE will be replaced by "DIR[ DIR]"
8788 func_munge_path_list ()
8794 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8797 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8800 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8801 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8804 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8810 ac_cpp='$CPP $CPPFLAGS'
8811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8815 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8816 # On Suns, sometimes $CPP names a directory.
8817 if test -n "$CPP" && test -d "$CPP"; then
8820 if test -z "$CPP"; then
8821 if ${ac_cv_prog_CPP+:} false; then :
8822 $as_echo_n "(cached) " >&6
8824 # Double quotes because CPP needs to be expanded
8825 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8828 for ac_c_preproc_warn_flag in '' yes
8830 # Use a header file that comes with gcc, so configuring glibc
8831 # with a fresh cross-compiler works.
8832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8833 # <limits.h> exists even on freestanding compilers.
8834 # On the NeXT, cc -E runs the code through the compiler's parser,
8835 # not just through cpp. "Syntax error" is here to catch this case.
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8839 # include <limits.h>
8841 # include <assert.h>
8845 if ac_fn_c_try_cpp "$LINENO"; then :
8848 # Broken: fails on valid input.
8851 rm -f conftest.err conftest.i conftest.$ac_ext
8853 # OK, works on sane cases. Now check whether nonexistent headers
8854 # can be detected and how.
8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8857 #include <ac_nonexistent.h>
8859 if ac_fn_c_try_cpp "$LINENO"; then :
8860 # Broken: success on invalid input.
8863 # Passes both tests.
8867 rm -f conftest.err conftest.i conftest.$ac_ext
8870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8871 rm -f conftest.i conftest.err conftest.$ac_ext
8872 if $ac_preproc_ok; then :
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8885 $as_echo "$CPP" >&6; }
8887 for ac_c_preproc_warn_flag in '' yes
8889 # Use a header file that comes with gcc, so configuring glibc
8890 # with a fresh cross-compiler works.
8891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8892 # <limits.h> exists even on freestanding compilers.
8893 # On the NeXT, cc -E runs the code through the compiler's parser,
8894 # not just through cpp. "Syntax error" is here to catch this case.
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8898 # include <limits.h>
8900 # include <assert.h>
8904 if ac_fn_c_try_cpp "$LINENO"; then :
8907 # Broken: fails on valid input.
8910 rm -f conftest.err conftest.i conftest.$ac_ext
8912 # OK, works on sane cases. Now check whether nonexistent headers
8913 # can be detected and how.
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8916 #include <ac_nonexistent.h>
8918 if ac_fn_c_try_cpp "$LINENO"; then :
8919 # Broken: success on invalid input.
8922 # Passes both tests.
8926 rm -f conftest.err conftest.i conftest.$ac_ext
8929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8930 rm -f conftest.i conftest.err conftest.$ac_ext
8931 if $ac_preproc_ok; then :
8934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8936 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8937 See \`config.log' for more details" "$LINENO" 5; }
8941 ac_cpp='$CPP $CPPFLAGS'
8942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8948 $as_echo_n "checking for ANSI C header files... " >&6; }
8949 if ${ac_cv_header_stdc+:} false; then :
8950 $as_echo_n "(cached) " >&6
8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8967 if ac_fn_c_try_compile "$LINENO"; then :
8968 ac_cv_header_stdc=yes
8970 ac_cv_header_stdc=no
8972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974 if test $ac_cv_header_stdc = yes; then
8975 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8982 $EGREP "memchr" >/dev/null 2>&1; then :
8985 ac_cv_header_stdc=no
8991 if test $ac_cv_header_stdc = yes; then
8992 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8999 $EGREP "free" >/dev/null 2>&1; then :
9002 ac_cv_header_stdc=no
9008 if test $ac_cv_header_stdc = yes; then
9009 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9010 if test "$cross_compiling" = yes; then :
9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h. */
9017 #if ((' ' & 0x0FF) == 0x020)
9018 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9019 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9021 # define ISLOWER(c) \
9022 (('a' <= (c) && (c) <= 'i') \
9023 || ('j' <= (c) && (c) <= 'r') \
9024 || ('s' <= (c) && (c) <= 'z'))
9025 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9028 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9033 for (i = 0; i < 256; i++)
9034 if (XOR (islower (i), ISLOWER (i))
9035 || toupper (i) != TOUPPER (i))
9040 if ac_fn_c_try_run "$LINENO"; then :
9043 ac_cv_header_stdc=no
9045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9046 conftest.$ac_objext conftest.beam conftest.$ac_ext
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9052 $as_echo "$ac_cv_header_stdc" >&6; }
9053 if test $ac_cv_header_stdc = yes; then
9055 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9059 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9060 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9061 inttypes.h stdint.h unistd.h
9063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9064 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9066 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9067 cat >>confdefs.h <<_ACEOF
9068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9076 for ac_header in dlfcn.h
9078 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9080 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9081 cat >>confdefs.h <<_ACEOF
9082 #define HAVE_DLFCN_H 1
9094 # Check whether --enable-static was given.
9095 if test "${enable_static+set}" = set; then :
9096 enableval=$enable_static; p=${PACKAGE-default}
9098 yes) enable_static=yes ;;
9099 no) enable_static=no ;;
9102 # Look at the argument we got. We use all the common list separators.
9103 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9104 for pkg in $enableval; do
9106 if test "X$pkg" = "X$p"; then
9132 # Check whether --enable-shared was given.
9133 if test "${enable_shared+set}" = set; then :
9134 enableval=$enable_shared; p=${PACKAGE-default}
9136 yes) enable_shared=yes ;;
9137 no) enable_shared=no ;;
9140 # Look at the argument we got. We use all the common list separators.
9141 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9142 for pkg in $enableval; do
9144 if test "X$pkg" = "X$p"; then
9165 # Check whether --with-pic was given.
9166 if test "${with_pic+set}" = set; then :
9167 withval=$with_pic; lt_p=${PACKAGE-default}
9169 yes|no) pic_mode=$withval ;;
9172 # Look at the argument we got. We use all the common list separators.
9173 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9174 for lt_pkg in $withval; do
9176 if test "X$lt_pkg" = "X$lt_p"; then
9194 # Check whether --enable-fast-install was given.
9195 if test "${enable_fast_install+set}" = set; then :
9196 enableval=$enable_fast_install; p=${PACKAGE-default}
9198 yes) enable_fast_install=yes ;;
9199 no) enable_fast_install=no ;;
9201 enable_fast_install=no
9202 # Look at the argument we got. We use all the common list separators.
9203 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9204 for pkg in $enableval; do
9206 if test "X$pkg" = "X$p"; then
9207 enable_fast_install=yes
9214 enable_fast_install=yes
9224 shared_archive_member_spec=
9225 case $host,$enable_shared in
9226 power*-*-aix[5-9]*,yes)
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9228 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9230 # Check whether --with-aix-soname was given.
9231 if test "${with_aix_soname+set}" = set; then :
9232 withval=$with_aix_soname; case $withval in
9236 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9239 lt_cv_with_aix_soname=$with_aix_soname
9241 if ${lt_cv_with_aix_soname+:} false; then :
9242 $as_echo_n "(cached) " >&6
9244 lt_cv_with_aix_soname=aix
9247 with_aix_soname=$lt_cv_with_aix_soname
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9251 $as_echo "$with_aix_soname" >&6; }
9252 if test aix != "$with_aix_soname"; then
9253 # For the AIX way of multilib, we name the shared archive member
9254 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9255 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9256 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9257 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9258 if test 64 = "${OBJECT_MODE-32}"; then
9259 shared_archive_member_spec=shr_64
9261 shared_archive_member_spec=shr
9279 # This can be used to rebuild libtool when needed
9280 LIBTOOL_DEPS=$ltmain
9282 # Always use our own libtool.
9283 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9314 test -z "$LN_S" && LN_S="ln -s"
9329 if test -n "${ZSH_VERSION+set}"; then
9330 setopt NO_GLOB_SUBST
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9334 $as_echo_n "checking for objdir... " >&6; }
9335 if ${lt_cv_objdir+:} false; then :
9336 $as_echo_n "(cached) " >&6
9338 rm -f .libs 2>/dev/null
9339 mkdir .libs 2>/dev/null
9340 if test -d .libs; then
9343 # MS-DOS does not allow filenames that begin with a dot.
9346 rmdir .libs 2>/dev/null
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9349 $as_echo "$lt_cv_objdir" >&6; }
9350 objdir=$lt_cv_objdir
9356 cat >>confdefs.h <<_ACEOF
9357 #define LT_OBJDIR "$lt_cv_objdir/"
9365 # AIX sometimes has problems with the GCC collect2 program. For some
9366 # reason, if we set the COLLECT_NAMES environment variable, the problems
9367 # vanish in a puff of smoke.
9368 if test set != "${COLLECT_NAMES+set}"; then
9370 export COLLECT_NAMES
9377 can_build_shared=yes
9379 # All known linkers require a '.a' archive for static linking (except MSVC,
9380 # which needs '.lib').
9383 with_gnu_ld=$lt_cv_prog_gnu_ld
9388 # Set sane defaults for various variables
9389 test -z "$CC" && CC=cc
9390 test -z "$LTCC" && LTCC=$CC
9391 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9392 test -z "$LD" && LD=ld
9393 test -z "$ac_objext" && ac_objext=o
9395 func_cc_basename $compiler
9396 cc_basename=$func_cc_basename_result
9399 # Only perform the check for file, if the check method requires it
9400 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9401 case $deplibs_check_method in
9403 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9405 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9406 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9407 $as_echo_n "(cached) " >&6
9411 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9414 lt_save_MAGIC_CMD=$MAGIC_CMD
9415 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9416 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9417 for ac_dir in $ac_dummy; do
9419 test -z "$ac_dir" && ac_dir=.
9420 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9421 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9422 if test -n "$file_magic_test_file"; then
9423 case $deplibs_check_method in
9425 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9426 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9427 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9428 $EGREP "$file_magic_regex" > /dev/null; then
9433 *** Warning: the command libtool uses to detect shared libraries,
9434 *** $file_magic_cmd, produces output that libtool cannot recognize.
9435 *** The result is that libtool may fail to recognize shared libraries
9436 *** as such. This will affect the creation of libtool libraries that
9437 *** depend on shared libraries, but programs linked with such libtool
9438 *** libraries will work regardless of this problem. Nevertheless, you
9439 *** may want to report the problem to your system manager and/or to
9440 *** bug-libtool@gnu.org
9450 MAGIC_CMD=$lt_save_MAGIC_CMD
9455 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9456 if test -n "$MAGIC_CMD"; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9458 $as_echo "$MAGIC_CMD" >&6; }
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9468 if test -z "$lt_cv_path_MAGIC_CMD"; then
9469 if test -n "$ac_tool_prefix"; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9471 $as_echo_n "checking for file... " >&6; }
9472 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9473 $as_echo_n "(cached) " >&6
9477 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9480 lt_save_MAGIC_CMD=$MAGIC_CMD
9481 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9482 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9483 for ac_dir in $ac_dummy; do
9485 test -z "$ac_dir" && ac_dir=.
9486 if test -f "$ac_dir/file"; then
9487 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9488 if test -n "$file_magic_test_file"; then
9489 case $deplibs_check_method in
9491 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9492 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9493 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9494 $EGREP "$file_magic_regex" > /dev/null; then
9499 *** Warning: the command libtool uses to detect shared libraries,
9500 *** $file_magic_cmd, produces output that libtool cannot recognize.
9501 *** The result is that libtool may fail to recognize shared libraries
9502 *** as such. This will affect the creation of libtool libraries that
9503 *** depend on shared libraries, but programs linked with such libtool
9504 *** libraries will work regardless of this problem. Nevertheless, you
9505 *** may want to report the problem to your system manager and/or to
9506 *** bug-libtool@gnu.org
9516 MAGIC_CMD=$lt_save_MAGIC_CMD
9521 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9522 if test -n "$MAGIC_CMD"; then
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9524 $as_echo "$MAGIC_CMD" >&6; }
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527 $as_echo "no" >&6; }
9540 # Use C for the default configuration in the libtool script
9544 ac_cpp='$CPP $CPPFLAGS'
9545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9550 # Source file extension for C test sources.
9553 # Object file extension for compiled C test sources.
9557 # Code to be used in simple compile tests
9558 lt_simple_compile_test_code="int some_variable = 0;"
9560 # Code to be used in simple link tests
9561 lt_simple_link_test_code='int main(){return(0);}'
9569 # If no C compiler was specified, use CC.
9572 # If no C compiler flags were specified, use CFLAGS.
9573 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9575 # Allow CC to be a program name with arguments.
9578 # Save the default compiler, since it gets overwritten when the other
9579 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9580 compiler_DEFAULT=$CC
9582 # save warnings/boilerplate of simple test code
9583 ac_outfile=conftest.$ac_objext
9584 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9585 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9586 _lt_compiler_boilerplate=`cat conftest.err`
9589 ac_outfile=conftest.$ac_objext
9590 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9591 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9592 _lt_linker_boilerplate=`cat conftest.err`
9597 ## There is no encapsulation within the following macros, do not change
9598 ## the running order or otherwise move them around unless you know exactly
9599 ## what you are doing...
9600 if test -n "$compiler"; then
9602 lt_prog_compiler_no_builtin_flag=
9604 if test yes = "$GCC"; then
9605 case $cc_basename in
9607 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9609 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9613 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9614 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9615 $as_echo_n "(cached) " >&6
9617 lt_cv_prog_compiler_rtti_exceptions=no
9618 ac_outfile=conftest.$ac_objext
9619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9620 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9621 # Insert the option either (1) after the last *FLAGS variable, or
9622 # (2) before a word containing "conftest.", or (3) at the end.
9623 # Note that $ac_compile itself does not contain backslashes and begins
9624 # with a dollar sign (not a hyphen), so the echo should work correctly.
9625 # The option is referenced via a variable to avoid confusing sed.
9626 lt_compile=`echo "$ac_compile" | $SED \
9627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9629 -e 's:$: $lt_compiler_flag:'`
9630 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9631 (eval "$lt_compile" 2>conftest.err)
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 if (exit $ac_status) && test -s "$ac_outfile"; then
9636 # The compiler can only warn and ignore the option if not recognized
9637 # So say no if there are warnings other than the usual output.
9638 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9640 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9641 lt_cv_prog_compiler_rtti_exceptions=yes
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9648 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9650 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9651 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9663 lt_prog_compiler_wl=
9664 lt_prog_compiler_pic=
9665 lt_prog_compiler_static=
9668 if test yes = "$GCC"; then
9669 lt_prog_compiler_wl='-Wl,'
9670 lt_prog_compiler_static='-static'
9674 # All AIX code is PIC.
9675 if test ia64 = "$host_cpu"; then
9676 # AIX 5 now supports IA64 processor
9677 lt_prog_compiler_static='-Bstatic'
9679 lt_prog_compiler_pic='-fPIC'
9685 # see comment about AmigaOS4 .so support
9686 lt_prog_compiler_pic='-fPIC'
9689 # FIXME: we need at least 68020 code to build shared libraries, but
9690 # adding the '-m68020' flag to GCC prevents building anything better,
9692 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9697 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9698 # PIC is the default for these OSes.
9701 mingw* | cygwin* | pw32* | os2* | cegcc*)
9702 # This hack is so that the source file can tell whether it is being
9703 # built for inclusion in a dll (and should export symbols for example).
9704 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9705 # (--disable-auto-import) libraries
9706 lt_prog_compiler_pic='-DDLL_EXPORT'
9709 lt_prog_compiler_static='$wl-static'
9714 darwin* | rhapsody*)
9715 # PIC is the default on this platform
9716 # Common symbols not allowed in MH_DYLIB files
9717 lt_prog_compiler_pic='-fno-common'
9721 # PIC is the default for Haiku.
9722 # The "-static" flag exists, but is broken.
9723 lt_prog_compiler_static=
9727 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9728 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9729 # sets the default TLS model and affects inlining.
9735 lt_prog_compiler_pic='-fPIC'
9741 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9742 # Instead, we relocate shared libraries at runtime.
9746 # Just because we use GCC doesn't mean we suddenly get shared libraries
9747 # on systems that don't support them.
9748 lt_prog_compiler_can_build_shared=no
9753 # QNX uses GNU C++, but need to define -shared option too, otherwise
9755 lt_prog_compiler_pic='-fPIC -shared'
9759 if test -d /usr/nec; then
9760 lt_prog_compiler_pic=-Kconform_pic
9765 lt_prog_compiler_pic='-fPIC'
9769 case $cc_basename in
9770 nvcc*) # Cuda Compiler Driver 2.2
9771 lt_prog_compiler_wl='-Xlinker '
9772 if test -n "$lt_prog_compiler_pic"; then
9773 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9778 # PORTME Check for flag to pass linker flags through the system compiler.
9781 lt_prog_compiler_wl='-Wl,'
9782 if test ia64 = "$host_cpu"; then
9783 # AIX 5 now supports IA64 processor
9784 lt_prog_compiler_static='-Bstatic'
9786 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9790 darwin* | rhapsody*)
9791 # PIC is the default on this platform
9792 # Common symbols not allowed in MH_DYLIB files
9793 lt_prog_compiler_pic='-fno-common'
9794 case $cc_basename in
9796 # NAG Fortran compiler
9797 lt_prog_compiler_wl='-Wl,-Wl,,'
9798 lt_prog_compiler_pic='-PIC'
9799 lt_prog_compiler_static='-Bstatic'
9804 mingw* | cygwin* | pw32* | os2* | cegcc*)
9805 # This hack is so that the source file can tell whether it is being
9806 # built for inclusion in a dll (and should export symbols for example).
9807 lt_prog_compiler_pic='-DDLL_EXPORT'
9810 lt_prog_compiler_static='$wl-static'
9815 hpux9* | hpux10* | hpux11*)
9816 lt_prog_compiler_wl='-Wl,'
9817 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9824 lt_prog_compiler_pic='+Z'
9827 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9828 lt_prog_compiler_static='$wl-a ${wl}archive'
9831 irix5* | irix6* | nonstopux*)
9832 lt_prog_compiler_wl='-Wl,'
9833 # PIC (with -KPIC) is the default.
9834 lt_prog_compiler_static='-non_shared'
9837 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9838 case $cc_basename in
9839 # old Intel for x86_64, which still supported -KPIC.
9841 lt_prog_compiler_wl='-Wl,'
9842 lt_prog_compiler_pic='-KPIC'
9843 lt_prog_compiler_static='-static'
9845 # icc used to be incompatible with GCC.
9846 # ICC 10 doesn't accept -KPIC any more.
9848 lt_prog_compiler_wl='-Wl,'
9849 lt_prog_compiler_pic='-fPIC'
9850 lt_prog_compiler_static='-static'
9852 # Lahey Fortran 8.1.
9854 lt_prog_compiler_wl='-Wl,'
9855 lt_prog_compiler_pic='--shared'
9856 lt_prog_compiler_static='--static'
9859 # NAG Fortran compiler
9860 lt_prog_compiler_wl='-Wl,-Wl,,'
9861 lt_prog_compiler_pic='-PIC'
9862 lt_prog_compiler_static='-Bstatic'
9865 # Fabrice Bellard et al's Tiny C Compiler
9866 lt_prog_compiler_wl='-Wl,'
9867 lt_prog_compiler_pic='-fPIC'
9868 lt_prog_compiler_static='-static'
9870 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9871 # Portland Group compilers (*not* the Pentium gcc compiler,
9872 # which looks to be a dead project)
9873 lt_prog_compiler_wl='-Wl,'
9874 lt_prog_compiler_pic='-fpic'
9875 lt_prog_compiler_static='-Bstatic'
9878 lt_prog_compiler_wl='-Wl,'
9879 # All Alpha code is PIC.
9880 lt_prog_compiler_static='-non_shared'
9882 xl* | bgxl* | bgf* | mpixl*)
9883 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9884 lt_prog_compiler_wl='-Wl,'
9885 lt_prog_compiler_pic='-qpic'
9886 lt_prog_compiler_static='-qstaticlink'
9889 case `$CC -V 2>&1 | sed 5q` in
9890 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9891 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9892 lt_prog_compiler_pic='-KPIC'
9893 lt_prog_compiler_static='-Bstatic'
9894 lt_prog_compiler_wl=''
9896 *Sun\ F* | *Sun*Fortran*)
9897 lt_prog_compiler_pic='-KPIC'
9898 lt_prog_compiler_static='-Bstatic'
9899 lt_prog_compiler_wl='-Qoption ld '
9903 lt_prog_compiler_pic='-KPIC'
9904 lt_prog_compiler_static='-Bstatic'
9905 lt_prog_compiler_wl='-Wl,'
9907 *Intel*\ [CF]*Compiler*)
9908 lt_prog_compiler_wl='-Wl,'
9909 lt_prog_compiler_pic='-fPIC'
9910 lt_prog_compiler_static='-static'
9913 lt_prog_compiler_wl='-Wl,'
9914 lt_prog_compiler_pic='-fpic'
9915 lt_prog_compiler_static='-Bstatic'
9923 lt_prog_compiler_pic='-KPIC'
9924 lt_prog_compiler_static='-Bstatic'
9928 # QNX uses GNU C++, but need to define -shared option too, otherwise
9930 lt_prog_compiler_pic='-fPIC -shared'
9933 osf3* | osf4* | osf5*)
9934 lt_prog_compiler_wl='-Wl,'
9935 # All OSF/1 code is PIC.
9936 lt_prog_compiler_static='-non_shared'
9940 lt_prog_compiler_static='-non_shared'
9944 lt_prog_compiler_pic='-KPIC'
9945 lt_prog_compiler_static='-Bstatic'
9946 case $cc_basename in
9947 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9948 lt_prog_compiler_wl='-Qoption ld ';;
9950 lt_prog_compiler_wl='-Wl,';;
9955 lt_prog_compiler_wl='-Qoption ld '
9956 lt_prog_compiler_pic='-PIC'
9957 lt_prog_compiler_static='-Bstatic'
9960 sysv4 | sysv4.2uw2* | sysv4.3*)
9961 lt_prog_compiler_wl='-Wl,'
9962 lt_prog_compiler_pic='-KPIC'
9963 lt_prog_compiler_static='-Bstatic'
9967 if test -d /usr/nec; then
9968 lt_prog_compiler_pic='-Kconform_pic'
9969 lt_prog_compiler_static='-Bstatic'
9973 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9974 lt_prog_compiler_wl='-Wl,'
9975 lt_prog_compiler_pic='-KPIC'
9976 lt_prog_compiler_static='-Bstatic'
9980 lt_prog_compiler_wl='-Wl,'
9981 lt_prog_compiler_can_build_shared=no
9985 lt_prog_compiler_pic='-pic'
9986 lt_prog_compiler_static='-Bstatic'
9990 lt_prog_compiler_can_build_shared=no
9996 # For platforms that do not support PIC, -DPIC is meaningless:
9998 lt_prog_compiler_pic=
10001 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10006 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10007 if ${lt_cv_prog_compiler_pic+:} false; then :
10008 $as_echo_n "(cached) " >&6
10010 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10013 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10014 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10017 # Check to make sure the PIC flag actually works.
10019 if test -n "$lt_prog_compiler_pic"; then
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10021 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10022 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10023 $as_echo_n "(cached) " >&6
10025 lt_cv_prog_compiler_pic_works=no
10026 ac_outfile=conftest.$ac_objext
10027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10028 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10029 # Insert the option either (1) after the last *FLAGS variable, or
10030 # (2) before a word containing "conftest.", or (3) at the end.
10031 # Note that $ac_compile itself does not contain backslashes and begins
10032 # with a dollar sign (not a hyphen), so the echo should work correctly.
10033 # The option is referenced via a variable to avoid confusing sed.
10034 lt_compile=`echo "$ac_compile" | $SED \
10035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10037 -e 's:$: $lt_compiler_flag:'`
10038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10039 (eval "$lt_compile" 2>conftest.err)
10041 cat conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 if (exit $ac_status) && test -s "$ac_outfile"; then
10044 # The compiler can only warn and ignore the option if not recognized
10045 # So say no if there are warnings other than the usual output.
10046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10048 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10049 lt_cv_prog_compiler_pic_works=yes
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10056 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10058 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10059 case $lt_prog_compiler_pic in
10061 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10064 lt_prog_compiler_pic=
10065 lt_prog_compiler_can_build_shared=no
10081 # Check to make sure the static flag actually works.
10083 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10085 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10086 if ${lt_cv_prog_compiler_static_works+:} false; then :
10087 $as_echo_n "(cached) " >&6
10089 lt_cv_prog_compiler_static_works=no
10090 save_LDFLAGS=$LDFLAGS
10091 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10092 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10093 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10094 # The linker can only warn and ignore the option if not recognized
10095 # So say no if there are warnings
10096 if test -s conftest.err; then
10097 # Append any errors to the config.log.
10098 cat conftest.err 1>&5
10099 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10100 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10101 if diff conftest.exp conftest.er2 >/dev/null; then
10102 lt_cv_prog_compiler_static_works=yes
10105 lt_cv_prog_compiler_static_works=yes
10109 LDFLAGS=$save_LDFLAGS
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10113 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10115 if test yes = "$lt_cv_prog_compiler_static_works"; then
10118 lt_prog_compiler_static=
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10128 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10129 if ${lt_cv_prog_compiler_c_o+:} false; then :
10130 $as_echo_n "(cached) " >&6
10132 lt_cv_prog_compiler_c_o=no
10133 $RM -r conftest 2>/dev/null
10137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10139 lt_compiler_flag="-o out/conftest2.$ac_objext"
10140 # Insert the option either (1) after the last *FLAGS variable, or
10141 # (2) before a word containing "conftest.", or (3) at the end.
10142 # Note that $ac_compile itself does not contain backslashes and begins
10143 # with a dollar sign (not a hyphen), so the echo should work correctly.
10144 lt_compile=`echo "$ac_compile" | $SED \
10145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10147 -e 's:$: $lt_compiler_flag:'`
10148 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10149 (eval "$lt_compile" 2>out/conftest.err)
10151 cat out/conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10155 # The compiler can only warn and ignore the option if not recognized
10156 # So say no if there are warnings
10157 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10158 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10159 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10160 lt_cv_prog_compiler_c_o=yes
10165 # SGI C++ compiler will create directory out/ii_files/ for
10166 # template instantiation
10167 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10168 $RM out/* && rmdir out
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10175 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10183 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10184 if ${lt_cv_prog_compiler_c_o+:} false; then :
10185 $as_echo_n "(cached) " >&6
10187 lt_cv_prog_compiler_c_o=no
10188 $RM -r conftest 2>/dev/null
10192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10194 lt_compiler_flag="-o out/conftest2.$ac_objext"
10195 # Insert the option either (1) after the last *FLAGS variable, or
10196 # (2) before a word containing "conftest.", or (3) at the end.
10197 # Note that $ac_compile itself does not contain backslashes and begins
10198 # with a dollar sign (not a hyphen), so the echo should work correctly.
10199 lt_compile=`echo "$ac_compile" | $SED \
10200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10202 -e 's:$: $lt_compiler_flag:'`
10203 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10204 (eval "$lt_compile" 2>out/conftest.err)
10206 cat out/conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10210 # The compiler can only warn and ignore the option if not recognized
10211 # So say no if there are warnings
10212 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10215 lt_cv_prog_compiler_c_o=yes
10220 # SGI C++ compiler will create directory out/ii_files/ for
10221 # template instantiation
10222 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10223 $RM out/* && rmdir out
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10230 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10235 hard_links=nottested
10236 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10237 # do not overwrite the value of need_locks provided by the user
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10239 $as_echo_n "checking if we can lock with hard links... " >&6; }
10242 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10244 ln conftest.a conftest.b 2>&5 || hard_links=no
10245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10247 $as_echo "$hard_links" >&6; }
10248 if test no = "$hard_links"; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10250 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10263 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10266 allow_undefined_flag=
10267 always_export_symbols=no
10269 archive_expsym_cmds=
10270 compiler_needs_object=no
10271 enable_shared_with_static_runtimes=no
10272 export_dynamic_flag_spec=
10273 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10274 hardcode_automatic=no
10276 hardcode_direct_absolute=no
10277 hardcode_libdir_flag_spec=
10278 hardcode_libdir_separator=
10279 hardcode_minus_L=no
10280 hardcode_shlibpath_var=unsupported
10282 link_all_deplibs=unknown
10284 module_expsym_cmds=
10285 old_archive_from_new_cmds=
10286 old_archive_from_expsyms_cmds=
10287 thread_safe_flag_spec=
10288 whole_archive_flag_spec=
10289 # include_expsyms should be a list of space-separated symbols to be *always*
10290 # included in the symbol list
10292 # exclude_expsyms can be an extended regexp of symbols to exclude
10293 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10294 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10295 # as well as any symbol that contains 'd'.
10296 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10297 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10298 # platforms (ab)use it in PIC code, but their linkers get confused if
10299 # the symbol is explicitly referenced. Since portable code cannot
10300 # rely on this symbol name, it's probably fine to never include it in
10301 # preloaded symbol tables.
10302 # Exclude shared library initialization/finalization symbols.
10303 extract_expsyms_cmds=
10306 cygwin* | mingw* | pw32* | cegcc*)
10307 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10308 # When not using gcc, we currently assume that we are using
10309 # Microsoft Visual C++.
10310 if test yes != "$GCC"; then
10315 # we just hope/assume this is gcc and not c89 (= MSVC++)
10318 openbsd* | bitrig*)
10325 # On some targets, GNU ld is compatible enough with the native linker
10326 # that we're better off using the native interface for both.
10327 lt_use_gnu_ld_interface=no
10328 if test yes = "$with_gnu_ld"; then
10331 # The AIX port of GNU ld has always aspired to compatibility
10332 # with the native linker. However, as the warning in the GNU ld
10333 # block says, versions before 2.19.5* couldn't really create working
10334 # shared libraries, regardless of the interface used.
10335 case `$LD -v 2>&1` in
10336 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10337 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10338 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10340 lt_use_gnu_ld_interface=yes
10345 lt_use_gnu_ld_interface=yes
10350 if test yes = "$lt_use_gnu_ld_interface"; then
10351 # If archive_cmds runs LD, not CC, wlarc should be empty
10354 # Set some defaults for GNU ld with shared library support. These
10355 # are reset later if shared libraries are not supported. Putting them
10356 # here allows them to be overridden if necessary.
10357 runpath_var=LD_RUN_PATH
10358 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10359 export_dynamic_flag_spec='$wl--export-dynamic'
10360 # ancient GNU ld didn't support --whole-archive et. al.
10361 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10362 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10364 whole_archive_flag_spec=
10366 supports_anon_versioning=no
10367 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10368 *GNU\ gold*) supports_anon_versioning=yes ;;
10369 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10370 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10371 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10372 *\ 2.11.*) ;; # other 2.11 versions
10373 *) supports_anon_versioning=yes ;;
10376 # See if GNU ld supports shared libraries.
10379 # On AIX/PPC, the GNU linker is very broken
10380 if test ia64 != "$host_cpu"; then
10384 *** Warning: the GNU linker, at least up to release 2.19, is reported
10385 *** to be unable to reliably create shared libraries on AIX.
10386 *** Therefore, libtool is disabling shared libraries support. If you
10387 *** really care for shared libraries, you may want to install binutils
10388 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10389 *** You will then need to restart the configuration process.
10398 # see comment about AmigaOS4 .so support
10399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10400 archive_expsym_cmds=''
10403 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)'
10404 hardcode_libdir_flag_spec='-L$libdir'
10405 hardcode_minus_L=yes
10411 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10412 allow_undefined_flag=unsupported
10413 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10414 # support --undefined. This deserves some investigation. FIXME
10415 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10421 cygwin* | mingw* | pw32* | cegcc*)
10422 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10423 # as there is no search path for DLLs.
10424 hardcode_libdir_flag_spec='-L$libdir'
10425 export_dynamic_flag_spec='$wl--export-all-symbols'
10426 allow_undefined_flag=unsupported
10427 always_export_symbols=no
10428 enable_shared_with_static_runtimes=yes
10429 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'
10430 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10432 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10434 # If the export-symbols file already is a .def file, use it as
10435 # is; otherwise, prepend EXPORTS...
10436 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10437 cp $export_symbols $output_objdir/$soname.def;
10439 echo EXPORTS > $output_objdir/$soname.def;
10440 cat $export_symbols >> $output_objdir/$soname.def;
10442 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10449 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10450 link_all_deplibs=yes
10454 hardcode_libdir_flag_spec='-L$libdir'
10455 hardcode_minus_L=yes
10456 allow_undefined_flag=unsupported
10458 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10459 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10460 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10461 $ECHO EXPORTS >> $output_objdir/$libname.def~
10462 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10463 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10464 emximp -o $lib $output_objdir/$libname.def'
10465 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10466 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10467 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10468 $ECHO EXPORTS >> $output_objdir/$libname.def~
10469 prefix_cmds="$SED"~
10470 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10471 prefix_cmds="$prefix_cmds -e 1d";
10473 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10474 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10475 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10476 emximp -o $lib $output_objdir/$libname.def'
10477 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10478 enable_shared_with_static_runtimes=yes
10483 hardcode_shlibpath_var=no
10484 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10485 export_dynamic_flag_spec='$wl-E'
10486 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10487 # Instead, shared libraries are loaded at an image base (0x10000000 by
10488 # default) and relocated if they conflict, which is a slow very memory
10489 # consuming and fragmenting process. To avoid this, we pick a random,
10490 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10491 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10492 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10493 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'
10496 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10498 if test linux-dietlibc = "$host_os"; then
10499 case $cc_basename in
10500 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10503 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10504 && test no = "$tmp_diet"
10506 tmp_addflag=' $pic_flag'
10507 tmp_sharedflag='-shared'
10508 case $cc_basename,$host_cpu in
10509 pgcc*) # Portland Group C compiler
10510 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'
10511 tmp_addflag=' $pic_flag'
10513 pgf77* | pgf90* | pgf95* | pgfortran*)
10514 # Portland Group f77 and f90 compilers
10515 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'
10516 tmp_addflag=' $pic_flag -Mnomain' ;;
10517 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10518 tmp_addflag=' -i_dynamic' ;;
10519 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10520 tmp_addflag=' -i_dynamic -nofor_main' ;;
10521 ifc* | ifort*) # Intel Fortran compiler
10522 tmp_addflag=' -nofor_main' ;;
10523 lf95*) # Lahey Fortran 8.1
10524 whole_archive_flag_spec=
10525 tmp_sharedflag='--shared' ;;
10526 nagfor*) # NAGFOR 5.3
10527 tmp_sharedflag='-Wl,-shared' ;;
10528 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10529 tmp_sharedflag='-qmkshrobj'
10531 nvcc*) # Cuda Compiler Driver 2.2
10532 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'
10533 compiler_needs_object=yes
10536 case `$CC -V 2>&1 | sed 5q` in
10537 *Sun\ C*) # Sun C 5.9
10538 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'
10539 compiler_needs_object=yes
10540 tmp_sharedflag='-G' ;;
10541 *Sun\ F*) # Sun Fortran 8.3
10542 tmp_sharedflag='-G' ;;
10544 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10546 if test yes = "$supports_anon_versioning"; then
10547 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10548 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10549 echo "local: *; };" >> $output_objdir/$libname.ver~
10550 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10553 case $cc_basename in
10555 export_dynamic_flag_spec='-rdynamic'
10557 xlf* | bgf* | bgxlf* | mpixlf*)
10558 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10559 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10560 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10561 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10562 if test yes = "$supports_anon_versioning"; then
10563 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10564 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10565 echo "local: *; };" >> $output_objdir/$libname.ver~
10566 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10576 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10577 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10580 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10581 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10586 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10590 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10591 *** create shared libraries on Solaris systems. Therefore, libtool
10592 *** is disabling shared libraries support. We urge you to upgrade GNU
10593 *** binutils to release 2.9.1 or newer. Another option is to modify
10594 *** your PATH or compiler configuration so that the native linker is
10595 *** used, and then restart.
10598 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10599 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10600 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10607 case `$LD -v 2>&1` in
10608 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10612 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10613 *** reliably create shared libraries on SCO systems. Therefore, libtool
10614 *** is disabling shared libraries support. We urge you to upgrade GNU
10615 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10616 *** your PATH or compiler configuration so that the native linker is
10617 *** used, and then restart.
10622 # For security reasons, it is highly recommended that you always
10623 # use absolute paths for naming shared libraries, and exclude the
10624 # DT_RUNPATH tag from executables and libraries. But doing so
10625 # requires that you compile everything twice, which is a pain.
10626 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10627 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10629 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10638 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10640 hardcode_direct=yes
10641 hardcode_shlibpath_var=no
10645 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10646 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10647 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10654 if test no = "$ld_shlibs"; then
10656 hardcode_libdir_flag_spec=
10657 export_dynamic_flag_spec=
10658 whole_archive_flag_spec=
10661 # PORTME fill in a description of your system's linker (not GNU ld)
10664 allow_undefined_flag=unsupported
10665 always_export_symbols=yes
10666 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'
10667 # Note: this linker hardcodes the directories in LIBPATH if there
10668 # are no directories specified by -L.
10669 hardcode_minus_L=yes
10670 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10671 # Neither direct hardcoding nor static linking is supported with a
10673 hardcode_direct=unsupported
10678 if test ia64 = "$host_cpu"; then
10679 # On IA64, the linker does run time linking by default, so we don't
10680 # have to do anything special.
10681 aix_use_runtimelinking=no
10682 exp_sym_flag='-Bexport'
10685 # If we're using GNU nm, then we don't want the "-C" option.
10686 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10687 # Without the "-l" option, or with the "-B" option, AIX nm treats
10688 # weak defined symbols like other global defined symbols, whereas
10689 # GNU nm marks them as "W".
10690 # While the 'weak' keyword is ignored in the Export File, we need
10691 # it in the Import File for the 'aix-soname' feature, so we have
10692 # to replace the "-B" option with "-P" for AIX nm.
10693 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10694 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10696 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10698 aix_use_runtimelinking=no
10700 # Test if we are trying to use run time linking or normal
10701 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10702 # have runtime linking enabled, and use it for executables.
10703 # For shared libraries, we enable/disable runtime linking
10704 # depending on the kind of the shared library created -
10705 # when "with_aix_soname,aix_use_runtimelinking" is:
10706 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10707 # "aix,yes" lib.so shared, rtl:yes, for executables
10708 # lib.a static archive
10709 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10710 # lib.a(lib.so.V) shared, rtl:no, for executables
10711 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10712 # lib.a(lib.so.V) shared, rtl:no
10713 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10714 # lib.a static archive
10715 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10716 for ld_flag in $LDFLAGS; do
10717 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10718 aix_use_runtimelinking=yes
10722 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10723 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10724 # so we don't have lib.a shared libs to link our executables.
10725 # We have to force runtime linking in this case.
10726 aix_use_runtimelinking=yes
10727 LDFLAGS="$LDFLAGS -Wl,-brtl"
10732 exp_sym_flag='-bexport'
10733 no_entry_flag='-bnoentry'
10736 # When large executables or shared objects are built, AIX ld can
10737 # have problems creating the table of contents. If linking a library
10738 # or program results in "error TOC overflow" add -mminimal-toc to
10739 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10740 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10743 hardcode_direct=yes
10744 hardcode_direct_absolute=yes
10745 hardcode_libdir_separator=':'
10746 link_all_deplibs=yes
10747 file_list_spec='$wl-f,'
10748 case $with_aix_soname,$aix_use_runtimelinking in
10749 aix,*) ;; # traditional, no import file
10750 svr4,* | *,yes) # use import file
10751 # The Import File defines what to hardcode.
10753 hardcode_direct_absolute=no
10757 if test yes = "$GCC"; then
10758 case $host_os in aix4.[012]|aix4.[012].*)
10759 # We only want to do this on AIX 4.2 and lower, the check
10760 # below for broken collect2 doesn't work under 4.3+
10761 collect2name=`$CC -print-prog-name=collect2`
10762 if test -f "$collect2name" &&
10763 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10765 # We have reworked collect2
10768 # We have old collect2
10769 hardcode_direct=unsupported
10770 # It fails to find uninstalled libraries when the uninstalled
10771 # path is not listed in the libpath. Setting hardcode_minus_L
10772 # to unsupported forces relinking
10773 hardcode_minus_L=yes
10774 hardcode_libdir_flag_spec='-L$libdir'
10775 hardcode_libdir_separator=
10779 shared_flag='-shared'
10780 if test yes = "$aix_use_runtimelinking"; then
10781 shared_flag="$shared_flag "'$wl-G'
10783 # Need to ensure runtime linking is disabled for the traditional
10784 # shared library, or the linker may eventually find shared libraries
10785 # /with/ Import File - we do not want to mix them.
10786 shared_flag_aix='-shared'
10787 shared_flag_svr4='-shared $wl-G'
10790 if test ia64 = "$host_cpu"; then
10791 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10792 # chokes on -Wl,-G. The following line is correct:
10795 if test yes = "$aix_use_runtimelinking"; then
10796 shared_flag='$wl-G'
10798 shared_flag='$wl-bM:SRE'
10800 shared_flag_aix='$wl-bM:SRE'
10801 shared_flag_svr4='$wl-G'
10805 export_dynamic_flag_spec='$wl-bexpall'
10806 # It seems that -bexpall does not export symbols beginning with
10807 # underscore (_), so it is better to generate a list of symbols to export.
10808 always_export_symbols=yes
10809 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10810 # Warning - without using the other runtime loading flags (-brtl),
10811 # -berok will link without error, but may produce a broken library.
10812 allow_undefined_flag='-berok'
10813 # Determine the default libpath from the value encoded in an
10814 # empty executable.
10815 if test set = "${lt_cv_aix_libpath+set}"; then
10816 aix_libpath=$lt_cv_aix_libpath
10818 if ${lt_cv_aix_libpath_+:} false; then :
10819 $as_echo_n "(cached) " >&6
10821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822 /* end confdefs.h. */
10832 if ac_fn_c_try_link "$LINENO"; then :
10834 lt_aix_libpath_sed='
10835 /Import File Strings/,/^$/ {
10837 s/^0 *\([^ ]*\) *$/\1/
10841 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10842 # Check for a 64-bit object if we didn't find anything.
10843 if test -z "$lt_cv_aix_libpath_"; then
10844 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10847 rm -f core conftest.err conftest.$ac_objext \
10848 conftest$ac_exeext conftest.$ac_ext
10849 if test -z "$lt_cv_aix_libpath_"; then
10850 lt_cv_aix_libpath_=/usr/lib:/lib
10855 aix_libpath=$lt_cv_aix_libpath_
10858 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10859 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10861 if test ia64 = "$host_cpu"; then
10862 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10863 allow_undefined_flag="-z nodefs"
10864 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"
10866 # Determine the default libpath from the value encoded in an
10867 # empty executable.
10868 if test set = "${lt_cv_aix_libpath+set}"; then
10869 aix_libpath=$lt_cv_aix_libpath
10871 if ${lt_cv_aix_libpath_+:} false; then :
10872 $as_echo_n "(cached) " >&6
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10885 if ac_fn_c_try_link "$LINENO"; then :
10887 lt_aix_libpath_sed='
10888 /Import File Strings/,/^$/ {
10890 s/^0 *\([^ ]*\) *$/\1/
10894 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10895 # Check for a 64-bit object if we didn't find anything.
10896 if test -z "$lt_cv_aix_libpath_"; then
10897 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10900 rm -f core conftest.err conftest.$ac_objext \
10901 conftest$ac_exeext conftest.$ac_ext
10902 if test -z "$lt_cv_aix_libpath_"; then
10903 lt_cv_aix_libpath_=/usr/lib:/lib
10908 aix_libpath=$lt_cv_aix_libpath_
10911 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10912 # Warning - without using the other run time loading flags,
10913 # -berok will link without error, but may produce a broken library.
10914 no_undefined_flag=' $wl-bernotok'
10915 allow_undefined_flag=' $wl-berok'
10916 if test yes = "$with_gnu_ld"; then
10917 # We only use this code for GNU lds that support --whole-archive.
10918 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10920 # Exported symbols can be pulled into shared objects from archives
10921 whole_archive_flag_spec='$convenience'
10923 archive_cmds_need_lc=yes
10924 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10925 # -brtl affects multiple linker settings, -berok does not and is overridden later
10926 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10927 if test svr4 != "$with_aix_soname"; then
10928 # This is similar to how AIX traditionally builds its shared libraries.
10929 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10931 if test aix != "$with_aix_soname"; then
10932 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10934 # used by -dlpreopen to get the symbols
10935 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10937 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10945 # see comment about AmigaOS4 .so support
10946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10947 archive_expsym_cmds=''
10950 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)'
10951 hardcode_libdir_flag_spec='-L$libdir'
10952 hardcode_minus_L=yes
10958 export_dynamic_flag_spec=-rdynamic
10961 cygwin* | mingw* | pw32* | cegcc*)
10962 # When not using gcc, we currently assume that we are using
10963 # Microsoft Visual C++.
10964 # hardcode_libdir_flag_spec is actually meaningless, as there is
10965 # no search path for DLLs.
10966 case $cc_basename in
10969 hardcode_libdir_flag_spec=' '
10970 allow_undefined_flag=unsupported
10971 always_export_symbols=yes
10973 # Tell ltmain to make .lib files, not .a files.
10975 # Tell ltmain to make .dll files, not .so files.
10977 # FIXME: Setting linknames here is a bad hack.
10978 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10979 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10980 cp "$export_symbols" "$output_objdir/$soname.def";
10981 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10983 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10985 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10987 # The linker will not automatically build a static lib if we build a DLL.
10988 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10989 enable_shared_with_static_runtimes=yes
10990 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10991 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10993 old_postinstall_cmds='chmod 644 $oldlib'
10994 postlink_cmds='lt_outputfile="@OUTPUT@"~
10995 lt_tool_outputfile="@TOOL_OUTPUT@"~
10996 case $lt_outputfile in
10999 lt_outputfile=$lt_outputfile.exe
11000 lt_tool_outputfile=$lt_tool_outputfile.exe
11003 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11004 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11005 $RM "$lt_outputfile.manifest";
11009 # Assume MSVC wrapper
11010 hardcode_libdir_flag_spec=' '
11011 allow_undefined_flag=unsupported
11012 # Tell ltmain to make .lib files, not .a files.
11014 # Tell ltmain to make .dll files, not .so files.
11016 # FIXME: Setting linknames here is a bad hack.
11017 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11018 # The linker will automatically build a .lib file if we build a DLL.
11019 old_archive_from_new_cmds='true'
11020 # FIXME: Should let the user specify the lib program.
11021 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11022 enable_shared_with_static_runtimes=yes
11027 darwin* | rhapsody*)
11030 archive_cmds_need_lc=no
11032 hardcode_automatic=yes
11033 hardcode_shlibpath_var=unsupported
11034 if test yes = "$lt_cv_ld_force_load"; then
11035 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\"`'
11038 whole_archive_flag_spec=''
11040 link_all_deplibs=yes
11041 allow_undefined_flag=$_lt_dar_allow_undefined
11042 case $cc_basename in
11043 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11044 *) _lt_dar_can_shared=$GCC ;;
11046 if test yes = "$_lt_dar_can_shared"; then
11047 output_verbose_link_cmd=func_echo_all
11048 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11049 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11050 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"
11051 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"
11060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11061 hardcode_libdir_flag_spec='-L$libdir'
11062 hardcode_shlibpath_var=no
11065 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11066 # support. Future versions do this automatically, but an explicit c++rt0.o
11067 # does not break anything, and helps significantly (at the cost of a little
11070 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11071 hardcode_libdir_flag_spec='-R$libdir'
11072 hardcode_direct=yes
11073 hardcode_shlibpath_var=no
11076 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11079 hardcode_direct=yes
11080 hardcode_minus_L=yes
11081 hardcode_shlibpath_var=no
11084 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11085 freebsd* | dragonfly*)
11086 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11087 hardcode_libdir_flag_spec='-R$libdir'
11088 hardcode_direct=yes
11089 hardcode_shlibpath_var=no
11093 if test yes = "$GCC"; then
11094 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11096 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11098 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11099 hardcode_libdir_separator=:
11100 hardcode_direct=yes
11102 # hardcode_minus_L: Not really in the search PATH,
11103 # but as the default location of the library.
11104 hardcode_minus_L=yes
11105 export_dynamic_flag_spec='$wl-E'
11109 if test yes,no = "$GCC,$with_gnu_ld"; then
11110 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11112 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11114 if test no = "$with_gnu_ld"; then
11115 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11116 hardcode_libdir_separator=:
11117 hardcode_direct=yes
11118 hardcode_direct_absolute=yes
11119 export_dynamic_flag_spec='$wl-E'
11120 # hardcode_minus_L: Not really in the search PATH,
11121 # but as the default location of the library.
11122 hardcode_minus_L=yes
11127 if test yes,no = "$GCC,$with_gnu_ld"; then
11130 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11133 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11136 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11142 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11145 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11149 # Older versions of the 11.00 compiler do not understand -b yet
11150 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11152 $as_echo_n "checking if $CC understands -b... " >&6; }
11153 if ${lt_cv_prog_compiler__b+:} false; then :
11154 $as_echo_n "(cached) " >&6
11156 lt_cv_prog_compiler__b=no
11157 save_LDFLAGS=$LDFLAGS
11158 LDFLAGS="$LDFLAGS -b"
11159 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11160 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11161 # The linker can only warn and ignore the option if not recognized
11162 # So say no if there are warnings
11163 if test -s conftest.err; then
11164 # Append any errors to the config.log.
11165 cat conftest.err 1>&5
11166 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11168 if diff conftest.exp conftest.er2 >/dev/null; then
11169 lt_cv_prog_compiler__b=yes
11172 lt_cv_prog_compiler__b=yes
11176 LDFLAGS=$save_LDFLAGS
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11180 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11182 if test yes = "$lt_cv_prog_compiler__b"; then
11183 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11185 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11191 if test no = "$with_gnu_ld"; then
11192 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11193 hardcode_libdir_separator=:
11198 hardcode_shlibpath_var=no
11201 hardcode_direct=yes
11202 hardcode_direct_absolute=yes
11203 export_dynamic_flag_spec='$wl-E'
11205 # hardcode_minus_L: Not really in the search PATH,
11206 # but as the default location of the library.
11207 hardcode_minus_L=yes
11213 irix5* | irix6* | nonstopux*)
11214 if test yes = "$GCC"; then
11215 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'
11216 # Try to use the -exported_symbol ld option, if it does not
11217 # work, assume that -exports_file does not work either and
11218 # implicitly export all symbols.
11219 # This should be the same for all languages, so no per-tag cache variable.
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11221 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11222 if ${lt_cv_irix_exported_symbol+:} false; then :
11223 $as_echo_n "(cached) " >&6
11225 save_LDFLAGS=$LDFLAGS
11226 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h. */
11229 int foo (void) { return 0; }
11231 if ac_fn_c_try_link "$LINENO"; then :
11232 lt_cv_irix_exported_symbol=yes
11234 lt_cv_irix_exported_symbol=no
11236 rm -f core conftest.err conftest.$ac_objext \
11237 conftest$ac_exeext conftest.$ac_ext
11238 LDFLAGS=$save_LDFLAGS
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11241 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11242 if test yes = "$lt_cv_irix_exported_symbol"; then
11243 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'
11246 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'
11247 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'
11249 archive_cmds_need_lc='no'
11250 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11251 hardcode_libdir_separator=:
11253 link_all_deplibs=yes
11257 case $cc_basename in
11259 # Fabrice Bellard et al's Tiny C Compiler
11261 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11268 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11270 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11272 hardcode_libdir_flag_spec='-R$libdir'
11273 hardcode_direct=yes
11274 hardcode_shlibpath_var=no
11278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11279 hardcode_direct=yes
11280 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11281 hardcode_libdir_separator=:
11282 hardcode_shlibpath_var=no
11288 openbsd* | bitrig*)
11289 if test -f /usr/libexec/ld.so; then
11290 hardcode_direct=yes
11291 hardcode_shlibpath_var=no
11292 hardcode_direct_absolute=yes
11293 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11294 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11295 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11296 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11297 export_dynamic_flag_spec='$wl-E'
11299 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11300 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11308 hardcode_libdir_flag_spec='-L$libdir'
11309 hardcode_minus_L=yes
11310 allow_undefined_flag=unsupported
11312 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11313 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11314 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11315 $ECHO EXPORTS >> $output_objdir/$libname.def~
11316 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11317 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11318 emximp -o $lib $output_objdir/$libname.def'
11319 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11320 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11321 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11322 $ECHO EXPORTS >> $output_objdir/$libname.def~
11323 prefix_cmds="$SED"~
11324 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11325 prefix_cmds="$prefix_cmds -e 1d";
11327 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11328 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11329 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11330 emximp -o $lib $output_objdir/$libname.def'
11331 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11332 enable_shared_with_static_runtimes=yes
11336 if test yes = "$GCC"; then
11337 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11338 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'
11340 allow_undefined_flag=' -expect_unresolved \*'
11341 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'
11343 archive_cmds_need_lc='no'
11344 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11345 hardcode_libdir_separator=:
11348 osf4* | osf5*) # as osf3* with the addition of -msym flag
11349 if test yes = "$GCC"; then
11350 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11351 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'
11352 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11354 allow_undefined_flag=' -expect_unresolved \*'
11355 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'
11356 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~
11357 $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'
11359 # Both c and cxx compiler support -rpath directly
11360 hardcode_libdir_flag_spec='-rpath $libdir'
11362 archive_cmds_need_lc='no'
11363 hardcode_libdir_separator=:
11367 no_undefined_flag=' -z defs'
11368 if test yes = "$GCC"; then
11370 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11371 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11372 $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'
11374 case `$CC -V 2>&1` in
11377 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11378 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11379 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11383 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11384 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11385 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11389 hardcode_libdir_flag_spec='-R$libdir'
11390 hardcode_shlibpath_var=no
11392 solaris2.[0-5] | solaris2.[0-5].*) ;;
11394 # The compiler driver will combine and reorder linker options,
11395 # but understands '-z linker_flag'. GCC discards it without '$wl',
11396 # but is careful enough not to reorder.
11397 # Supported since Solaris 2.6 (maybe 2.5.1?)
11398 if test yes = "$GCC"; then
11399 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11401 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11405 link_all_deplibs=yes
11409 if test sequent = "$host_vendor"; then
11410 # Use $CC to link under sequent, because it throws in some extra .o
11411 # files that make .init and .fini sections work.
11412 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11414 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11416 hardcode_libdir_flag_spec='-L$libdir'
11417 hardcode_direct=yes
11418 hardcode_minus_L=yes
11419 hardcode_shlibpath_var=no
11423 case $host_vendor in
11425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11426 hardcode_direct=yes # is this really true???
11429 ## LD is ld it makes a PLAMLIB
11430 ## CC just makes a GrossModule.
11431 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11432 reload_cmds='$CC -r -o $output$reload_objs'
11436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11437 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11440 runpath_var='LD_RUN_PATH'
11441 hardcode_shlibpath_var=no
11445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11446 hardcode_shlibpath_var=no
11447 export_dynamic_flag_spec='-Bexport'
11451 if test -d /usr/nec; then
11452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11453 hardcode_shlibpath_var=no
11454 runpath_var=LD_RUN_PATH
11455 hardcode_runpath_var=yes
11460 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11461 no_undefined_flag='$wl-z,text'
11462 archive_cmds_need_lc=no
11463 hardcode_shlibpath_var=no
11464 runpath_var='LD_RUN_PATH'
11466 if test yes = "$GCC"; then
11467 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11468 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11470 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11471 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11475 sysv5* | sco3.2v5* | sco5v6*)
11476 # Note: We CANNOT use -z defs as we might desire, because we do not
11477 # link with -lc, and that would cause any symbols used from libc to
11478 # always be unresolved, which means just about no library would
11479 # ever link correctly. If we're not using GNU ld we use -z text
11480 # though, which does catch some bad symbols but isn't as heavy-handed
11482 no_undefined_flag='$wl-z,text'
11483 allow_undefined_flag='$wl-z,nodefs'
11484 archive_cmds_need_lc=no
11485 hardcode_shlibpath_var=no
11486 hardcode_libdir_flag_spec='$wl-R,$libdir'
11487 hardcode_libdir_separator=':'
11488 link_all_deplibs=yes
11489 export_dynamic_flag_spec='$wl-Bexport'
11490 runpath_var='LD_RUN_PATH'
11492 if test yes = "$GCC"; then
11493 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11494 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11496 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11497 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11503 hardcode_libdir_flag_spec='-L$libdir'
11504 hardcode_shlibpath_var=no
11512 if test sni = "$host_vendor"; then
11514 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11515 export_dynamic_flag_spec='$wl-Blargedynsym'
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11522 $as_echo "$ld_shlibs" >&6; }
11523 test no = "$ld_shlibs" && can_build_shared=no
11525 with_gnu_ld=$with_gnu_ld
11542 # Do we need to explicitly link libc?
11544 case "x$archive_cmds_need_lc" in
11546 # Assume -lc should be added
11547 archive_cmds_need_lc=yes
11549 if test yes,yes = "$GCC,$enable_shared"; then
11550 case $archive_cmds in
11552 # FIXME: we may have to deal with multi-command sequences.
11555 # Test whether the compiler implicitly links with -lc since on some
11556 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11557 # to ld, don't add -lc before -lgcc.
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11559 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11560 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11561 $as_echo_n "(cached) " >&6
11564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11567 (eval $ac_compile) 2>&5
11569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11570 test $ac_status = 0; } 2>conftest.err; then
11573 libobjs=conftest.$ac_objext
11575 wl=$lt_prog_compiler_wl
11576 pic_flag=$lt_prog_compiler_pic
11582 lt_save_allow_undefined_flag=$allow_undefined_flag
11583 allow_undefined_flag=
11584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11585 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11588 test $ac_status = 0; }
11590 lt_cv_archive_cmds_need_lc=no
11592 lt_cv_archive_cmds_need_lc=yes
11594 allow_undefined_flag=$lt_save_allow_undefined_flag
11596 cat conftest.err 1>&5
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11602 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11603 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11762 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11764 if test yes = "$GCC"; then
11766 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11767 *) lt_awk_arg='/^libraries:/' ;;
11770 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11771 *) lt_sed_strip_eq='s|=/|/|g' ;;
11773 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11774 case $lt_search_path_spec in
11776 # if the path contains ";" then we assume it to be the separator
11777 # otherwise default to the standard path separator (i.e. ":") - it is
11778 # assumed that no part of a normal pathname contains ";" but that should
11779 # okay in the real world where ";" in dirpaths is itself problematic.
11780 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11783 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11786 # Ok, now we have the path, separated by spaces, we can step through it
11787 # and add multilib dir if necessary...
11788 lt_tmp_lt_search_path_spec=
11789 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11790 # ...but if some path component already ends with the multilib dir we assume
11791 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11792 case "$lt_multi_os_dir; $lt_search_path_spec " in
11793 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11797 for lt_sys_path in $lt_search_path_spec; do
11798 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11799 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11800 elif test -n "$lt_multi_os_dir"; then
11801 test -d "$lt_sys_path" && \
11802 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11805 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11806 BEGIN {RS = " "; FS = "/|\n";} {
11809 for (lt_i = NF; lt_i > 0; lt_i--) {
11810 if ($lt_i != "" && $lt_i != ".") {
11811 if ($lt_i == "..") {
11814 if (lt_count == 0) {
11815 lt_foo = "/" $lt_i lt_foo;
11822 if (lt_foo != "") { lt_freq[lt_foo]++; }
11823 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11825 # AWK program above erroneously prepends '/' to C:/dos/paths
11828 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11829 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11831 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11833 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11835 library_names_spec=
11836 libname_spec='lib$name'
11840 postuninstall_cmds=
11844 shlibpath_overrides_runpath=unknown
11846 dynamic_linker="$host_os ld.so"
11847 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11848 need_lib_prefix=unknown
11849 hardcode_into_libs=no
11851 # when you set need_version to no, make sure it does not cause -set_version
11852 # flags to be left without arguments
11853 need_version=unknown
11859 version_type=linux # correct to gnu/linux during the next big refactor
11860 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11861 shlibpath_var=LIBPATH
11863 # AIX 3 has no versioning support, so we append a major version to the name.
11864 soname_spec='$libname$release$shared_ext$major'
11868 version_type=linux # correct to gnu/linux during the next big refactor
11871 hardcode_into_libs=yes
11872 if test ia64 = "$host_cpu"; then
11873 # AIX 5 supports IA64
11874 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11875 shlibpath_var=LD_LIBRARY_PATH
11877 # With GCC up to 2.95.x, collect2 would create an import file
11878 # for dependence libraries. The import file would start with
11879 # the line '#! .'. This would cause the generated library to
11880 # depend on '.', always an invalid library. This was fixed in
11881 # development snapshots of GCC prior to 3.0.
11883 aix4 | aix4.[01] | aix4.[01].*)
11884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11886 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11889 can_build_shared=no
11893 # Using Import Files as archive members, it is possible to support
11894 # filename-based versioning of shared library archives on AIX. While
11895 # this would work for both with and without runtime linking, it will
11896 # prevent static linking of such archives. So we do filename-based
11897 # shared library versioning with .so extension only, which is used
11898 # when both runtime linking and shared linking is enabled.
11899 # Unfortunately, runtime linking may impact performance, so we do
11900 # not want this to be the default eventually. Also, we use the
11901 # versioned .so libs for executables only if there is the -brtl
11902 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11903 # To allow for filename-based versioning support, we need to create
11904 # libNAME.so.V as an archive file, containing:
11905 # *) an Import File, referring to the versioned filename of the
11906 # archive as well as the shared archive member, telling the
11907 # bitwidth (32 or 64) of that shared object, and providing the
11908 # list of exported symbols of that shared object, eventually
11909 # decorated with the 'weak' keyword
11910 # *) the shared object with the F_LOADONLY flag set, to really avoid
11911 # it being seen by the linker.
11912 # At run time we better use the real file rather than another symlink,
11913 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11915 case $with_aix_soname,$aix_use_runtimelinking in
11916 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11917 # soname into executable. Probably we can add versioning support to
11918 # collect2, so additional links can be useful in future.
11919 aix,yes) # traditional libtool
11920 dynamic_linker='AIX unversionable lib.so'
11921 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11922 # instead of lib<name>.a to let people know that these are not
11923 # typical AIX shared libraries.
11924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11926 aix,no) # traditional AIX only
11927 dynamic_linker='AIX lib.a(lib.so.V)'
11928 # We preserve .a as extension for shared libraries through AIX4.2
11929 # and later when we are not doing run time linking.
11930 library_names_spec='$libname$release.a $libname.a'
11931 soname_spec='$libname$release$shared_ext$major'
11933 svr4,*) # full svr4 only
11934 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11935 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11936 # We do not specify a path in Import Files, so LIBPATH fires.
11937 shlibpath_overrides_runpath=yes
11939 *,yes) # both, prefer svr4
11940 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11941 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11942 # unpreferred sharedlib libNAME.a needs extra handling
11943 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11944 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11945 # We do not specify a path in Import Files, so LIBPATH fires.
11946 shlibpath_overrides_runpath=yes
11948 *,no) # both, prefer aix
11949 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11950 library_names_spec='$libname$release.a $libname.a'
11951 soname_spec='$libname$release$shared_ext$major'
11952 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11953 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11954 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11957 shlibpath_var=LIBPATH
11964 # Since July 2007 AmigaOS4 officially supports .so libraries.
11965 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11969 library_names_spec='$libname.ixlibrary $libname.a'
11970 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11971 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11977 library_names_spec='$libname$shared_ext'
11978 dynamic_linker="$host_os ld.so"
11979 shlibpath_var=LIBRARY_PATH
11983 version_type=linux # correct to gnu/linux during the next big refactor
11985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11986 soname_spec='$libname$release$shared_ext$major'
11987 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11988 shlibpath_var=LD_LIBRARY_PATH
11989 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11990 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11991 # the default ld.so.conf also contains /usr/contrib/lib and
11992 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11993 # libtool to hard-code these into programs
11996 cygwin* | mingw* | pw32* | cegcc*)
11997 version_type=windows
12002 case $GCC,$cc_basename in
12005 library_names_spec='$libname.dll.a'
12006 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12007 postinstall_cmds='base_file=`basename \$file`~
12008 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12009 dldir=$destdir/`dirname \$dlpath`~
12010 test -d \$dldir || mkdir -p \$dldir~
12011 $install_prog $dir/$dlname \$dldir/$dlname~
12012 chmod a+x \$dldir/$dlname~
12013 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12014 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12016 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12017 dlpath=$dir/\$dldll~
12019 shlibpath_overrides_runpath=yes
12023 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12024 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12026 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12029 # MinGW DLLs use traditional 'lib' prefix
12030 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12033 # pw32 DLLs use 'pw' prefix rather than 'lib'
12034 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12037 dynamic_linker='Win32 ld.exe'
12042 libname_spec='$name'
12043 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12044 library_names_spec='$libname.dll.lib'
12048 sys_lib_search_path_spec=
12051 for lt_path in $LIB
12054 # Let DOS variable expansion print the short 8.3 style file name.
12055 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12056 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12059 # Convert to MSYS style.
12060 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12063 # Convert to unix form, then to dos form, then back to unix form
12064 # but this time dos style (no spaces!) so that the unix form looks
12065 # like /cygdrive/c/PROGRA~1:/cygdr...
12066 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12067 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12068 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12071 sys_lib_search_path_spec=$LIB
12072 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12073 # It is most probably a Windows format PATH.
12074 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12076 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12078 # FIXME: find the short name or the path components, as spaces are
12079 # common. (e.g. "Program Files" -> "PROGRA~1")
12083 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12084 postinstall_cmds='base_file=`basename \$file`~
12085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12086 dldir=$destdir/`dirname \$dlpath`~
12087 test -d \$dldir || mkdir -p \$dldir~
12088 $install_prog $dir/$dlname \$dldir/$dlname'
12089 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12090 dlpath=$dir/\$dldll~
12092 shlibpath_overrides_runpath=yes
12093 dynamic_linker='Win32 link.exe'
12097 # Assume MSVC wrapper
12098 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12099 dynamic_linker='Win32 ld.exe'
12102 # FIXME: first we should search . and the directory the executable is in
12106 darwin* | rhapsody*)
12107 dynamic_linker="$host_os dyld"
12108 version_type=darwin
12111 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12112 soname_spec='$libname$release$major$shared_ext'
12113 shlibpath_overrides_runpath=yes
12114 shlibpath_var=DYLD_LIBRARY_PATH
12115 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12117 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12118 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12122 version_type=linux # correct to gnu/linux during the next big refactor
12125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12126 soname_spec='$libname$release$shared_ext$major'
12127 shlibpath_var=LD_LIBRARY_PATH
12130 freebsd* | dragonfly*)
12131 # DragonFly does not have aout. When/if they implement a new
12132 # versioning mechanism, adjust this.
12133 if test -x /usr/bin/objformat; then
12134 objformat=`/usr/bin/objformat`
12137 freebsd[23].*) objformat=aout ;;
12138 *) objformat=elf ;;
12141 version_type=freebsd-$objformat
12142 case $version_type in
12144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12145 soname_spec='$libname$release$shared_ext$major'
12150 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12154 shlibpath_var=LD_LIBRARY_PATH
12157 shlibpath_overrides_runpath=yes
12159 freebsd3.[01]* | freebsdelf3.[01]*)
12160 shlibpath_overrides_runpath=yes
12161 hardcode_into_libs=yes
12163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12165 shlibpath_overrides_runpath=no
12166 hardcode_into_libs=yes
12168 *) # from 4.6 on, and DragonFly
12169 shlibpath_overrides_runpath=yes
12170 hardcode_into_libs=yes
12176 version_type=linux # correct to gnu/linux during the next big refactor
12179 dynamic_linker="$host_os runtime_loader"
12180 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12181 soname_spec='$libname$release$shared_ext$major'
12182 shlibpath_var=LIBRARY_PATH
12183 shlibpath_overrides_runpath=no
12184 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12185 hardcode_into_libs=yes
12188 hpux9* | hpux10* | hpux11*)
12189 # Give a soname corresponding to the major version so that dld.sl refuses to
12190 # link against other versions.
12197 hardcode_into_libs=yes
12198 dynamic_linker="$host_os dld.so"
12199 shlibpath_var=LD_LIBRARY_PATH
12200 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12202 soname_spec='$libname$release$shared_ext$major'
12203 if test 32 = "$HPUX_IA64_MODE"; then
12204 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12205 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12208 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12213 hardcode_into_libs=yes
12214 dynamic_linker="$host_os dld.sl"
12215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12218 soname_spec='$libname$release$shared_ext$major'
12219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12224 dynamic_linker="$host_os dld.sl"
12225 shlibpath_var=SHLIB_PATH
12226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12228 soname_spec='$libname$release$shared_ext$major'
12231 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12232 postinstall_cmds='chmod 555 $lib'
12233 # or fails outright, so override atomically:
12234 install_override_mode=555
12238 version_type=linux # correct to gnu/linux during the next big refactor
12241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12242 soname_spec='$libname$release$shared_ext$major'
12243 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12244 shlibpath_var=LD_LIBRARY_PATH
12245 shlibpath_overrides_runpath=no
12246 hardcode_into_libs=yes
12249 irix5* | irix6* | nonstopux*)
12251 nonstopux*) version_type=nonstopux ;;
12253 if test yes = "$lt_cv_prog_gnu_ld"; then
12254 version_type=linux # correct to gnu/linux during the next big refactor
12261 soname_spec='$libname$release$shared_ext$major'
12262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12264 irix5* | nonstopux*)
12265 libsuff= shlibsuff=
12268 case $LD in # libtool.m4 will add one of these switches to LD
12269 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12270 libsuff= shlibsuff= libmagic=32-bit;;
12271 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12272 libsuff=32 shlibsuff=N32 libmagic=N32;;
12273 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12274 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12275 *) libsuff= shlibsuff= libmagic=never-match;;
12279 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12280 shlibpath_overrides_runpath=no
12281 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12282 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12283 hardcode_into_libs=yes
12286 # No shared lib support for Linux oldld, aout, or coff.
12287 linux*oldld* | linux*aout* | linux*coff*)
12292 version_type=none # Android doesn't support versioned libraries.
12295 library_names_spec='$libname$release$shared_ext'
12296 soname_spec='$libname$release$shared_ext'
12298 shlibpath_var=LD_LIBRARY_PATH
12299 shlibpath_overrides_runpath=yes
12301 # This implies no fast_install, which is unacceptable.
12302 # Some rework will be needed to allow for fast_install
12303 # before this can be enabled.
12304 hardcode_into_libs=yes
12306 dynamic_linker='Android linker'
12307 # Don't embed -rpath directories since the linker doesn't support them.
12308 hardcode_libdir_flag_spec='-L$libdir'
12311 # This must be glibc/ELF.
12312 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12313 version_type=linux # correct to gnu/linux during the next big refactor
12316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12317 soname_spec='$libname$release$shared_ext$major'
12318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12319 shlibpath_var=LD_LIBRARY_PATH
12320 shlibpath_overrides_runpath=no
12322 # Some binutils ld are patched to set DT_RUNPATH
12323 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12324 $as_echo_n "(cached) " >&6
12326 lt_cv_shlibpath_overrides_runpath=no
12327 save_LDFLAGS=$LDFLAGS
12328 save_libdir=$libdir
12329 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12330 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12342 if ac_fn_c_try_link "$LINENO"; then :
12343 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12344 lt_cv_shlibpath_overrides_runpath=yes
12347 rm -f core conftest.err conftest.$ac_objext \
12348 conftest$ac_exeext conftest.$ac_ext
12349 LDFLAGS=$save_LDFLAGS
12350 libdir=$save_libdir
12354 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12356 # This implies no fast_install, which is unacceptable.
12357 # Some rework will be needed to allow for fast_install
12358 # before this can be enabled.
12359 hardcode_into_libs=yes
12361 # Add ABI-specific directories to the system library path.
12362 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12364 # Ideally, we could use ldconfig to report *all* directores which are
12365 # searched for libraries, however this is still not possible. Aside from not
12366 # being certain /sbin/ldconfig is available, command
12367 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12368 # even though it is searched at run-time. Try to do the best guess by
12369 # appending ld.so.conf contents (and includes) to the search path.
12370 if test -f /etc/ld.so.conf; then
12371 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' ' '`
12372 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12375 # We used to test for /lib/ld.so.1 and disable shared libraries on
12376 # powerpc, because MkLinux only supported shared libraries with the
12377 # GNU dynamic linker. Since this was broken with cross compilers,
12378 # most powerpc-linux boxes support dynamic linking these days and
12379 # people can always --disable-shared, the test was removed, and we
12380 # assume the GNU/Linux dynamic linker is in use.
12381 dynamic_linker='GNU/Linux ld.so'
12388 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12389 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12391 dynamic_linker='NetBSD (a.out) ld.so'
12393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12394 soname_spec='$libname$release$shared_ext$major'
12395 dynamic_linker='NetBSD ld.elf_so'
12397 shlibpath_var=LD_LIBRARY_PATH
12398 shlibpath_overrides_runpath=yes
12399 hardcode_into_libs=yes
12403 version_type=linux # correct to gnu/linux during the next big refactor
12404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12405 shlibpath_var=LD_LIBRARY_PATH
12406 shlibpath_overrides_runpath=yes
12413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12414 soname_spec='$libname$release$shared_ext$major'
12415 shlibpath_var=LD_LIBRARY_PATH
12416 shlibpath_overrides_runpath=no
12417 hardcode_into_libs=yes
12418 dynamic_linker='ldqnx.so'
12421 openbsd* | bitrig*)
12423 sys_lib_dlsearch_path_spec=/usr/lib
12425 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12430 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12432 shlibpath_var=LD_LIBRARY_PATH
12433 shlibpath_overrides_runpath=yes
12437 libname_spec='$name'
12438 version_type=windows
12442 # OS/2 can only load a DLL with a base name of 8 characters or less.
12443 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12444 v=$($ECHO $release$versuffix | tr -d .-);
12445 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12446 $ECHO $n$v`$shared_ext'
12447 library_names_spec='${libname}_dll.$libext'
12448 dynamic_linker='OS/2 ld.exe'
12449 shlibpath_var=BEGINLIBPATH
12450 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12452 postinstall_cmds='base_file=`basename \$file`~
12453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12454 dldir=$destdir/`dirname \$dlpath`~
12455 test -d \$dldir || mkdir -p \$dldir~
12456 $install_prog $dir/$dlname \$dldir/$dlname~
12457 chmod a+x \$dldir/$dlname~
12458 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12459 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12462 dlpath=$dir/\$dldll~
12466 osf3* | osf4* | osf5*)
12470 soname_spec='$libname$release$shared_ext$major'
12471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12472 shlibpath_var=LD_LIBRARY_PATH
12473 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12482 version_type=linux # correct to gnu/linux during the next big refactor
12485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12486 soname_spec='$libname$release$shared_ext$major'
12487 shlibpath_var=LD_LIBRARY_PATH
12488 shlibpath_overrides_runpath=yes
12489 hardcode_into_libs=yes
12490 # ldd complains unless libraries are executable
12491 postinstall_cmds='chmod +x $lib'
12496 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12497 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12498 shlibpath_var=LD_LIBRARY_PATH
12499 shlibpath_overrides_runpath=yes
12500 if test yes = "$with_gnu_ld"; then
12507 version_type=linux # correct to gnu/linux during the next big refactor
12508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12509 soname_spec='$libname$release$shared_ext$major'
12510 shlibpath_var=LD_LIBRARY_PATH
12511 case $host_vendor in
12513 shlibpath_overrides_runpath=no
12515 runpath_var=LD_RUN_PATH
12523 shlibpath_overrides_runpath=no
12524 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12530 if test -d /usr/nec; then
12531 version_type=linux # correct to gnu/linux during the next big refactor
12532 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12533 soname_spec='$libname$shared_ext.$major'
12534 shlibpath_var=LD_LIBRARY_PATH
12538 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12543 soname_spec='$libname$release$shared_ext$major'
12544 shlibpath_var=LD_LIBRARY_PATH
12545 shlibpath_overrides_runpath=yes
12546 hardcode_into_libs=yes
12547 if test yes = "$with_gnu_ld"; then
12548 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12550 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12553 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12557 sys_lib_dlsearch_path_spec='/usr/lib'
12561 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12562 version_type=linux # correct to gnu/linux during the next big refactor
12565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12566 shlibpath_var=LD_LIBRARY_PATH
12567 shlibpath_overrides_runpath=no
12568 hardcode_into_libs=yes
12572 version_type=linux # correct to gnu/linux during the next big refactor
12573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12574 soname_spec='$libname$release$shared_ext$major'
12575 shlibpath_var=LD_LIBRARY_PATH
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12583 $as_echo "$dynamic_linker" >&6; }
12584 test no = "$dynamic_linker" && can_build_shared=no
12586 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12587 if test yes = "$GCC"; then
12588 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12591 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12592 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12595 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12596 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12599 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12600 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12602 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12603 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12605 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12606 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12705 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12707 if test -n "$hardcode_libdir_flag_spec" ||
12708 test -n "$runpath_var" ||
12709 test yes = "$hardcode_automatic"; then
12711 # We can hardcode non-existent directories.
12712 if test no != "$hardcode_direct" &&
12713 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12714 # have to relink, otherwise we might link with an installed library
12715 # when we should be linking with a yet-to-be-installed one
12716 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12717 test no != "$hardcode_minus_L"; then
12718 # Linking always hardcodes the temporary library directory.
12719 hardcode_action=relink
12721 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12722 hardcode_action=immediate
12725 # We cannot hardcode anything, or else we can only hardcode existing
12727 hardcode_action=unsupported
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12730 $as_echo "$hardcode_action" >&6; }
12732 if test relink = "$hardcode_action" ||
12733 test yes = "$inherit_rpath"; then
12734 # Fast installation is not supported
12735 enable_fast_install=no
12736 elif test yes = "$shlibpath_overrides_runpath" ||
12737 test no = "$enable_shared"; then
12738 # Fast installation is not necessary
12739 enable_fast_install=needless
12747 if test yes != "$enable_dlopen"; then
12748 enable_dlopen=unknown
12749 enable_dlopen_self=unknown
12750 enable_dlopen_self_static=unknown
12757 lt_cv_dlopen=load_add_on
12759 lt_cv_dlopen_self=yes
12762 mingw* | pw32* | cegcc*)
12763 lt_cv_dlopen=LoadLibrary
12768 lt_cv_dlopen=dlopen
12773 # if libdl is installed we need to link against it
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12775 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12776 if ${ac_cv_lib_dl_dlopen+:} false; then :
12777 $as_echo_n "(cached) " >&6
12779 ac_check_lib_save_LIBS=$LIBS
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h. */
12784 /* Override any GCC internal prototype to avoid an error.
12785 Use char because int might match the return type of a GCC
12786 builtin and then its argument prototype would still apply. */
12799 if ac_fn_c_try_link "$LINENO"; then :
12800 ac_cv_lib_dl_dlopen=yes
12802 ac_cv_lib_dl_dlopen=no
12804 rm -f core conftest.err conftest.$ac_objext \
12805 conftest$ac_exeext conftest.$ac_ext
12806 LIBS=$ac_check_lib_save_LIBS
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12809 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12810 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12811 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12816 lt_cv_dlopen_self=yes
12823 # Don't try to run any link tests for TPF. We know it's impossible
12824 # because TPF is a cross-compiler, and we know how we open DSOs.
12825 lt_cv_dlopen=dlopen
12827 lt_cv_dlopen_self=no
12831 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12832 if test "x$ac_cv_func_shl_load" = xyes; then :
12833 lt_cv_dlopen=shl_load
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12836 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12837 if ${ac_cv_lib_dld_shl_load+:} false; then :
12838 $as_echo_n "(cached) " >&6
12840 ac_check_lib_save_LIBS=$LIBS
12842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12843 /* end confdefs.h. */
12845 /* Override any GCC internal prototype to avoid an error.
12846 Use char because int might match the return type of a GCC
12847 builtin and then its argument prototype would still apply. */
12855 return shl_load ();
12860 if ac_fn_c_try_link "$LINENO"; then :
12861 ac_cv_lib_dld_shl_load=yes
12863 ac_cv_lib_dld_shl_load=no
12865 rm -f core conftest.err conftest.$ac_objext \
12866 conftest$ac_exeext conftest.$ac_ext
12867 LIBS=$ac_check_lib_save_LIBS
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12870 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12871 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12872 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12874 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12875 if test "x$ac_cv_func_dlopen" = xyes; then :
12876 lt_cv_dlopen=dlopen
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12879 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12880 if ${ac_cv_lib_dl_dlopen+:} false; then :
12881 $as_echo_n "(cached) " >&6
12883 ac_check_lib_save_LIBS=$LIBS
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12888 /* Override any GCC internal prototype to avoid an error.
12889 Use char because int might match the return type of a GCC
12890 builtin and then its argument prototype would still apply. */
12903 if ac_fn_c_try_link "$LINENO"; then :
12904 ac_cv_lib_dl_dlopen=yes
12906 ac_cv_lib_dl_dlopen=no
12908 rm -f core conftest.err conftest.$ac_objext \
12909 conftest$ac_exeext conftest.$ac_ext
12910 LIBS=$ac_check_lib_save_LIBS
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12913 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12914 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12915 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12918 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12919 if ${ac_cv_lib_svld_dlopen+:} false; then :
12920 $as_echo_n "(cached) " >&6
12922 ac_check_lib_save_LIBS=$LIBS
12923 LIBS="-lsvld $LIBS"
12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12927 /* Override any GCC internal prototype to avoid an error.
12928 Use char because int might match the return type of a GCC
12929 builtin and then its argument prototype would still apply. */
12942 if ac_fn_c_try_link "$LINENO"; then :
12943 ac_cv_lib_svld_dlopen=yes
12945 ac_cv_lib_svld_dlopen=no
12947 rm -f core conftest.err conftest.$ac_objext \
12948 conftest$ac_exeext conftest.$ac_ext
12949 LIBS=$ac_check_lib_save_LIBS
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12952 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12953 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12954 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12957 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12958 if ${ac_cv_lib_dld_dld_link+:} false; then :
12959 $as_echo_n "(cached) " >&6
12961 ac_check_lib_save_LIBS=$LIBS
12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h. */
12966 /* Override any GCC internal prototype to avoid an error.
12967 Use char because int might match the return type of a GCC
12968 builtin and then its argument prototype would still apply. */
12976 return dld_link ();
12981 if ac_fn_c_try_link "$LINENO"; then :
12982 ac_cv_lib_dld_dld_link=yes
12984 ac_cv_lib_dld_dld_link=no
12986 rm -f core conftest.err conftest.$ac_objext \
12987 conftest$ac_exeext conftest.$ac_ext
12988 LIBS=$ac_check_lib_save_LIBS
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12991 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12992 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12993 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13014 if test no = "$lt_cv_dlopen"; then
13020 case $lt_cv_dlopen in
13022 save_CPPFLAGS=$CPPFLAGS
13023 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13025 save_LDFLAGS=$LDFLAGS
13026 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13029 LIBS="$lt_cv_dlopen_libs $LIBS"
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13032 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13033 if ${lt_cv_dlopen_self+:} false; then :
13034 $as_echo_n "(cached) " >&6
13036 if test yes = "$cross_compiling"; then :
13037 lt_cv_dlopen_self=cross
13039 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13040 lt_status=$lt_dlunknown
13041 cat > conftest.$ac_ext <<_LT_EOF
13042 #line $LINENO "configure"
13043 #include "confdefs.h"
13052 # define LT_DLGLOBAL RTLD_GLOBAL
13055 # define LT_DLGLOBAL DL_GLOBAL
13057 # define LT_DLGLOBAL 0
13061 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13062 find out it does not work in some platform. */
13063 #ifndef LT_DLLAZY_OR_NOW
13065 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13068 # define LT_DLLAZY_OR_NOW DL_LAZY
13071 # define LT_DLLAZY_OR_NOW RTLD_NOW
13074 # define LT_DLLAZY_OR_NOW DL_NOW
13076 # define LT_DLLAZY_OR_NOW 0
13083 /* When -fvisibility=hidden is used, assume the code has been annotated
13084 correspondingly for the symbols needed. */
13085 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13086 int fnord () __attribute__((visibility("default")));
13089 int fnord () { return 42; }
13092 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13093 int status = $lt_dlunknown;
13097 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13100 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13101 else puts (dlerror ());
13103 /* dlclose (self); */
13111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13112 (eval $ac_link) 2>&5
13114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13115 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13116 (./conftest; exit; ) >&5 2>/dev/null
13118 case x$lt_status in
13119 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13120 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13121 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13124 # compilation failed
13125 lt_cv_dlopen_self=no
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13133 $as_echo "$lt_cv_dlopen_self" >&6; }
13135 if test yes = "$lt_cv_dlopen_self"; then
13136 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13138 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13139 if ${lt_cv_dlopen_self_static+:} false; then :
13140 $as_echo_n "(cached) " >&6
13142 if test yes = "$cross_compiling"; then :
13143 lt_cv_dlopen_self_static=cross
13145 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13146 lt_status=$lt_dlunknown
13147 cat > conftest.$ac_ext <<_LT_EOF
13148 #line $LINENO "configure"
13149 #include "confdefs.h"
13158 # define LT_DLGLOBAL RTLD_GLOBAL
13161 # define LT_DLGLOBAL DL_GLOBAL
13163 # define LT_DLGLOBAL 0
13167 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13168 find out it does not work in some platform. */
13169 #ifndef LT_DLLAZY_OR_NOW
13171 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13174 # define LT_DLLAZY_OR_NOW DL_LAZY
13177 # define LT_DLLAZY_OR_NOW RTLD_NOW
13180 # define LT_DLLAZY_OR_NOW DL_NOW
13182 # define LT_DLLAZY_OR_NOW 0
13189 /* When -fvisibility=hidden is used, assume the code has been annotated
13190 correspondingly for the symbols needed. */
13191 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13192 int fnord () __attribute__((visibility("default")));
13195 int fnord () { return 42; }
13198 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13199 int status = $lt_dlunknown;
13203 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13206 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13207 else puts (dlerror ());
13209 /* dlclose (self); */
13217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13218 (eval $ac_link) 2>&5
13220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13221 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13222 (./conftest; exit; ) >&5 2>/dev/null
13224 case x$lt_status in
13225 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13226 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13227 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13230 # compilation failed
13231 lt_cv_dlopen_self_static=no
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13239 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13242 CPPFLAGS=$save_CPPFLAGS
13243 LDFLAGS=$save_LDFLAGS
13248 case $lt_cv_dlopen_self in
13249 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13250 *) enable_dlopen_self=unknown ;;
13253 case $lt_cv_dlopen_self_static in
13254 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13255 *) enable_dlopen_self_static=unknown ;;
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13278 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13279 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13280 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13281 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13283 $as_echo "yes" >&6; }
13285 # FIXME - insert some real tests, host_os isn't really good enough
13288 if test -n "$STRIP"; then
13289 striplib="$STRIP -x"
13290 old_striplib="$STRIP -S"
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13292 $as_echo "yes" >&6; }
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300 $as_echo "no" >&6; }
13316 # Report what library types will actually be built
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13318 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13320 $as_echo "$can_build_shared" >&6; }
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13323 $as_echo_n "checking whether to build shared libraries... " >&6; }
13324 test no = "$can_build_shared" && enable_shared=no
13326 # On AIX, shared libraries and static libraries use the same namespace, and
13327 # are all built from PIC.
13330 test yes = "$enable_shared" && enable_static=no
13331 if test -n "$RANLIB"; then
13332 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13333 postinstall_cmds='$RANLIB $lib'
13338 if test ia64 != "$host_cpu"; then
13339 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13340 yes,aix,yes) ;; # shared object as lib.so file only
13341 yes,svr4,*) ;; # shared object as lib.so archive member only
13342 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13348 $as_echo "$enable_shared" >&6; }
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13351 $as_echo_n "checking whether to build static libraries... " >&6; }
13352 # Make sure either enable_shared or enable_static is yes.
13353 test yes = "$enable_shared" || enable_static=yes
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13355 $as_echo "$enable_static" >&6; }
13362 ac_cpp='$CPP $CPPFLAGS'
13363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13383 ac_config_commands="$ac_config_commands libtool"
13388 # Only expand once:
13392 # Check for programs
13394 ac_cpp='$CPP $CPPFLAGS'
13395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13398 if test -n "$ac_tool_prefix"; then
13399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13402 $as_echo_n "checking for $ac_word... " >&6; }
13403 if ${ac_cv_prog_CC+:} false; then :
13404 $as_echo_n "(cached) " >&6
13406 if test -n "$CC"; then
13407 ac_cv_prog_CC="$CC" # Let the user override the test.
13409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13410 for as_dir in $PATH
13413 test -z "$as_dir" && as_dir=.
13414 for ac_exec_ext in '' $ac_executable_extensions; do
13415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13427 if test -n "$CC"; then
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13429 $as_echo "$CC" >&6; }
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432 $as_echo "no" >&6; }
13437 if test -z "$ac_cv_prog_CC"; then
13439 # Extract the first word of "gcc", so it can be a program name with args.
13440 set dummy gcc; ac_word=$2
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13442 $as_echo_n "checking for $ac_word... " >&6; }
13443 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13444 $as_echo_n "(cached) " >&6
13446 if test -n "$ac_ct_CC"; then
13447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13450 for as_dir in $PATH
13453 test -z "$as_dir" && as_dir=.
13454 for ac_exec_ext in '' $ac_executable_extensions; do
13455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13456 ac_cv_prog_ac_ct_CC="gcc"
13457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13467 if test -n "$ac_ct_CC"; then
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13469 $as_echo "$ac_ct_CC" >&6; }
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472 $as_echo "no" >&6; }
13475 if test "x$ac_ct_CC" = x; then
13478 case $cross_compiling:$ac_tool_warned in
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13482 ac_tool_warned=yes ;;
13487 CC="$ac_cv_prog_CC"
13490 if test -z "$CC"; then
13491 if test -n "$ac_tool_prefix"; then
13492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13493 set dummy ${ac_tool_prefix}cc; ac_word=$2
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495 $as_echo_n "checking for $ac_word... " >&6; }
13496 if ${ac_cv_prog_CC+:} false; then :
13497 $as_echo_n "(cached) " >&6
13499 if test -n "$CC"; then
13500 ac_cv_prog_CC="$CC" # Let the user override the test.
13502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13503 for as_dir in $PATH
13506 test -z "$as_dir" && as_dir=.
13507 for ac_exec_ext in '' $ac_executable_extensions; do
13508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13509 ac_cv_prog_CC="${ac_tool_prefix}cc"
13510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13520 if test -n "$CC"; then
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13522 $as_echo "$CC" >&6; }
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525 $as_echo "no" >&6; }
13531 if test -z "$CC"; then
13532 # Extract the first word of "cc", so it can be a program name with args.
13533 set dummy cc; ac_word=$2
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13535 $as_echo_n "checking for $ac_word... " >&6; }
13536 if ${ac_cv_prog_CC+:} false; then :
13537 $as_echo_n "(cached) " >&6
13539 if test -n "$CC"; then
13540 ac_cv_prog_CC="$CC" # Let the user override the test.
13542 ac_prog_rejected=no
13543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13544 for as_dir in $PATH
13547 test -z "$as_dir" && as_dir=.
13548 for ac_exec_ext in '' $ac_executable_extensions; do
13549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13550 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13551 ac_prog_rejected=yes
13555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13562 if test $ac_prog_rejected = yes; then
13563 # We found a bogon in the path, so make sure we never use it.
13564 set dummy $ac_cv_prog_CC
13566 if test $# != 0; then
13567 # We chose a different compiler from the bogus one.
13568 # However, it has the same basename, so the bogon will be chosen
13569 # first if we set CC to just the basename; use the full file name.
13571 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13577 if test -n "$CC"; then
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13579 $as_echo "$CC" >&6; }
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582 $as_echo "no" >&6; }
13587 if test -z "$CC"; then
13588 if test -n "$ac_tool_prefix"; then
13589 for ac_prog in cl.exe
13591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13594 $as_echo_n "checking for $ac_word... " >&6; }
13595 if ${ac_cv_prog_CC+:} false; then :
13596 $as_echo_n "(cached) " >&6
13598 if test -n "$CC"; then
13599 ac_cv_prog_CC="$CC" # Let the user override the test.
13601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13602 for as_dir in $PATH
13605 test -z "$as_dir" && as_dir=.
13606 for ac_exec_ext in '' $ac_executable_extensions; do
13607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13619 if test -n "$CC"; then
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13621 $as_echo "$CC" >&6; }
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13624 $as_echo "no" >&6; }
13628 test -n "$CC" && break
13631 if test -z "$CC"; then
13633 for ac_prog in cl.exe
13635 # Extract the first word of "$ac_prog", so it can be a program name with args.
13636 set dummy $ac_prog; ac_word=$2
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13638 $as_echo_n "checking for $ac_word... " >&6; }
13639 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13640 $as_echo_n "(cached) " >&6
13642 if test -n "$ac_ct_CC"; then
13643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13646 for as_dir in $PATH
13649 test -z "$as_dir" && as_dir=.
13650 for ac_exec_ext in '' $ac_executable_extensions; do
13651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13652 ac_cv_prog_ac_ct_CC="$ac_prog"
13653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13663 if test -n "$ac_ct_CC"; then
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13665 $as_echo "$ac_ct_CC" >&6; }
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13668 $as_echo "no" >&6; }
13672 test -n "$ac_ct_CC" && break
13675 if test "x$ac_ct_CC" = x; then
13678 case $cross_compiling:$ac_tool_warned in
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13682 ac_tool_warned=yes ;;
13691 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13693 as_fn_error $? "no acceptable C compiler found in \$PATH
13694 See \`config.log' for more details" "$LINENO" 5; }
13696 # Provide some information about the compiler.
13697 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13700 for ac_option in --version -v -V -qversion; do
13701 { { ac_try="$ac_compiler $ac_option >&5"
13702 case "(($ac_try" in
13703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13707 $as_echo "$ac_try_echo"; } >&5
13708 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13710 if test -s conftest.err; then
13712 ... rest of stderr output deleted ...
13713 10q' conftest.err >conftest.er1
13714 cat conftest.er1 >&5
13716 rm -f conftest.er1 conftest.err
13717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13718 test $ac_status = 0; }
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13722 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13723 if ${ac_cv_c_compiler_gnu+:} false; then :
13724 $as_echo_n "(cached) " >&6
13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13740 if ac_fn_c_try_compile "$LINENO"; then :
13741 ac_compiler_gnu=yes
13745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13750 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13751 if test $ac_compiler_gnu = yes; then
13756 ac_test_CFLAGS=${CFLAGS+set}
13757 ac_save_CFLAGS=$CFLAGS
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13759 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13760 if ${ac_cv_prog_cc_g+:} false; then :
13761 $as_echo_n "(cached) " >&6
13763 ac_save_c_werror_flag=$ac_c_werror_flag
13764 ac_c_werror_flag=yes
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13778 if ac_fn_c_try_compile "$LINENO"; then :
13779 ac_cv_prog_cc_g=yes
13782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783 /* end confdefs.h. */
13793 if ac_fn_c_try_compile "$LINENO"; then :
13796 ac_c_werror_flag=$ac_save_c_werror_flag
13798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13799 /* end confdefs.h. */
13809 if ac_fn_c_try_compile "$LINENO"; then :
13810 ac_cv_prog_cc_g=yes
13812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13817 ac_c_werror_flag=$ac_save_c_werror_flag
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13820 $as_echo "$ac_cv_prog_cc_g" >&6; }
13821 if test "$ac_test_CFLAGS" = set; then
13822 CFLAGS=$ac_save_CFLAGS
13823 elif test $ac_cv_prog_cc_g = yes; then
13824 if test "$GCC" = yes; then
13830 if test "$GCC" = yes; then
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13837 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13838 if ${ac_cv_prog_cc_c89+:} false; then :
13839 $as_echo_n "(cached) " >&6
13841 ac_cv_prog_cc_c89=no
13843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844 /* end confdefs.h. */
13845 #include <stdarg.h>
13848 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13849 struct buf { int x; };
13850 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13851 static char *e (p, i)
13857 static char *f (char * (*g) (char **, int), char **p, ...)
13862 s = g (p, va_arg (v,int));
13867 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13868 function prototypes and stuff, but not '\xHH' hex character constants.
13869 These don't provoke an error unfortunately, instead are silently treated
13870 as 'x'. The following induces an error, until -std is added to get
13871 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13872 array size at least. It's necessary to write '\x00'==0 to get something
13873 that's true only with -std. */
13874 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13876 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13877 inside strings and character constants. */
13879 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13881 int test (int i, double x);
13882 struct s1 {int (*f) (int a);};
13883 struct s2 {int (*f) (double a);};
13884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13890 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13895 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13896 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13898 CC="$ac_save_CC $ac_arg"
13899 if ac_fn_c_try_compile "$LINENO"; then :
13900 ac_cv_prog_cc_c89=$ac_arg
13902 rm -f core conftest.err conftest.$ac_objext
13903 test "x$ac_cv_prog_cc_c89" != "xno" && break
13905 rm -f conftest.$ac_ext
13910 case "x$ac_cv_prog_cc_c89" in
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13913 $as_echo "none needed" >&6; } ;;
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13916 $as_echo "unsupported" >&6; } ;;
13918 CC="$CC $ac_cv_prog_cc_c89"
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13920 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13922 if test "x$ac_cv_prog_cc_c89" != xno; then :
13927 ac_cpp='$CPP $CPPFLAGS'
13928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13933 ac_cpp='$CPP $CPPFLAGS'
13934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13938 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13939 if ${am_cv_prog_cc_c_o+:} false; then :
13940 $as_echo_n "(cached) " >&6
13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13953 # Make sure it works both with $CC and with simple cc.
13954 # Following AC_PROG_CC_C_O, we do the test twice because some
13955 # compilers refuse to overwrite an existing .o file with -o,
13956 # though they will create one.
13957 am_cv_prog_cc_c_o=yes
13958 for am_i in 1 2; do
13959 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13960 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } \
13964 && test -f conftest2.$ac_objext; then
13967 am_cv_prog_cc_c_o=no
13971 rm -f core conftest*
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13975 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13976 if test "$am_cv_prog_cc_c_o" != yes; then
13977 # Losing compiler, so override with the script.
13978 # FIXME: It is wrong to rewrite CC.
13979 # But if we don't then we get into trouble of one sort or another.
13980 # A longer-term fix would be to have automake use am__CC in this case,
13981 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13982 CC="$am_aux_dir/compile $CC"
13985 ac_cpp='$CPP $CPPFLAGS'
13986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13991 depcc="$CC" am_compiler_list=
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13994 $as_echo_n "checking dependency style of $depcc... " >&6; }
13995 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13996 $as_echo_n "(cached) " >&6
13998 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13999 # We make a subdir and do the tests there. Otherwise we can end up
14000 # making bogus files that we don't know about and never remove. For
14001 # instance it was reported that on HP-UX the gcc test will end up
14002 # making a dummy file named 'D' -- because '-MD' means "put the output
14004 rm -rf conftest.dir
14006 # Copy depcomp to subdir because otherwise we won't find it if we're
14007 # using a relative directory.
14008 cp "$am_depcomp" conftest.dir
14010 # We will build objects and dependencies in a subdirectory because
14011 # it helps to detect inapplicable dependency modes. For instance
14012 # both Tru64's cc and ICC support -MD to output dependencies as a
14013 # side effect of compilation, but ICC will put the dependencies in
14014 # the current directory while Tru64 will put them in the object
14018 am_cv_CC_dependencies_compiler_type=none
14019 if test "$am_compiler_list" = ""; then
14020 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14022 am__universal=false
14023 case " $depcc " in #(
14024 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14027 for depmode in $am_compiler_list; do
14028 # Setup a source with many dependencies, because some compilers
14029 # like to wrap large dependency lists on column 80 (with \), and
14030 # we should not choose a depcomp mode which is confused by this.
14032 # We need to recreate these files for each test, as the compiler may
14033 # overwrite some of them when testing with obscure command lines.
14034 # This happens at least with the AIX C compiler.
14036 for i in 1 2 3 4 5 6; do
14037 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14038 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14039 # Solaris 10 /bin/sh.
14040 echo '/* dummy */' > sub/conftst$i.h
14042 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14044 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14045 # mode. It turns out that the SunPro C++ compiler does not properly
14046 # handle '-M -o', and we need to detect this. Also, some Intel
14047 # versions had trouble with output in subdirs.
14048 am__obj=sub/conftest.${OBJEXT-o}
14049 am__minus_obj="-o $am__obj"
14052 # This depmode causes a compiler race in universal mode.
14053 test "$am__universal" = false || continue
14056 # After this tag, mechanisms are not by side-effect, so they'll
14057 # only be used when explicitly requested.
14058 if test "x$enable_dependency_tracking" = xyes; then
14064 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14065 # This compiler won't grok '-c -o', but also, the minuso test has
14066 # not run yet. These depmodes are late enough in the game, and
14067 # so weak that their functioning should not be impacted.
14068 am__obj=conftest.${OBJEXT-o}
14073 if depmode=$depmode \
14074 source=sub/conftest.c object=$am__obj \
14075 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14076 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14077 >/dev/null 2>conftest.err &&
14078 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14079 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14080 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14081 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14082 # icc doesn't choke on unknown options, it will just issue warnings
14083 # or remarks (even with -Werror). So we grep stderr for any message
14084 # that says an option was ignored or not supported.
14085 # When given -MP, icc 7.0 and 7.1 complain thusly:
14086 # icc: Command line warning: ignoring option '-M'; no argument required
14087 # The diagnosis changed in icc 8.0:
14088 # icc: Command line remark: option '-MP' not supported
14089 if (grep 'ignoring option' conftest.err ||
14090 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14091 am_cv_CC_dependencies_compiler_type=$depmode
14098 rm -rf conftest.dir
14100 am_cv_CC_dependencies_compiler_type=none
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14105 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14106 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14109 test "x$enable_dependency_tracking" != xno \
14110 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14111 am__fastdepCC_TRUE=
14112 am__fastdepCC_FALSE='#'
14114 am__fastdepCC_TRUE='#'
14115 am__fastdepCC_FALSE=
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14120 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14121 if ${ac_cv_prog_cc_c99+:} false; then :
14122 $as_echo_n "(cached) " >&6
14124 ac_cv_prog_cc_c99=no
14126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127 /* end confdefs.h. */
14128 #include <stdarg.h>
14129 #include <stdbool.h>
14130 #include <stdlib.h>
14134 // Check varargs macros. These examples are taken from C99 6.10.3.5.
14135 #define debug(...) fprintf (stderr, __VA_ARGS__)
14136 #define showlist(...) puts (#__VA_ARGS__)
14137 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14139 test_varargs_macros (void)
14144 debug ("X = %d\n", x);
14145 showlist (The first, second, and third items.);
14146 report (x>y, "x is %d but y is %d", x, y);
14149 // Check long long types.
14150 #define BIG64 18446744073709551615ull
14151 #define BIG32 4294967295ul
14152 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14154 your preprocessor is broken;
14158 your preprocessor is broken;
14160 static long long int bignum = -9223372036854775807LL;
14161 static unsigned long long int ubignum = BIG64;
14163 struct incomplete_array
14169 struct named_init {
14171 const wchar_t *name;
14175 typedef const char *ccp;
14178 test_restrict (ccp restrict text)
14180 // See if C++-style comments work.
14181 // Iterate through items via the restricted pointer.
14182 // Also check for declarations in for loops.
14183 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14188 // Check varargs and va_copy.
14190 test_varargs (const char *format, ...)
14193 va_start (args, format);
14195 va_copy (args_copy, args);
14205 case 's': // string
14206 str = va_arg (args_copy, const char *);
14209 number = va_arg (args_copy, int);
14212 fnumber = va_arg (args_copy, double);
14218 va_end (args_copy);
14227 _Bool success = false;
14230 if (test_restrict ("String literal") == 0)
14232 char *restrict newvar = "Another string";
14235 test_varargs ("s, d' f .", "string", 65, 34.234);
14236 test_varargs_macros ();
14238 // Check flexible array members.
14239 struct incomplete_array *ia =
14240 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14242 for (int i = 0; i < ia->datasize; ++i)
14243 ia->data[i] = i * 1.234;
14245 // Check named initializers.
14246 struct named_init ni = {
14248 .name = L"Test wide string",
14249 .average = 543.34343,
14254 int dynamic_array[ni.number];
14255 dynamic_array[ni.number - 1] = 543;
14257 // work around unused variable warnings
14258 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14259 || dynamic_array[ni.number - 1] != 543);
14265 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14267 CC="$ac_save_CC $ac_arg"
14268 if ac_fn_c_try_compile "$LINENO"; then :
14269 ac_cv_prog_cc_c99=$ac_arg
14271 rm -f core conftest.err conftest.$ac_objext
14272 test "x$ac_cv_prog_cc_c99" != "xno" && break
14274 rm -f conftest.$ac_ext
14279 case "x$ac_cv_prog_cc_c99" in
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14282 $as_echo "none needed" >&6; } ;;
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14285 $as_echo "unsupported" >&6; } ;;
14287 CC="$CC $ac_cv_prog_cc_c99"
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14289 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14291 if test "x$ac_cv_prog_cc_c99" != xno; then :
14298 ac_cpp='$CXXCPP $CPPFLAGS'
14299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14302 if test -z "$CXX"; then
14303 if test -n "$CCC"; then
14306 if test -n "$ac_tool_prefix"; then
14307 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14312 $as_echo_n "checking for $ac_word... " >&6; }
14313 if ${ac_cv_prog_CXX+:} false; then :
14314 $as_echo_n "(cached) " >&6
14316 if test -n "$CXX"; then
14317 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14320 for as_dir in $PATH
14323 test -z "$as_dir" && as_dir=.
14324 for ac_exec_ext in '' $ac_executable_extensions; do
14325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14326 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14336 CXX=$ac_cv_prog_CXX
14337 if test -n "$CXX"; then
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14339 $as_echo "$CXX" >&6; }
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 $as_echo "no" >&6; }
14346 test -n "$CXX" && break
14349 if test -z "$CXX"; then
14351 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14353 # Extract the first word of "$ac_prog", so it can be a program name with args.
14354 set dummy $ac_prog; ac_word=$2
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14356 $as_echo_n "checking for $ac_word... " >&6; }
14357 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14358 $as_echo_n "(cached) " >&6
14360 if test -n "$ac_ct_CXX"; then
14361 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14364 for as_dir in $PATH
14367 test -z "$as_dir" && as_dir=.
14368 for ac_exec_ext in '' $ac_executable_extensions; do
14369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14370 ac_cv_prog_ac_ct_CXX="$ac_prog"
14371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14380 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14381 if test -n "$ac_ct_CXX"; then
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14383 $as_echo "$ac_ct_CXX" >&6; }
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14386 $as_echo "no" >&6; }
14390 test -n "$ac_ct_CXX" && break
14393 if test "x$ac_ct_CXX" = x; then
14396 case $cross_compiling:$ac_tool_warned in
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14400 ac_tool_warned=yes ;;
14408 # Provide some information about the compiler.
14409 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14412 for ac_option in --version -v -V -qversion; do
14413 { { ac_try="$ac_compiler $ac_option >&5"
14414 case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14419 $as_echo "$ac_try_echo"; } >&5
14420 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14422 if test -s conftest.err; then
14424 ... rest of stderr output deleted ...
14425 10q' conftest.err >conftest.er1
14426 cat conftest.er1 >&5
14428 rm -f conftest.er1 conftest.err
14429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14430 test $ac_status = 0; }
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14434 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14435 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14436 $as_echo_n "(cached) " >&6
14438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h. */
14452 if ac_fn_cxx_try_compile "$LINENO"; then :
14453 ac_compiler_gnu=yes
14457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14458 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14462 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14463 if test $ac_compiler_gnu = yes; then
14468 ac_test_CXXFLAGS=${CXXFLAGS+set}
14469 ac_save_CXXFLAGS=$CXXFLAGS
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14471 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14472 if ${ac_cv_prog_cxx_g+:} false; then :
14473 $as_echo_n "(cached) " >&6
14475 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14476 ac_cxx_werror_flag=yes
14477 ac_cv_prog_cxx_g=no
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14490 if ac_fn_cxx_try_compile "$LINENO"; then :
14491 ac_cv_prog_cxx_g=yes
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14505 if ac_fn_cxx_try_compile "$LINENO"; then :
14508 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511 /* end confdefs.h. */
14521 if ac_fn_cxx_try_compile "$LINENO"; then :
14522 ac_cv_prog_cxx_g=yes
14524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14529 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14532 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14533 if test "$ac_test_CXXFLAGS" = set; then
14534 CXXFLAGS=$ac_save_CXXFLAGS
14535 elif test $ac_cv_prog_cxx_g = yes; then
14536 if test "$GXX" = yes; then
14542 if test "$GXX" = yes; then
14549 ac_cpp='$CPP $CPPFLAGS'
14550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14554 depcc="$CXX" am_compiler_list=
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14557 $as_echo_n "checking dependency style of $depcc... " >&6; }
14558 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14559 $as_echo_n "(cached) " >&6
14561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14562 # We make a subdir and do the tests there. Otherwise we can end up
14563 # making bogus files that we don't know about and never remove. For
14564 # instance it was reported that on HP-UX the gcc test will end up
14565 # making a dummy file named 'D' -- because '-MD' means "put the output
14567 rm -rf conftest.dir
14569 # Copy depcomp to subdir because otherwise we won't find it if we're
14570 # using a relative directory.
14571 cp "$am_depcomp" conftest.dir
14573 # We will build objects and dependencies in a subdirectory because
14574 # it helps to detect inapplicable dependency modes. For instance
14575 # both Tru64's cc and ICC support -MD to output dependencies as a
14576 # side effect of compilation, but ICC will put the dependencies in
14577 # the current directory while Tru64 will put them in the object
14581 am_cv_CXX_dependencies_compiler_type=none
14582 if test "$am_compiler_list" = ""; then
14583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14585 am__universal=false
14586 case " $depcc " in #(
14587 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14590 for depmode in $am_compiler_list; do
14591 # Setup a source with many dependencies, because some compilers
14592 # like to wrap large dependency lists on column 80 (with \), and
14593 # we should not choose a depcomp mode which is confused by this.
14595 # We need to recreate these files for each test, as the compiler may
14596 # overwrite some of them when testing with obscure command lines.
14597 # This happens at least with the AIX C compiler.
14599 for i in 1 2 3 4 5 6; do
14600 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14601 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14602 # Solaris 10 /bin/sh.
14603 echo '/* dummy */' > sub/conftst$i.h
14605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14607 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14608 # mode. It turns out that the SunPro C++ compiler does not properly
14609 # handle '-M -o', and we need to detect this. Also, some Intel
14610 # versions had trouble with output in subdirs.
14611 am__obj=sub/conftest.${OBJEXT-o}
14612 am__minus_obj="-o $am__obj"
14615 # This depmode causes a compiler race in universal mode.
14616 test "$am__universal" = false || continue
14619 # After this tag, mechanisms are not by side-effect, so they'll
14620 # only be used when explicitly requested.
14621 if test "x$enable_dependency_tracking" = xyes; then
14627 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14628 # This compiler won't grok '-c -o', but also, the minuso test has
14629 # not run yet. These depmodes are late enough in the game, and
14630 # so weak that their functioning should not be impacted.
14631 am__obj=conftest.${OBJEXT-o}
14636 if depmode=$depmode \
14637 source=sub/conftest.c object=$am__obj \
14638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14639 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14640 >/dev/null 2>conftest.err &&
14641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14643 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14645 # icc doesn't choke on unknown options, it will just issue warnings
14646 # or remarks (even with -Werror). So we grep stderr for any message
14647 # that says an option was ignored or not supported.
14648 # When given -MP, icc 7.0 and 7.1 complain thusly:
14649 # icc: Command line warning: ignoring option '-M'; no argument required
14650 # The diagnosis changed in icc 8.0:
14651 # icc: Command line remark: option '-MP' not supported
14652 if (grep 'ignoring option' conftest.err ||
14653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14654 am_cv_CXX_dependencies_compiler_type=$depmode
14661 rm -rf conftest.dir
14663 am_cv_CXX_dependencies_compiler_type=none
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14668 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14669 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14672 test "x$enable_dependency_tracking" != xno \
14673 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14674 am__fastdepCXX_TRUE=
14675 am__fastdepCXX_FALSE='#'
14677 am__fastdepCXX_TRUE='#'
14678 am__fastdepCXX_FALSE=
14684 func_stripname_cnf ()
14687 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14688 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14690 } # func_stripname_cnf
14692 if test -n "$CXX" && ( test no != "$CXX" &&
14693 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14694 (test g++ != "$CXX"))); then
14696 ac_cpp='$CXXCPP $CPPFLAGS'
14697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14701 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14702 if test -z "$CXXCPP"; then
14703 if ${ac_cv_prog_CXXCPP+:} false; then :
14704 $as_echo_n "(cached) " >&6
14706 # Double quotes because CXXCPP needs to be expanded
14707 for CXXCPP in "$CXX -E" "/lib/cpp"
14709 ac_preproc_ok=false
14710 for ac_cxx_preproc_warn_flag in '' yes
14712 # Use a header file that comes with gcc, so configuring glibc
14713 # with a fresh cross-compiler works.
14714 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14715 # <limits.h> exists even on freestanding compilers.
14716 # On the NeXT, cc -E runs the code through the compiler's parser,
14717 # not just through cpp. "Syntax error" is here to catch this case.
14718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14719 /* end confdefs.h. */
14721 # include <limits.h>
14723 # include <assert.h>
14727 if ac_fn_cxx_try_cpp "$LINENO"; then :
14730 # Broken: fails on valid input.
14733 rm -f conftest.err conftest.i conftest.$ac_ext
14735 # OK, works on sane cases. Now check whether nonexistent headers
14736 # can be detected and how.
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14739 #include <ac_nonexistent.h>
14741 if ac_fn_cxx_try_cpp "$LINENO"; then :
14742 # Broken: success on invalid input.
14745 # Passes both tests.
14749 rm -f conftest.err conftest.i conftest.$ac_ext
14752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14753 rm -f conftest.i conftest.err conftest.$ac_ext
14754 if $ac_preproc_ok; then :
14759 ac_cv_prog_CXXCPP=$CXXCPP
14762 CXXCPP=$ac_cv_prog_CXXCPP
14764 ac_cv_prog_CXXCPP=$CXXCPP
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14767 $as_echo "$CXXCPP" >&6; }
14768 ac_preproc_ok=false
14769 for ac_cxx_preproc_warn_flag in '' yes
14771 # Use a header file that comes with gcc, so configuring glibc
14772 # with a fresh cross-compiler works.
14773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14774 # <limits.h> exists even on freestanding compilers.
14775 # On the NeXT, cc -E runs the code through the compiler's parser,
14776 # not just through cpp. "Syntax error" is here to catch this case.
14777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h. */
14780 # include <limits.h>
14782 # include <assert.h>
14786 if ac_fn_cxx_try_cpp "$LINENO"; then :
14789 # Broken: fails on valid input.
14792 rm -f conftest.err conftest.i conftest.$ac_ext
14794 # OK, works on sane cases. Now check whether nonexistent headers
14795 # can be detected and how.
14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h. */
14798 #include <ac_nonexistent.h>
14800 if ac_fn_cxx_try_cpp "$LINENO"; then :
14801 # Broken: success on invalid input.
14804 # Passes both tests.
14808 rm -f conftest.err conftest.i conftest.$ac_ext
14811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14812 rm -f conftest.i conftest.err conftest.$ac_ext
14813 if $ac_preproc_ok; then :
14816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14818 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14819 See \`config.log' for more details" "$LINENO" 5; }
14823 ac_cpp='$CPP $CPPFLAGS'
14824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14829 _lt_caught_CXX_error=yes
14833 ac_cpp='$CXXCPP $CPPFLAGS'
14834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14838 archive_cmds_need_lc_CXX=no
14839 allow_undefined_flag_CXX=
14840 always_export_symbols_CXX=no
14841 archive_expsym_cmds_CXX=
14842 compiler_needs_object_CXX=no
14843 export_dynamic_flag_spec_CXX=
14844 hardcode_direct_CXX=no
14845 hardcode_direct_absolute_CXX=no
14846 hardcode_libdir_flag_spec_CXX=
14847 hardcode_libdir_separator_CXX=
14848 hardcode_minus_L_CXX=no
14849 hardcode_shlibpath_var_CXX=unsupported
14850 hardcode_automatic_CXX=no
14851 inherit_rpath_CXX=no
14853 module_expsym_cmds_CXX=
14854 link_all_deplibs_CXX=unknown
14855 old_archive_cmds_CXX=$old_archive_cmds
14856 reload_flag_CXX=$reload_flag
14857 reload_cmds_CXX=$reload_cmds
14858 no_undefined_flag_CXX=
14859 whole_archive_flag_spec_CXX=
14860 enable_shared_with_static_runtimes_CXX=no
14862 # Source file extension for C++ test sources.
14865 # Object file extension for compiled C++ test sources.
14869 # No sense in running all these tests if we already determined that
14870 # the CXX compiler isn't working. Some variables (like enable_shared)
14871 # are currently assumed to apply to all compilers on this platform,
14872 # and will be corrupted by setting them based on a non-working compiler.
14873 if test yes != "$_lt_caught_CXX_error"; then
14874 # Code to be used in simple compile tests
14875 lt_simple_compile_test_code="int some_variable = 0;"
14877 # Code to be used in simple link tests
14878 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14880 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14887 # If no C compiler was specified, use CC.
14890 # If no C compiler flags were specified, use CFLAGS.
14891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14893 # Allow CC to be a program name with arguments.
14897 # save warnings/boilerplate of simple test code
14898 ac_outfile=conftest.$ac_objext
14899 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14900 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14901 _lt_compiler_boilerplate=`cat conftest.err`
14904 ac_outfile=conftest.$ac_objext
14905 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14906 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14907 _lt_linker_boilerplate=`cat conftest.err`
14911 # Allow CC to be a program name with arguments.
14913 lt_save_CFLAGS=$CFLAGS
14917 lt_save_with_gnu_ld=$with_gnu_ld
14918 lt_save_path_LD=$lt_cv_path_LD
14919 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14920 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14922 $as_unset lt_cv_prog_gnu_ld
14924 if test -n "${lt_cv_path_LDCXX+set}"; then
14925 lt_cv_path_LD=$lt_cv_path_LDCXX
14927 $as_unset lt_cv_path_LD
14929 test -z "${LDCXX+set}" || LD=$LDCXX
14934 func_cc_basename $compiler
14935 cc_basename=$func_cc_basename_result
14938 if test -n "$compiler"; then
14939 # We don't want -fno-exception when compiling C++ code, so set the
14940 # no_builtin_flag separately
14941 if test yes = "$GXX"; then
14942 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14944 lt_prog_compiler_no_builtin_flag_CXX=
14947 if test yes = "$GXX"; then
14948 # Set up default GNU C++ configuration
14952 # Check whether --with-gnu-ld was given.
14953 if test "${with_gnu_ld+set}" = set; then :
14954 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14960 if test yes = "$GCC"; then
14961 # Check if gcc -print-prog-name=ld gives a path.
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14963 $as_echo_n "checking for ld used by $CC... " >&6; }
14966 # gcc leaves a trailing carriage return, which upsets mingw
14967 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14969 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14972 # Accept absolute paths.
14974 re_direlt='/[^/][^/]*/\.\./'
14975 # Canonicalize the pathname of ld
14976 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14977 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14978 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14980 test -z "$LD" && LD=$ac_prog
14983 # If it fails, then pretend we aren't using GCC.
14987 # If it is relative, then search for the first ld in PATH.
14988 with_gnu_ld=unknown
14991 elif test yes = "$with_gnu_ld"; then
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14993 $as_echo_n "checking for GNU ld... " >&6; }
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14996 $as_echo_n "checking for non-GNU ld... " >&6; }
14998 if ${lt_cv_path_LD+:} false; then :
14999 $as_echo_n "(cached) " >&6
15001 if test -z "$LD"; then
15002 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15003 for ac_dir in $PATH; do
15005 test -z "$ac_dir" && ac_dir=.
15006 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15007 lt_cv_path_LD=$ac_dir/$ac_prog
15008 # Check to see if the program is GNU ld. I'd rather use --version,
15009 # but apparently some variants of GNU ld only accept -v.
15010 # Break only if it was the GNU/non-GNU ld that we prefer.
15011 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15012 *GNU* | *'with BFD'*)
15013 test no != "$with_gnu_ld" && break
15016 test yes != "$with_gnu_ld" && break
15023 lt_cv_path_LD=$LD # Let the user override the test with a path.
15028 if test -n "$LD"; then
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15030 $as_echo "$LD" >&6; }
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15033 $as_echo "no" >&6; }
15035 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15037 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15038 if ${lt_cv_prog_gnu_ld+:} false; then :
15039 $as_echo_n "(cached) " >&6
15041 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15042 case `$LD -v 2>&1 </dev/null` in
15043 *GNU* | *'with BFD'*)
15044 lt_cv_prog_gnu_ld=yes
15047 lt_cv_prog_gnu_ld=no
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15052 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15053 with_gnu_ld=$lt_cv_prog_gnu_ld
15061 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15062 # archiving commands below assume that GNU ld is being used.
15063 if test yes = "$with_gnu_ld"; then
15064 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15065 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15067 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15068 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15070 # If archive_cmds runs LD, not CC, wlarc should be empty
15071 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15072 # investigate it a little bit more. (MM)
15075 # ancient GNU ld didn't support --whole-archive et. al.
15076 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15077 $GREP 'no-whole-archive' > /dev/null; then
15078 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15080 whole_archive_flag_spec_CXX=
15086 # A generic and very simple default shared library creation
15087 # command for GNU C++ for the case where it uses the native
15088 # linker, instead of GNU ld. If possible, this setting should
15089 # overridden to take advantage of the native linker features on
15090 # the platform it is being used on.
15091 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15094 # Commands to make compiler produce verbose output that lists
15095 # what "hidden" libraries, object files and flags are used when
15096 # linking a shared library.
15097 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15105 # PORTME: fill in a description of your system's C++ link characteristics
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15107 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15111 # FIXME: insert proper C++ library support
15115 if test ia64 = "$host_cpu"; then
15116 # On IA64, the linker does run time linking by default, so we don't
15117 # have to do anything special.
15118 aix_use_runtimelinking=no
15119 exp_sym_flag='-Bexport'
15122 aix_use_runtimelinking=no
15124 # Test if we are trying to use run time linking or normal
15125 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15126 # have runtime linking enabled, and use it for executables.
15127 # For shared libraries, we enable/disable runtime linking
15128 # depending on the kind of the shared library created -
15129 # when "with_aix_soname,aix_use_runtimelinking" is:
15130 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15131 # "aix,yes" lib.so shared, rtl:yes, for executables
15132 # lib.a static archive
15133 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15134 # lib.a(lib.so.V) shared, rtl:no, for executables
15135 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15136 # lib.a(lib.so.V) shared, rtl:no
15137 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15138 # lib.a static archive
15139 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15140 for ld_flag in $LDFLAGS; do
15143 aix_use_runtimelinking=yes
15148 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15149 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15150 # so we don't have lib.a shared libs to link our executables.
15151 # We have to force runtime linking in this case.
15152 aix_use_runtimelinking=yes
15153 LDFLAGS="$LDFLAGS -Wl,-brtl"
15158 exp_sym_flag='-bexport'
15159 no_entry_flag='-bnoentry'
15162 # When large executables or shared objects are built, AIX ld can
15163 # have problems creating the table of contents. If linking a library
15164 # or program results in "error TOC overflow" add -mminimal-toc to
15165 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15166 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15168 archive_cmds_CXX=''
15169 hardcode_direct_CXX=yes
15170 hardcode_direct_absolute_CXX=yes
15171 hardcode_libdir_separator_CXX=':'
15172 link_all_deplibs_CXX=yes
15173 file_list_spec_CXX='$wl-f,'
15174 case $with_aix_soname,$aix_use_runtimelinking in
15175 aix,*) ;; # no import file
15176 svr4,* | *,yes) # use import file
15177 # The Import File defines what to hardcode.
15178 hardcode_direct_CXX=no
15179 hardcode_direct_absolute_CXX=no
15183 if test yes = "$GXX"; then
15184 case $host_os in aix4.[012]|aix4.[012].*)
15185 # We only want to do this on AIX 4.2 and lower, the check
15186 # below for broken collect2 doesn't work under 4.3+
15187 collect2name=`$CC -print-prog-name=collect2`
15188 if test -f "$collect2name" &&
15189 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15191 # We have reworked collect2
15194 # We have old collect2
15195 hardcode_direct_CXX=unsupported
15196 # It fails to find uninstalled libraries when the uninstalled
15197 # path is not listed in the libpath. Setting hardcode_minus_L
15198 # to unsupported forces relinking
15199 hardcode_minus_L_CXX=yes
15200 hardcode_libdir_flag_spec_CXX='-L$libdir'
15201 hardcode_libdir_separator_CXX=
15204 shared_flag='-shared'
15205 if test yes = "$aix_use_runtimelinking"; then
15206 shared_flag=$shared_flag' $wl-G'
15208 # Need to ensure runtime linking is disabled for the traditional
15209 # shared library, or the linker may eventually find shared libraries
15210 # /with/ Import File - we do not want to mix them.
15211 shared_flag_aix='-shared'
15212 shared_flag_svr4='-shared $wl-G'
15215 if test ia64 = "$host_cpu"; then
15216 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15217 # chokes on -Wl,-G. The following line is correct:
15220 if test yes = "$aix_use_runtimelinking"; then
15221 shared_flag='$wl-G'
15223 shared_flag='$wl-bM:SRE'
15225 shared_flag_aix='$wl-bM:SRE'
15226 shared_flag_svr4='$wl-G'
15230 export_dynamic_flag_spec_CXX='$wl-bexpall'
15231 # It seems that -bexpall does not export symbols beginning with
15232 # underscore (_), so it is better to generate a list of symbols to
15234 always_export_symbols_CXX=yes
15235 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15236 # Warning - without using the other runtime loading flags (-brtl),
15237 # -berok will link without error, but may produce a broken library.
15238 # The "-G" linker flag allows undefined symbols.
15239 no_undefined_flag_CXX='-bernotok'
15240 # Determine the default libpath from the value encoded in an empty
15242 if test set = "${lt_cv_aix_libpath+set}"; then
15243 aix_libpath=$lt_cv_aix_libpath
15245 if ${lt_cv_aix_libpath__CXX+:} false; then :
15246 $as_echo_n "(cached) " >&6
15248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15249 /* end confdefs.h. */
15259 if ac_fn_cxx_try_link "$LINENO"; then :
15261 lt_aix_libpath_sed='
15262 /Import File Strings/,/^$/ {
15264 s/^0 *\([^ ]*\) *$/\1/
15268 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15269 # Check for a 64-bit object if we didn't find anything.
15270 if test -z "$lt_cv_aix_libpath__CXX"; then
15271 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15274 rm -f core conftest.err conftest.$ac_objext \
15275 conftest$ac_exeext conftest.$ac_ext
15276 if test -z "$lt_cv_aix_libpath__CXX"; then
15277 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15282 aix_libpath=$lt_cv_aix_libpath__CXX
15285 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15287 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15289 if test ia64 = "$host_cpu"; then
15290 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15291 allow_undefined_flag_CXX="-z nodefs"
15292 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
15294 # Determine the default libpath from the value encoded in an
15295 # empty executable.
15296 if test set = "${lt_cv_aix_libpath+set}"; then
15297 aix_libpath=$lt_cv_aix_libpath
15299 if ${lt_cv_aix_libpath__CXX+:} false; then :
15300 $as_echo_n "(cached) " >&6
15302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303 /* end confdefs.h. */
15313 if ac_fn_cxx_try_link "$LINENO"; then :
15315 lt_aix_libpath_sed='
15316 /Import File Strings/,/^$/ {
15318 s/^0 *\([^ ]*\) *$/\1/
15322 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15323 # Check for a 64-bit object if we didn't find anything.
15324 if test -z "$lt_cv_aix_libpath__CXX"; then
15325 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15328 rm -f core conftest.err conftest.$ac_objext \
15329 conftest$ac_exeext conftest.$ac_ext
15330 if test -z "$lt_cv_aix_libpath__CXX"; then
15331 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15336 aix_libpath=$lt_cv_aix_libpath__CXX
15339 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15340 # Warning - without using the other run time loading flags,
15341 # -berok will link without error, but may produce a broken library.
15342 no_undefined_flag_CXX=' $wl-bernotok'
15343 allow_undefined_flag_CXX=' $wl-berok'
15344 if test yes = "$with_gnu_ld"; then
15345 # We only use this code for GNU lds that support --whole-archive.
15346 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15348 # Exported symbols can be pulled into shared objects from archives
15349 whole_archive_flag_spec_CXX='$convenience'
15351 archive_cmds_need_lc_CXX=yes
15352 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15353 # -brtl affects multiple linker settings, -berok does not and is overridden later
15354 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15355 if test svr4 != "$with_aix_soname"; then
15356 # This is similar to how AIX traditionally builds its shared
15357 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15358 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15360 if test aix != "$with_aix_soname"; then
15361 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15363 # used by -dlpreopen to get the symbols
15364 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15366 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15372 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15373 allow_undefined_flag_CXX=unsupported
15374 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15375 # support --undefined. This deserves some investigation. FIXME
15376 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15383 case $cc_basename in
15385 # FIXME: insert proper C++ library support
15391 cygwin* | mingw* | pw32* | cegcc*)
15392 case $GXX,$cc_basename in
15395 # hardcode_libdir_flag_spec is actually meaningless, as there is
15396 # no search path for DLLs.
15397 hardcode_libdir_flag_spec_CXX=' '
15398 allow_undefined_flag_CXX=unsupported
15399 always_export_symbols_CXX=yes
15400 file_list_spec_CXX='@'
15401 # Tell ltmain to make .lib files, not .a files.
15403 # Tell ltmain to make .dll files, not .so files.
15405 # FIXME: Setting linknames here is a bad hack.
15406 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15407 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15408 cp "$export_symbols" "$output_objdir/$soname.def";
15409 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15411 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15413 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15415 # The linker will not automatically build a static lib if we build a DLL.
15416 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15417 enable_shared_with_static_runtimes_CXX=yes
15419 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15420 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15421 lt_tool_outputfile="@TOOL_OUTPUT@"~
15422 case $lt_outputfile in
15425 lt_outputfile=$lt_outputfile.exe
15426 lt_tool_outputfile=$lt_tool_outputfile.exe
15429 func_to_tool_file "$lt_outputfile"~
15430 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15431 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15432 $RM "$lt_outputfile.manifest";
15437 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15438 # as there is no search path for DLLs.
15439 hardcode_libdir_flag_spec_CXX='-L$libdir'
15440 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15441 allow_undefined_flag_CXX=unsupported
15442 always_export_symbols_CXX=no
15443 enable_shared_with_static_runtimes_CXX=yes
15445 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15446 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15447 # If the export-symbols file already is a .def file, use it as
15448 # is; otherwise, prepend EXPORTS...
15449 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15450 cp $export_symbols $output_objdir/$soname.def;
15452 echo EXPORTS > $output_objdir/$soname.def;
15453 cat $export_symbols >> $output_objdir/$soname.def;
15455 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15462 darwin* | rhapsody*)
15465 archive_cmds_need_lc_CXX=no
15466 hardcode_direct_CXX=no
15467 hardcode_automatic_CXX=yes
15468 hardcode_shlibpath_var_CXX=unsupported
15469 if test yes = "$lt_cv_ld_force_load"; then
15470 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15473 whole_archive_flag_spec_CXX=''
15475 link_all_deplibs_CXX=yes
15476 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15477 case $cc_basename in
15478 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15479 *) _lt_dar_can_shared=$GCC ;;
15481 if test yes = "$_lt_dar_can_shared"; then
15482 output_verbose_link_cmd=func_echo_all
15483 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15484 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15485 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
15486 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
15487 if test yes != "$lt_cv_apple_cc_single_mod"; then
15488 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
15489 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
15499 hardcode_libdir_flag_spec_CXX='-L$libdir'
15500 hardcode_minus_L_CXX=yes
15501 allow_undefined_flag_CXX=unsupported
15503 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15504 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15505 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15506 $ECHO EXPORTS >> $output_objdir/$libname.def~
15507 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15508 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15509 emximp -o $lib $output_objdir/$libname.def'
15510 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15511 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15512 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15513 $ECHO EXPORTS >> $output_objdir/$libname.def~
15514 prefix_cmds="$SED"~
15515 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15516 prefix_cmds="$prefix_cmds -e 1d";
15518 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15519 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15520 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15521 emximp -o $lib $output_objdir/$libname.def'
15522 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15523 enable_shared_with_static_runtimes_CXX=yes
15527 case $cc_basename in
15529 # FIXME: insert proper C++ library support
15533 # Green Hills C++ Compiler
15534 # FIXME: insert proper C++ library support
15538 # FIXME: insert proper C++ library support
15545 # C++ shared libraries reported to be fairly broken before
15551 archive_cmds_need_lc_CXX=no
15554 freebsd* | dragonfly*)
15555 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15561 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15562 link_all_deplibs_CXX=yes
15566 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15567 hardcode_libdir_separator_CXX=:
15568 export_dynamic_flag_spec_CXX='$wl-E'
15569 hardcode_direct_CXX=yes
15570 hardcode_minus_L_CXX=yes # Not in the search PATH,
15571 # but as the default
15572 # location of the library.
15574 case $cc_basename in
15576 # FIXME: insert proper C++ library support
15580 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15581 # Commands to make compiler produce verbose output that lists
15582 # what "hidden" libraries, object files and flags are used when
15583 # linking a shared library.
15585 # There doesn't appear to be a way to prevent this compiler from
15586 # explicitly linking system object files so we need to strip them
15587 # from the output so that they don't get included in the library
15589 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15592 if test yes = "$GXX"; then
15593 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15595 # FIXME: insert proper C++ library support
15603 if test no = "$with_gnu_ld"; then
15604 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15605 hardcode_libdir_separator_CXX=:
15611 export_dynamic_flag_spec_CXX='$wl-E'
15617 hardcode_direct_CXX=no
15618 hardcode_shlibpath_var_CXX=no
15621 hardcode_direct_CXX=yes
15622 hardcode_direct_absolute_CXX=yes
15623 hardcode_minus_L_CXX=yes # Not in the search PATH,
15624 # but as the default
15625 # location of the library.
15629 case $cc_basename in
15631 # FIXME: insert proper C++ library support
15637 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15640 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15643 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15646 # Commands to make compiler produce verbose output that lists
15647 # what "hidden" libraries, object files and flags are used when
15648 # linking a shared library.
15650 # There doesn't appear to be a way to prevent this compiler from
15651 # explicitly linking system object files so we need to strip them
15652 # from the output so that they don't get included in the library
15654 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15657 if test yes = "$GXX"; then
15658 if test no = "$with_gnu_ld"; then
15661 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15664 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15667 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15672 # FIXME: insert proper C++ library support
15680 hardcode_direct_CXX=no
15681 hardcode_shlibpath_var_CXX=no
15682 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15683 export_dynamic_flag_spec_CXX='$wl-E'
15684 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15685 # Instead, shared libraries are loaded at an image base (0x10000000 by
15686 # default) and relocated if they conflict, which is a slow very memory
15687 # consuming and fragmenting process. To avoid this, we pick a random,
15688 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15689 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15690 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15691 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15694 case $cc_basename in
15697 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15699 # Archives containing C++ object files must be created using
15700 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15701 # necessary to make sure instantiated templates are included
15703 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15706 if test yes = "$GXX"; then
15707 if test no = "$with_gnu_ld"; then
15708 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
15710 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
15713 link_all_deplibs_CXX=yes
15716 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15717 hardcode_libdir_separator_CXX=:
15718 inherit_rpath_CXX=yes
15721 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15722 case $cc_basename in
15724 # Kuck and Associates, Inc. (KAI) C++ Compiler
15726 # KCC will only create a shared library if the output file
15727 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15728 # to its proper name (with version) after linking.
15729 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15730 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
15731 # Commands to make compiler produce verbose output that lists
15732 # what "hidden" libraries, object files and flags are used when
15733 # linking a shared library.
15735 # There doesn't appear to be a way to prevent this compiler from
15736 # explicitly linking system object files so we need to strip them
15737 # from the output so that they don't get included in the library
15739 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15741 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15742 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15744 # Archives containing C++ object files must be created using
15745 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15746 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15751 # version 8.0 and above of icpc choke on multiply defined symbols
15752 # if we add $predep_objects and $postdep_objects, however 7.1 and
15753 # earlier do not add the objects themselves.
15754 case `$CC -V 2>&1` in
15756 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15757 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15759 *) # Version 8.0 or newer
15762 ia64*) tmp_idyn=' -i_dynamic';;
15764 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15765 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15768 archive_cmds_need_lc_CXX=no
15769 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15770 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15771 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15774 # Portland Group C++ compiler
15776 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15777 prelink_cmds_CXX='tpldir=Template.dir~
15779 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15780 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15781 old_archive_cmds_CXX='tpldir=Template.dir~
15783 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15784 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15786 archive_cmds_CXX='tpldir=Template.dir~
15788 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15789 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15790 archive_expsym_cmds_CXX='tpldir=Template.dir~
15792 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15793 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15795 *) # Version 6 and above use weak symbols
15796 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15797 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15801 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15802 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15803 whole_archive_flag_spec_CXX='$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'
15807 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15808 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
15810 runpath_var=LD_RUN_PATH
15811 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15812 hardcode_libdir_separator_CXX=:
15814 # Commands to make compiler produce verbose output that lists
15815 # what "hidden" libraries, object files and flags are used when
15816 # linking a shared library.
15818 # There doesn't appear to be a way to prevent this compiler from
15819 # explicitly linking system object files so we need to strip them
15820 # from the output so that they don't get included in the library
15822 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15824 xl* | mpixl* | bgxl*)
15825 # IBM XL 8.0 on PPC, with GNU ld
15826 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15827 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15828 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15829 if test yes = "$supports_anon_versioning"; then
15830 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15831 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15832 echo "local: *; };" >> $output_objdir/$libname.ver~
15833 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15837 case `$CC -V 2>&1 | sed 5q` in
15840 no_undefined_flag_CXX=' -zdefs'
15841 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15842 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
15843 hardcode_libdir_flag_spec_CXX='-R$libdir'
15844 whole_archive_flag_spec_CXX='$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'
15845 compiler_needs_object_CXX=yes
15847 # Not sure whether something based on
15848 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15850 output_verbose_link_cmd='func_echo_all'
15852 # Archives containing C++ object files must be created using
15853 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15854 # necessary to make sure instantiated templates are included
15856 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15864 # FIXME: insert proper C++ library support
15869 # FIXME: insert proper C++ library support
15874 case $cc_basename in
15876 # FIXME: insert proper C++ library support
15880 # FIXME: insert proper C++ library support
15887 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15888 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15890 hardcode_libdir_flag_spec_CXX='-R$libdir'
15891 hardcode_direct_CXX=yes
15892 hardcode_shlibpath_var_CXX=no
15894 # Workaround some broken pre-1.5 toolchains
15895 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15902 openbsd* | bitrig*)
15903 if test -f /usr/libexec/ld.so; then
15904 hardcode_direct_CXX=yes
15905 hardcode_shlibpath_var_CXX=no
15906 hardcode_direct_absolute_CXX=yes
15907 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15908 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15909 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15910 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15911 export_dynamic_flag_spec_CXX='$wl-E'
15912 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15914 output_verbose_link_cmd=func_echo_all
15920 osf3* | osf4* | osf5*)
15921 case $cc_basename in
15923 # Kuck and Associates, Inc. (KAI) C++ Compiler
15925 # KCC will only create a shared library if the output file
15926 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15927 # to its proper name (with version) after linking.
15928 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15930 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15931 hardcode_libdir_separator_CXX=:
15933 # Archives containing C++ object files must be created using
15934 # the KAI C++ compiler.
15936 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15937 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15941 # Rational C++ 2.4.1
15942 # FIXME: insert proper C++ library support
15948 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15949 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15950 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15953 allow_undefined_flag_CXX=' -expect_unresolved \*'
15954 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15955 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15956 echo "-hidden">> $lib.exp~
15957 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
15959 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15963 hardcode_libdir_separator_CXX=:
15965 # Commands to make compiler produce verbose output that lists
15966 # what "hidden" libraries, object files and flags are used when
15967 # linking a shared library.
15969 # There doesn't appear to be a way to prevent this compiler from
15970 # explicitly linking system object files so we need to strip them
15971 # from the output so that they don't get included in the library
15973 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15976 if test yes,no = "$GXX,$with_gnu_ld"; then
15977 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15980 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15983 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15987 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15988 hardcode_libdir_separator_CXX=:
15990 # Commands to make compiler produce verbose output that lists
15991 # what "hidden" libraries, object files and flags are used when
15992 # linking a shared library.
15993 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15996 # FIXME: insert proper C++ library support
16004 # FIXME: insert proper C++ library support
16009 case $cc_basename in
16012 # FIXME: insert proper C++ library support
16017 # FIXME: insert proper C++ library support
16021 # FIXME: insert proper C++ library support
16028 case $cc_basename in
16030 # Sun C++ 4.2, 5.x and Centerline C++
16031 archive_cmds_need_lc_CXX=yes
16032 no_undefined_flag_CXX=' -zdefs'
16033 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16034 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16035 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16037 hardcode_libdir_flag_spec_CXX='-R$libdir'
16038 hardcode_shlibpath_var_CXX=no
16040 solaris2.[0-5] | solaris2.[0-5].*) ;;
16042 # The compiler driver will combine and reorder linker options,
16043 # but understands '-z linker_flag'.
16044 # Supported since Solaris 2.6 (maybe 2.5.1?)
16045 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16048 link_all_deplibs_CXX=yes
16050 output_verbose_link_cmd='func_echo_all'
16052 # Archives containing C++ object files must be created using
16053 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16054 # necessary to make sure instantiated templates are included
16056 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16059 # Green Hills C++ Compiler
16060 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16062 # The C++ compiler must be used to create the archive.
16063 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16066 # GNU C++ compiler with Solaris linker
16067 if test yes,no = "$GXX,$with_gnu_ld"; then
16068 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16069 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16070 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16071 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16072 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16074 # Commands to make compiler produce verbose output that lists
16075 # what "hidden" libraries, object files and flags are used when
16076 # linking a shared library.
16077 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16079 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16081 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16082 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16083 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16085 # Commands to make compiler produce verbose output that lists
16086 # what "hidden" libraries, object files and flags are used when
16087 # linking a shared library.
16088 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16091 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16093 solaris2.[0-5] | solaris2.[0-5].*) ;;
16095 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16103 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16104 no_undefined_flag_CXX='$wl-z,text'
16105 archive_cmds_need_lc_CXX=no
16106 hardcode_shlibpath_var_CXX=no
16107 runpath_var='LD_RUN_PATH'
16109 case $cc_basename in
16111 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16112 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16115 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16116 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16121 sysv5* | sco3.2v5* | sco5v6*)
16122 # Note: We CANNOT use -z defs as we might desire, because we do not
16123 # link with -lc, and that would cause any symbols used from libc to
16124 # always be unresolved, which means just about no library would
16125 # ever link correctly. If we're not using GNU ld we use -z text
16126 # though, which does catch some bad symbols but isn't as heavy-handed
16128 no_undefined_flag_CXX='$wl-z,text'
16129 allow_undefined_flag_CXX='$wl-z,nodefs'
16130 archive_cmds_need_lc_CXX=no
16131 hardcode_shlibpath_var_CXX=no
16132 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16133 hardcode_libdir_separator_CXX=':'
16134 link_all_deplibs_CXX=yes
16135 export_dynamic_flag_spec_CXX='$wl-Bexport'
16136 runpath_var='LD_RUN_PATH'
16138 case $cc_basename in
16140 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16141 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16142 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16143 '"$old_archive_cmds_CXX"
16144 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16145 '"$reload_cmds_CXX"
16148 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16149 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16155 case $cc_basename in
16157 # NonStop-UX NCC 3.20
16158 # FIXME: insert proper C++ library support
16162 # FIXME: insert proper C++ library support
16169 # FIXME: insert proper C++ library support
16174 # FIXME: insert proper C++ library support
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16180 $as_echo "$ld_shlibs_CXX" >&6; }
16181 test no = "$ld_shlibs_CXX" && can_build_shared=no
16187 ## There is no encapsulation within the following macros, do not change
16188 ## the running order or otherwise move them around unless you know exactly
16189 ## what you are doing...
16190 # Dependencies to place before and after the object being linked:
16191 predep_objects_CXX=
16192 postdep_objects_CXX=
16195 compiler_lib_search_path_CXX=
16197 cat > conftest.$ac_ext <<_LT_EOF
16201 Foo (void) { a = 0; }
16208 _lt_libdeps_save_CFLAGS=$CFLAGS
16209 case "$CC $CFLAGS " in #(
16210 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16211 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16212 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16216 (eval $ac_compile) 2>&5
16218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16219 test $ac_status = 0; }; then
16220 # Parse the compiler output and extract the necessary
16221 # objects, libraries and library flags.
16223 # Sentinel used to keep track of whether or not we are before
16224 # the conftest object file.
16225 pre_test_object_deps_done=no
16227 for p in `eval "$output_verbose_link_cmd"`; do
16231 # Some compilers place space between "-{L,R}" and the path.
16232 # Remove the space.
16233 if test x-L = "$p" ||
16234 test x-R = "$p"; then
16239 # Expand the sysroot to ease extracting the directories later.
16240 if test -z "$prev"; then
16242 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16243 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16244 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16248 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16250 if test no = "$pre_test_object_deps_done"; then
16253 # Internal compiler library paths should come after those
16254 # provided the user. The postdeps already come after the
16255 # user supplied libs so there is no need to process them.
16256 if test -z "$compiler_lib_search_path_CXX"; then
16257 compiler_lib_search_path_CXX=$prev$p
16259 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16262 # The "-l" case would never come before the object being
16263 # linked, so don't bother handling this case.
16266 if test -z "$postdeps_CXX"; then
16267 postdeps_CXX=$prev$p
16269 postdeps_CXX="${postdeps_CXX} $prev$p"
16275 *.lto.$objext) ;; # Ignore GCC LTO objects
16277 # This assumes that the test object file only shows up
16278 # once in the compiler output.
16279 if test "$p" = "conftest.$objext"; then
16280 pre_test_object_deps_done=yes
16284 if test no = "$pre_test_object_deps_done"; then
16285 if test -z "$predep_objects_CXX"; then
16286 predep_objects_CXX=$p
16288 predep_objects_CXX="$predep_objects_CXX $p"
16291 if test -z "$postdep_objects_CXX"; then
16292 postdep_objects_CXX=$p
16294 postdep_objects_CXX="$postdep_objects_CXX $p"
16299 *) ;; # Ignore the rest.
16307 echo "libtool.m4: error: problem compiling CXX test program"
16310 $RM -f confest.$objext
16311 CFLAGS=$_lt_libdeps_save_CFLAGS
16313 # PORTME: override above test on systems where it is broken
16316 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16317 # hack all around it, let's just trust "g++" to DTRT.
16318 predep_objects_CXX=
16319 postdep_objects_CXX=
16325 case " $postdeps_CXX " in
16326 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16328 compiler_lib_search_dirs_CXX=
16329 if test -n "${compiler_lib_search_path_CXX}"; then
16330 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16363 lt_prog_compiler_wl_CXX=
16364 lt_prog_compiler_pic_CXX=
16365 lt_prog_compiler_static_CXX=
16368 # C++ specific cases for pic, static, wl, etc.
16369 if test yes = "$GXX"; then
16370 lt_prog_compiler_wl_CXX='-Wl,'
16371 lt_prog_compiler_static_CXX='-static'
16375 # All AIX code is PIC.
16376 if test ia64 = "$host_cpu"; then
16377 # AIX 5 now supports IA64 processor
16378 lt_prog_compiler_static_CXX='-Bstatic'
16380 lt_prog_compiler_pic_CXX='-fPIC'
16386 # see comment about AmigaOS4 .so support
16387 lt_prog_compiler_pic_CXX='-fPIC'
16390 # FIXME: we need at least 68020 code to build shared libraries, but
16391 # adding the '-m68020' flag to GCC prevents building anything better,
16393 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16398 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16399 # PIC is the default for these OSes.
16401 mingw* | cygwin* | os2* | pw32* | cegcc*)
16402 # This hack is so that the source file can tell whether it is being
16403 # built for inclusion in a dll (and should export symbols for example).
16404 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16405 # (--disable-auto-import) libraries
16406 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16409 lt_prog_compiler_static_CXX='$wl-static'
16413 darwin* | rhapsody*)
16414 # PIC is the default on this platform
16415 # Common symbols not allowed in MH_DYLIB files
16416 lt_prog_compiler_pic_CXX='-fno-common'
16419 # DJGPP does not support shared libraries at all
16420 lt_prog_compiler_pic_CXX=
16423 # PIC is the default for Haiku.
16424 # The "-static" flag exists, but is broken.
16425 lt_prog_compiler_static_CXX=
16428 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16429 # Instead, we relocate shared libraries at runtime.
16432 if test -d /usr/nec; then
16433 lt_prog_compiler_pic_CXX=-Kconform_pic
16437 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16438 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16439 # sets the default TLS model and affects inlining.
16444 lt_prog_compiler_pic_CXX='-fPIC'
16449 # QNX uses GNU C++, but need to define -shared option too, otherwise
16450 # it will coredump.
16451 lt_prog_compiler_pic_CXX='-fPIC -shared'
16454 lt_prog_compiler_pic_CXX='-fPIC'
16460 # All AIX code is PIC.
16461 if test ia64 = "$host_cpu"; then
16462 # AIX 5 now supports IA64 processor
16463 lt_prog_compiler_static_CXX='-Bstatic'
16465 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16469 case $cc_basename in
16471 # Green Hills C++ Compiler
16472 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16476 mingw* | cygwin* | os2* | pw32* | cegcc*)
16477 # This hack is so that the source file can tell whether it is being
16478 # built for inclusion in a dll (and should export symbols for example).
16479 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16482 case $cc_basename in
16484 lt_prog_compiler_pic_CXX='-KPIC'
16487 # Green Hills C++ Compiler
16488 lt_prog_compiler_pic_CXX='-pic'
16494 freebsd* | dragonfly*)
16495 # FreeBSD uses GNU C++
16497 hpux9* | hpux10* | hpux11*)
16498 case $cc_basename in
16500 lt_prog_compiler_wl_CXX='-Wl,'
16501 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16502 if test ia64 != "$host_cpu"; then
16503 lt_prog_compiler_pic_CXX='+Z'
16507 lt_prog_compiler_wl_CXX='-Wl,'
16508 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16514 lt_prog_compiler_pic_CXX='+Z'
16523 # This is c89, which is MS Visual C++ (no shared libs)
16524 # Anyone wants to do a port?
16526 irix5* | irix6* | nonstopux*)
16527 case $cc_basename in
16529 lt_prog_compiler_wl_CXX='-Wl,'
16530 lt_prog_compiler_static_CXX='-non_shared'
16531 # CC pic flag -KPIC is the default.
16537 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16538 case $cc_basename in
16541 lt_prog_compiler_wl_CXX='--backend -Wl,'
16542 lt_prog_compiler_pic_CXX='-fPIC'
16545 # old Intel C++ for x86_64, which still supported -KPIC.
16546 lt_prog_compiler_wl_CXX='-Wl,'
16547 lt_prog_compiler_pic_CXX='-KPIC'
16548 lt_prog_compiler_static_CXX='-static'
16551 # Intel C++, used to be incompatible with GCC.
16552 # ICC 10 doesn't accept -KPIC any more.
16553 lt_prog_compiler_wl_CXX='-Wl,'
16554 lt_prog_compiler_pic_CXX='-fPIC'
16555 lt_prog_compiler_static_CXX='-static'
16558 # Portland Group C++ compiler
16559 lt_prog_compiler_wl_CXX='-Wl,'
16560 lt_prog_compiler_pic_CXX='-fpic'
16561 lt_prog_compiler_static_CXX='-Bstatic'
16565 # Make sure the PIC flag is empty. It appears that all Alpha
16566 # Linux and Compaq Tru64 Unix objects are PIC.
16567 lt_prog_compiler_pic_CXX=
16568 lt_prog_compiler_static_CXX='-non_shared'
16570 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16571 # IBM XL 8.0, 9.0 on PPC and BlueGene
16572 lt_prog_compiler_wl_CXX='-Wl,'
16573 lt_prog_compiler_pic_CXX='-qpic'
16574 lt_prog_compiler_static_CXX='-qstaticlink'
16577 case `$CC -V 2>&1 | sed 5q` in
16580 lt_prog_compiler_pic_CXX='-KPIC'
16581 lt_prog_compiler_static_CXX='-Bstatic'
16582 lt_prog_compiler_wl_CXX='-Qoption ld '
16593 case $cc_basename in
16595 lt_prog_compiler_pic_CXX='-W c,exportall'
16604 # QNX uses GNU C++, but need to define -shared option too, otherwise
16605 # it will coredump.
16606 lt_prog_compiler_pic_CXX='-fPIC -shared'
16608 osf3* | osf4* | osf5*)
16609 case $cc_basename in
16611 lt_prog_compiler_wl_CXX='--backend -Wl,'
16614 # Rational C++ 2.4.1
16615 lt_prog_compiler_pic_CXX='-pic'
16618 # Digital/Compaq C++
16619 lt_prog_compiler_wl_CXX='-Wl,'
16620 # Make sure the PIC flag is empty. It appears that all Alpha
16621 # Linux and Compaq Tru64 Unix objects are PIC.
16622 lt_prog_compiler_pic_CXX=
16623 lt_prog_compiler_static_CXX='-non_shared'
16632 case $cc_basename in
16634 # Sun C++ 4.2, 5.x and Centerline C++
16635 lt_prog_compiler_pic_CXX='-KPIC'
16636 lt_prog_compiler_static_CXX='-Bstatic'
16637 lt_prog_compiler_wl_CXX='-Qoption ld '
16640 # Green Hills C++ Compiler
16641 lt_prog_compiler_pic_CXX='-PIC'
16648 case $cc_basename in
16651 lt_prog_compiler_pic_CXX='-pic'
16652 lt_prog_compiler_static_CXX='-Bstatic'
16656 lt_prog_compiler_pic_CXX='-pic'
16662 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16663 case $cc_basename in
16665 lt_prog_compiler_wl_CXX='-Wl,'
16666 lt_prog_compiler_pic_CXX='-KPIC'
16667 lt_prog_compiler_static_CXX='-Bstatic'
16672 case $cc_basename in
16674 # NonStop-UX NCC 3.20
16675 lt_prog_compiler_pic_CXX='-KPIC'
16684 lt_prog_compiler_can_build_shared_CXX=no
16690 # For platforms that do not support PIC, -DPIC is meaningless:
16692 lt_prog_compiler_pic_CXX=
16695 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16700 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16701 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16702 $as_echo_n "(cached) " >&6
16704 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16707 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16708 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16711 # Check to make sure the PIC flag actually works.
16713 if test -n "$lt_prog_compiler_pic_CXX"; then
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16715 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16716 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16717 $as_echo_n "(cached) " >&6
16719 lt_cv_prog_compiler_pic_works_CXX=no
16720 ac_outfile=conftest.$ac_objext
16721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16722 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16723 # Insert the option either (1) after the last *FLAGS variable, or
16724 # (2) before a word containing "conftest.", or (3) at the end.
16725 # Note that $ac_compile itself does not contain backslashes and begins
16726 # with a dollar sign (not a hyphen), so the echo should work correctly.
16727 # The option is referenced via a variable to avoid confusing sed.
16728 lt_compile=`echo "$ac_compile" | $SED \
16729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16731 -e 's:$: $lt_compiler_flag:'`
16732 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16733 (eval "$lt_compile" 2>conftest.err)
16735 cat conftest.err >&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 if (exit $ac_status) && test -s "$ac_outfile"; then
16738 # The compiler can only warn and ignore the option if not recognized
16739 # So say no if there are warnings other than the usual output.
16740 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16742 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16743 lt_cv_prog_compiler_pic_works_CXX=yes
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16750 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16752 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16753 case $lt_prog_compiler_pic_CXX in
16755 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16758 lt_prog_compiler_pic_CXX=
16759 lt_prog_compiler_can_build_shared_CXX=no
16769 # Check to make sure the static flag actually works.
16771 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16773 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16774 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16775 $as_echo_n "(cached) " >&6
16777 lt_cv_prog_compiler_static_works_CXX=no
16778 save_LDFLAGS=$LDFLAGS
16779 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16780 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16781 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16782 # The linker can only warn and ignore the option if not recognized
16783 # So say no if there are warnings
16784 if test -s conftest.err; then
16785 # Append any errors to the config.log.
16786 cat conftest.err 1>&5
16787 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16789 if diff conftest.exp conftest.er2 >/dev/null; then
16790 lt_cv_prog_compiler_static_works_CXX=yes
16793 lt_cv_prog_compiler_static_works_CXX=yes
16797 LDFLAGS=$save_LDFLAGS
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16801 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16803 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16806 lt_prog_compiler_static_CXX=
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16813 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16814 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16815 $as_echo_n "(cached) " >&6
16817 lt_cv_prog_compiler_c_o_CXX=no
16818 $RM -r conftest 2>/dev/null
16822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16824 lt_compiler_flag="-o out/conftest2.$ac_objext"
16825 # Insert the option either (1) after the last *FLAGS variable, or
16826 # (2) before a word containing "conftest.", or (3) at the end.
16827 # Note that $ac_compile itself does not contain backslashes and begins
16828 # with a dollar sign (not a hyphen), so the echo should work correctly.
16829 lt_compile=`echo "$ac_compile" | $SED \
16830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16832 -e 's:$: $lt_compiler_flag:'`
16833 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16834 (eval "$lt_compile" 2>out/conftest.err)
16836 cat out/conftest.err >&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16840 # The compiler can only warn and ignore the option if not recognized
16841 # So say no if there are warnings
16842 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16843 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16844 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16845 lt_cv_prog_compiler_c_o_CXX=yes
16850 # SGI C++ compiler will create directory out/ii_files/ for
16851 # template instantiation
16852 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16853 $RM out/* && rmdir out
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16860 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16865 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16866 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16867 $as_echo_n "(cached) " >&6
16869 lt_cv_prog_compiler_c_o_CXX=no
16870 $RM -r conftest 2>/dev/null
16874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16876 lt_compiler_flag="-o out/conftest2.$ac_objext"
16877 # Insert the option either (1) after the last *FLAGS variable, or
16878 # (2) before a word containing "conftest.", or (3) at the end.
16879 # Note that $ac_compile itself does not contain backslashes and begins
16880 # with a dollar sign (not a hyphen), so the echo should work correctly.
16881 lt_compile=`echo "$ac_compile" | $SED \
16882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16884 -e 's:$: $lt_compiler_flag:'`
16885 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16886 (eval "$lt_compile" 2>out/conftest.err)
16888 cat out/conftest.err >&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16892 # The compiler can only warn and ignore the option if not recognized
16893 # So say no if there are warnings
16894 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16895 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16896 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16897 lt_cv_prog_compiler_c_o_CXX=yes
16902 # SGI C++ compiler will create directory out/ii_files/ for
16903 # template instantiation
16904 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16905 $RM out/* && rmdir out
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16912 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16917 hard_links=nottested
16918 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16919 # do not overwrite the value of need_locks provided by the user
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16921 $as_echo_n "checking if we can lock with hard links... " >&6; }
16924 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16926 ln conftest.a conftest.b 2>&5 || hard_links=no
16927 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16929 $as_echo "$hard_links" >&6; }
16930 if test no = "$hard_links"; then
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16932 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16942 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16944 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16945 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16948 # If we're using GNU nm, then we don't want the "-C" option.
16949 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16950 # Without the "-l" option, or with the "-B" option, AIX nm treats
16951 # weak defined symbols like other global defined symbols, whereas
16952 # GNU nm marks them as "W".
16953 # While the 'weak' keyword is ignored in the Export File, we need
16954 # it in the Import File for the 'aix-soname' feature, so we have
16955 # to replace the "-B" option with "-P" for AIX nm.
16956 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16957 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16959 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16963 export_symbols_cmds_CXX=$ltdll_cmds
16965 cygwin* | mingw* | cegcc*)
16966 case $cc_basename in
16968 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16971 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16972 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16977 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16982 $as_echo "$ld_shlibs_CXX" >&6; }
16983 test no = "$ld_shlibs_CXX" && can_build_shared=no
16985 with_gnu_ld_CXX=$with_gnu_ld
16993 # Do we need to explicitly link libc?
16995 case "x$archive_cmds_need_lc_CXX" in
16997 # Assume -lc should be added
16998 archive_cmds_need_lc_CXX=yes
17000 if test yes,yes = "$GCC,$enable_shared"; then
17001 case $archive_cmds_CXX in
17003 # FIXME: we may have to deal with multi-command sequences.
17006 # Test whether the compiler implicitly links with -lc since on some
17007 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17008 # to ld, don't add -lc before -lgcc.
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17010 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17011 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17012 $as_echo_n "(cached) " >&6
17015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17018 (eval $ac_compile) 2>&5
17020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17021 test $ac_status = 0; } 2>conftest.err; then
17024 libobjs=conftest.$ac_objext
17026 wl=$lt_prog_compiler_wl_CXX
17027 pic_flag=$lt_prog_compiler_pic_CXX
17033 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17034 allow_undefined_flag_CXX=
17035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17036 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17039 test $ac_status = 0; }
17041 lt_cv_archive_cmds_need_lc_CXX=no
17043 lt_cv_archive_cmds_need_lc_CXX=yes
17045 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17047 cat conftest.err 1>&5
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17053 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17054 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17123 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17125 library_names_spec=
17126 libname_spec='lib$name'
17130 postuninstall_cmds=
17134 shlibpath_overrides_runpath=unknown
17136 dynamic_linker="$host_os ld.so"
17137 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17138 need_lib_prefix=unknown
17139 hardcode_into_libs=no
17141 # when you set need_version to no, make sure it does not cause -set_version
17142 # flags to be left without arguments
17143 need_version=unknown
17149 version_type=linux # correct to gnu/linux during the next big refactor
17150 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17151 shlibpath_var=LIBPATH
17153 # AIX 3 has no versioning support, so we append a major version to the name.
17154 soname_spec='$libname$release$shared_ext$major'
17158 version_type=linux # correct to gnu/linux during the next big refactor
17161 hardcode_into_libs=yes
17162 if test ia64 = "$host_cpu"; then
17163 # AIX 5 supports IA64
17164 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17165 shlibpath_var=LD_LIBRARY_PATH
17167 # With GCC up to 2.95.x, collect2 would create an import file
17168 # for dependence libraries. The import file would start with
17169 # the line '#! .'. This would cause the generated library to
17170 # depend on '.', always an invalid library. This was fixed in
17171 # development snapshots of GCC prior to 3.0.
17173 aix4 | aix4.[01] | aix4.[01].*)
17174 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17176 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17179 can_build_shared=no
17183 # Using Import Files as archive members, it is possible to support
17184 # filename-based versioning of shared library archives on AIX. While
17185 # this would work for both with and without runtime linking, it will
17186 # prevent static linking of such archives. So we do filename-based
17187 # shared library versioning with .so extension only, which is used
17188 # when both runtime linking and shared linking is enabled.
17189 # Unfortunately, runtime linking may impact performance, so we do
17190 # not want this to be the default eventually. Also, we use the
17191 # versioned .so libs for executables only if there is the -brtl
17192 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17193 # To allow for filename-based versioning support, we need to create
17194 # libNAME.so.V as an archive file, containing:
17195 # *) an Import File, referring to the versioned filename of the
17196 # archive as well as the shared archive member, telling the
17197 # bitwidth (32 or 64) of that shared object, and providing the
17198 # list of exported symbols of that shared object, eventually
17199 # decorated with the 'weak' keyword
17200 # *) the shared object with the F_LOADONLY flag set, to really avoid
17201 # it being seen by the linker.
17202 # At run time we better use the real file rather than another symlink,
17203 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17205 case $with_aix_soname,$aix_use_runtimelinking in
17206 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17207 # soname into executable. Probably we can add versioning support to
17208 # collect2, so additional links can be useful in future.
17209 aix,yes) # traditional libtool
17210 dynamic_linker='AIX unversionable lib.so'
17211 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17212 # instead of lib<name>.a to let people know that these are not
17213 # typical AIX shared libraries.
17214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17216 aix,no) # traditional AIX only
17217 dynamic_linker='AIX lib.a(lib.so.V)'
17218 # We preserve .a as extension for shared libraries through AIX4.2
17219 # and later when we are not doing run time linking.
17220 library_names_spec='$libname$release.a $libname.a'
17221 soname_spec='$libname$release$shared_ext$major'
17223 svr4,*) # full svr4 only
17224 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17225 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17226 # We do not specify a path in Import Files, so LIBPATH fires.
17227 shlibpath_overrides_runpath=yes
17229 *,yes) # both, prefer svr4
17230 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17231 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17232 # unpreferred sharedlib libNAME.a needs extra handling
17233 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17234 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17235 # We do not specify a path in Import Files, so LIBPATH fires.
17236 shlibpath_overrides_runpath=yes
17238 *,no) # both, prefer aix
17239 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17240 library_names_spec='$libname$release.a $libname.a'
17241 soname_spec='$libname$release$shared_ext$major'
17242 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17243 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17244 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17247 shlibpath_var=LIBPATH
17254 # Since July 2007 AmigaOS4 officially supports .so libraries.
17255 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17256 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17259 library_names_spec='$libname.ixlibrary $libname.a'
17260 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17261 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
17267 library_names_spec='$libname$shared_ext'
17268 dynamic_linker="$host_os ld.so"
17269 shlibpath_var=LIBRARY_PATH
17273 version_type=linux # correct to gnu/linux during the next big refactor
17275 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17276 soname_spec='$libname$release$shared_ext$major'
17277 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17278 shlibpath_var=LD_LIBRARY_PATH
17279 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17280 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17281 # the default ld.so.conf also contains /usr/contrib/lib and
17282 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17283 # libtool to hard-code these into programs
17286 cygwin* | mingw* | pw32* | cegcc*)
17287 version_type=windows
17292 case $GCC,$cc_basename in
17295 library_names_spec='$libname.dll.a'
17296 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17297 postinstall_cmds='base_file=`basename \$file`~
17298 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17299 dldir=$destdir/`dirname \$dlpath`~
17300 test -d \$dldir || mkdir -p \$dldir~
17301 $install_prog $dir/$dlname \$dldir/$dlname~
17302 chmod a+x \$dldir/$dlname~
17303 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17304 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17307 dlpath=$dir/\$dldll~
17309 shlibpath_overrides_runpath=yes
17313 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17314 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17318 # MinGW DLLs use traditional 'lib' prefix
17319 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17322 # pw32 DLLs use 'pw' prefix rather than 'lib'
17323 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17326 dynamic_linker='Win32 ld.exe'
17331 libname_spec='$name'
17332 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17333 library_names_spec='$libname.dll.lib'
17337 sys_lib_search_path_spec=
17340 for lt_path in $LIB
17343 # Let DOS variable expansion print the short 8.3 style file name.
17344 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17345 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17348 # Convert to MSYS style.
17349 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17352 # Convert to unix form, then to dos form, then back to unix form
17353 # but this time dos style (no spaces!) so that the unix form looks
17354 # like /cygdrive/c/PROGRA~1:/cygdr...
17355 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17356 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17357 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17360 sys_lib_search_path_spec=$LIB
17361 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17362 # It is most probably a Windows format PATH.
17363 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17365 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17367 # FIXME: find the short name or the path components, as spaces are
17368 # common. (e.g. "Program Files" -> "PROGRA~1")
17372 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17373 postinstall_cmds='base_file=`basename \$file`~
17374 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17375 dldir=$destdir/`dirname \$dlpath`~
17376 test -d \$dldir || mkdir -p \$dldir~
17377 $install_prog $dir/$dlname \$dldir/$dlname'
17378 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17379 dlpath=$dir/\$dldll~
17381 shlibpath_overrides_runpath=yes
17382 dynamic_linker='Win32 link.exe'
17386 # Assume MSVC wrapper
17387 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17388 dynamic_linker='Win32 ld.exe'
17391 # FIXME: first we should search . and the directory the executable is in
17395 darwin* | rhapsody*)
17396 dynamic_linker="$host_os dyld"
17397 version_type=darwin
17400 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17401 soname_spec='$libname$release$major$shared_ext'
17402 shlibpath_overrides_runpath=yes
17403 shlibpath_var=DYLD_LIBRARY_PATH
17404 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17406 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17410 version_type=linux # correct to gnu/linux during the next big refactor
17413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17414 soname_spec='$libname$release$shared_ext$major'
17415 shlibpath_var=LD_LIBRARY_PATH
17418 freebsd* | dragonfly*)
17419 # DragonFly does not have aout. When/if they implement a new
17420 # versioning mechanism, adjust this.
17421 if test -x /usr/bin/objformat; then
17422 objformat=`/usr/bin/objformat`
17425 freebsd[23].*) objformat=aout ;;
17426 *) objformat=elf ;;
17429 version_type=freebsd-$objformat
17430 case $version_type in
17432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17433 soname_spec='$libname$release$shared_ext$major'
17438 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17442 shlibpath_var=LD_LIBRARY_PATH
17445 shlibpath_overrides_runpath=yes
17447 freebsd3.[01]* | freebsdelf3.[01]*)
17448 shlibpath_overrides_runpath=yes
17449 hardcode_into_libs=yes
17451 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17452 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17453 shlibpath_overrides_runpath=no
17454 hardcode_into_libs=yes
17456 *) # from 4.6 on, and DragonFly
17457 shlibpath_overrides_runpath=yes
17458 hardcode_into_libs=yes
17464 version_type=linux # correct to gnu/linux during the next big refactor
17467 dynamic_linker="$host_os runtime_loader"
17468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17469 soname_spec='$libname$release$shared_ext$major'
17470 shlibpath_var=LIBRARY_PATH
17471 shlibpath_overrides_runpath=no
17472 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17473 hardcode_into_libs=yes
17476 hpux9* | hpux10* | hpux11*)
17477 # Give a soname corresponding to the major version so that dld.sl refuses to
17478 # link against other versions.
17485 hardcode_into_libs=yes
17486 dynamic_linker="$host_os dld.so"
17487 shlibpath_var=LD_LIBRARY_PATH
17488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17490 soname_spec='$libname$release$shared_ext$major'
17491 if test 32 = "$HPUX_IA64_MODE"; then
17492 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17493 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17495 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17496 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17501 hardcode_into_libs=yes
17502 dynamic_linker="$host_os dld.sl"
17503 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17506 soname_spec='$libname$release$shared_ext$major'
17507 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17508 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17512 dynamic_linker="$host_os dld.sl"
17513 shlibpath_var=SHLIB_PATH
17514 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17516 soname_spec='$libname$release$shared_ext$major'
17519 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17520 postinstall_cmds='chmod 555 $lib'
17521 # or fails outright, so override atomically:
17522 install_override_mode=555
17526 version_type=linux # correct to gnu/linux during the next big refactor
17529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17530 soname_spec='$libname$release$shared_ext$major'
17531 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17532 shlibpath_var=LD_LIBRARY_PATH
17533 shlibpath_overrides_runpath=no
17534 hardcode_into_libs=yes
17537 irix5* | irix6* | nonstopux*)
17539 nonstopux*) version_type=nonstopux ;;
17541 if test yes = "$lt_cv_prog_gnu_ld"; then
17542 version_type=linux # correct to gnu/linux during the next big refactor
17549 soname_spec='$libname$release$shared_ext$major'
17550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17552 irix5* | nonstopux*)
17553 libsuff= shlibsuff=
17556 case $LD in # libtool.m4 will add one of these switches to LD
17557 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17558 libsuff= shlibsuff= libmagic=32-bit;;
17559 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17560 libsuff=32 shlibsuff=N32 libmagic=N32;;
17561 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17562 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17563 *) libsuff= shlibsuff= libmagic=never-match;;
17567 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17568 shlibpath_overrides_runpath=no
17569 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17570 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17571 hardcode_into_libs=yes
17574 # No shared lib support for Linux oldld, aout, or coff.
17575 linux*oldld* | linux*aout* | linux*coff*)
17580 version_type=none # Android doesn't support versioned libraries.
17583 library_names_spec='$libname$release$shared_ext'
17584 soname_spec='$libname$release$shared_ext'
17586 shlibpath_var=LD_LIBRARY_PATH
17587 shlibpath_overrides_runpath=yes
17589 # This implies no fast_install, which is unacceptable.
17590 # Some rework will be needed to allow for fast_install
17591 # before this can be enabled.
17592 hardcode_into_libs=yes
17594 dynamic_linker='Android linker'
17595 # Don't embed -rpath directories since the linker doesn't support them.
17596 hardcode_libdir_flag_spec_CXX='-L$libdir'
17599 # This must be glibc/ELF.
17600 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17601 version_type=linux # correct to gnu/linux during the next big refactor
17604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17605 soname_spec='$libname$release$shared_ext$major'
17606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17607 shlibpath_var=LD_LIBRARY_PATH
17608 shlibpath_overrides_runpath=no
17610 # Some binutils ld are patched to set DT_RUNPATH
17611 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17612 $as_echo_n "(cached) " >&6
17614 lt_cv_shlibpath_overrides_runpath=no
17615 save_LDFLAGS=$LDFLAGS
17616 save_libdir=$libdir
17617 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17618 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17620 /* end confdefs.h. */
17630 if ac_fn_cxx_try_link "$LINENO"; then :
17631 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17632 lt_cv_shlibpath_overrides_runpath=yes
17635 rm -f core conftest.err conftest.$ac_objext \
17636 conftest$ac_exeext conftest.$ac_ext
17637 LDFLAGS=$save_LDFLAGS
17638 libdir=$save_libdir
17642 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17644 # This implies no fast_install, which is unacceptable.
17645 # Some rework will be needed to allow for fast_install
17646 # before this can be enabled.
17647 hardcode_into_libs=yes
17649 # Add ABI-specific directories to the system library path.
17650 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17652 # Ideally, we could use ldconfig to report *all* directores which are
17653 # searched for libraries, however this is still not possible. Aside from not
17654 # being certain /sbin/ldconfig is available, command
17655 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17656 # even though it is searched at run-time. Try to do the best guess by
17657 # appending ld.so.conf contents (and includes) to the search path.
17658 if test -f /etc/ld.so.conf; then
17659 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' ' '`
17660 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17663 # We used to test for /lib/ld.so.1 and disable shared libraries on
17664 # powerpc, because MkLinux only supported shared libraries with the
17665 # GNU dynamic linker. Since this was broken with cross compilers,
17666 # most powerpc-linux boxes support dynamic linking these days and
17667 # people can always --disable-shared, the test was removed, and we
17668 # assume the GNU/Linux dynamic linker is in use.
17669 dynamic_linker='GNU/Linux ld.so'
17676 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17677 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17679 dynamic_linker='NetBSD (a.out) ld.so'
17681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17682 soname_spec='$libname$release$shared_ext$major'
17683 dynamic_linker='NetBSD ld.elf_so'
17685 shlibpath_var=LD_LIBRARY_PATH
17686 shlibpath_overrides_runpath=yes
17687 hardcode_into_libs=yes
17691 version_type=linux # correct to gnu/linux during the next big refactor
17692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17693 shlibpath_var=LD_LIBRARY_PATH
17694 shlibpath_overrides_runpath=yes
17701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17702 soname_spec='$libname$release$shared_ext$major'
17703 shlibpath_var=LD_LIBRARY_PATH
17704 shlibpath_overrides_runpath=no
17705 hardcode_into_libs=yes
17706 dynamic_linker='ldqnx.so'
17709 openbsd* | bitrig*)
17711 sys_lib_dlsearch_path_spec=/usr/lib
17713 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17718 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17720 shlibpath_var=LD_LIBRARY_PATH
17721 shlibpath_overrides_runpath=yes
17725 libname_spec='$name'
17726 version_type=windows
17730 # OS/2 can only load a DLL with a base name of 8 characters or less.
17731 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17732 v=$($ECHO $release$versuffix | tr -d .-);
17733 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17734 $ECHO $n$v`$shared_ext'
17735 library_names_spec='${libname}_dll.$libext'
17736 dynamic_linker='OS/2 ld.exe'
17737 shlibpath_var=BEGINLIBPATH
17738 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17739 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17740 postinstall_cmds='base_file=`basename \$file`~
17741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17742 dldir=$destdir/`dirname \$dlpath`~
17743 test -d \$dldir || mkdir -p \$dldir~
17744 $install_prog $dir/$dlname \$dldir/$dlname~
17745 chmod a+x \$dldir/$dlname~
17746 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17747 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17749 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17750 dlpath=$dir/\$dldll~
17754 osf3* | osf4* | osf5*)
17758 soname_spec='$libname$release$shared_ext$major'
17759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17760 shlibpath_var=LD_LIBRARY_PATH
17761 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17770 version_type=linux # correct to gnu/linux during the next big refactor
17773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17774 soname_spec='$libname$release$shared_ext$major'
17775 shlibpath_var=LD_LIBRARY_PATH
17776 shlibpath_overrides_runpath=yes
17777 hardcode_into_libs=yes
17778 # ldd complains unless libraries are executable
17779 postinstall_cmds='chmod +x $lib'
17784 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17785 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17786 shlibpath_var=LD_LIBRARY_PATH
17787 shlibpath_overrides_runpath=yes
17788 if test yes = "$with_gnu_ld"; then
17795 version_type=linux # correct to gnu/linux during the next big refactor
17796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17797 soname_spec='$libname$release$shared_ext$major'
17798 shlibpath_var=LD_LIBRARY_PATH
17799 case $host_vendor in
17801 shlibpath_overrides_runpath=no
17803 runpath_var=LD_RUN_PATH
17811 shlibpath_overrides_runpath=no
17812 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17818 if test -d /usr/nec; then
17819 version_type=linux # correct to gnu/linux during the next big refactor
17820 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17821 soname_spec='$libname$shared_ext.$major'
17822 shlibpath_var=LD_LIBRARY_PATH
17826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17831 soname_spec='$libname$release$shared_ext$major'
17832 shlibpath_var=LD_LIBRARY_PATH
17833 shlibpath_overrides_runpath=yes
17834 hardcode_into_libs=yes
17835 if test yes = "$with_gnu_ld"; then
17836 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17838 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17841 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17845 sys_lib_dlsearch_path_spec='/usr/lib'
17849 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17850 version_type=linux # correct to gnu/linux during the next big refactor
17853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17854 shlibpath_var=LD_LIBRARY_PATH
17855 shlibpath_overrides_runpath=no
17856 hardcode_into_libs=yes
17860 version_type=linux # correct to gnu/linux during the next big refactor
17861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17862 soname_spec='$libname$release$shared_ext$major'
17863 shlibpath_var=LD_LIBRARY_PATH
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17871 $as_echo "$dynamic_linker" >&6; }
17872 test no = "$dynamic_linker" && can_build_shared=no
17874 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17875 if test yes = "$GCC"; then
17876 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17879 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17880 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17883 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17884 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17887 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17888 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17890 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17891 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17893 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17894 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17936 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17937 hardcode_action_CXX=
17938 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17939 test -n "$runpath_var_CXX" ||
17940 test yes = "$hardcode_automatic_CXX"; then
17942 # We can hardcode non-existent directories.
17943 if test no != "$hardcode_direct_CXX" &&
17944 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17945 # have to relink, otherwise we might link with an installed library
17946 # when we should be linking with a yet-to-be-installed one
17947 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17948 test no != "$hardcode_minus_L_CXX"; then
17949 # Linking always hardcodes the temporary library directory.
17950 hardcode_action_CXX=relink
17952 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17953 hardcode_action_CXX=immediate
17956 # We cannot hardcode anything, or else we can only hardcode existing
17958 hardcode_action_CXX=unsupported
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17961 $as_echo "$hardcode_action_CXX" >&6; }
17963 if test relink = "$hardcode_action_CXX" ||
17964 test yes = "$inherit_rpath_CXX"; then
17965 # Fast installation is not supported
17966 enable_fast_install=no
17967 elif test yes = "$shlibpath_overrides_runpath" ||
17968 test no = "$enable_shared"; then
17969 # Fast installation is not necessary
17970 enable_fast_install=needless
17979 fi # test -n "$compiler"
17982 CFLAGS=$lt_save_CFLAGS
17986 with_gnu_ld=$lt_save_with_gnu_ld
17987 lt_cv_path_LDCXX=$lt_cv_path_LD
17988 lt_cv_path_LD=$lt_save_path_LD
17989 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17990 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17991 fi # test yes != "$_lt_caught_CXX_error"
17994 ac_cpp='$CPP $CPPFLAGS'
17995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18000 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=false
18002 ac_cpp='$CXXCPP $CPPFLAGS'
18003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
18008 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
18009 if ${ax_cv_cxx_compile_cxx11+:} false; then :
18010 $as_echo_n "(cached) " >&6
18012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18013 /* end confdefs.h. */
18016 // If the compiler admits that it is not ready for C++11, why torture it?
18017 // Hopefully, this will speed up the test.
18019 #ifndef __cplusplus
18021 #error "This is not a C++ compiler"
18023 #elif __cplusplus < 201103L
18025 #error "This is not a C++11 compiler"
18032 namespace test_static_assert
18035 template <typename T>
18038 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18043 namespace test_final_override
18048 virtual void f() {}
18051 struct Derived : public Base
18053 virtual void f() override {}
18058 namespace test_double_right_angle_brackets
18061 template < typename T >
18064 typedef check<void> single_type;
18065 typedef check<check<void>> double_type;
18066 typedef check<check<check<void>>> triple_type;
18067 typedef check<check<check<check<void>>>> quadruple_type;
18071 namespace test_decltype
18084 namespace test_type_deduction
18087 template < typename T1, typename T2 >
18090 static const bool value = false;
18093 template < typename T >
18094 struct is_same<T, T>
18096 static const bool value = true;
18099 template < typename T1, typename T2 >
18101 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18107 test(const int c, volatile int v)
18109 static_assert(is_same<int, decltype(0)>::value == true, "");
18110 static_assert(is_same<int, decltype(c)>::value == false, "");
18111 static_assert(is_same<int, decltype(v)>::value == false, "");
18114 auto sumi = ac + av + 'x';
18115 auto sumf = ac + av + 1.0;
18116 static_assert(is_same<int, decltype(ac)>::value == true, "");
18117 static_assert(is_same<int, decltype(av)>::value == true, "");
18118 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18119 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18120 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18121 return (sumf > 0.0) ? sumi : add(c, v);
18126 namespace test_noexcept
18129 int f() { return 0; }
18130 int g() noexcept { return 0; }
18132 static_assert(noexcept(f()) == false, "");
18133 static_assert(noexcept(g()) == true, "");
18137 namespace test_constexpr
18140 template < typename CharT >
18141 unsigned long constexpr
18142 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18144 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18147 template < typename CharT >
18148 unsigned long constexpr
18149 strlen_c(const CharT *const s) noexcept
18151 return strlen_c_r(s, 0UL);
18154 static_assert(strlen_c("") == 0UL, "");
18155 static_assert(strlen_c("1") == 1UL, "");
18156 static_assert(strlen_c("example") == 7UL, "");
18157 static_assert(strlen_c("another\0example") == 7UL, "");
18161 namespace test_rvalue_references
18167 static constexpr int value = N;
18170 answer<1> f(int&) { return answer<1>(); }
18171 answer<2> f(const int&) { return answer<2>(); }
18172 answer<3> f(int&&) { return answer<3>(); }
18179 static_assert(decltype(f(i))::value == 1, "");
18180 static_assert(decltype(f(c))::value == 2, "");
18181 static_assert(decltype(f(0))::value == 3, "");
18186 namespace test_uniform_initialization
18191 static const int zero {};
18192 static const int one {1};
18195 static_assert(test::zero == 0, "");
18196 static_assert(test::one == 1, "");
18200 namespace test_lambdas
18206 auto lambda1 = [](){};
18207 auto lambda2 = lambda1;
18215 auto a = [](int i, int j){ return i + j; }(1, 2);
18216 auto b = []() -> int { return '0'; }();
18217 auto c = [=](){ return a + b; }();
18218 auto d = [&](){ return c; }();
18219 auto e = [a, &b](int x) mutable {
18220 const auto identity = [](int y){ return y; };
18221 for (auto i = 0; i < a; ++i)
18223 return x + identity(a + b);
18225 return a + b + c + d + e;
18231 const auto nullary = [](){ return 0; };
18232 const auto unary = [](int x){ return x; };
18233 using nullary_t = decltype(nullary);
18234 using unary_t = decltype(unary);
18235 const auto higher1st = [](nullary_t f){ return f(); };
18236 const auto higher2nd = [unary](nullary_t f1){
18237 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18239 return higher1st(nullary) + higher2nd(nullary)(unary);
18244 namespace test_variadic_templates
18250 template <int N0, int... N1toN>
18251 struct sum<N0, N1toN...>
18253 static constexpr auto value = N0 + sum<N1toN...>::value;
18259 static constexpr auto value = 0;
18262 static_assert(sum<>::value == 0, "");
18263 static_assert(sum<1>::value == 1, "");
18264 static_assert(sum<23>::value == 23, "");
18265 static_assert(sum<1, 2>::value == 3, "");
18266 static_assert(sum<5, 5, 11>::value == 21, "");
18267 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18271 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18272 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18273 // because of this.
18274 namespace test_template_alias_sfinae
18279 template<typename T>
18280 using member = typename T::member_type;
18282 template<typename T>
18285 template<typename T>
18286 void func(member<T>*) {}
18290 void test() { func<foo>(0); }
18294 } // namespace cxx11
18296 #endif // __cplusplus >= 201103L
18301 if ac_fn_cxx_try_compile "$LINENO"; then :
18302 ax_cv_cxx_compile_cxx11=yes
18304 ax_cv_cxx_compile_cxx11=no
18306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18309 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18310 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18314 if test x$ac_success = xno; then
18315 for alternative in ${ax_cxx_compile_alternatives}; do
18316 switch="-std=gnu++${alternative}"
18317 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18319 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18320 if eval \${$cachevar+:} false; then :
18321 $as_echo_n "(cached) " >&6
18325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18326 /* end confdefs.h. */
18329 // If the compiler admits that it is not ready for C++11, why torture it?
18330 // Hopefully, this will speed up the test.
18332 #ifndef __cplusplus
18334 #error "This is not a C++ compiler"
18336 #elif __cplusplus < 201103L
18338 #error "This is not a C++11 compiler"
18345 namespace test_static_assert
18348 template <typename T>
18351 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18356 namespace test_final_override
18361 virtual void f() {}
18364 struct Derived : public Base
18366 virtual void f() override {}
18371 namespace test_double_right_angle_brackets
18374 template < typename T >
18377 typedef check<void> single_type;
18378 typedef check<check<void>> double_type;
18379 typedef check<check<check<void>>> triple_type;
18380 typedef check<check<check<check<void>>>> quadruple_type;
18384 namespace test_decltype
18397 namespace test_type_deduction
18400 template < typename T1, typename T2 >
18403 static const bool value = false;
18406 template < typename T >
18407 struct is_same<T, T>
18409 static const bool value = true;
18412 template < typename T1, typename T2 >
18414 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18420 test(const int c, volatile int v)
18422 static_assert(is_same<int, decltype(0)>::value == true, "");
18423 static_assert(is_same<int, decltype(c)>::value == false, "");
18424 static_assert(is_same<int, decltype(v)>::value == false, "");
18427 auto sumi = ac + av + 'x';
18428 auto sumf = ac + av + 1.0;
18429 static_assert(is_same<int, decltype(ac)>::value == true, "");
18430 static_assert(is_same<int, decltype(av)>::value == true, "");
18431 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18432 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18433 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18434 return (sumf > 0.0) ? sumi : add(c, v);
18439 namespace test_noexcept
18442 int f() { return 0; }
18443 int g() noexcept { return 0; }
18445 static_assert(noexcept(f()) == false, "");
18446 static_assert(noexcept(g()) == true, "");
18450 namespace test_constexpr
18453 template < typename CharT >
18454 unsigned long constexpr
18455 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18457 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18460 template < typename CharT >
18461 unsigned long constexpr
18462 strlen_c(const CharT *const s) noexcept
18464 return strlen_c_r(s, 0UL);
18467 static_assert(strlen_c("") == 0UL, "");
18468 static_assert(strlen_c("1") == 1UL, "");
18469 static_assert(strlen_c("example") == 7UL, "");
18470 static_assert(strlen_c("another\0example") == 7UL, "");
18474 namespace test_rvalue_references
18480 static constexpr int value = N;
18483 answer<1> f(int&) { return answer<1>(); }
18484 answer<2> f(const int&) { return answer<2>(); }
18485 answer<3> f(int&&) { return answer<3>(); }
18492 static_assert(decltype(f(i))::value == 1, "");
18493 static_assert(decltype(f(c))::value == 2, "");
18494 static_assert(decltype(f(0))::value == 3, "");
18499 namespace test_uniform_initialization
18504 static const int zero {};
18505 static const int one {1};
18508 static_assert(test::zero == 0, "");
18509 static_assert(test::one == 1, "");
18513 namespace test_lambdas
18519 auto lambda1 = [](){};
18520 auto lambda2 = lambda1;
18528 auto a = [](int i, int j){ return i + j; }(1, 2);
18529 auto b = []() -> int { return '0'; }();
18530 auto c = [=](){ return a + b; }();
18531 auto d = [&](){ return c; }();
18532 auto e = [a, &b](int x) mutable {
18533 const auto identity = [](int y){ return y; };
18534 for (auto i = 0; i < a; ++i)
18536 return x + identity(a + b);
18538 return a + b + c + d + e;
18544 const auto nullary = [](){ return 0; };
18545 const auto unary = [](int x){ return x; };
18546 using nullary_t = decltype(nullary);
18547 using unary_t = decltype(unary);
18548 const auto higher1st = [](nullary_t f){ return f(); };
18549 const auto higher2nd = [unary](nullary_t f1){
18550 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18552 return higher1st(nullary) + higher2nd(nullary)(unary);
18557 namespace test_variadic_templates
18563 template <int N0, int... N1toN>
18564 struct sum<N0, N1toN...>
18566 static constexpr auto value = N0 + sum<N1toN...>::value;
18572 static constexpr auto value = 0;
18575 static_assert(sum<>::value == 0, "");
18576 static_assert(sum<1>::value == 1, "");
18577 static_assert(sum<23>::value == 23, "");
18578 static_assert(sum<1, 2>::value == 3, "");
18579 static_assert(sum<5, 5, 11>::value == 21, "");
18580 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18584 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18585 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18586 // because of this.
18587 namespace test_template_alias_sfinae
18592 template<typename T>
18593 using member = typename T::member_type;
18595 template<typename T>
18598 template<typename T>
18599 void func(member<T>*) {}
18603 void test() { func<foo>(0); }
18607 } // namespace cxx11
18609 #endif // __cplusplus >= 201103L
18614 if ac_fn_cxx_try_compile "$LINENO"; then :
18619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18622 eval ac_res=\$$cachevar
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18624 $as_echo "$ac_res" >&6; }
18625 if eval test x\$$cachevar = xyes; then
18627 if test -n "$CXXCPP" ; then
18628 CXXCPP="$CXXCPP $switch"
18636 if test x$ac_success = xno; then
18637 for alternative in ${ax_cxx_compile_alternatives}; do
18638 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
18639 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18641 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18642 if eval \${$cachevar+:} false; then :
18643 $as_echo_n "(cached) " >&6
18647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18648 /* end confdefs.h. */
18651 // If the compiler admits that it is not ready for C++11, why torture it?
18652 // Hopefully, this will speed up the test.
18654 #ifndef __cplusplus
18656 #error "This is not a C++ compiler"
18658 #elif __cplusplus < 201103L
18660 #error "This is not a C++11 compiler"
18667 namespace test_static_assert
18670 template <typename T>
18673 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18678 namespace test_final_override
18683 virtual void f() {}
18686 struct Derived : public Base
18688 virtual void f() override {}
18693 namespace test_double_right_angle_brackets
18696 template < typename T >
18699 typedef check<void> single_type;
18700 typedef check<check<void>> double_type;
18701 typedef check<check<check<void>>> triple_type;
18702 typedef check<check<check<check<void>>>> quadruple_type;
18706 namespace test_decltype
18719 namespace test_type_deduction
18722 template < typename T1, typename T2 >
18725 static const bool value = false;
18728 template < typename T >
18729 struct is_same<T, T>
18731 static const bool value = true;
18734 template < typename T1, typename T2 >
18736 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18742 test(const int c, volatile int v)
18744 static_assert(is_same<int, decltype(0)>::value == true, "");
18745 static_assert(is_same<int, decltype(c)>::value == false, "");
18746 static_assert(is_same<int, decltype(v)>::value == false, "");
18749 auto sumi = ac + av + 'x';
18750 auto sumf = ac + av + 1.0;
18751 static_assert(is_same<int, decltype(ac)>::value == true, "");
18752 static_assert(is_same<int, decltype(av)>::value == true, "");
18753 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18754 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18755 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18756 return (sumf > 0.0) ? sumi : add(c, v);
18761 namespace test_noexcept
18764 int f() { return 0; }
18765 int g() noexcept { return 0; }
18767 static_assert(noexcept(f()) == false, "");
18768 static_assert(noexcept(g()) == true, "");
18772 namespace test_constexpr
18775 template < typename CharT >
18776 unsigned long constexpr
18777 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18779 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18782 template < typename CharT >
18783 unsigned long constexpr
18784 strlen_c(const CharT *const s) noexcept
18786 return strlen_c_r(s, 0UL);
18789 static_assert(strlen_c("") == 0UL, "");
18790 static_assert(strlen_c("1") == 1UL, "");
18791 static_assert(strlen_c("example") == 7UL, "");
18792 static_assert(strlen_c("another\0example") == 7UL, "");
18796 namespace test_rvalue_references
18802 static constexpr int value = N;
18805 answer<1> f(int&) { return answer<1>(); }
18806 answer<2> f(const int&) { return answer<2>(); }
18807 answer<3> f(int&&) { return answer<3>(); }
18814 static_assert(decltype(f(i))::value == 1, "");
18815 static_assert(decltype(f(c))::value == 2, "");
18816 static_assert(decltype(f(0))::value == 3, "");
18821 namespace test_uniform_initialization
18826 static const int zero {};
18827 static const int one {1};
18830 static_assert(test::zero == 0, "");
18831 static_assert(test::one == 1, "");
18835 namespace test_lambdas
18841 auto lambda1 = [](){};
18842 auto lambda2 = lambda1;
18850 auto a = [](int i, int j){ return i + j; }(1, 2);
18851 auto b = []() -> int { return '0'; }();
18852 auto c = [=](){ return a + b; }();
18853 auto d = [&](){ return c; }();
18854 auto e = [a, &b](int x) mutable {
18855 const auto identity = [](int y){ return y; };
18856 for (auto i = 0; i < a; ++i)
18858 return x + identity(a + b);
18860 return a + b + c + d + e;
18866 const auto nullary = [](){ return 0; };
18867 const auto unary = [](int x){ return x; };
18868 using nullary_t = decltype(nullary);
18869 using unary_t = decltype(unary);
18870 const auto higher1st = [](nullary_t f){ return f(); };
18871 const auto higher2nd = [unary](nullary_t f1){
18872 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18874 return higher1st(nullary) + higher2nd(nullary)(unary);
18879 namespace test_variadic_templates
18885 template <int N0, int... N1toN>
18886 struct sum<N0, N1toN...>
18888 static constexpr auto value = N0 + sum<N1toN...>::value;
18894 static constexpr auto value = 0;
18897 static_assert(sum<>::value == 0, "");
18898 static_assert(sum<1>::value == 1, "");
18899 static_assert(sum<23>::value == 23, "");
18900 static_assert(sum<1, 2>::value == 3, "");
18901 static_assert(sum<5, 5, 11>::value == 21, "");
18902 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18906 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18907 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18908 // because of this.
18909 namespace test_template_alias_sfinae
18914 template<typename T>
18915 using member = typename T::member_type;
18917 template<typename T>
18920 template<typename T>
18921 void func(member<T>*) {}
18925 void test() { func<foo>(0); }
18929 } // namespace cxx11
18931 #endif // __cplusplus >= 201103L
18936 if ac_fn_cxx_try_compile "$LINENO"; then :
18941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18944 eval ac_res=\$$cachevar
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18946 $as_echo "$ac_res" >&6; }
18947 if eval test x\$$cachevar = xyes; then
18949 if test -n "$CXXCPP" ; then
18950 CXXCPP="$CXXCPP $switch"
18956 if test x$ac_success = xyes; then
18962 ac_cpp='$CPP $CPPFLAGS'
18963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18967 if test x$ax_cxx_compile_cxx11_required = xtrue; then
18968 if test x$ac_success = xno; then
18969 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18972 if test x$ac_success = xno; then
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18975 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18979 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
18985 # Check whether --enable-largefile was given.
18986 if test "${enable_largefile+set}" = set; then :
18987 enableval=$enable_largefile;
18990 if test "$enable_largefile" != no; then
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18993 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18994 if ${ac_cv_sys_largefile_CC+:} false; then :
18995 $as_echo_n "(cached) " >&6
18997 ac_cv_sys_largefile_CC=no
18998 if test "$GCC" != yes; then
19001 # IRIX 6.2 and later do not support large files by default,
19002 # so use the C compiler's -n32 option if that helps.
19003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19004 /* end confdefs.h. */
19005 #include <sys/types.h>
19006 /* Check that off_t can represent 2**63 - 1 correctly.
19007 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19008 since some C++ compilers masquerading as C compilers
19009 incorrectly reject 9223372036854775807. */
19010 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19011 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19012 && LARGE_OFF_T % 2147483647 == 1)
19022 if ac_fn_c_try_compile "$LINENO"; then :
19025 rm -f core conftest.err conftest.$ac_objext
19027 if ac_fn_c_try_compile "$LINENO"; then :
19028 ac_cv_sys_largefile_CC=' -n32'; break
19030 rm -f core conftest.err conftest.$ac_objext
19034 rm -f conftest.$ac_ext
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
19038 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
19039 if test "$ac_cv_sys_largefile_CC" != no; then
19040 CC=$CC$ac_cv_sys_largefile_CC
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19044 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19045 if ${ac_cv_sys_file_offset_bits+:} false; then :
19046 $as_echo_n "(cached) " >&6
19049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19050 /* end confdefs.h. */
19051 #include <sys/types.h>
19052 /* Check that off_t can represent 2**63 - 1 correctly.
19053 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19054 since some C++ compilers masquerading as C compilers
19055 incorrectly reject 9223372036854775807. */
19056 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19057 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19058 && LARGE_OFF_T % 2147483647 == 1)
19068 if ac_fn_c_try_compile "$LINENO"; then :
19069 ac_cv_sys_file_offset_bits=no; break
19071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19073 /* end confdefs.h. */
19074 #define _FILE_OFFSET_BITS 64
19075 #include <sys/types.h>
19076 /* Check that off_t can represent 2**63 - 1 correctly.
19077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19078 since some C++ compilers masquerading as C compilers
19079 incorrectly reject 9223372036854775807. */
19080 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19082 && LARGE_OFF_T % 2147483647 == 1)
19092 if ac_fn_c_try_compile "$LINENO"; then :
19093 ac_cv_sys_file_offset_bits=64; break
19095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19096 ac_cv_sys_file_offset_bits=unknown
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
19101 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
19102 case $ac_cv_sys_file_offset_bits in #(
19105 cat >>confdefs.h <<_ACEOF
19106 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19111 if test $ac_cv_sys_file_offset_bits = unknown; then
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
19113 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19114 if ${ac_cv_sys_large_files+:} false; then :
19115 $as_echo_n "(cached) " >&6
19118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19119 /* end confdefs.h. */
19120 #include <sys/types.h>
19121 /* Check that off_t can represent 2**63 - 1 correctly.
19122 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19123 since some C++ compilers masquerading as C compilers
19124 incorrectly reject 9223372036854775807. */
19125 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19126 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19127 && LARGE_OFF_T % 2147483647 == 1)
19137 if ac_fn_c_try_compile "$LINENO"; then :
19138 ac_cv_sys_large_files=no; break
19140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19142 /* end confdefs.h. */
19143 #define _LARGE_FILES 1
19144 #include <sys/types.h>
19145 /* Check that off_t can represent 2**63 - 1 correctly.
19146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19147 since some C++ compilers masquerading as C compilers
19148 incorrectly reject 9223372036854775807. */
19149 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19151 && LARGE_OFF_T % 2147483647 == 1)
19161 if ac_fn_c_try_compile "$LINENO"; then :
19162 ac_cv_sys_large_files=1; break
19164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19165 ac_cv_sys_large_files=unknown
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
19170 $as_echo "$ac_cv_sys_large_files" >&6; }
19171 case $ac_cv_sys_large_files in #(
19174 cat >>confdefs.h <<_ACEOF
19175 #define _LARGE_FILES $ac_cv_sys_large_files
19192 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19193 if test -n "$ac_tool_prefix"; then
19194 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19195 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19197 $as_echo_n "checking for $ac_word... " >&6; }
19198 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19199 $as_echo_n "(cached) " >&6
19201 case $PKG_CONFIG in
19203 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19207 for as_dir in $PATH
19210 test -z "$as_dir" && as_dir=.
19211 for ac_exec_ext in '' $ac_executable_extensions; do
19212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19213 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19224 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19225 if test -n "$PKG_CONFIG"; then
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19227 $as_echo "$PKG_CONFIG" >&6; }
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19230 $as_echo "no" >&6; }
19235 if test -z "$ac_cv_path_PKG_CONFIG"; then
19236 ac_pt_PKG_CONFIG=$PKG_CONFIG
19237 # Extract the first word of "pkg-config", so it can be a program name with args.
19238 set dummy pkg-config; ac_word=$2
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19240 $as_echo_n "checking for $ac_word... " >&6; }
19241 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19242 $as_echo_n "(cached) " >&6
19244 case $ac_pt_PKG_CONFIG in
19246 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19250 for as_dir in $PATH
19253 test -z "$as_dir" && as_dir=.
19254 for ac_exec_ext in '' $ac_executable_extensions; do
19255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19256 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19267 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19268 if test -n "$ac_pt_PKG_CONFIG"; then
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19270 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19273 $as_echo "no" >&6; }
19276 if test "x$ac_pt_PKG_CONFIG" = x; then
19279 case $cross_compiling:$ac_tool_warned in
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19283 ac_tool_warned=yes ;;
19285 PKG_CONFIG=$ac_pt_PKG_CONFIG
19288 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19292 if test -n "$PKG_CONFIG"; then
19293 _pkg_min_version=0.20
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19295 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19296 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19298 $as_echo "yes" >&6; }
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19301 $as_echo "no" >&6; }
19306 RAGEL=${RAGEL-"${am_missing_run}ragel"}
19309 GIT=${GIT-"${am_missing_run}git"}
19331 HB_LIBTOOL_VERSION_INFO=20600:4:20600
19335 # Check whether --with-libstdc++ was given.
19336 if test "${with_libstdc__+set}" = set; then :
19337 withval=$with_libstdc__; with_libstdcxx=$withval
19342 if test "x$with_libstdcxx" = "xyes"; then
19343 WITH_LIBSTDCXX_TRUE=
19344 WITH_LIBSTDCXX_FALSE='#'
19346 WITH_LIBSTDCXX_TRUE='#'
19347 WITH_LIBSTDCXX_FALSE=
19357 gtk_doc_requires="gtk-doc >= 1.15"
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
19359 $as_echo_n "checking for gtk-doc... " >&6; }
19360 if test -n "$PKG_CONFIG" && \
19361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
19362 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
19364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19365 test $ac_status = 0; }; then
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
19371 $as_echo "$have_gtk_doc" >&6; }
19373 if test "$have_gtk_doc" = "no"; then
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19375 You will not be able to create source packages with 'make dist'
19376 because $gtk_doc_requires is not found." >&5
19377 $as_echo "$as_me: WARNING:
19378 You will not be able to create source packages with 'make dist'
19379 because $gtk_doc_requires is not found." >&2;}
19382 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19383 set dummy gtkdoc-check; ac_word=$2
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19385 $as_echo_n "checking for $ac_word... " >&6; }
19386 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
19387 $as_echo_n "(cached) " >&6
19389 if test -n "$GTKDOC_CHECK"; then
19390 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
19392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19393 for as_dir in $PATH
19396 test -z "$as_dir" && as_dir=.
19397 for ac_exec_ext in '' $ac_executable_extensions; do
19398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19399 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
19400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19409 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
19410 if test -n "$GTKDOC_CHECK"; then
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
19412 $as_echo "$GTKDOC_CHECK" >&6; }
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19415 $as_echo "no" >&6; }
19419 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19420 set dummy gtkdoc-check; ac_word=$2
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19422 $as_echo_n "checking for $ac_word... " >&6; }
19423 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
19424 $as_echo_n "(cached) " >&6
19426 case $GTKDOC_CHECK_PATH in
19428 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
19431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19432 for as_dir in $PATH
19435 test -z "$as_dir" && as_dir=.
19436 for ac_exec_ext in '' $ac_executable_extensions; do
19437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19438 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
19439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19449 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
19450 if test -n "$GTKDOC_CHECK_PATH"; then
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
19452 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19455 $as_echo "no" >&6; }
19459 for ac_prog in gtkdoc-rebase
19461 # Extract the first word of "$ac_prog", so it can be a program name with args.
19462 set dummy $ac_prog; ac_word=$2
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19464 $as_echo_n "checking for $ac_word... " >&6; }
19465 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
19466 $as_echo_n "(cached) " >&6
19468 case $GTKDOC_REBASE in
19470 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
19473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19474 for as_dir in $PATH
19477 test -z "$as_dir" && as_dir=.
19478 for ac_exec_ext in '' $ac_executable_extensions; do
19479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19480 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
19481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19491 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
19492 if test -n "$GTKDOC_REBASE"; then
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
19494 $as_echo "$GTKDOC_REBASE" >&6; }
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19497 $as_echo "no" >&6; }
19501 test -n "$GTKDOC_REBASE" && break
19503 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
19505 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
19506 set dummy gtkdoc-mkpdf; ac_word=$2
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19508 $as_echo_n "checking for $ac_word... " >&6; }
19509 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
19510 $as_echo_n "(cached) " >&6
19512 case $GTKDOC_MKPDF in
19514 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
19517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19518 for as_dir in $PATH
19521 test -z "$as_dir" && as_dir=.
19522 for ac_exec_ext in '' $ac_executable_extensions; do
19523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19524 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
19525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19535 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
19536 if test -n "$GTKDOC_MKPDF"; then
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
19538 $as_echo "$GTKDOC_MKPDF" >&6; }
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19541 $as_echo "no" >&6; }
19547 # Check whether --with-html-dir was given.
19548 if test "${with_html_dir+set}" = set; then :
19549 withval=$with_html_dir;
19551 with_html_dir='${datadir}/gtk-doc/html'
19554 HTML_DIR="$with_html_dir"
19557 # Check whether --enable-gtk-doc was given.
19558 if test "${enable_gtk_doc+set}" = set; then :
19559 enableval=$enable_gtk_doc;
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
19566 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
19568 $as_echo "$enable_gtk_doc" >&6; }
19570 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
19572 You must have $gtk_doc_requires installed to build documentation for
19573 $PACKAGE_NAME. Please install gtk-doc or disable building the
19574 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
19577 if test "x$PACKAGE_NAME" != "xglib"; then
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
19581 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
19583 if test -n "$GTKDOC_DEPS_CFLAGS"; then
19584 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
19585 elif test -n "$PKG_CONFIG"; then
19586 if test -n "$PKG_CONFIG" && \
19587 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
19588 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
19590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19591 test $ac_status = 0; }; then
19592 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
19593 test "x$?" != "x0" && pkg_failed=yes
19600 if test -n "$GTKDOC_DEPS_LIBS"; then
19601 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
19602 elif test -n "$PKG_CONFIG"; then
19603 if test -n "$PKG_CONFIG" && \
19604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
19605 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
19607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19608 test $ac_status = 0; }; then
19609 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
19610 test "x$?" != "x0" && pkg_failed=yes
19620 if test $pkg_failed = yes; then
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19622 $as_echo "no" >&6; }
19624 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19625 _pkg_short_errors_supported=yes
19627 _pkg_short_errors_supported=no
19629 if test $_pkg_short_errors_supported = yes; then
19630 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
19632 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
19634 # Put the nasty error message in config.log where it belongs
19635 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
19638 elif test $pkg_failed = untried; then
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19640 $as_echo "no" >&6; }
19643 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
19644 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19646 $as_echo "yes" >&6; }
19651 # Check whether --enable-gtk-doc-html was given.
19652 if test "${enable_gtk_doc_html+set}" = set; then :
19653 enableval=$enable_gtk_doc_html;
19655 enable_gtk_doc_html=yes
19658 # Check whether --enable-gtk-doc-pdf was given.
19659 if test "${enable_gtk_doc_pdf+set}" = set; then :
19660 enableval=$enable_gtk_doc_pdf;
19662 enable_gtk_doc_pdf=no
19666 if test -z "$GTKDOC_MKPDF"; then
19667 enable_gtk_doc_pdf=no
19670 if test -z "$AM_DEFAULT_VERBOSITY"; then
19671 AM_DEFAULT_VERBOSITY=1
19675 if test x$have_gtk_doc = xyes; then
19677 HAVE_GTK_DOC_FALSE='#'
19679 HAVE_GTK_DOC_TRUE='#'
19680 HAVE_GTK_DOC_FALSE=
19683 if test x$enable_gtk_doc = xyes; then
19684 ENABLE_GTK_DOC_TRUE=
19685 ENABLE_GTK_DOC_FALSE='#'
19687 ENABLE_GTK_DOC_TRUE='#'
19688 ENABLE_GTK_DOC_FALSE=
19691 if test x$enable_gtk_doc_html = xyes; then
19692 GTK_DOC_BUILD_HTML_TRUE=
19693 GTK_DOC_BUILD_HTML_FALSE='#'
19695 GTK_DOC_BUILD_HTML_TRUE='#'
19696 GTK_DOC_BUILD_HTML_FALSE=
19699 if test x$enable_gtk_doc_pdf = xyes; then
19700 GTK_DOC_BUILD_PDF_TRUE=
19701 GTK_DOC_BUILD_PDF_FALSE='#'
19703 GTK_DOC_BUILD_PDF_TRUE='#'
19704 GTK_DOC_BUILD_PDF_FALSE=
19707 if test -n "$LIBTOOL"; then
19708 GTK_DOC_USE_LIBTOOL_TRUE=
19709 GTK_DOC_USE_LIBTOOL_FALSE='#'
19711 GTK_DOC_USE_LIBTOOL_TRUE='#'
19712 GTK_DOC_USE_LIBTOOL_FALSE=
19715 if test -n "$GTKDOC_REBASE"; then
19716 GTK_DOC_USE_REBASE_TRUE=
19717 GTK_DOC_USE_REBASE_FALSE='#'
19719 GTK_DOC_USE_REBASE_TRUE='#'
19720 GTK_DOC_USE_REBASE_FALSE=
19724 if test "x$enable_gtk_doc" = xyes; then
19729 # Functions and headers
19730 for ac_func in atexit mprotect sysconf getpagesize mmap isatty newlocale strtod_l roundf
19732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19733 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19734 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19735 cat >>confdefs.h <<_ACEOF
19736 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19742 for ac_header in unistd.h sys/mman.h xlocale.h stdbool.h
19744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19745 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19746 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19747 cat >>confdefs.h <<_ACEOF
19748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19758 # The cast to long int works around a bug in the HP C Compiler,
19759 # see AC_CHECK_SIZEOF for more information.
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
19761 $as_echo_n "checking alignment of struct{char;}... " >&6; }
19762 if ${ac_cv_alignof_struct_char__+:} false; then :
19763 $as_echo_n "(cached) " >&6
19765 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__" "$ac_includes_default
19767 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
19769 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
19772 if test "$ac_cv_type_struct_char__" = yes; then
19773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19775 as_fn_error 77 "cannot compute alignment of struct{char;}
19776 See \`config.log' for more details" "$LINENO" 5; }
19778 ac_cv_alignof_struct_char__=0
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
19784 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
19788 cat >>confdefs.h <<_ACEOF
19789 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
19793 if test "x$GCC" = "xyes"; then
19795 # Make symbols link locally
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Bsymbolic-functions" >&5
19797 $as_echo_n "checking whether the linker accepts -Bsymbolic-functions... " >&6; }
19798 if ${ax_cv_check_ldflags___Bsymbolic_functions+:} false; then :
19799 $as_echo_n "(cached) " >&6
19802 ax_check_save_flags=$LDFLAGS
19803 LDFLAGS="$LDFLAGS -Bsymbolic-functions"
19804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19805 /* end confdefs.h. */
19815 if ac_fn_c_try_link "$LINENO"; then :
19816 ax_cv_check_ldflags___Bsymbolic_functions=yes
19818 ax_cv_check_ldflags___Bsymbolic_functions=no
19820 rm -f core conftest.err conftest.$ac_objext \
19821 conftest$ac_exeext conftest.$ac_ext
19822 LDFLAGS=$ax_check_save_flags
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Bsymbolic_functions" >&5
19825 $as_echo "$ax_cv_check_ldflags___Bsymbolic_functions" >&6; }
19826 if test "x$ax_cv_check_ldflags___Bsymbolic_functions" = xyes; then :
19827 LDFLAGS="$LDFLAGS -Bsymbolic-functions"
19833 # Make it possible to not link to libstdc++
19834 # No threadsafe statics in C++ as we do it ourselves.
19835 # We don't use these features, so it's safe to disable them
19836 # even in the cases where we DO link to libstdc++.
19837 # Put -fno-rtti before $CXXFLAGS such that users can re-enable it
19838 # by overriding CXXFLAGS.
19839 CXXFLAGS="-fno-rtti $CXXFLAGS -fno-exceptions -fno-threadsafe-statics"
19845 # Hide inline methods
19846 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19852 if test "x$ac_cv_alignof_struct_char__" != x1; then
19853 # Request byte alignment
19854 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
19860 if test "x$GCC" = "xyes"; then
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
19871 $as_echo_n "checking for native Win32... " >&6; }
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
19878 $as_echo "$hb_os_win32" >&6; }
19879 if test "$hb_os_win32" = "yes"; then
19894 ac_cpp='$CPP $CPPFLAGS'
19895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19901 # We used to check for pthread.h first, but this fails if pthread.h
19902 # requires special compiler flags (e.g. on Tru64 or Sequent).
19903 # It gets checked for in the link test anyway.
19905 # First of all, check if the user has set any of the PTHREAD_LIBS,
19906 # etcetera environment variables, and if threads linking works using
19908 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19909 ax_pthread_save_CC="$CC"
19910 ax_pthread_save_CFLAGS="$CFLAGS"
19911 ax_pthread_save_LIBS="$LIBS"
19912 if test "x$PTHREAD_CC" != "x"; then :
19915 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19916 LIBS="$PTHREAD_LIBS $LIBS"
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19918 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19920 /* end confdefs.h. */
19922 /* Override any GCC internal prototype to avoid an error.
19923 Use char because int might match the return type of a GCC
19924 builtin and then its argument prototype would still apply. */
19928 char pthread_join ();
19932 return pthread_join ();
19937 if ac_fn_c_try_link "$LINENO"; then :
19940 rm -f core conftest.err conftest.$ac_objext \
19941 conftest$ac_exeext conftest.$ac_ext
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19943 $as_echo "$ax_pthread_ok" >&6; }
19944 if test "x$ax_pthread_ok" = "xno"; then
19948 CC="$ax_pthread_save_CC"
19949 CFLAGS="$ax_pthread_save_CFLAGS"
19950 LIBS="$ax_pthread_save_LIBS"
19953 # We must check for the threads library under a number of different
19954 # names; the ordering is very important because some systems
19955 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19956 # libraries is broken (non-POSIX).
19958 # Create a list of thread flags to try. Items starting with a "-" are
19959 # C compiler flags, and other items are library names, except for "none"
19960 # which indicates that we try without any flags at all, and "pthread-config"
19961 # which is a program returning the flags for the Pth emulation library.
19963 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19965 # The ordering *is* (sometimes) important. Some notes on the
19966 # individual items follow:
19968 # pthreads: AIX (must check this before -lpthread)
19969 # none: in case threads are in libc; should be tried before -Kthread and
19970 # other compiler flags to prevent continual compiler warnings
19971 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19972 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19973 # (Note: HP C rejects this with "bad form for `-t' option")
19974 # -pthreads: Solaris/gcc (Note: HP C also rejects)
19975 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19976 # doesn't hurt to check since this sometimes defines pthreads and
19977 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
19978 # is present but should not be used directly; and before -mthreads,
19979 # because the compiler interprets this as "-mt" + "-hreads")
19980 # -mthreads: Mingw32/gcc, Lynx/gcc
19981 # pthread: Linux, etcetera
19982 # --thread-safe: KAI C++
19983 # pthread-config: use pthread-config program (for GNU Pth library)
19989 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19990 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19992 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
19997 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19998 # multi-threading and also sets -lpthread."
20000 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
20005 # IBM z/OS requires a feature-test macro to be defined in order to
20006 # enable POSIX threads at all, so give the user a hint if this is
20007 # not set. (We don't define these ourselves, as they can affect
20008 # other portions of the system API in unpredictable ways.)
20010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20011 /* end confdefs.h. */
20013 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
20014 AX_PTHREAD_ZOS_MISSING
20018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20019 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
20021 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
20029 # On Solaris (at least, for some versions), libc contains stubbed
20030 # (non-functional) versions of the pthreads routines, so link-based
20031 # tests will erroneously succeed. (N.B.: The stubs are missing
20032 # pthread_cleanup_push, or rather a function called by this macro,
20033 # so we could check for that, but who knows whether they'll stub
20034 # that too in a future libc.) So we'll check first for the
20035 # standard Solaris way of linking pthreads (-mt -lpthread).
20037 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
20041 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
20043 if test "x$GCC" = "xyes"; then :
20044 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
20047 # The presence of a feature test macro requesting re-entrant function
20048 # definitions is, on some systems, a strong hint that pthreads support is
20049 # correctly enabled
20052 darwin* | hpux* | linux* | osf* | solaris*)
20053 ax_pthread_check_macro="_REENTRANT"
20057 ax_pthread_check_macro="_THREAD_SAFE"
20061 ax_pthread_check_macro="--"
20064 if test "x$ax_pthread_check_macro" = "x--"; then :
20065 ax_pthread_check_cond=0
20067 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
20070 # Are we compiling with Clang?
20072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
20073 $as_echo_n "checking whether $CC is Clang... " >&6; }
20074 if ${ax_cv_PTHREAD_CLANG+:} false; then :
20075 $as_echo_n "(cached) " >&6
20077 ax_cv_PTHREAD_CLANG=no
20078 # Note that Autoconf sets GCC=yes for Clang as well as GCC
20079 if test "x$GCC" = "xyes"; then
20080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20081 /* end confdefs.h. */
20082 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
20083 # if defined(__clang__) && defined(__llvm__)
20084 AX_PTHREAD_CC_IS_CLANG
20088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20089 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
20090 ax_cv_PTHREAD_CLANG=yes
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
20098 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
20099 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
20101 ax_pthread_clang_warning=no
20103 # Clang needs special handling, because older versions handle the -pthread
20104 # option in a rather... idiosyncratic way
20106 if test "x$ax_pthread_clang" = "xyes"; then
20108 # Clang takes -pthread; it has never supported any other flag
20110 # (Note 1: This will need to be revisited if a system that Clang
20111 # supports has POSIX threads in a separate library. This tends not
20112 # to be the way of modern systems, but it's conceivable.)
20114 # (Note 2: On some systems, notably Darwin, -pthread is not needed
20115 # to get POSIX threads support; the API is always present and
20116 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
20117 # -pthread does define _REENTRANT, and while the Darwin headers
20118 # ignore this macro, third-party headers might not.)
20120 PTHREAD_CFLAGS="-pthread"
20125 # However, older versions of Clang make a point of warning the user
20126 # that, in an invocation where only linking and no compilation is
20127 # taking place, the -pthread option has no effect ("argument unused
20128 # during compilation"). They expect -pthread to be passed in only
20129 # when source code is being compiled.
20131 # Problem is, this is at odds with the way Automake and most other
20132 # C build frameworks function, which is that the same flags used in
20133 # compilation (CFLAGS) are also used in linking. Many systems
20134 # supported by AX_PTHREAD require exactly this for POSIX threads
20135 # support, and in fact it is often not straightforward to specify a
20136 # flag that is used only in the compilation phase and not in
20137 # linking. Such a scenario is extremely rare in practice.
20139 # Even though use of the -pthread flag in linking would only print
20140 # a warning, this can be a nuisance for well-run software projects
20141 # that build with -Werror. So if the active version of Clang has
20142 # this misfeature, we search for an option to squash it.
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
20145 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
20146 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
20147 $as_echo_n "(cached) " >&6
20149 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
20150 # Create an alternate version of $ac_link that compiles and
20151 # links in two steps (.c -> .o, .o -> exe) instead of one
20152 # (.c -> exe), because the warning occurs only in the second
20154 ax_pthread_save_ac_link="$ac_link"
20155 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
20156 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
20157 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
20158 ax_pthread_save_CFLAGS="$CFLAGS"
20159 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
20160 if test "x$ax_pthread_try" = "xunknown"; then :
20163 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
20164 ac_link="$ax_pthread_save_ac_link"
20165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20166 /* end confdefs.h. */
20167 int main(void){return 0;}
20169 if ac_fn_c_try_link "$LINENO"; then :
20170 ac_link="$ax_pthread_2step_ac_link"
20171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20172 /* end confdefs.h. */
20173 int main(void){return 0;}
20175 if ac_fn_c_try_link "$LINENO"; then :
20178 rm -f core conftest.err conftest.$ac_objext \
20179 conftest$ac_exeext conftest.$ac_ext
20182 rm -f core conftest.err conftest.$ac_objext \
20183 conftest$ac_exeext conftest.$ac_ext
20185 ac_link="$ax_pthread_save_ac_link"
20186 CFLAGS="$ax_pthread_save_CFLAGS"
20187 if test "x$ax_pthread_try" = "x"; then :
20190 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
20194 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
20196 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
20198 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
20201 fi # $ax_pthread_clang = yes
20203 if test "x$ax_pthread_ok" = "xno"; then
20204 for ax_pthread_try_flag in $ax_pthread_flags; do
20206 case $ax_pthread_try_flag in
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20209 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
20214 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
20215 PTHREAD_CFLAGS="-mt"
20216 PTHREAD_LIBS="-lpthread"
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
20221 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
20222 PTHREAD_CFLAGS="$ax_pthread_try_flag"
20226 # Extract the first word of "pthread-config", so it can be a program name with args.
20227 set dummy pthread-config; ac_word=$2
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20229 $as_echo_n "checking for $ac_word... " >&6; }
20230 if ${ac_cv_prog_ax_pthread_config+:} false; then :
20231 $as_echo_n "(cached) " >&6
20233 if test -n "$ax_pthread_config"; then
20234 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
20236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20237 for as_dir in $PATH
20240 test -z "$as_dir" && as_dir=.
20241 for ac_exec_ext in '' $ac_executable_extensions; do
20242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20243 ac_cv_prog_ax_pthread_config="yes"
20244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20251 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
20254 ax_pthread_config=$ac_cv_prog_ax_pthread_config
20255 if test -n "$ax_pthread_config"; then
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20257 $as_echo "$ax_pthread_config" >&6; }
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20260 $as_echo "no" >&6; }
20264 if test "x$ax_pthread_config" = "xno"; then :
20267 PTHREAD_CFLAGS="`pthread-config --cflags`"
20268 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
20273 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
20274 PTHREAD_LIBS="-l$ax_pthread_try_flag"
20278 ax_pthread_save_CFLAGS="$CFLAGS"
20279 ax_pthread_save_LIBS="$LIBS"
20280 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20281 LIBS="$PTHREAD_LIBS $LIBS"
20283 # Check for various functions. We must include pthread.h,
20284 # since some functions may be macros. (On the Sequent, we
20285 # need a special flag -Kthread to make this header compile.)
20286 # We check for pthread_join because it is in -lpthread on IRIX
20287 # while pthread_create is in libc. We check for pthread_attr_init
20288 # due to DEC craziness with -lpthreads. We check for
20289 # pthread_cleanup_push because it is one of the few pthread
20290 # functions on Solaris that doesn't have a non-functional libc stub.
20291 # We try pthread_create on general principles.
20293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20294 /* end confdefs.h. */
20295 #include <pthread.h>
20296 # if $ax_pthread_check_cond
20297 # error "$ax_pthread_check_macro must be defined"
20299 static void routine(void *a) { a = 0; }
20300 static void *start_routine(void *a) { return a; }
20304 pthread_t th; pthread_attr_t attr;
20305 pthread_create(&th, 0, start_routine, 0);
20306 pthread_join(th, 0);
20307 pthread_attr_init(&attr);
20308 pthread_cleanup_push(routine, 0);
20309 pthread_cleanup_pop(0) /* ; */
20314 if ac_fn_c_try_link "$LINENO"; then :
20317 rm -f core conftest.err conftest.$ac_objext \
20318 conftest$ac_exeext conftest.$ac_ext
20320 CFLAGS="$ax_pthread_save_CFLAGS"
20321 LIBS="$ax_pthread_save_LIBS"
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20324 $as_echo "$ax_pthread_ok" >&6; }
20325 if test "x$ax_pthread_ok" = "xyes"; then :
20334 # Various other checks:
20335 if test "x$ax_pthread_ok" = "xyes"; then
20336 ax_pthread_save_CFLAGS="$CFLAGS"
20337 ax_pthread_save_LIBS="$LIBS"
20338 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20339 LIBS="$PTHREAD_LIBS $LIBS"
20341 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20343 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20344 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
20345 $as_echo_n "(cached) " >&6
20347 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
20348 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20350 /* end confdefs.h. */
20351 #include <pthread.h>
20355 int attr = $ax_pthread_attr; return attr /* ; */
20360 if ac_fn_c_try_link "$LINENO"; then :
20361 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
20363 rm -f core conftest.err conftest.$ac_objext \
20364 conftest$ac_exeext conftest.$ac_ext
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
20369 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
20370 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
20371 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
20372 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
20374 cat >>confdefs.h <<_ACEOF
20375 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
20378 ax_pthread_joinable_attr_defined=yes
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
20383 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
20384 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
20385 $as_echo_n "(cached) " >&6
20387 ax_cv_PTHREAD_SPECIAL_FLAGS=no
20390 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
20395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
20396 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
20397 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
20398 test "x$ax_pthread_special_flags_added" != "xyes"; then :
20399 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
20400 ax_pthread_special_flags_added=yes
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20404 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20405 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
20406 $as_echo_n "(cached) " >&6
20408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20409 /* end confdefs.h. */
20410 #include <pthread.h>
20414 int i = PTHREAD_PRIO_INHERIT;
20419 if ac_fn_c_try_link "$LINENO"; then :
20420 ax_cv_PTHREAD_PRIO_INHERIT=yes
20422 ax_cv_PTHREAD_PRIO_INHERIT=no
20424 rm -f core conftest.err conftest.$ac_objext \
20425 conftest$ac_exeext conftest.$ac_ext
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20429 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20430 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
20431 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
20433 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20435 ax_pthread_prio_inherit_defined=yes
20439 CFLAGS="$ax_pthread_save_CFLAGS"
20440 LIBS="$ax_pthread_save_LIBS"
20442 # More AIX lossage: compile with *_r variant
20443 if test "x$GCC" != "xyes"; then
20447 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20448 #handle absolute path differently from PATH based program lookup
20451 if as_fn_executable_p ${CC}_r; then :
20452 PTHREAD_CC="${CC}_r"
20455 for ac_prog in ${CC}_r
20457 # Extract the first word of "$ac_prog", so it can be a program name with args.
20458 set dummy $ac_prog; ac_word=$2
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20460 $as_echo_n "checking for $ac_word... " >&6; }
20461 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20462 $as_echo_n "(cached) " >&6
20464 if test -n "$PTHREAD_CC"; then
20465 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20468 for as_dir in $PATH
20471 test -z "$as_dir" && as_dir=.
20472 for ac_exec_ext in '' $ac_executable_extensions; do
20473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20474 ac_cv_prog_PTHREAD_CC="$ac_prog"
20475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20484 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20485 if test -n "$PTHREAD_CC"; then
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20487 $as_echo "$PTHREAD_CC" >&6; }
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20490 $as_echo "no" >&6; }
20494 test -n "$PTHREAD_CC" && break
20496 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20507 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20513 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20514 if test "x$ax_pthread_ok" = "xyes"; then
20522 ac_cpp='$CPP $CPPFLAGS'
20523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20528 if $have_pthread; then
20530 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20533 if $have_pthread; then
20535 HAVE_PTHREAD_FALSE='#'
20537 HAVE_PTHREAD_TRUE='#'
20538 HAVE_PTHREAD_FALSE=
20544 # Check whether --with-glib was given.
20545 if test "${with_glib+set}" = set; then :
20546 withval=$with_glib;
20552 GLIB_DEPS="glib-2.0 >= 2.19.1"
20554 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
20558 $as_echo_n "checking for GLIB... " >&6; }
20560 if test -n "$GLIB_CFLAGS"; then
20561 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
20562 elif test -n "$PKG_CONFIG"; then
20563 if test -n "$PKG_CONFIG" && \
20564 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
20565 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
20567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20568 test $ac_status = 0; }; then
20569 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
20570 test "x$?" != "x0" && pkg_failed=yes
20577 if test -n "$GLIB_LIBS"; then
20578 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
20579 elif test -n "$PKG_CONFIG"; then
20580 if test -n "$PKG_CONFIG" && \
20581 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
20582 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
20584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20585 test $ac_status = 0; }; then
20586 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
20587 test "x$?" != "x0" && pkg_failed=yes
20597 if test $pkg_failed = yes; then
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20599 $as_echo "no" >&6; }
20601 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20602 _pkg_short_errors_supported=yes
20604 _pkg_short_errors_supported=no
20606 if test $_pkg_short_errors_supported = yes; then
20607 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
20609 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
20611 # Put the nasty error message in config.log where it belongs
20612 echo "$GLIB_PKG_ERRORS" >&5
20615 elif test $pkg_failed = untried; then
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20617 $as_echo "no" >&6; }
20620 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
20621 GLIB_LIBS=$pkg_cv_GLIB_LIBS
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20623 $as_echo "yes" >&6; }
20627 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
20628 as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
20630 if $have_glib; then
20632 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
20635 if $have_glib; then
20637 HAVE_GLIB_FALSE='#'
20646 # Check whether --with-gobject was given.
20647 if test "${with_gobject+set}" = set; then :
20648 withval=$with_gobject;
20654 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
20658 $as_echo_n "checking for GOBJECT... " >&6; }
20660 if test -n "$GOBJECT_CFLAGS"; then
20661 pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
20662 elif test -n "$PKG_CONFIG"; then
20663 if test -n "$PKG_CONFIG" && \
20664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
20665 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
20667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20668 test $ac_status = 0; }; then
20669 pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
20670 test "x$?" != "x0" && pkg_failed=yes
20677 if test -n "$GOBJECT_LIBS"; then
20678 pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
20679 elif test -n "$PKG_CONFIG"; then
20680 if test -n "$PKG_CONFIG" && \
20681 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
20682 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
20684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20685 test $ac_status = 0; }; then
20686 pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
20687 test "x$?" != "x0" && pkg_failed=yes
20697 if test $pkg_failed = yes; then
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20699 $as_echo "no" >&6; }
20701 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20702 _pkg_short_errors_supported=yes
20704 _pkg_short_errors_supported=no
20706 if test $_pkg_short_errors_supported = yes; then
20707 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
20709 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
20711 # Put the nasty error message in config.log where it belongs
20712 echo "$GOBJECT_PKG_ERRORS" >&5
20715 elif test $pkg_failed = untried; then
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20717 $as_echo "no" >&6; }
20720 GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
20721 GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20723 $as_echo "yes" >&6; }
20727 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
20728 as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
20730 if $have_gobject; then
20732 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
20734 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
20737 if $have_gobject; then
20739 HAVE_GOBJECT_FALSE='#'
20741 HAVE_GOBJECT_TRUE='#'
20742 HAVE_GOBJECT_FALSE=
20749 # Gobject-Introspection
20750 have_introspection=false
20752 if $have_gobject; then
20756 # Check whether --enable-introspection was given.
20757 if test "${enable_introspection+set}" = set; then :
20758 enableval=$enable_introspection;
20760 enable_introspection=auto
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
20765 $as_echo_n "checking for gobject-introspection... " >&6; }
20767 case $enable_introspection in #(
20769 found_introspection="no (disabled, use --enable-introspection to enable)"
20772 if test -n "$PKG_CONFIG" && \
20773 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
20774 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
20776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20777 test $ac_status = 0; }; then
20780 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
20782 if test -n "$PKG_CONFIG" && \
20783 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20784 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20787 test $ac_status = 0; }; then
20788 found_introspection=yes
20790 as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
20794 if test -n "$PKG_CONFIG" && \
20795 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20796 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20799 test $ac_status = 0; }; then
20800 found_introspection=yes
20802 found_introspection=no
20804 enable_introspection=$found_introspection
20807 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
20811 $as_echo "$found_introspection" >&6; }
20813 INTROSPECTION_SCANNER=
20814 INTROSPECTION_COMPILER=
20815 INTROSPECTION_GENERATE=
20816 INTROSPECTION_GIRDIR=
20817 INTROSPECTION_TYPELIBDIR=
20818 if test "x$found_introspection" = "xyes"; then
20819 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
20820 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
20821 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
20822 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
20823 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
20824 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
20825 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
20826 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
20837 if test "x$found_introspection" = "xyes"; then
20838 HAVE_INTROSPECTION_TRUE=
20839 HAVE_INTROSPECTION_FALSE='#'
20841 HAVE_INTROSPECTION_TRUE='#'
20842 HAVE_INTROSPECTION_FALSE=
20847 if test "x$found_introspection" = xyes; then
20848 have_introspection=true
20852 HAVE_INTROSPECTION_TRUE=
20853 HAVE_INTROSPECTION_FALSE='#'
20855 HAVE_INTROSPECTION_TRUE='#'
20856 HAVE_INTROSPECTION_FALSE=
20864 # Check whether --with-cairo was given.
20865 if test "${with_cairo+set}" = set; then :
20866 withval=$with_cairo;
20872 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
20876 $as_echo_n "checking for CAIRO... " >&6; }
20878 if test -n "$CAIRO_CFLAGS"; then
20879 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
20880 elif test -n "$PKG_CONFIG"; then
20881 if test -n "$PKG_CONFIG" && \
20882 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20883 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20886 test $ac_status = 0; }; then
20887 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
20888 test "x$?" != "x0" && pkg_failed=yes
20895 if test -n "$CAIRO_LIBS"; then
20896 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
20897 elif test -n "$PKG_CONFIG"; then
20898 if test -n "$PKG_CONFIG" && \
20899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20900 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20903 test $ac_status = 0; }; then
20904 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
20905 test "x$?" != "x0" && pkg_failed=yes
20915 if test $pkg_failed = yes; then
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20917 $as_echo "no" >&6; }
20919 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20920 _pkg_short_errors_supported=yes
20922 _pkg_short_errors_supported=no
20924 if test $_pkg_short_errors_supported = yes; then
20925 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
20927 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
20929 # Put the nasty error message in config.log where it belongs
20930 echo "$CAIRO_PKG_ERRORS" >&5
20933 elif test $pkg_failed = untried; then
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20935 $as_echo "no" >&6; }
20938 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
20939 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
20940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20941 $as_echo "yes" >&6; }
20945 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
20946 as_fn_error $? "cairo support requested but not found" "$LINENO" 5
20948 if $have_cairo; then
20950 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
20953 if $have_cairo; then
20955 HAVE_CAIRO_FALSE='#'
20957 HAVE_CAIRO_TRUE='#'
20962 have_cairo_ft=false
20963 if $have_cairo; then
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
20967 $as_echo_n "checking for CAIRO_FT... " >&6; }
20969 if test -n "$CAIRO_FT_CFLAGS"; then
20970 pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
20971 elif test -n "$PKG_CONFIG"; then
20972 if test -n "$PKG_CONFIG" && \
20973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20974 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20977 test $ac_status = 0; }; then
20978 pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
20979 test "x$?" != "x0" && pkg_failed=yes
20986 if test -n "$CAIRO_FT_LIBS"; then
20987 pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
20988 elif test -n "$PKG_CONFIG"; then
20989 if test -n "$PKG_CONFIG" && \
20990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20991 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20994 test $ac_status = 0; }; then
20995 pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
20996 test "x$?" != "x0" && pkg_failed=yes
21006 if test $pkg_failed = yes; then
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21008 $as_echo "no" >&6; }
21010 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21011 _pkg_short_errors_supported=yes
21013 _pkg_short_errors_supported=no
21015 if test $_pkg_short_errors_supported = yes; then
21016 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-ft" 2>&1`
21018 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-ft" 2>&1`
21020 # Put the nasty error message in config.log where it belongs
21021 echo "$CAIRO_FT_PKG_ERRORS" >&5
21024 elif test $pkg_failed = untried; then
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21026 $as_echo "no" >&6; }
21029 CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
21030 CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21032 $as_echo "yes" >&6; }
21036 if $have_cairo_ft; then
21038 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
21041 if $have_cairo_ft; then
21042 HAVE_CAIRO_FT_TRUE=
21043 HAVE_CAIRO_FT_FALSE='#'
21045 HAVE_CAIRO_FT_TRUE='#'
21046 HAVE_CAIRO_FT_FALSE=
21052 # Check whether --with-fontconfig was given.
21053 if test "${with_fontconfig+set}" = set; then :
21054 withval=$with_fontconfig;
21056 with_fontconfig=auto
21059 have_fontconfig=false
21060 if test "x$with_fontconfig" = "xyes" -o "x$with_fontconfig" = "xauto"; then
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
21064 $as_echo_n "checking for FONTCONFIG... " >&6; }
21066 if test -n "$FONTCONFIG_CFLAGS"; then
21067 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
21068 elif test -n "$PKG_CONFIG"; then
21069 if test -n "$PKG_CONFIG" && \
21070 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
21071 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
21073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21074 test $ac_status = 0; }; then
21075 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
21076 test "x$?" != "x0" && pkg_failed=yes
21083 if test -n "$FONTCONFIG_LIBS"; then
21084 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
21085 elif test -n "$PKG_CONFIG"; then
21086 if test -n "$PKG_CONFIG" && \
21087 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
21088 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
21090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21091 test $ac_status = 0; }; then
21092 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
21093 test "x$?" != "x0" && pkg_failed=yes
21103 if test $pkg_failed = yes; then
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21105 $as_echo "no" >&6; }
21107 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21108 _pkg_short_errors_supported=yes
21110 _pkg_short_errors_supported=no
21112 if test $_pkg_short_errors_supported = yes; then
21113 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
21115 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
21117 # Put the nasty error message in config.log where it belongs
21118 echo "$FONTCONFIG_PKG_ERRORS" >&5
21121 elif test $pkg_failed = untried; then
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21123 $as_echo "no" >&6; }
21126 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
21127 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
21128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21129 $as_echo "yes" >&6; }
21130 have_fontconfig=true
21133 if test "x$with_fontconfig" = "xyes" -a "x$have_fontconfig" != "xtrue"; then
21134 as_fn_error $? "fontconfig support requested but not found" "$LINENO" 5
21136 if $have_fontconfig; then
21138 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
21141 if $have_fontconfig; then
21142 HAVE_FONTCONFIG_TRUE=
21143 HAVE_FONTCONFIG_FALSE='#'
21145 HAVE_FONTCONFIG_TRUE='#'
21146 HAVE_FONTCONFIG_FALSE=
21152 # Check whether --with-icu was given.
21153 if test "${with_icu+set}" = set; then :
21160 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
21164 $as_echo_n "checking for ICU... " >&6; }
21166 if test -n "$ICU_CFLAGS"; then
21167 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
21168 elif test -n "$PKG_CONFIG"; then
21169 if test -n "$PKG_CONFIG" && \
21170 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21171 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21174 test $ac_status = 0; }; then
21175 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
21176 test "x$?" != "x0" && pkg_failed=yes
21183 if test -n "$ICU_LIBS"; then
21184 pkg_cv_ICU_LIBS="$ICU_LIBS"
21185 elif test -n "$PKG_CONFIG"; then
21186 if test -n "$PKG_CONFIG" && \
21187 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21188 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21191 test $ac_status = 0; }; then
21192 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
21193 test "x$?" != "x0" && pkg_failed=yes
21203 if test $pkg_failed = yes; then
21204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21205 $as_echo "no" >&6; }
21207 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21208 _pkg_short_errors_supported=yes
21210 _pkg_short_errors_supported=no
21212 if test $_pkg_short_errors_supported = yes; then
21213 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
21215 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
21217 # Put the nasty error message in config.log where it belongs
21218 echo "$ICU_PKG_ERRORS" >&5
21221 elif test $pkg_failed = untried; then
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21223 $as_echo "no" >&6; }
21226 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
21227 ICU_LIBS=$pkg_cv_ICU_LIBS
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21229 $as_echo "yes" >&6; }
21233 if test "$have_icu" != "true"; then
21234 if test -n "$ac_tool_prefix"; then
21235 # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
21236 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
21237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21238 $as_echo_n "checking for $ac_word... " >&6; }
21239 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
21240 $as_echo_n "(cached) " >&6
21242 if test -n "$ICU_CONFIG"; then
21243 ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
21245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21246 for as_dir in $PATH
21249 test -z "$as_dir" && as_dir=.
21250 for ac_exec_ext in '' $ac_executable_extensions; do
21251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21252 ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
21253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21262 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
21263 if test -n "$ICU_CONFIG"; then
21264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
21265 $as_echo "$ICU_CONFIG" >&6; }
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21268 $as_echo "no" >&6; }
21273 if test -z "$ac_cv_prog_ICU_CONFIG"; then
21274 ac_ct_ICU_CONFIG=$ICU_CONFIG
21275 # Extract the first word of "icu-config", so it can be a program name with args.
21276 set dummy icu-config; ac_word=$2
21277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21278 $as_echo_n "checking for $ac_word... " >&6; }
21279 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
21280 $as_echo_n "(cached) " >&6
21282 if test -n "$ac_ct_ICU_CONFIG"; then
21283 ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
21285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21286 for as_dir in $PATH
21289 test -z "$as_dir" && as_dir=.
21290 for ac_exec_ext in '' $ac_executable_extensions; do
21291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21292 ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
21293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21302 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
21303 if test -n "$ac_ct_ICU_CONFIG"; then
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
21305 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21308 $as_echo "no" >&6; }
21311 if test "x$ac_ct_ICU_CONFIG" = x; then
21314 case $cross_compiling:$ac_tool_warned in
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21318 ac_tool_warned=yes ;;
21320 ICU_CONFIG=$ac_ct_ICU_CONFIG
21323 ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
21327 $as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
21328 if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
21330 # We don't use --cflags as this gives us a lot of things that we don't
21331 # necessarily want, like debugging and optimization flags
21332 # See man (1) icu-config for more info.
21333 ICU_CFLAGS=`$ICU_CONFIG --cppflags`
21334 ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21338 $as_echo "yes" >&6; }
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21341 $as_echo "no" >&6; }
21345 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
21346 as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
21350 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
21352 $as_echo "#define HAVE_ICU 1" >>confdefs.h
21354 if test "x$with_icu" = "xbuiltin"; then
21356 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
21368 if $have_icu && test "x$with_icu" = "xbuiltin"; then
21369 HAVE_ICU_BUILTIN_TRUE=
21370 HAVE_ICU_BUILTIN_FALSE='#'
21372 HAVE_ICU_BUILTIN_TRUE='#'
21373 HAVE_ICU_BUILTIN_FALSE=
21379 # Check whether --with-graphite2 was given.
21380 if test "${with_graphite2+set}" = set; then :
21381 withval=$with_graphite2;
21386 have_graphite2=false
21387 GRAPHITE2_DEPS="graphite2 >= 1.2.0"
21389 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
21393 $as_echo_n "checking for GRAPHITE2... " >&6; }
21395 if test -n "$GRAPHITE2_CFLAGS"; then
21396 pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
21397 elif test -n "$PKG_CONFIG"; then
21398 if test -n "$PKG_CONFIG" && \
21399 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
21400 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
21402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21403 test $ac_status = 0; }; then
21404 pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
21405 test "x$?" != "x0" && pkg_failed=yes
21412 if test -n "$GRAPHITE2_LIBS"; then
21413 pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
21414 elif test -n "$PKG_CONFIG"; then
21415 if test -n "$PKG_CONFIG" && \
21416 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
21417 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
21419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21420 test $ac_status = 0; }; then
21421 pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
21422 test "x$?" != "x0" && pkg_failed=yes
21432 if test $pkg_failed = yes; then
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21434 $as_echo "no" >&6; }
21436 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21437 _pkg_short_errors_supported=yes
21439 _pkg_short_errors_supported=no
21441 if test $_pkg_short_errors_supported = yes; then
21442 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
21444 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
21446 # Put the nasty error message in config.log where it belongs
21447 echo "$GRAPHITE2_PKG_ERRORS" >&5
21450 elif test $pkg_failed = untried; then
21451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21452 $as_echo "no" >&6; }
21455 GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
21456 GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21458 $as_echo "yes" >&6; }
21459 have_graphite2=true
21461 if test "x$have_graphite2" != "xtrue"; then
21462 # If pkg-config is not available, graphite2 can still be there
21463 ac_save_CFLAGS="$CFLAGS"
21464 ac_save_CPPFLAGS="$CPPFLAGS"
21465 CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS"
21466 CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS"
21467 ac_fn_c_check_header_mongrel "$LINENO" "graphite2/Segment.h" "ac_cv_header_graphite2_Segment_h" "$ac_includes_default"
21468 if test "x$ac_cv_header_graphite2_Segment_h" = xyes; then :
21469 have_graphite2=true
21475 CPPFLAGS="$ac_save_CPPFLAGS"
21476 CFLAGS="$ac_save_CFLAGS"
21479 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
21480 as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
21482 if $have_graphite2; then
21484 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
21487 if $have_graphite2; then
21488 HAVE_GRAPHITE2_TRUE=
21489 HAVE_GRAPHITE2_FALSE='#'
21491 HAVE_GRAPHITE2_TRUE='#'
21492 HAVE_GRAPHITE2_FALSE=
21498 # Check whether --with-freetype was given.
21499 if test "${with_freetype+set}" = set; then :
21500 withval=$with_freetype;
21505 have_freetype=false
21506 FREETYPE_DEPS="freetype2 >= 12.0.6"
21508 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
21509 # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
21513 $as_echo_n "checking for FREETYPE... " >&6; }
21515 if test -n "$FREETYPE_CFLAGS"; then
21516 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
21517 elif test -n "$PKG_CONFIG"; then
21518 if test -n "$PKG_CONFIG" && \
21519 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
21520 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
21522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21523 test $ac_status = 0; }; then
21524 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
21525 test "x$?" != "x0" && pkg_failed=yes
21532 if test -n "$FREETYPE_LIBS"; then
21533 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
21534 elif test -n "$PKG_CONFIG"; then
21535 if test -n "$PKG_CONFIG" && \
21536 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
21537 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
21539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21540 test $ac_status = 0; }; then
21541 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
21542 test "x$?" != "x0" && pkg_failed=yes
21552 if test $pkg_failed = yes; then
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21554 $as_echo "no" >&6; }
21556 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21557 _pkg_short_errors_supported=yes
21559 _pkg_short_errors_supported=no
21561 if test $_pkg_short_errors_supported = yes; then
21562 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
21564 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
21566 # Put the nasty error message in config.log where it belongs
21567 echo "$FREETYPE_PKG_ERRORS" >&5
21570 elif test $pkg_failed = untried; then
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21572 $as_echo "no" >&6; }
21575 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
21576 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21578 $as_echo "yes" >&6; }
21582 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
21583 as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
21585 if $have_freetype; then
21587 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
21590 LIBS="$LIBS $FREETYPE_LIBS"
21591 for ac_func in FT_Get_Var_Blend_Coordinates FT_Set_Var_Blend_Coordinates FT_Done_MM_Var
21593 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21594 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21595 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21596 cat >>confdefs.h <<_ACEOF
21597 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21605 if $have_freetype; then
21606 HAVE_FREETYPE_TRUE=
21607 HAVE_FREETYPE_FALSE='#'
21609 HAVE_FREETYPE_TRUE='#'
21610 HAVE_FREETYPE_FALSE=
21616 # Check whether --with-uniscribe was given.
21617 if test "${with_uniscribe+set}" = set; then :
21618 withval=$with_uniscribe;
21623 have_uniscribe=false
21624 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
21625 for ac_header in usp10.h windows.h
21627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21628 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21629 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21630 cat >>confdefs.h <<_ACEOF
21631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21633 have_uniscribe=true
21639 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
21640 as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
21642 if $have_uniscribe; then
21644 UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
21648 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
21651 if $have_uniscribe; then
21652 HAVE_UNISCRIBE_TRUE=
21653 HAVE_UNISCRIBE_FALSE='#'
21655 HAVE_UNISCRIBE_TRUE='#'
21656 HAVE_UNISCRIBE_FALSE=
21662 # Check whether --with-gdi was given.
21663 if test "${with_gdi+set}" = set; then :
21670 if test "x$with_gdi" = "xyes" -o "x$with_gdi" = "xauto"; then
21671 for ac_header in windows.h
21673 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
21674 if test "x$ac_cv_header_windows_h" = xyes; then :
21675 cat >>confdefs.h <<_ACEOF
21676 #define HAVE_WINDOWS_H 1
21684 if test "x$with_gdi" = "xyes" -a "x$have_gdi" != "xtrue"; then
21685 as_fn_error $? "gdi support requested but not found" "$LINENO" 5
21693 $as_echo "#define HAVE_GDI 1" >>confdefs.h
21707 # Check whether --with-directwrite was given.
21708 if test "${with_directwrite+set}" = set; then :
21709 withval=$with_directwrite;
21711 with_directwrite=no
21714 have_directwrite=false
21716 ac_cpp='$CXXCPP $CPPFLAGS'
21717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21721 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
21723 for ac_header in dwrite.h
21725 ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
21726 if test "x$ac_cv_header_dwrite_h" = xyes; then :
21727 cat >>confdefs.h <<_ACEOF
21728 #define HAVE_DWRITE_H 1
21730 have_directwrite=true
21737 ac_cpp='$CPP $CPPFLAGS'
21738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21742 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
21743 as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
21745 if $have_directwrite; then
21746 DIRECTWRITE_CXXFLAGS=
21751 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
21754 if $have_directwrite; then
21755 HAVE_DIRECTWRITE_TRUE=
21756 HAVE_DIRECTWRITE_FALSE='#'
21758 HAVE_DIRECTWRITE_TRUE='#'
21759 HAVE_DIRECTWRITE_FALSE=
21765 # Check whether --with-coretext was given.
21766 if test "${with_coretext+set}" = set; then :
21767 withval=$with_coretext;
21772 have_coretext=false
21773 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
21774 ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
21776 if test "x$ac_cv_type_CTFontRef" = xyes; then :
21781 if $have_coretext; then
21783 CORETEXT_LIBS="-framework ApplicationServices"
21787 # On iOS CoreText and CoreGraphics are stand-alone frameworks
21788 if test "x$have_coretext" != "xtrue"; then
21789 # Check for a different symbol to avoid getting cached result.
21790 ac_fn_c_check_type "$LINENO" "CTRunRef" "ac_cv_type_CTRunRef" "#include <CoreText/CoreText.h>
21792 if test "x$ac_cv_type_CTRunRef" = xyes; then :
21798 if $have_coretext; then
21800 CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation"
21806 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
21807 as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
21809 if $have_coretext; then
21811 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
21814 if $have_coretext; then
21815 HAVE_CORETEXT_TRUE=
21816 HAVE_CORETEXT_FALSE='#'
21818 HAVE_CORETEXT_TRUE='#'
21819 HAVE_CORETEXT_FALSE=
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
21825 $as_echo_n "checking for Intel atomic primitives... " >&6; }
21826 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
21827 $as_echo_n "(cached) " >&6
21830 hb_cv_have_intel_atomic_primitives=false
21831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21832 /* end confdefs.h. */
21834 void memory_barrier (void) { __sync_synchronize (); }
21835 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
21836 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
21837 void mutex_unlock (int *m) { __sync_lock_release (m); }
21847 if ac_fn_c_try_link "$LINENO"; then :
21848 hb_cv_have_intel_atomic_primitives=true
21851 rm -f core conftest.err conftest.$ac_objext \
21852 conftest$ac_exeext conftest.$ac_ext
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
21856 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
21857 if $hb_cv_have_intel_atomic_primitives; then
21859 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
21865 $as_echo_n "checking for Solaris atomic operations... " >&6; }
21866 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
21867 $as_echo_n "(cached) " >&6
21870 hb_cv_have_solaris_atomic_ops=false
21871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21872 /* end confdefs.h. */
21874 #include <atomic.h>
21875 /* This requires Solaris Studio 12.2 or newer: */
21876 #include <mbarrier.h>
21877 void memory_barrier (void) { __machine_rw_barrier (); }
21878 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
21879 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
21889 if ac_fn_c_try_link "$LINENO"; then :
21890 hb_cv_have_solaris_atomic_ops=true
21893 rm -f core conftest.err conftest.$ac_objext \
21894 conftest$ac_exeext conftest.$ac_ext
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
21898 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
21899 if $hb_cv_have_solaris_atomic_ops; then
21901 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
21905 if test "$os_win32" = no && ! $have_pthread; then
21906 for ac_header in sched.h
21908 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
21909 if test "x$ac_cv_header_sched_h" = xyes; then :
21910 cat >>confdefs.h <<_ACEOF
21911 #define HAVE_SCHED_H 1
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
21919 $as_echo_n "checking for library containing sched_yield... " >&6; }
21920 if ${ac_cv_search_sched_yield+:} false; then :
21921 $as_echo_n "(cached) " >&6
21923 ac_func_search_save_LIBS=$LIBS
21924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21925 /* end confdefs.h. */
21927 /* Override any GCC internal prototype to avoid an error.
21928 Use char because int might match the return type of a GCC
21929 builtin and then its argument prototype would still apply. */
21933 char sched_yield ();
21937 return sched_yield ();
21942 for ac_lib in '' rt; do
21943 if test -z "$ac_lib"; then
21944 ac_res="none required"
21947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21949 if ac_fn_c_try_link "$LINENO"; then :
21950 ac_cv_search_sched_yield=$ac_res
21952 rm -f core conftest.err conftest.$ac_objext \
21954 if ${ac_cv_search_sched_yield+:} false; then :
21958 if ${ac_cv_search_sched_yield+:} false; then :
21961 ac_cv_search_sched_yield=no
21963 rm conftest.$ac_ext
21964 LIBS=$ac_func_search_save_LIBS
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
21967 $as_echo "$ac_cv_search_sched_yield" >&6; }
21968 ac_res=$ac_cv_search_sched_yield
21969 if test "$ac_res" != no; then :
21970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21972 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
21979 ac_config_files="$ac_config_files Makefile src/Makefile src/harfbuzz-config.cmake util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shaping/Makefile test/shaping/data/Makefile test/shaping/data/aots/Makefile test/shaping/data/in-house/Makefile test/shaping/data/text-rendering-tests/Makefile test/subset/Makefile test/subset/data/Makefile docs/Makefile docs/version.xml"
21982 cat >confcache <<\_ACEOF
21983 # This file is a shell script that caches the results of configure
21984 # tests run on this system so they can be shared between configure
21985 # scripts and configure runs, see configure's option --config-cache.
21986 # It is not useful on other systems. If it contains results you don't
21987 # want to keep, you may remove or edit it.
21989 # config.status only pays attention to the cache file if you give it
21990 # the --recheck option to rerun configure.
21992 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21993 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21994 # following values.
21998 # The following way of writing the cache mishandles newlines in values,
21999 # but we know of no workaround that is simple, portable, and efficient.
22000 # So, we kill variables containing newlines.
22001 # Ultrix sh set writes to stderr and can't be redirected directly,
22002 # and sets the high bit in the cache file unless we assign to the vars.
22004 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22005 eval ac_val=\$$ac_var
22009 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22013 _ | IFS | as_nl) ;; #(
22014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22015 *) { eval $ac_var=; unset $ac_var;} ;;
22021 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22022 *${as_nl}ac_space=\ *)
22023 # `set' does not quote correctly, so add quotes: double-quote
22024 # substitution turns \\\\ into \\, and sed turns \\ into \.
22027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22030 # `set' quotes correctly as required by POSIX, so do not add quotes.
22031 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22040 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22042 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22044 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22045 if test -w "$cache_file"; then
22046 if test "x$cache_file" != "x/dev/null"; then
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22048 $as_echo "$as_me: updating cache $cache_file" >&6;}
22049 if test ! -f "$cache_file" || test -h "$cache_file"; then
22050 cat confcache >"$cache_file"
22052 case $cache_file in #(
22054 mv -f confcache "$cache_file"$$ &&
22055 mv -f "$cache_file"$$ "$cache_file" ;; #(
22057 mv -f confcache "$cache_file" ;;
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22063 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22068 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22069 # Let make expand exec_prefix.
22070 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22072 DEFS=-DHAVE_CONFIG_H
22077 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22078 # 1. Remove the extension, and $U if already installed.
22079 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22080 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22081 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22082 # will be set to the directory where LIBOBJS objects are built.
22083 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22084 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22086 LIBOBJS=$ac_libobjs
22088 LTLIBOBJS=$ac_ltlibobjs
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22092 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22093 if test -n "$am_sleep_pid"; then
22094 # Hide warnings about reused PIDs.
22095 wait $am_sleep_pid 2>/dev/null
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22098 $as_echo "done" >&6; }
22099 if test -n "$EXEEXT"; then
22101 am__EXEEXT_FALSE='#'
22103 am__EXEEXT_TRUE='#'
22107 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
22108 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
22109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22111 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22112 as_fn_error $? "conditional \"AMDEP\" was never defined.
22113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22115 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22116 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22119 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22120 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22123 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22124 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22127 if test -z "${WITH_LIBSTDCXX_TRUE}" && test -z "${WITH_LIBSTDCXX_FALSE}"; then
22128 as_fn_error $? "conditional \"WITH_LIBSTDCXX\" was never defined.
22129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22131 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
22132 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
22133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22135 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
22136 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
22137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22139 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
22140 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
22141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22143 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
22144 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
22145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22147 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
22148 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22151 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
22152 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
22153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22155 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
22156 as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
22157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22159 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
22160 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
22161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22163 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
22164 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
22165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22167 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
22168 as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
22169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22171 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
22172 as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
22173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22175 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
22176 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
22177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22179 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
22180 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
22181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22183 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
22184 as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
22185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22187 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
22188 as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
22189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22191 if test -z "${HAVE_FONTCONFIG_TRUE}" && test -z "${HAVE_FONTCONFIG_FALSE}"; then
22192 as_fn_error $? "conditional \"HAVE_FONTCONFIG\" was never defined.
22193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22195 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
22196 as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
22197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22199 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
22200 as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
22201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22203 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
22204 as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
22205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22207 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
22208 as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
22209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22211 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
22212 as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
22213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22215 if test -z "${HAVE_GDI_TRUE}" && test -z "${HAVE_GDI_FALSE}"; then
22216 as_fn_error $? "conditional \"HAVE_GDI\" was never defined.
22217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22219 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
22220 as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
22221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22223 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
22224 as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
22225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22228 : "${CONFIG_STATUS=./config.status}"
22230 ac_clean_files_save=$ac_clean_files
22231 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22233 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22235 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22237 # Generated by $as_me.
22238 # Run this file to recreate the current configuration.
22239 # Compiler output produced by configure, useful for debugging
22240 # configure, is in config.log if it exists.
22243 ac_cs_recheck=false
22246 SHELL=\${CONFIG_SHELL-$SHELL}
22249 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22250 ## -------------------- ##
22251 ## M4sh Initialization. ##
22252 ## -------------------- ##
22254 # Be more Bourne compatible
22255 DUALCASE=1; export DUALCASE # for MKS sh
22256 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22259 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22260 # is contrary to our usage. Disable this feature.
22261 alias -g '${1+"$@"}'='"$@"'
22262 setopt NO_GLOB_SUBST
22264 case `(set -o) 2>/dev/null` in #(
22276 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22277 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22278 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22279 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22280 # Prefer a ksh shell builtin over an external printf program on Solaris,
22281 # but without wasting forks for bash or zsh.
22282 if test -z "$BASH_VERSION$ZSH_VERSION" \
22283 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22284 as_echo='print -r --'
22285 as_echo_n='print -rn --'
22286 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22287 as_echo='printf %s\n'
22288 as_echo_n='printf %s'
22290 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22291 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22292 as_echo_n='/usr/ucb/echo -n'
22294 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22295 as_echo_n_body='eval
22299 expr "X$arg" : "X\\(.*\\)$as_nl";
22300 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22302 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22304 export as_echo_n_body
22305 as_echo_n='sh -c $as_echo_n_body as_echo'
22307 export as_echo_body
22308 as_echo='sh -c $as_echo_body as_echo'
22311 # The user is always right.
22312 if test "${PATH_SEPARATOR+set}" != set; then
22314 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22315 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22322 # We need space, tab and new line, in precisely that order. Quoting is
22323 # there to prevent editors from complaining about space-tab.
22324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22325 # splitting by setting IFS to empty value.)
22328 # Find who we are. Look in the path if we contain no directory separator.
22331 *[\\/]* ) as_myself=$0 ;;
22332 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22333 for as_dir in $PATH
22336 test -z "$as_dir" && as_dir=.
22337 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22343 # We did not find ourselves, most probably we were run as `sh COMMAND'
22344 # in which case we are not to be found in the path.
22345 if test "x$as_myself" = x; then
22348 if test ! -f "$as_myself"; then
22349 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22353 # Unset variables that we do not need and which cause bugs (e.g. in
22354 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22355 # suppresses any "Segmentation fault" message there. '((' could
22356 # trigger a bug in pdksh 5.2.14.
22357 for as_var in BASH_ENV ENV MAIL MAILPATH
22358 do eval test x\${$as_var+set} = xset \
22359 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22372 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22376 # ----------------------------------------
22377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22379 # script with STATUS, using 1 if that was 0.
22382 as_status=$1; test $as_status -eq 0 && as_status=1
22384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22387 $as_echo "$as_me: error: $2" >&2
22388 as_fn_exit $as_status
22392 # as_fn_set_status STATUS
22393 # -----------------------
22394 # Set $? to STATUS, without forking.
22395 as_fn_set_status ()
22398 } # as_fn_set_status
22400 # as_fn_exit STATUS
22401 # -----------------
22402 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22406 as_fn_set_status $1
22412 # Portably unset VAR.
22415 { eval $1=; unset $1;}
22417 as_unset=as_fn_unset
22418 # as_fn_append VAR VALUE
22419 # ----------------------
22420 # Append the text in VALUE to the end of the definition contained in VAR. Take
22421 # advantage of any shell optimizations that allow amortized linear growth over
22422 # repeated appends, instead of the typical quadratic growth present in naive
22424 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22425 eval 'as_fn_append ()
22436 # as_fn_arith ARG...
22437 # ------------------
22438 # Perform arithmetic evaluation on the ARGs, and store the result in the
22439 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22440 # must be portable across $(()) and expr.
22441 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22442 eval 'as_fn_arith ()
22449 as_val=`expr "$@" || test $? -eq 1`
22454 if expr a : '\(a\)' >/dev/null 2>&1 &&
22455 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22461 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22462 as_basename=basename
22467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22473 as_me=`$as_basename -- "$0" ||
22474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22475 X"$0" : 'X\(//\)$' \| \
22476 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22478 sed '/^.*\/\([^/][^/]*\)\/*$/{
22492 # Avoid depending upon Character Ranges.
22493 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22494 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22495 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22496 as_cr_digits='0123456789'
22497 as_cr_alnum=$as_cr_Letters$as_cr_digits
22499 ECHO_C= ECHO_N= ECHO_T=
22500 case `echo -n x` in #(((((
22502 case `echo 'xy\c'` in
22503 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22505 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22512 rm -f conf$$ conf$$.exe conf$$.file
22513 if test -d conf$$.dir; then
22514 rm -f conf$$.dir/conf$$.file
22517 mkdir conf$$.dir 2>/dev/null
22519 if (echo >conf$$.file) 2>/dev/null; then
22520 if ln -s conf$$.file conf$$ 2>/dev/null; then
22522 # ... but there are two gotchas:
22523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22525 # In both cases, we have to default to `cp -pR'.
22526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22528 elif ln conf$$.file conf$$ 2>/dev/null; then
22536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22537 rmdir conf$$.dir 2>/dev/null
22542 # Create "$as_dir" as a directory, including parents if necessary.
22547 -*) as_dir=./$as_dir;;
22549 test -d "$as_dir" || eval $as_mkdir_p || {
22553 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22554 *) as_qdir=$as_dir;;
22556 as_dirs="'$as_qdir' $as_dirs"
22557 as_dir=`$as_dirname -- "$as_dir" ||
22558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22559 X"$as_dir" : 'X\(//\)[^/]' \| \
22560 X"$as_dir" : 'X\(//\)$' \| \
22561 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22562 $as_echo X"$as_dir" |
22563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22567 /^X\(\/\/\)[^/].*/{
22580 test -d "$as_dir" && break
22582 test -z "$as_dirs" || eval "mkdir $as_dirs"
22583 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22587 if mkdir -p . 2>/dev/null; then
22588 as_mkdir_p='mkdir -p "$as_dir"'
22590 test -d ./-p && rmdir ./-p
22595 # as_fn_executable_p FILE
22596 # -----------------------
22597 # Test if FILE is an executable regular file.
22598 as_fn_executable_p ()
22600 test -f "$1" && test -x "$1"
22601 } # as_fn_executable_p
22602 as_test_x='test -x'
22603 as_executable_p=as_fn_executable_p
22605 # Sed expression to map a string onto a valid CPP name.
22606 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22608 # Sed expression to map a string onto a valid variable name.
22609 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22613 ## ----------------------------------- ##
22614 ## Main body of $CONFIG_STATUS script. ##
22615 ## ----------------------------------- ##
22617 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22620 # Save the log message, to keep $0 and so on meaningful, and to
22621 # report actual input values of CONFIG_FILES etc. instead of their
22622 # values after options handling.
22624 This file was extended by HarfBuzz $as_me 2.6.4, which was
22625 generated by GNU Autoconf 2.69. Invocation command line was
22627 CONFIG_FILES = $CONFIG_FILES
22628 CONFIG_HEADERS = $CONFIG_HEADERS
22629 CONFIG_LINKS = $CONFIG_LINKS
22630 CONFIG_COMMANDS = $CONFIG_COMMANDS
22633 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22638 case $ac_config_files in *"
22639 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22642 case $ac_config_headers in *"
22643 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22648 # Files that config.status was made for.
22649 config_files="$ac_config_files"
22650 config_headers="$ac_config_headers"
22651 config_commands="$ac_config_commands"
22655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22657 \`$as_me' instantiates files and other configuration actions
22658 from templates according to the current configuration. Unless the files
22659 and actions are specified as TAGs, all are instantiated by default.
22661 Usage: $0 [OPTION]... [TAG]...
22663 -h, --help print this help, then exit
22664 -V, --version print version number and configuration settings, then exit
22665 --config print configuration, then exit
22666 -q, --quiet, --silent
22667 do not print progress messages
22668 -d, --debug don't remove temporary files
22669 --recheck update $as_me by reconfiguring in the same conditions
22670 --file=FILE[:TEMPLATE]
22671 instantiate the configuration file FILE
22672 --header=FILE[:TEMPLATE]
22673 instantiate the configuration header FILE
22675 Configuration files:
22678 Configuration headers:
22681 Configuration commands:
22684 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
22685 HarfBuzz home page: <http://harfbuzz.org/>."
22688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22689 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22691 HarfBuzz config.status 2.6.4
22692 configured by $0, generated by GNU Autoconf 2.69,
22693 with options \\"\$ac_cs_config\\"
22695 Copyright (C) 2012 Free Software Foundation, Inc.
22696 This config.status script is free software; the Free Software Foundation
22697 gives unlimited permission to copy, distribute and modify it."
22704 test -n "\$AWK" || AWK=awk
22707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22708 # The default lists apply if the user does not specify any file.
22714 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22715 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22719 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22731 # Handling of the options.
22732 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22734 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22735 $as_echo "$ac_cs_version"; exit ;;
22736 --config | --confi | --conf | --con | --co | --c )
22737 $as_echo "$ac_cs_config"; exit ;;
22738 --debug | --debu | --deb | --de | --d | -d )
22740 --file | --fil | --fi | --f )
22743 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22744 '') as_fn_error $? "missing file argument" ;;
22746 as_fn_append CONFIG_FILES " '$ac_optarg'"
22747 ac_need_defaults=false;;
22748 --header | --heade | --head | --hea )
22751 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22753 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22754 ac_need_defaults=false;;
22756 # Conflict between --help and --header
22757 as_fn_error $? "ambiguous option: \`$1'
22758 Try \`$0 --help' for more information.";;
22759 --help | --hel | -h )
22760 $as_echo "$ac_cs_usage"; exit ;;
22761 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22762 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22765 # This is an error.
22766 -*) as_fn_error $? "unrecognized option: \`$1'
22767 Try \`$0 --help' for more information." ;;
22769 *) as_fn_append ac_config_targets " $1"
22770 ac_need_defaults=false ;;
22776 ac_configure_extra_args=
22778 if $ac_cs_silent; then
22780 ac_configure_extra_args="$ac_configure_extra_args --silent"
22784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22785 if \$ac_cs_recheck; then
22786 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22788 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22789 CONFIG_SHELL='$SHELL'
22790 export CONFIG_SHELL
22795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22800 ## Running $as_me. ##
22806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22810 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22813 # The HP-UX ksh and POSIX shell print the target directory to stdout
22814 # if CDPATH is set.
22815 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22817 sed_quote_subst='$sed_quote_subst'
22818 double_quote_subst='$double_quote_subst'
22819 delay_variable_subst='$delay_variable_subst'
22820 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22821 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22822 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22823 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22824 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22825 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22826 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22827 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22828 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22829 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22830 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22831 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22832 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22833 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22834 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22835 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22836 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22837 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22838 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22839 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22840 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22841 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22842 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22843 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22844 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22845 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22846 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22847 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22848 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22849 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22850 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22851 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22852 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22853 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22854 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22855 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22856 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22857 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22858 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22859 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22860 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22861 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22862 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22863 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22864 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22865 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22866 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22867 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22868 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22869 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22870 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22871 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22872 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22873 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22874 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22875 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22876 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22877 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22878 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"`'
22879 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22880 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22881 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22882 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22883 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22884 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22885 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22886 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22887 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22888 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22889 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22890 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22891 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22892 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22893 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22894 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22895 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22896 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22897 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22898 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22899 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22900 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22901 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22902 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22903 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22904 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22905 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22906 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22907 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22908 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22909 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22910 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22911 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22912 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22913 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22914 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22915 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22916 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22917 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22918 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22919 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22920 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22921 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22922 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22923 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22924 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22925 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22926 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22927 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22928 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22929 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22930 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22931 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22932 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22933 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22934 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22935 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22936 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22937 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22938 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22939 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22940 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22941 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22942 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22943 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22944 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22945 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22946 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22947 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22948 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22949 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22950 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22951 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22952 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22953 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22954 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22955 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22956 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22957 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22958 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22959 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22960 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22961 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22962 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22963 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22964 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22965 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22966 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22967 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22968 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22969 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22970 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22971 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22972 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22973 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22974 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22975 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22976 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22977 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22978 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22979 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22980 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22981 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22982 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22983 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22984 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22985 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22986 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22987 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22988 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22989 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22990 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22991 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22992 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22993 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22994 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22995 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22996 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22997 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22998 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22999 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23000 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23001 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23002 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23003 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23004 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23005 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23006 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23007 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23008 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23011 LTCFLAGS='$LTCFLAGS'
23012 compiler='$compiler_DEFAULT'
23014 # A function that is used when there is no print builtin or printf.
23015 func_fallback_echo ()
23017 eval 'cat <<_LTECHO_EOF
23022 # Quote evaled strings.
23037 deplibs_check_method \
23042 sharedlib_from_linklib_cmd \
23045 archiver_list_spec \
23051 lt_cv_sys_global_symbol_pipe \
23052 lt_cv_sys_global_symbol_to_cdecl \
23053 lt_cv_sys_global_symbol_to_import \
23054 lt_cv_sys_global_symbol_to_c_name_address \
23055 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23056 lt_cv_nm_interface \
23057 nm_file_list_spec \
23058 lt_cv_truncate_bin \
23059 lt_prog_compiler_no_builtin_flag \
23060 lt_prog_compiler_pic \
23061 lt_prog_compiler_wl \
23062 lt_prog_compiler_static \
23063 lt_cv_prog_compiler_c_o \
23072 export_dynamic_flag_spec \
23073 whole_archive_flag_spec \
23074 compiler_needs_object \
23076 allow_undefined_flag \
23077 no_undefined_flag \
23078 hardcode_libdir_flag_spec \
23079 hardcode_libdir_separator \
23083 variables_saved_for_relink \
23085 library_names_spec \
23087 install_override_mode \
23091 compiler_lib_search_dirs \
23096 compiler_lib_search_path \
23100 lt_prog_compiler_no_builtin_flag_CXX \
23101 lt_prog_compiler_pic_CXX \
23102 lt_prog_compiler_wl_CXX \
23103 lt_prog_compiler_static_CXX \
23104 lt_cv_prog_compiler_c_o_CXX \
23105 export_dynamic_flag_spec_CXX \
23106 whole_archive_flag_spec_CXX \
23107 compiler_needs_object_CXX \
23109 allow_undefined_flag_CXX \
23110 no_undefined_flag_CXX \
23111 hardcode_libdir_flag_spec_CXX \
23112 hardcode_libdir_separator_CXX \
23113 exclude_expsyms_CXX \
23114 include_expsyms_CXX \
23115 file_list_spec_CXX \
23116 compiler_lib_search_dirs_CXX \
23117 predep_objects_CXX \
23118 postdep_objects_CXX \
23121 compiler_lib_search_path_CXX; do
23122 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23123 *[\\\\\\\`\\"\\\$]*)
23124 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23127 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23132 # Double-quote double-evaled strings.
23133 for var in reload_cmds \
23134 old_postinstall_cmds \
23135 old_postuninstall_cmds \
23137 extract_expsyms_cmds \
23138 old_archive_from_new_cmds \
23139 old_archive_from_expsyms_cmds \
23141 archive_expsym_cmds \
23143 module_expsym_cmds \
23144 export_symbols_cmds \
23148 postuninstall_cmds \
23150 sys_lib_search_path_spec \
23151 configure_time_dlsearch_path \
23152 configure_time_lt_sys_library_path \
23154 old_archive_cmds_CXX \
23155 old_archive_from_new_cmds_CXX \
23156 old_archive_from_expsyms_cmds_CXX \
23158 archive_expsym_cmds_CXX \
23160 module_expsym_cmds_CXX \
23161 export_symbols_cmds_CXX \
23163 postlink_cmds_CXX; do
23164 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23165 *[\\\\\\\`\\"\\\$]*)
23166 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23169 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23174 ac_aux_dir='$ac_aux_dir'
23176 # See if we are running on zsh, and set the options that allow our
23177 # commands through without removal of \ escapes INIT.
23178 if test -n "\${ZSH_VERSION+set}"; then
23179 setopt NO_GLOB_SUBST
23195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23197 # Handling of arguments.
23198 for ac_config_target in $ac_config_targets
23200 case $ac_config_target in
23201 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23202 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23203 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23204 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23205 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23206 "src/harfbuzz-config.cmake") CONFIG_FILES="$CONFIG_FILES src/harfbuzz-config.cmake" ;;
23207 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
23208 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23209 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
23210 "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
23211 "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
23212 "test/shaping/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/Makefile" ;;
23213 "test/shaping/data/aots/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/aots/Makefile" ;;
23214 "test/shaping/data/in-house/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/in-house/Makefile" ;;
23215 "test/shaping/data/text-rendering-tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/text-rendering-tests/Makefile" ;;
23216 "test/subset/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/Makefile" ;;
23217 "test/subset/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/Makefile" ;;
23218 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
23219 "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
23221 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23226 # If the user did not use the arguments to specify the items to instantiate,
23227 # then the envvar interface is used. Set only those that are not.
23228 # We use the long form for the default assignment because of an extremely
23229 # bizarre bug on SunOS 4.1.3.
23230 if $ac_need_defaults; then
23231 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23232 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23233 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23236 # Have a temporary directory for convenience. Make it in the build tree
23237 # simply because there is no reason against having it here, and in addition,
23238 # creating and moving files from /tmp can sometimes cause problems.
23239 # Hook for its removal unless debugging.
23240 # Note that there is a small window in which the directory will not be cleaned:
23241 # after its creation but before its name has been assigned to `$tmp'.
23245 trap 'exit_status=$?
23246 : "${ac_tmp:=$tmp}"
23247 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23249 trap 'as_fn_exit 1' 1 2 13 15
23251 # Create a (secure) tmp directory for tmp files.
23254 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23258 tmp=./conf$$-$RANDOM
23259 (umask 077 && mkdir "$tmp")
23260 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23263 # Set up the scripts for CONFIG_FILES section.
23264 # No need to generate them if there are no CONFIG_FILES.
23265 # This happens for instance with `./config.status config.h'.
23266 if test -n "$CONFIG_FILES"; then
23269 ac_cr=`echo X | tr X '\015'`
23270 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23271 # But we know of no other shell where ac_cr would be empty at this
23272 # point, so we can use a bashism as a fallback.
23273 if test "x$ac_cr" = x; then
23274 eval ac_cr=\$\'\\r\'
23276 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23277 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23280 ac_cs_awk_cr=$ac_cr
23283 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23288 echo "cat >conf$$subs.awk <<_ACEOF" &&
23289 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23291 } >conf$$subs.sh ||
23292 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23293 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23295 for ac_last_try in false false false false false :; do
23296 . ./conf$$subs.sh ||
23297 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23299 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23300 if test $ac_delim_n = $ac_delim_num; then
23302 elif $ac_last_try; then
23303 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23305 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23308 rm -f conf$$subs.sh
23310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23311 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23315 s/^/S["/; s/!.*/"]=/
23325 s/\(.\{148\}\)..*/\1/
23327 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23332 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23339 s/\(.\{148\}\)..*/\1/
23341 s/["\\]/\\&/g; s/^/"/; s/$/"/
23345 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23350 ' <conf$$subs.awk | sed '
23355 ' >>$CONFIG_STATUS || ac_write_fail=1
23356 rm -f conf$$subs.awk
23357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23359 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23360 for (key in S) S_is_set[key] = 1
23366 nfields = split(line, field, "@")
23368 len = length(field[1])
23369 for (i = 2; i < nfields; i++) {
23371 keylen = length(key)
23372 if (S_is_set[key]) {
23374 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23375 len += length(value) + length(field[++i])
23386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23387 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23388 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23391 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23392 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23395 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23396 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23397 # trailing colons and then remove the whole line if VPATH becomes empty
23398 # (actually we leave an empty line to preserve line numbers).
23399 if test "x$srcdir" = x.; then
23400 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23419 fi # test -n "$CONFIG_FILES"
23421 # Set up the scripts for CONFIG_HEADERS section.
23422 # No need to generate them if there are no CONFIG_HEADERS.
23423 # This happens for instance with `./config.status Makefile'.
23424 if test -n "$CONFIG_HEADERS"; then
23425 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23429 # Transform confdefs.h into an awk script `defines.awk', embedded as
23430 # here-document in config.status, that substitutes the proper values into
23431 # config.h.in to produce config.h.
23433 # Create a delimiter string that does not exist in confdefs.h, to ease
23434 # handling of long lines.
23436 for ac_last_try in false false :; do
23437 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23438 if test -z "$ac_tt"; then
23440 elif $ac_last_try; then
23441 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23443 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23447 # For the awk script, D is an array of macro values keyed by name,
23448 # likewise P contains macro parameters if any. Preserve backslash
23449 # newline sequences.
23451 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23453 s/.\{148\}/&'"$ac_delim"'/g
23456 s/^[ ]*#[ ]*define[ ][ ]*/ /
23463 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23465 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23469 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23470 D["\1"]=" \3\\\\\\n"\\/p
23472 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23477 s/.\{148\}/&'"$ac_delim"'/g
23482 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23485 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23487 ' <confdefs.h | sed '
23488 s/'"$ac_delim"'/"\\\
23489 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23492 for (key in D) D_is_set[key] = 1
23495 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23497 split(line, arg, " ")
23498 if (arg[1] == "#") {
23502 defundef = substr(arg[1], 2)
23505 split(mac1, mac2, "(") #)
23507 prefix = substr(line, 1, index(line, defundef) - 1)
23508 if (D_is_set[macro]) {
23509 # Preserve the white space surrounding the "#".
23510 print prefix "define", macro P[macro] D[macro]
23513 # Replace #undef with comments. This is necessary, for example,
23514 # in the case of _POSIX_SOURCE, which is predefined and required
23515 # on some systems where configure will not decide to define it.
23516 if (defundef == "undef") {
23517 print "/*", prefix defundef, macro, "*/"
23525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23526 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23527 fi # test -n "$CONFIG_HEADERS"
23530 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23535 :[FHLC]) ac_mode=$ac_tag; continue;;
23537 case $ac_mode$ac_tag in
23539 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23540 :[FH]-) ac_tag=-:-;;
23541 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23558 -) ac_f="$ac_tmp/stdin";;
23559 *) # Look for the file first in the build tree, then in the source tree
23560 # (if the path is not absolute). The absolute path cannot be DOS-style,
23561 # because $ac_f cannot contain `:'.
23565 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23567 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23569 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23570 as_fn_append ac_file_inputs " '$ac_f'"
23573 # Let's still pretend it is `configure' which instantiates (i.e., don't
23574 # use $as_me), people would be surprised to read:
23575 # /* config.h. Generated by config.status. */
23576 configure_input='Generated from '`
23577 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23579 if test x"$ac_file" != x-; then
23580 configure_input="$ac_file. $configure_input"
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23582 $as_echo "$as_me: creating $ac_file" >&6;}
23584 # Neutralize special characters interpreted by sed in replacement strings.
23585 case $configure_input in #(
23586 *\&* | *\|* | *\\* )
23587 ac_sed_conf_input=`$as_echo "$configure_input" |
23588 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23589 *) ac_sed_conf_input=$configure_input;;
23593 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23594 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23599 ac_dir=`$as_dirname -- "$ac_file" ||
23600 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23601 X"$ac_file" : 'X\(//\)[^/]' \| \
23602 X"$ac_file" : 'X\(//\)$' \| \
23603 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23604 $as_echo X"$ac_file" |
23605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23609 /^X\(\/\/\)[^/].*/{
23622 as_dir="$ac_dir"; as_fn_mkdir_p
23626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23628 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23629 # A ".." for each directory in $ac_dir_suffix.
23630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23631 case $ac_top_builddir_sub in
23632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23636 ac_abs_top_builddir=$ac_pwd
23637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23638 # for backward compatibility:
23639 ac_top_builddir=$ac_top_build_prefix
23642 .) # We are building in place.
23644 ac_top_srcdir=$ac_top_builddir_sub
23645 ac_abs_top_srcdir=$ac_pwd ;;
23646 [\\/]* | ?:[\\/]* ) # Absolute name.
23647 ac_srcdir=$srcdir$ac_dir_suffix;
23648 ac_top_srcdir=$srcdir
23649 ac_abs_top_srcdir=$srcdir ;;
23650 *) # Relative name.
23651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23652 ac_top_srcdir=$ac_top_build_prefix$srcdir
23653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23665 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23666 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23668 ac_MKDIR_P=$MKDIR_P
23670 [\\/$]* | ?:[\\/]* ) ;;
23671 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23676 # If the template does not know about datarootdir, expand it.
23677 # FIXME: This hack should be removed a few years after 2.60.
23678 ac_datarootdir_hack=; ac_datarootdir_seen=
23689 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23690 *datarootdir*) ac_datarootdir_seen=yes;;
23691 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23693 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23696 ac_datarootdir_hack='
23697 s&@datadir@&$datadir&g
23698 s&@docdir@&$docdir&g
23699 s&@infodir@&$infodir&g
23700 s&@localedir@&$localedir&g
23701 s&@mandir@&$mandir&g
23702 s&\\\${datarootdir}&$datarootdir&g' ;;
23706 # Neutralize VPATH when `$srcdir' = `.'.
23707 # Shell code in configure.ac might set extrasub.
23708 # FIXME: do we really want to maintain this feature?
23709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23710 ac_sed_extra="$ac_vpsub
23713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23715 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23716 s|@configure_input@|$ac_sed_conf_input|;t t
23717 s&@top_builddir@&$ac_top_builddir_sub&;t t
23718 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23719 s&@srcdir@&$ac_srcdir&;t t
23720 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23721 s&@top_srcdir@&$ac_top_srcdir&;t t
23722 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23723 s&@builddir@&$ac_builddir&;t t
23724 s&@abs_builddir@&$ac_abs_builddir&;t t
23725 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23726 s&@INSTALL@&$ac_INSTALL&;t t
23727 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23728 $ac_datarootdir_hack
23730 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23731 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23733 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23734 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23735 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23736 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23738 which seems to be undefined. Please make sure it is defined" >&5
23739 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23740 which seems to be undefined. Please make sure it is defined" >&2;}
23742 rm -f "$ac_tmp/stdin"
23744 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23745 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23753 if test x"$ac_file" != x-; then
23755 $as_echo "/* $configure_input */" \
23756 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23757 } >"$ac_tmp/config.h" \
23758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23759 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23761 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23764 mv "$ac_tmp/config.h" "$ac_file" \
23765 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23768 $as_echo "/* $configure_input */" \
23769 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23770 || as_fn_error $? "could not create -" "$LINENO" 5
23772 # Compute "$ac_file"'s index in $config_headers.
23775 for _am_header in $config_headers :; do
23776 case $_am_header in
23777 $_am_arg | $_am_arg:* )
23780 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23783 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23784 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23785 X"$_am_arg" : 'X\(//\)[^/]' \| \
23786 X"$_am_arg" : 'X\(//\)$' \| \
23787 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23788 $as_echo X"$_am_arg" |
23789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23793 /^X\(\/\/\)[^/].*/{
23805 s/.*/./; q'`/stamp-h$_am_stamp_count
23808 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23809 $as_echo "$as_me: executing $ac_file commands" >&6;}
23814 case $ac_file$ac_mode in
23815 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23816 # Older Autoconf quotes --file arguments for eval, but not when files
23817 # are listed without --file. Let's play safe and only enable the eval
23818 # if we detect the quoting.
23819 # TODO: see whether this extra hack can be removed once we start
23820 # requiring Autoconf 2.70 or later.
23821 case $CONFIG_FILES in #(
23823 eval set x "$CONFIG_FILES" ;; #(
23825 set x $CONFIG_FILES ;; #(
23830 # Used to flag and report bootstrapping failures.
23834 # Strip MF so we end up with the name of the file.
23835 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
23836 # Check whether this is an Automake generated Makefile which includes
23837 # dependency-tracking related rules and includes.
23838 # Grep'ing the whole file directly is not great: AIX grep has a line
23839 # limit of 2048, but all sed's we know have understand at least 4000.
23840 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23842 am_dirpart=`$as_dirname -- "$am_mf" ||
23843 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23844 X"$am_mf" : 'X\(//\)[^/]' \| \
23845 X"$am_mf" : 'X\(//\)$' \| \
23846 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23847 $as_echo X"$am_mf" |
23848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23852 /^X\(\/\/\)[^/].*/{
23865 am_filepart=`$as_basename -- "$am_mf" ||
23866 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23867 X"$am_mf" : 'X\(//\)$' \| \
23868 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23869 $as_echo X/"$am_mf" |
23870 sed '/^.*\/\([^/][^/]*\)\/*$/{
23883 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23884 && sed -e '/# am--include-marker/d' "$am_filepart" \
23885 | $MAKE -f - am--depfiles" >&5
23886 (cd "$am_dirpart" \
23887 && sed -e '/# am--include-marker/d' "$am_filepart" \
23888 | $MAKE -f - am--depfiles) >&5 2>&5
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); } || am_rc=$?
23893 if test $am_rc -ne 0; then
23894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23896 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23897 for automatic dependency tracking. Try re-running configure with the
23898 '--disable-dependency-tracking' option to at least be able to build
23899 the package (albeit without support for automatic dependency tracking).
23900 See \`config.log' for more details" "$LINENO" 5; }
23902 { am_dirpart=; unset am_dirpart;}
23903 { am_filepart=; unset am_filepart;}
23904 { am_mf=; unset am_mf;}
23905 { am_rc=; unset am_rc;}
23906 rm -f conftest-deps.mk
23911 # See if we are running on zsh, and set the options that allow our
23912 # commands through without removal of \ escapes.
23913 if test -n "${ZSH_VERSION+set}"; then
23914 setopt NO_GLOB_SUBST
23918 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23921 cat <<_LT_EOF >> "$cfgfile"
23923 # Generated automatically by $as_me ($PACKAGE) $VERSION
23924 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23925 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23927 # Provide generalized library-building support services.
23928 # Written by Gordon Matzigkeit, 1996
23930 # Copyright (C) 2014 Free Software Foundation, Inc.
23931 # This is free software; see the source for copying conditions. There is NO
23932 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23934 # GNU Libtool is free software; you can redistribute it and/or modify
23935 # it under the terms of the GNU General Public License as published by
23936 # the Free Software Foundation; either version 2 of of the License, or
23937 # (at your option) any later version.
23939 # As a special exception to the GNU General Public License, if you
23940 # distribute this file as part of a program or library that is built
23941 # using GNU Libtool, you may include this file under the same
23942 # distribution terms that you use for the rest of that program.
23944 # GNU Libtool is distributed in the hope that it will be useful, but
23945 # WITHOUT ANY WARRANTY; without even the implied warranty of
23946 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23947 # GNU General Public License for more details.
23949 # You should have received a copy of the GNU General Public License
23950 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23953 # The names of the tagged configurations supported by this script.
23954 available_tags='CXX '
23956 # Configured defaults for sys_lib_dlsearch_path munging.
23957 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23959 # ### BEGIN LIBTOOL CONFIG
23961 # Which release of libtool.m4 was used?
23962 macro_version=$macro_version
23963 macro_revision=$macro_revision
23965 # Whether or not to build static libraries.
23966 build_old_libs=$enable_static
23968 # Whether or not to build shared libraries.
23969 build_libtool_libs=$enable_shared
23971 # What type of objects to build.
23974 # Whether or not to optimize for fast installation.
23975 fast_install=$enable_fast_install
23977 # Shared archive member basename,for filename based shared library versioning on AIX.
23978 shared_archive_member_spec=$shared_archive_member_spec
23980 # Shell to use when invoking shell scripts.
23983 # An echo program that protects backslashes.
23986 # The PATH separator for the build system.
23987 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23990 host_alias=$host_alias
23994 # The build system.
23995 build_alias=$build_alias
23999 # A sed program that does not truncate output.
24002 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24003 Xsed="\$SED -e 1s/^X//"
24005 # A grep program that handles long lines.
24011 # A literal string matcher.
24014 # A BSD- or MS-compatible name lister.
24017 # Whether we need soft or hard links.
24020 # What is the maximum length of a command?
24021 max_cmd_len=$max_cmd_len
24023 # Object file suffix (normally "o").
24026 # Executable file suffix (normally "").
24029 # whether the shell understands "unset".
24032 # turn spaces into newlines.
24035 # turn newlines into spaces.
24038 # convert \$build file names to \$host format.
24039 to_host_file_cmd=$lt_cv_to_host_file_cmd
24041 # convert \$build files to toolchain format.
24042 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24044 # An object symbol dumper.
24045 OBJDUMP=$lt_OBJDUMP
24047 # Method to check whether dependent libraries are shared objects.
24048 deplibs_check_method=$lt_deplibs_check_method
24050 # Command to use when deplibs_check_method = "file_magic".
24051 file_magic_cmd=$lt_file_magic_cmd
24053 # How to find potential files when deplibs_check_method = "file_magic".
24054 file_magic_glob=$lt_file_magic_glob
24056 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24057 want_nocaseglob=$lt_want_nocaseglob
24059 # DLL creation program.
24060 DLLTOOL=$lt_DLLTOOL
24062 # Command to associate shared and link libraries.
24063 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24068 # Flags to create an archive.
24069 AR_FLAGS=$lt_AR_FLAGS
24071 # How to feed a file listing to the archiver.
24072 archiver_list_spec=$lt_archiver_list_spec
24074 # A symbol stripping program.
24077 # Commands used to install an old-style archive.
24079 old_postinstall_cmds=$lt_old_postinstall_cmds
24080 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24082 # Whether to use a lock for old archive extraction.
24083 lock_old_archive_extraction=$lock_old_archive_extraction
24088 # LTCC compiler flags.
24089 LTCFLAGS=$lt_CFLAGS
24091 # Take the output of nm and produce a listing of raw symbols and C names.
24092 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24094 # Transform the output of nm in a proper C declaration.
24095 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24097 # Transform the output of nm into a list of symbols to manually relocate.
24098 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24100 # Transform the output of nm in a C name address pair.
24101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24103 # Transform the output of nm in a C name address pair when lib prefix is needed.
24104 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24106 # The name lister interface.
24107 nm_interface=$lt_lt_cv_nm_interface
24109 # Specify filename containing input files for \$NM.
24110 nm_file_list_spec=$lt_nm_file_list_spec
24112 # The root where to search for dependent libraries,and where our libraries should be installed.
24113 lt_sysroot=$lt_sysroot
24115 # Command to truncate a binary pipe.
24116 lt_truncate_bin=$lt_lt_cv_truncate_bin
24118 # The name of the directory that contains temporary libtool files.
24121 # Used to examine libraries when file_magic_cmd begins with "file".
24122 MAGIC_CMD=$MAGIC_CMD
24124 # Must we lock files when doing compilation?
24125 need_locks=$lt_need_locks
24128 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24130 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24131 DSYMUTIL=$lt_DSYMUTIL
24133 # Tool to change global to local symbols on Mac OS X.
24136 # Tool to manipulate fat objects and archives on Mac OS X.
24139 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24142 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24143 OTOOL64=$lt_OTOOL64
24145 # Old archive suffix (normally "a").
24148 # Shared library suffix (normally ".so").
24149 shrext_cmds=$lt_shrext_cmds
24151 # The commands to extract the exported symbol list from a shared archive.
24152 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24154 # Variables whose values should be saved in libtool wrapper scripts and
24155 # restored at link time.
24156 variables_saved_for_relink=$lt_variables_saved_for_relink
24158 # Do we need the "lib" prefix for modules?
24159 need_lib_prefix=$need_lib_prefix
24161 # Do we need a version for libraries?
24162 need_version=$need_version
24164 # Library versioning type.
24165 version_type=$version_type
24167 # Shared library runtime path variable.
24168 runpath_var=$runpath_var
24170 # Shared library path variable.
24171 shlibpath_var=$shlibpath_var
24173 # Is shlibpath searched before the hard-coded library search path?
24174 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24176 # Format of library name prefix.
24177 libname_spec=$lt_libname_spec
24179 # List of archive names. First name is the real one, the rest are links.
24180 # The last name is the one that the linker finds with -lNAME
24181 library_names_spec=$lt_library_names_spec
24183 # The coded name of the library, if different from the real name.
24184 soname_spec=$lt_soname_spec
24186 # Permission mode override for installation of shared libraries.
24187 install_override_mode=$lt_install_override_mode
24189 # Command to use after installation of a shared archive.
24190 postinstall_cmds=$lt_postinstall_cmds
24192 # Command to use after uninstallation of a shared archive.
24193 postuninstall_cmds=$lt_postuninstall_cmds
24195 # Commands used to finish a libtool library installation in a directory.
24196 finish_cmds=$lt_finish_cmds
24198 # As "finish_cmds", except a single script fragment to be evaled but
24200 finish_eval=$lt_finish_eval
24202 # Whether we should hardcode library paths into libraries.
24203 hardcode_into_libs=$hardcode_into_libs
24205 # Compile-time system search path for libraries.
24206 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24208 # Detected run-time system search path for libraries.
24209 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24211 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24212 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24214 # Whether dlopen is supported.
24215 dlopen_support=$enable_dlopen
24217 # Whether dlopen of programs is supported.
24218 dlopen_self=$enable_dlopen_self
24220 # Whether dlopen of statically linked programs is supported.
24221 dlopen_self_static=$enable_dlopen_self_static
24223 # Commands to strip libraries.
24224 old_striplib=$lt_old_striplib
24225 striplib=$lt_striplib
24228 # The linker used to build libraries.
24231 # How to create reloadable object files.
24232 reload_flag=$lt_reload_flag
24233 reload_cmds=$lt_reload_cmds
24235 # Commands used to build an old-style archive.
24236 old_archive_cmds=$lt_old_archive_cmds
24238 # A language specific compiler.
24241 # Is the compiler the GNU compiler?
24244 # Compiler flag to turn off builtin functions.
24245 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24247 # Additional compiler flags for building library objects.
24248 pic_flag=$lt_lt_prog_compiler_pic
24250 # How to pass a linker flag through the compiler.
24251 wl=$lt_lt_prog_compiler_wl
24253 # Compiler flag to prevent dynamic linking.
24254 link_static_flag=$lt_lt_prog_compiler_static
24256 # Does compiler simultaneously support -c and -o options?
24257 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24259 # Whether or not to add -lc for building shared libraries.
24260 build_libtool_need_lc=$archive_cmds_need_lc
24262 # Whether or not to disallow shared libs when runtime libs are static.
24263 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24265 # Compiler flag to allow reflexive dlopens.
24266 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24268 # Compiler flag to generate shared objects directly from archives.
24269 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24271 # Whether the compiler copes with passing no objects directly.
24272 compiler_needs_object=$lt_compiler_needs_object
24274 # Create an old-style archive from a shared archive.
24275 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24277 # Create a temporary old-style archive to link instead of a shared archive.
24278 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24280 # Commands used to build a shared archive.
24281 archive_cmds=$lt_archive_cmds
24282 archive_expsym_cmds=$lt_archive_expsym_cmds
24284 # Commands used to build a loadable module if different from building
24285 # a shared archive.
24286 module_cmds=$lt_module_cmds
24287 module_expsym_cmds=$lt_module_expsym_cmds
24289 # Whether we are building with GNU ld or not.
24290 with_gnu_ld=$lt_with_gnu_ld
24292 # Flag that allows shared libraries with undefined symbols to be built.
24293 allow_undefined_flag=$lt_allow_undefined_flag
24295 # Flag that enforces no undefined symbols.
24296 no_undefined_flag=$lt_no_undefined_flag
24298 # Flag to hardcode \$libdir into a binary during linking.
24299 # This must work even if \$libdir does not exist
24300 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24302 # Whether we need a single "-rpath" flag with a separated argument.
24303 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24305 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24306 # DIR into the resulting binary.
24307 hardcode_direct=$hardcode_direct
24309 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24310 # DIR into the resulting binary and the resulting library dependency is
24311 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24312 # library is relocated.
24313 hardcode_direct_absolute=$hardcode_direct_absolute
24315 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24316 # into the resulting binary.
24317 hardcode_minus_L=$hardcode_minus_L
24319 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24320 # into the resulting binary.
24321 hardcode_shlibpath_var=$hardcode_shlibpath_var
24323 # Set to "yes" if building a shared library automatically hardcodes DIR
24324 # into the library and all subsequent libraries and executables linked
24326 hardcode_automatic=$hardcode_automatic
24328 # Set to yes if linker adds runtime paths of dependent libraries
24329 # to runtime path list.
24330 inherit_rpath=$inherit_rpath
24332 # Whether libtool must link a program against all its dependency libraries.
24333 link_all_deplibs=$link_all_deplibs
24335 # Set to "yes" if exported symbols are required.
24336 always_export_symbols=$always_export_symbols
24338 # The commands to list exported symbols.
24339 export_symbols_cmds=$lt_export_symbols_cmds
24341 # Symbols that should not be listed in the preloaded symbols.
24342 exclude_expsyms=$lt_exclude_expsyms
24344 # Symbols that must always be exported.
24345 include_expsyms=$lt_include_expsyms
24347 # Commands necessary for linking programs (against libraries) with templates.
24348 prelink_cmds=$lt_prelink_cmds
24350 # Commands necessary for finishing linking programs.
24351 postlink_cmds=$lt_postlink_cmds
24353 # Specify filename containing input files.
24354 file_list_spec=$lt_file_list_spec
24356 # How to hardcode a shared library path into an executable.
24357 hardcode_action=$hardcode_action
24359 # The directories searched by this compiler when creating a shared library.
24360 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24362 # Dependencies to place before and after the objects being linked to
24363 # create a shared library.
24364 predep_objects=$lt_predep_objects
24365 postdep_objects=$lt_postdep_objects
24366 predeps=$lt_predeps
24367 postdeps=$lt_postdeps
24369 # The library search path used internally by the compiler when linking
24370 # a shared library.
24371 compiler_lib_search_path=$lt_compiler_lib_search_path
24373 # ### END LIBTOOL CONFIG
24377 cat <<'_LT_EOF' >> "$cfgfile"
24379 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24381 # func_munge_path_list VARIABLE PATH
24382 # -----------------------------------
24383 # VARIABLE is name of variable containing _space_ separated list of
24384 # directories to be munged by the contents of PATH, which is string
24387 # string "DIR[ DIR]" will be prepended to VARIABLE
24389 # string "DIR[ DIR]" will be appended to VARIABLE
24390 # "DIRP[:DIRP]::[DIRA:]DIRA"
24391 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24392 # "DIRA[ DIRA]" will be appended to VARIABLE
24394 # VARIABLE will be replaced by "DIR[ DIR]"
24395 func_munge_path_list ()
24401 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24404 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24407 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24408 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24411 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24417 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24418 func_cc_basename ()
24420 for cc_temp in $*""; do
24422 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24423 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24428 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24432 # ### END FUNCTIONS SHARED WITH CONFIGURE
24438 cat <<\_LT_EOF >> "$cfgfile"
24439 # AIX sometimes has problems with the GCC collect2 program. For some
24440 # reason, if we set the COLLECT_NAMES environment variable, the problems
24441 # vanish in a puff of smoke.
24442 if test set != "${COLLECT_NAMES+set}"; then
24444 export COLLECT_NAMES
24451 ltmain=$ac_aux_dir/ltmain.sh
24454 # We use sed instead of cat because bash on DJGPP gets confused if
24455 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24456 # text mode, it properly converts lines to CR/LF. This bash problem
24457 # is reportedly fixed, but why not run on old versions too?
24458 sed '$q' "$ltmain" >> "$cfgfile" \
24459 || (rm -f "$cfgfile"; exit 1)
24461 mv -f "$cfgfile" "$ofile" ||
24462 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24466 cat <<_LT_EOF >> "$ofile"
24468 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24470 # The linker used to build libraries.
24473 # How to create reloadable object files.
24474 reload_flag=$lt_reload_flag_CXX
24475 reload_cmds=$lt_reload_cmds_CXX
24477 # Commands used to build an old-style archive.
24478 old_archive_cmds=$lt_old_archive_cmds_CXX
24480 # A language specific compiler.
24481 CC=$lt_compiler_CXX
24483 # Is the compiler the GNU compiler?
24486 # Compiler flag to turn off builtin functions.
24487 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24489 # Additional compiler flags for building library objects.
24490 pic_flag=$lt_lt_prog_compiler_pic_CXX
24492 # How to pass a linker flag through the compiler.
24493 wl=$lt_lt_prog_compiler_wl_CXX
24495 # Compiler flag to prevent dynamic linking.
24496 link_static_flag=$lt_lt_prog_compiler_static_CXX
24498 # Does compiler simultaneously support -c and -o options?
24499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24501 # Whether or not to add -lc for building shared libraries.
24502 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24504 # Whether or not to disallow shared libs when runtime libs are static.
24505 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24507 # Compiler flag to allow reflexive dlopens.
24508 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24510 # Compiler flag to generate shared objects directly from archives.
24511 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24513 # Whether the compiler copes with passing no objects directly.
24514 compiler_needs_object=$lt_compiler_needs_object_CXX
24516 # Create an old-style archive from a shared archive.
24517 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24519 # Create a temporary old-style archive to link instead of a shared archive.
24520 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24522 # Commands used to build a shared archive.
24523 archive_cmds=$lt_archive_cmds_CXX
24524 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24526 # Commands used to build a loadable module if different from building
24527 # a shared archive.
24528 module_cmds=$lt_module_cmds_CXX
24529 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24531 # Whether we are building with GNU ld or not.
24532 with_gnu_ld=$lt_with_gnu_ld_CXX
24534 # Flag that allows shared libraries with undefined symbols to be built.
24535 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24537 # Flag that enforces no undefined symbols.
24538 no_undefined_flag=$lt_no_undefined_flag_CXX
24540 # Flag to hardcode \$libdir into a binary during linking.
24541 # This must work even if \$libdir does not exist
24542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24544 # Whether we need a single "-rpath" flag with a separated argument.
24545 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24547 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24548 # DIR into the resulting binary.
24549 hardcode_direct=$hardcode_direct_CXX
24551 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24552 # DIR into the resulting binary and the resulting library dependency is
24553 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24554 # library is relocated.
24555 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24557 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24558 # into the resulting binary.
24559 hardcode_minus_L=$hardcode_minus_L_CXX
24561 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24562 # into the resulting binary.
24563 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24565 # Set to "yes" if building a shared library automatically hardcodes DIR
24566 # into the library and all subsequent libraries and executables linked
24568 hardcode_automatic=$hardcode_automatic_CXX
24570 # Set to yes if linker adds runtime paths of dependent libraries
24571 # to runtime path list.
24572 inherit_rpath=$inherit_rpath_CXX
24574 # Whether libtool must link a program against all its dependency libraries.
24575 link_all_deplibs=$link_all_deplibs_CXX
24577 # Set to "yes" if exported symbols are required.
24578 always_export_symbols=$always_export_symbols_CXX
24580 # The commands to list exported symbols.
24581 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24583 # Symbols that should not be listed in the preloaded symbols.
24584 exclude_expsyms=$lt_exclude_expsyms_CXX
24586 # Symbols that must always be exported.
24587 include_expsyms=$lt_include_expsyms_CXX
24589 # Commands necessary for linking programs (against libraries) with templates.
24590 prelink_cmds=$lt_prelink_cmds_CXX
24592 # Commands necessary for finishing linking programs.
24593 postlink_cmds=$lt_postlink_cmds_CXX
24595 # Specify filename containing input files.
24596 file_list_spec=$lt_file_list_spec_CXX
24598 # How to hardcode a shared library path into an executable.
24599 hardcode_action=$hardcode_action_CXX
24601 # The directories searched by this compiler when creating a shared library.
24602 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24604 # Dependencies to place before and after the objects being linked to
24605 # create a shared library.
24606 predep_objects=$lt_predep_objects_CXX
24607 postdep_objects=$lt_postdep_objects_CXX
24608 predeps=$lt_predeps_CXX
24609 postdeps=$lt_postdeps_CXX
24611 # The library search path used internally by the compiler when linking
24612 # a shared library.
24613 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24615 # ### END LIBTOOL TAG CONFIG: CXX
24626 ac_clean_files=$ac_clean_files_save
24628 test $ac_write_fail = 0 ||
24629 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24632 # configure is writing to config.log, and then calls config.status.
24633 # config.status does its own redirection, appending to config.log.
24634 # Unfortunately, on DOS this fails, as config.log is still kept open
24635 # by configure, so config.status won't be able to write to it; its
24636 # output is simply discarded. So we exec the FD to /dev/null,
24637 # effectively closing config.log, so it can be properly (re)opened and
24638 # appended to by config.status. When coming back to configure, we
24639 # need to make the FD available again.
24640 if test "$no_create" != yes; then
24642 ac_config_status_args=
24643 test "$silent" = yes &&
24644 ac_config_status_args="$ac_config_status_args --quiet"
24646 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24648 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24649 # would make configure fail if this is the last instruction.
24650 $ac_cs_success || as_fn_exit 1
24652 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24654 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24659 echo "C++ compiler version:"
24663 { $as_echo "$as_me:${as_lineno-$LINENO}:
24665 Build configuration:
24667 Unicode callbacks (you want at least one):
24672 Font callbacks (the more the merrier):
24673 FreeType: ${have_freetype}
24675 Tools used for command-line utilities:
24676 Cairo: ${have_cairo}
24677 Fontconfig: ${have_fontconfig}
24679 Additional shapers (the more the merrier):
24680 Graphite2: ${have_graphite2}
24682 Platform shapers (not normally needed):
24683 CoreText: ${have_coretext}
24684 DirectWrite: ${have_directwrite}
24686 Uniscribe: ${have_uniscribe}
24689 Documentation: ${enable_gtk_doc}
24690 GObject bindings: ${have_gobject}
24691 Introspection: ${have_introspection}
24695 Build configuration:
24697 Unicode callbacks (you want at least one):
24702 Font callbacks (the more the merrier):
24703 FreeType: ${have_freetype}
24705 Tools used for command-line utilities:
24706 Cairo: ${have_cairo}
24707 Fontconfig: ${have_fontconfig}
24709 Additional shapers (the more the merrier):
24710 Graphite2: ${have_graphite2}
24712 Platform shapers (not normally needed):
24713 CoreText: ${have_coretext}
24714 DirectWrite: ${have_directwrite}
24716 Uniscribe: ${have_uniscribe}
24719 Documentation: ${enable_gtk_doc}
24720 GObject bindings: ${have_gobject}
24721 Introspection: ${have_introspection}