2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for HarfBuzz 3.4.0.
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='3.4.0'
594 PACKAGE_STRING='HarfBuzz 3.4.0'
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
683 HAVE_INTROSPECTION_FALSE
684 HAVE_INTROSPECTION_TRUE
685 INTROSPECTION_MAKEFILE
688 INTROSPECTION_TYPELIBDIR
690 INTROSPECTION_GENERATE
691 INTROSPECTION_COMPILER
692 INTROSPECTION_SCANNER
716 GTK_DOC_USE_REBASE_FALSE
717 GTK_DOC_USE_REBASE_TRUE
718 GTK_DOC_USE_LIBTOOL_FALSE
719 GTK_DOC_USE_LIBTOOL_TRUE
720 GTK_DOC_BUILD_PDF_FALSE
721 GTK_DOC_BUILD_PDF_TRUE
722 GTK_DOC_BUILD_HTML_FALSE
723 GTK_DOC_BUILD_HTML_TRUE
737 HB_LIBTOOL_VERSION_INFO
802 CODE_COVERAGE_LDFLAGS
804 CODE_COVERAGE_CXXFLAGS
806 CODE_COVERAGE_CPPFLAGS
810 CODE_COVERAGE_ENABLED
811 CODE_COVERAGE_ENABLED_FALSE
812 CODE_COVERAGE_ENABLED_TRUE
826 INSTALL_STRIP_PROGRAM
869 program_transform_name
883 enable_option_checking
887 enable_dependency_tracking
915 ac_precious_vars='build_alias
952 # Initialize some variables set by options.
954 ac_init_version=false
955 ac_unrecognized_opts=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
966 program_transform_name=s,x,x,
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 runstatedir='${localstatedir}/run'
989 includedir='${prefix}/include'
990 oldincludedir='/usr/include'
991 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
992 infodir='${datarootdir}/info'
997 libdir='${exec_prefix}/lib'
998 localedir='${datarootdir}/locale'
999 mandir='${datarootdir}/man'
1005 # If the previous option needs an argument, assign it.
1006 if test -n "$ac_prev"; then
1007 eval $ac_prev=\$ac_option
1013 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1018 # Accept the important Cygnus configure options, so we can diagnose typos.
1020 case $ac_dashdash$ac_option in
1024 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1026 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027 bindir=$ac_optarg ;;
1029 -build | --build | --buil | --bui | --bu)
1030 ac_prev=build_alias ;;
1031 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032 build_alias=$ac_optarg ;;
1034 -cache-file | --cache-file | --cache-fil | --cache-fi \
1035 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1036 ac_prev=cache_file ;;
1037 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1038 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1039 cache_file=$ac_optarg ;;
1041 --config-cache | -C)
1042 cache_file=config.cache ;;
1044 -datadir | --datadir | --datadi | --datad)
1046 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1047 datadir=$ac_optarg ;;
1049 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1050 | --dataroo | --dataro | --datar)
1051 ac_prev=datarootdir ;;
1052 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1053 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1054 datarootdir=$ac_optarg ;;
1056 -disable-* | --disable-*)
1057 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error $? "invalid feature name: $ac_useropt"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1065 "enable_$ac_useropt"
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1070 eval enable_$ac_useropt=no ;;
1072 -docdir | --docdir | --docdi | --doc | --do)
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
1082 -enable-* | --enable-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error $? "invalid feature name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1091 "enable_$ac_useropt"
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1096 eval enable_$ac_useropt=\$ac_optarg ;;
1098 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1099 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1100 | --exec | --exe | --ex)
1101 ac_prev=exec_prefix ;;
1102 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1103 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1104 | --exec=* | --exe=* | --ex=*)
1105 exec_prefix=$ac_optarg ;;
1107 -gas | --gas | --ga | --g)
1108 # Obsolete; use --with-gas.
1111 -help | --help | --hel | --he | -h)
1112 ac_init_help=long ;;
1113 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1114 ac_init_help=recursive ;;
1115 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1116 ac_init_help=short ;;
1118 -host | --host | --hos | --ho)
1119 ac_prev=host_alias ;;
1120 -host=* | --host=* | --hos=* | --ho=*)
1121 host_alias=$ac_optarg ;;
1123 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1125 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1127 htmldir=$ac_optarg ;;
1129 -includedir | --includedir | --includedi | --included | --include \
1130 | --includ | --inclu | --incl | --inc)
1131 ac_prev=includedir ;;
1132 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1133 | --includ=* | --inclu=* | --incl=* | --inc=*)
1134 includedir=$ac_optarg ;;
1136 -infodir | --infodir | --infodi | --infod | --info | --inf)
1138 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1139 infodir=$ac_optarg ;;
1141 -libdir | --libdir | --libdi | --libd)
1143 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1144 libdir=$ac_optarg ;;
1146 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1147 | --libexe | --libex | --libe)
1148 ac_prev=libexecdir ;;
1149 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1150 | --libexe=* | --libex=* | --libe=*)
1151 libexecdir=$ac_optarg ;;
1153 -localedir | --localedir | --localedi | --localed | --locale)
1154 ac_prev=localedir ;;
1155 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1156 localedir=$ac_optarg ;;
1158 -localstatedir | --localstatedir | --localstatedi | --localstated \
1159 | --localstate | --localstat | --localsta | --localst | --locals)
1160 ac_prev=localstatedir ;;
1161 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1162 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1163 localstatedir=$ac_optarg ;;
1165 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1167 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1168 mandir=$ac_optarg ;;
1170 -nfp | --nfp | --nf)
1171 # Obsolete; use --without-fp.
1174 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1175 | --no-cr | --no-c | -n)
1178 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1179 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1183 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1184 | --oldin | --oldi | --old | --ol | --o)
1185 ac_prev=oldincludedir ;;
1186 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1187 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1188 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1189 oldincludedir=$ac_optarg ;;
1191 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1193 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1194 prefix=$ac_optarg ;;
1196 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1197 | --program-pre | --program-pr | --program-p)
1198 ac_prev=program_prefix ;;
1199 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1200 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1201 program_prefix=$ac_optarg ;;
1203 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1204 | --program-suf | --program-su | --program-s)
1205 ac_prev=program_suffix ;;
1206 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1207 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1208 program_suffix=$ac_optarg ;;
1210 -program-transform-name | --program-transform-name \
1211 | --program-transform-nam | --program-transform-na \
1212 | --program-transform-n | --program-transform- \
1213 | --program-transform | --program-transfor \
1214 | --program-transfo | --program-transf \
1215 | --program-trans | --program-tran \
1216 | --progr-tra | --program-tr | --program-t)
1217 ac_prev=program_transform_name ;;
1218 -program-transform-name=* | --program-transform-name=* \
1219 | --program-transform-nam=* | --program-transform-na=* \
1220 | --program-transform-n=* | --program-transform-=* \
1221 | --program-transform=* | --program-transfor=* \
1222 | --program-transfo=* | --program-transf=* \
1223 | --program-trans=* | --program-tran=* \
1224 | --progr-tra=* | --program-tr=* | --program-t=*)
1225 program_transform_name=$ac_optarg ;;
1227 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1229 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1230 pdfdir=$ac_optarg ;;
1232 -psdir | --psdir | --psdi | --psd | --ps)
1234 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1241 -runstatedir | --runstatedir | --runstatedi | --runstated \
1242 | --runstate | --runstat | --runsta | --runst | --runs \
1243 | --run | --ru | --r)
1244 ac_prev=runstatedir ;;
1245 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1246 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1247 | --run=* | --ru=* | --r=*)
1248 runstatedir=$ac_optarg ;;
1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1254 sbindir=$ac_optarg ;;
1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258 | --sharedst | --shareds | --shared | --share | --shar \
1260 ac_prev=sharedstatedir ;;
1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1265 sharedstatedir=$ac_optarg ;;
1267 -site | --site | --sit)
1269 -site=* | --site=* | --sit=*)
1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275 srcdir=$ac_optarg ;;
1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278 | --syscon | --sysco | --sysc | --sys | --sy)
1279 ac_prev=sysconfdir ;;
1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282 sysconfdir=$ac_optarg ;;
1284 -target | --target | --targe | --targ | --tar | --ta | --t)
1285 ac_prev=target_alias ;;
1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287 target_alias=$ac_optarg ;;
1289 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292 -version | --version | --versio | --versi | --vers | -V)
1293 ac_init_version=: ;;
1296 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error $? "invalid package name: $ac_useropt"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1309 eval with_$ac_useropt=\$ac_optarg ;;
1311 -without-* | --without-*)
1312 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1313 # Reject names that are not valid shell variable names.
1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1315 as_fn_error $? "invalid package name: $ac_useropt"
1316 ac_useropt_orig=$ac_useropt
1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318 case $ac_user_opts in
1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1323 ac_unrecognized_sep=', ';;
1325 eval with_$ac_useropt=no ;;
1328 # Obsolete; use --with-x.
1331 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1332 | --x-incl | --x-inc | --x-in | --x-i)
1333 ac_prev=x_includes ;;
1334 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1335 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1336 x_includes=$ac_optarg ;;
1338 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1339 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1340 ac_prev=x_libraries ;;
1341 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1342 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1343 x_libraries=$ac_optarg ;;
1345 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1346 Try \`$0 --help' for more information"
1350 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1351 # Reject names that are not valid shell variable names.
1352 case $ac_envvar in #(
1353 '' | [0-9]* | *[!_$as_cr_alnum]* )
1354 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1356 eval $ac_envvar=\$ac_optarg
1357 export $ac_envvar ;;
1360 # FIXME: should be removed in autoconf 3.0.
1361 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1362 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1363 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1364 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1370 if test -n "$ac_prev"; then
1371 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1372 as_fn_error $? "missing argument to $ac_option"
1375 if test -n "$ac_unrecognized_opts"; then
1376 case $enable_option_checking in
1378 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1379 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1383 # Check all directory arguments for consistency.
1384 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1385 datadir sysconfdir sharedstatedir localstatedir includedir \
1386 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1387 libdir localedir mandir runstatedir
1389 eval ac_val=\$$ac_var
1390 # Remove trailing slashes.
1393 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1394 eval $ac_var=\$ac_val;;
1396 # Be sure to have absolute directory names.
1398 [\\/$]* | ?:[\\/]* ) continue;;
1399 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1401 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1404 # There might be people who depend on the old broken behavior: `$host'
1405 # used to hold the argument of --host etc.
1406 # FIXME: To remove some day.
1409 target=$target_alias
1411 # FIXME: To remove some day.
1412 if test "x$host_alias" != x; then
1413 if test "x$build_alias" = x; then
1414 cross_compiling=maybe
1415 elif test "x$build_alias" != "x$host_alias"; then
1421 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1423 test "$silent" = yes && exec 6>/dev/null
1426 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1427 ac_ls_di=`ls -di .` &&
1428 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1429 as_fn_error $? "working directory cannot be determined"
1430 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1431 as_fn_error $? "pwd does not report name of working directory"
1434 # Find the source files, if location was not specified.
1435 if test -z "$srcdir"; then
1436 ac_srcdir_defaulted=yes
1437 # Try the directory containing this script, then the parent directory.
1438 ac_confdir=`$as_dirname -- "$as_myself" ||
1439 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440 X"$as_myself" : 'X\(//\)[^/]' \| \
1441 X"$as_myself" : 'X\(//\)$' \| \
1442 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1443 $as_echo X"$as_myself" |
1444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1466 ac_srcdir_defaulted=no
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1470 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1472 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1474 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1476 # When building in place, set srcdir=.
1477 if test "$ac_abs_confdir" = "$ac_pwd"; then
1480 # Remove unnecessary trailing slashes from srcdir.
1481 # Double slashes in file names in object file debugging info
1482 # mess up M-x gdb in Emacs.
1484 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1486 for ac_var in $ac_precious_vars; do
1487 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1488 eval ac_env_${ac_var}_value=\$${ac_var}
1489 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1490 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1494 # Report the --help message.
1496 if test "$ac_init_help" = "long"; then
1497 # Omit some internal or obsolete options to make the list less imposing.
1498 # This message is too long to be a string in the A/UX 3.1 sh.
1500 \`configure' configures HarfBuzz 3.4.0 to adapt to many kinds of systems.
1502 Usage: $0 [OPTION]... [VAR=VALUE]...
1504 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1505 VAR=VALUE. See below for descriptions of some of the useful variables.
1507 Defaults for the options are specified in brackets.
1510 -h, --help display this help and exit
1511 --help=short display options specific to this package
1512 --help=recursive display the short help of all the included packages
1513 -V, --version display version information and exit
1514 -q, --quiet, --silent do not print \`checking ...' messages
1515 --cache-file=FILE cache test results in FILE [disabled]
1516 -C, --config-cache alias for \`--cache-file=config.cache'
1517 -n, --no-create do not create output files
1518 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1520 Installation directories:
1521 --prefix=PREFIX install architecture-independent files in PREFIX
1522 [$ac_default_prefix]
1523 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1526 By default, \`make install' will install all the files in
1527 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1528 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1529 for instance \`--prefix=\$HOME'.
1531 For better control, use the options below.
1533 Fine tuning of the installation directories:
1534 --bindir=DIR user executables [EPREFIX/bin]
1535 --sbindir=DIR system admin executables [EPREFIX/sbin]
1536 --libexecdir=DIR program executables [EPREFIX/libexec]
1537 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1538 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1539 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1540 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1541 --libdir=DIR object code libraries [EPREFIX/lib]
1542 --includedir=DIR C header files [PREFIX/include]
1543 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1544 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1545 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1546 --infodir=DIR info documentation [DATAROOTDIR/info]
1547 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1548 --mandir=DIR man documentation [DATAROOTDIR/man]
1549 --docdir=DIR documentation root [DATAROOTDIR/doc/harfbuzz]
1550 --htmldir=DIR html documentation [DOCDIR]
1551 --dvidir=DIR dvi documentation [DOCDIR]
1552 --pdfdir=DIR pdf documentation [DOCDIR]
1553 --psdir=DIR ps documentation [DOCDIR]
1559 --program-prefix=PREFIX prepend PREFIX to installed program names
1560 --program-suffix=SUFFIX append SUFFIX to installed program names
1561 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1564 --build=BUILD configure for building on BUILD [guessed]
1565 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1569 if test -n "$ac_init_help"; then
1570 case $ac_init_help in
1571 short | recursive ) echo "Configuration of HarfBuzz 3.4.0:";;
1576 --disable-option-checking ignore unrecognized --enable/--with options
1577 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1578 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1579 --enable-silent-rules less verbose build output (undo: "make V=1")
1580 --disable-silent-rules verbose build output (undo: "make V=0")
1581 --enable-code-coverage Whether to enable code coverage support
1582 --enable-dependency-tracking
1583 do not reject slow dependency extractors
1584 --disable-dependency-tracking
1585 speeds up one-time build
1586 --enable-static[=PKGS] build static libraries [default=no]
1587 --enable-shared[=PKGS] build shared libraries [default=yes]
1588 --enable-fast-install[=PKGS]
1589 optimize for fast installation [default=yes]
1590 --disable-libtool-lock avoid locking (might break parallel builds)
1591 --disable-largefile omit support for large files
1592 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1593 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1594 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1595 --enable-introspection=[no/auto/yes]
1596 Enable introspection for this build
1599 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1600 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1601 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1602 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1604 --with-aix-soname=aix|svr4|both
1605 shared library versioning (aka "SONAME") variant to
1606 provide on AIX, [default=aix].
1607 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1608 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1609 compiler's sysroot if not specified).
1610 --with-libstdc++=[yes/no]
1611 Allow linking with libstdc++ [default=no]
1612 --with-html-dir=PATH path to installed docs
1613 --with-glib=[yes/no/auto]
1614 Use glib [default=auto]
1615 --with-gobject=[yes/no/auto]
1616 Use gobject [default=no]
1617 --with-cairo=[yes/no/auto]
1618 Use cairo [default=auto]
1619 --with-chafa=[yes/no/auto]
1620 Use chafa [default=auto]
1621 --with-icu=[yes/no/builtin/auto]
1622 Use ICU [default=auto]
1623 --with-graphite2=[yes/no/auto]
1624 Use the graphite2 library [default=no]
1625 --with-freetype=[yes/no/auto]
1626 Use the FreeType library [default=auto]
1627 --with-uniscribe=[yes/no/auto]
1628 Use the Uniscribe library [default=no]
1629 --with-gdi=[yes/no/auto]
1630 Provide GDI integration helpers [default=no]
1631 --with-directwrite=[yes/no/auto]
1632 Use the DirectWrite library (experimental)
1634 --with-coretext=[yes/no/auto]
1635 Use CoreText [default=no]
1637 Some influential environment variables:
1638 CC C compiler command
1639 CFLAGS C compiler flags
1640 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1641 nonstandard directory <lib dir>
1642 LIBS libraries to pass to the linker, e.g. -l<library>
1643 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1644 you have headers in a nonstandard directory <include dir>
1646 User-defined run-time library search path.
1648 CXX C++ compiler command
1649 CXXFLAGS C++ compiler flags
1650 CXXCPP C++ preprocessor
1651 PKG_CONFIG path to pkg-config utility
1653 directories to add to pkg-config's search path
1655 path overriding pkg-config's built-in search path
1657 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1659 linker flags for GTKDOC_DEPS, overriding pkg-config
1660 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1661 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1663 C compiler flags for GOBJECT, overriding pkg-config
1665 linker flags for GOBJECT, overriding pkg-config
1667 C compiler flags for CAIRO, overriding pkg-config
1668 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1670 C compiler flags for CAIRO_FT, overriding pkg-config
1672 linker flags for CAIRO_FT, overriding pkg-config
1674 C compiler flags for CHAFA, overriding pkg-config
1675 CHAFA_LIBS linker flags for CHAFA, overriding pkg-config
1676 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1677 ICU_LIBS linker flags for ICU, overriding pkg-config
1679 C compiler flags for GRAPHITE2, overriding pkg-config
1681 linker flags for GRAPHITE2, overriding pkg-config
1683 C compiler flags for FREETYPE, overriding pkg-config
1685 linker flags for FREETYPE, overriding pkg-config
1687 Use these variables to override the choices made by `configure' or to help
1688 it to find libraries and programs with nonstandard names/locations.
1690 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
1691 HarfBuzz home page: <http://harfbuzz.org/>.
1696 if test "$ac_init_help" = "recursive"; then
1697 # If there are subdirs, report their specific --help.
1698 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1699 test -d "$ac_dir" ||
1700 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1707 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1708 # A ".." for each directory in $ac_dir_suffix.
1709 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710 case $ac_top_builddir_sub in
1711 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1715 ac_abs_top_builddir=$ac_pwd
1716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1717 # for backward compatibility:
1718 ac_top_builddir=$ac_top_build_prefix
1721 .) # We are building in place.
1723 ac_top_srcdir=$ac_top_builddir_sub
1724 ac_abs_top_srcdir=$ac_pwd ;;
1725 [\\/]* | ?:[\\/]* ) # Absolute name.
1726 ac_srcdir=$srcdir$ac_dir_suffix;
1727 ac_top_srcdir=$srcdir
1728 ac_abs_top_srcdir=$srcdir ;;
1730 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731 ac_top_srcdir=$ac_top_build_prefix$srcdir
1732 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1736 cd "$ac_dir" || { ac_status=$?; continue; }
1737 # Check for guested configure.
1738 if test -f "$ac_srcdir/configure.gnu"; then
1740 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1741 elif test -f "$ac_srcdir/configure"; then
1743 $SHELL "$ac_srcdir/configure" --help=recursive
1745 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1747 cd "$ac_pwd" || { ac_status=$?; break; }
1751 test -n "$ac_init_help" && exit $ac_status
1752 if $ac_init_version; then
1754 HarfBuzz configure 3.4.0
1755 generated by GNU Autoconf 2.69
1757 Copyright (C) 2012 Free Software Foundation, Inc.
1758 This configure script is free software; the Free Software Foundation
1759 gives unlimited permission to copy, distribute and modify it.
1764 ## ------------------------ ##
1765 ## Autoconf initialization. ##
1766 ## ------------------------ ##
1768 # ac_fn_c_try_compile LINENO
1769 # --------------------------
1770 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_compile ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext
1775 if { { ac_try="$ac_compile"
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_compile") 2>conftest.err
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest.$ac_objext; then :
1796 $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1804 } # ac_fn_c_try_compile
1806 # ac_fn_c_try_link LINENO
1807 # -----------------------
1808 # Try to link conftest.$ac_ext, and return whether this succeeded.
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext conftest$ac_exeext
1813 if { { ac_try="$ac_link"
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_link") 2>conftest.err
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest$ac_exeext && {
1832 test "$cross_compiling" = yes ||
1833 test -x conftest$ac_exeext
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1842 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1843 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1844 # interfere with the next link command; also delete a directory that is
1845 # left behind by Apple's compiler. We do this before executing the actions.
1846 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1850 } # ac_fn_c_try_link
1852 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1853 # -------------------------------------------------------
1854 # Tests whether HEADER exists and can be compiled using the include files in
1855 # INCLUDES, setting the cache variable VAR accordingly.
1856 ac_fn_c_check_header_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval \${$3+:} false; then :
1862 $as_echo_n "(cached) " >&6
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1869 if ac_fn_c_try_compile "$LINENO"; then :
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_c_check_header_compile
1883 # ac_fn_c_try_cpp LINENO
1884 # ----------------------
1885 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { { ac_try="$ac_cpp conftest.$ac_ext"
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } > conftest.i && {
1905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1906 test ! -s conftest.err
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1920 # ac_fn_c_try_run LINENO
1921 # ----------------------
1922 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1923 # that executables *can* be run.
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if { { ac_try="$ac_link"
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_link") 2>&5
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1938 { { case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_try") 2>&5
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; }; }; then :
1950 $as_echo "$as_me: program exited with status $ac_status" >&5
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1954 ac_retval=$ac_status
1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 as_fn_set_status $ac_retval
1962 # ac_fn_c_check_func LINENO FUNC VAR
1963 # ----------------------------------
1964 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1965 ac_fn_c_check_func ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if eval \${$3+:} false; then :
1971 $as_echo_n "(cached) " >&6
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1977 #define $2 innocuous_$2
1979 /* System header to define __stub macros and hopefully few prototypes,
1980 which can conflict with char $2 (); below.
1981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1982 <limits.h> exists even on freestanding compilers. */
1985 # include <limits.h>
1987 # include <assert.h>
1992 /* Override any GCC internal prototype to avoid an error.
1993 Use char because int might match the return type of a GCC
1994 builtin and then its argument prototype would still apply. */
1999 /* The GNU C library defines this for functions which it implements
2000 to always fail with ENOSYS. Some functions are actually named
2001 something starting with __ and the normal name is an alias. */
2002 #if defined __stub_$2 || defined __stub___$2
2014 if ac_fn_c_try_link "$LINENO"; then :
2019 rm -f core conftest.err conftest.$ac_objext \
2020 conftest$ac_exeext conftest.$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 } # ac_fn_c_check_func
2029 # ac_fn_cxx_try_compile LINENO
2030 # ----------------------------
2031 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2032 ac_fn_cxx_try_compile ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 rm -f conftest.$ac_objext
2036 if { { ac_try="$ac_compile"
2038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039 *) ac_try_echo=$ac_try;;
2041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 $as_echo "$ac_try_echo"; } >&5
2043 (eval "$ac_compile") 2>conftest.err
2045 if test -s conftest.err; then
2046 grep -v '^ *+' conftest.err >conftest.er1
2047 cat conftest.er1 >&5
2048 mv -f conftest.er1 conftest.err
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } && {
2052 test -z "$ac_cxx_werror_flag" ||
2053 test ! -s conftest.err
2054 } && test -s conftest.$ac_objext; then :
2057 $as_echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063 as_fn_set_status $ac_retval
2065 } # ac_fn_cxx_try_compile
2067 # ac_fn_cxx_try_cpp LINENO
2068 # ------------------------
2069 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2070 ac_fn_cxx_try_cpp ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 if { { ac_try="$ac_cpp conftest.$ac_ext"
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079 $as_echo "$ac_try_echo"; } >&5
2080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2082 if test -s conftest.err; then
2083 grep -v '^ *+' conftest.err >conftest.er1
2084 cat conftest.er1 >&5
2085 mv -f conftest.er1 conftest.err
2087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088 test $ac_status = 0; } > conftest.i && {
2089 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2090 test ! -s conftest.err
2094 $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status $ac_retval
2102 } # ac_fn_cxx_try_cpp
2104 # ac_fn_cxx_try_link LINENO
2105 # -------------------------
2106 # Try to link conftest.$ac_ext, and return whether this succeeded.
2107 ac_fn_cxx_try_link ()
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 rm -f conftest.$ac_objext conftest$ac_exeext
2111 if { { ac_try="$ac_link"
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_link") 2>conftest.err
2120 if test -s conftest.err; then
2121 grep -v '^ *+' conftest.err >conftest.er1
2122 cat conftest.er1 >&5
2123 mv -f conftest.er1 conftest.err
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126 test $ac_status = 0; } && {
2127 test -z "$ac_cxx_werror_flag" ||
2128 test ! -s conftest.err
2129 } && test -s conftest$ac_exeext && {
2130 test "$cross_compiling" = yes ||
2131 test -x conftest$ac_exeext
2135 $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2140 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2141 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2142 # interfere with the next link command; also delete a directory that is
2143 # left behind by Apple's compiler. We do this before executing the actions.
2144 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146 as_fn_set_status $ac_retval
2148 } # ac_fn_cxx_try_link
2150 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2151 # -------------------------------------------------------
2152 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2153 # the include files in INCLUDES and setting the cache variable VAR
2155 ac_fn_c_check_header_mongrel ()
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 if eval \${$3+:} false; then :
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162 $as_echo_n "(cached) " >&6
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2168 # Is the header compilable?
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2170 $as_echo_n "checking $2 usability... " >&6; }
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177 ac_header_compiler=yes
2179 ac_header_compiler=no
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2183 $as_echo "$ac_header_compiler" >&6; }
2185 # Is the header present?
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2187 $as_echo_n "checking $2 presence... " >&6; }
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2192 if ac_fn_c_try_cpp "$LINENO"; then :
2193 ac_header_preproc=yes
2195 ac_header_preproc=no
2197 rm -f conftest.err conftest.i conftest.$ac_ext
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2199 $as_echo "$ac_header_preproc" >&6; }
2201 # So? What about this header?
2202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2205 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2211 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2213 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2215 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2217 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2219 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2220 ( $as_echo "## -------------------------------------------------------------- ##
2221 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2222 ## -------------------------------------------------------------- ##"
2223 ) | sed "s/^/$as_me: WARNING: /" >&2
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if eval \${$3+:} false; then :
2229 $as_echo_n "(cached) " >&6
2231 eval "$3=\$ac_header_compiler"
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239 } # ac_fn_c_check_header_mongrel
2241 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2242 # --------------------------------------------
2243 # Tries to find the compile-time value of EXPR in a program that includes
2244 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2246 ac_fn_c_compute_int ()
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 if test "$cross_compiling" = yes; then
2250 # Depending upon the size, compute the lo and hi bounds.
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2257 static int test_array [1 - 2 * !(($2) >= 0)];
2259 return test_array [0];
2265 if ac_fn_c_try_compile "$LINENO"; then :
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2274 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2276 return test_array [0];
2282 if ac_fn_c_try_compile "$LINENO"; then :
2283 ac_hi=$ac_mid; break
2285 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2286 if test $ac_lo -le $ac_mid; then
2290 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2301 static int test_array [1 - 2 * !(($2) < 0)];
2303 return test_array [0];
2309 if ac_fn_c_try_compile "$LINENO"; then :
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2318 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2320 return test_array [0];
2326 if ac_fn_c_try_compile "$LINENO"; then :
2327 ac_lo=$ac_mid; break
2329 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2330 if test $ac_mid -le $ac_hi; then
2334 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 # Binary search between lo and hi bounds.
2345 while test "x$ac_lo" != "x$ac_hi"; do
2346 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2353 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2355 return test_array [0];
2361 if ac_fn_c_try_compile "$LINENO"; then :
2364 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2376 static long int longval () { return $2; }
2377 static unsigned long int ulongval () { return $2; }
2384 FILE *f = fopen ("conftest.val", "w");
2389 long int i = longval ();
2392 fprintf (f, "%ld", i);
2396 unsigned long int i = ulongval ();
2399 fprintf (f, "%lu", i);
2401 /* Do not output a trailing newline, as this causes \r\n confusion
2402 on some platforms. */
2403 return ferror (f) || fclose (f) != 0;
2409 if ac_fn_c_try_run "$LINENO"; then :
2410 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2415 conftest.$ac_objext conftest.beam conftest.$ac_ext
2419 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2420 as_fn_set_status $ac_retval
2422 } # ac_fn_c_compute_int
2424 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2425 # ---------------------------------------------------------
2426 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2427 # the include files in INCLUDES and setting the cache variable VAR
2429 ac_fn_cxx_check_header_mongrel ()
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 if eval \${$3+:} false; then :
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2434 $as_echo_n "checking for $2... " >&6; }
2435 if eval \${$3+:} false; then :
2436 $as_echo_n "(cached) " >&6
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 $as_echo "$ac_res" >&6; }
2442 # Is the header compilable?
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2444 $as_echo_n "checking $2 usability... " >&6; }
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h. */
2450 if ac_fn_cxx_try_compile "$LINENO"; then :
2451 ac_header_compiler=yes
2453 ac_header_compiler=no
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2457 $as_echo "$ac_header_compiler" >&6; }
2459 # Is the header present?
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2461 $as_echo_n "checking $2 presence... " >&6; }
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h. */
2466 if ac_fn_cxx_try_cpp "$LINENO"; then :
2467 ac_header_preproc=yes
2469 ac_header_preproc=no
2471 rm -f conftest.err conftest.i conftest.$ac_ext
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2473 $as_echo "$ac_header_preproc" >&6; }
2475 # So? What about this header?
2476 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2479 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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;}
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2485 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2487 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2489 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2491 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2493 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2494 ( $as_echo "## -------------------------------------------------------------- ##
2495 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2496 ## -------------------------------------------------------------- ##"
2497 ) | sed "s/^/$as_me: WARNING: /" >&2
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2501 $as_echo_n "checking for $2... " >&6; }
2502 if eval \${$3+:} false; then :
2503 $as_echo_n "(cached) " >&6
2505 eval "$3=\$ac_header_compiler"
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509 $as_echo "$ac_res" >&6; }
2511 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2513 } # ac_fn_cxx_check_header_mongrel
2515 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2516 # -------------------------------------------
2517 # Tests whether TYPE exists after having included INCLUDES, setting cache
2518 # variable VAR accordingly.
2519 ac_fn_c_check_type ()
2521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2523 $as_echo_n "checking for $2... " >&6; }
2524 if eval \${$3+:} false; then :
2525 $as_echo_n "(cached) " >&6
2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h. */
2540 if ac_fn_c_try_compile "$LINENO"; then :
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2553 if ac_fn_c_try_compile "$LINENO"; then :
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564 $as_echo "$ac_res" >&6; }
2565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2567 } # ac_fn_c_check_type
2568 cat >config.log <<_ACEOF
2569 This file contains any messages produced by compilers while
2570 running configure, to aid debugging if configure makes a mistake.
2572 It was created by HarfBuzz $as_me 3.4.0, which was
2573 generated by GNU Autoconf 2.69. Invocation command line was
2585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2592 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2594 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2595 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2597 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2598 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2599 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2600 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 test -z "$as_dir" && as_dir=.
2609 $as_echo "PATH: $as_dir"
2625 # Keep a trace of the command line.
2626 # Strip out --no-create and --no-recursion so they do not pile up.
2627 # Strip out --silent because we don't want to record it for future runs.
2628 # Also quote any args containing shell meta-characters.
2629 # Make two passes to allow for proper duplicate-argument suppression.
2633 ac_must_keep_next=false
2639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2641 | -silent | --silent | --silen | --sile | --sil)
2644 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2647 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2649 as_fn_append ac_configure_args1 " '$ac_arg'"
2650 if test $ac_must_keep_next = true; then
2651 ac_must_keep_next=false # Got value, back to normal.
2654 *=* | --config-cache | -C | -disable-* | --disable-* \
2655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2657 | -with-* | --with-* | -without-* | --without-* | --x)
2658 case "$ac_configure_args0 " in
2659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2662 -* ) ac_must_keep_next=true ;;
2665 as_fn_append ac_configure_args " '$ac_arg'"
2670 { ac_configure_args0=; unset ac_configure_args0;}
2671 { ac_configure_args1=; unset ac_configure_args1;}
2673 # When interrupted or exit'd, cleanup temporary files, and complete
2674 # config.log. We remove comments because anyway the quotes in there
2675 # would cause problems or look ugly.
2676 # WARNING: Use '\'' to represent an apostrophe within the trap.
2677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2678 trap 'exit_status=$?
2679 # Save into config.log some information that might help in debugging.
2683 $as_echo "## ---------------- ##
2684 ## Cache variables. ##
2685 ## ---------------- ##"
2687 # The following way of writing the cache mishandles newlines in values,
2689 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2690 eval ac_val=\$$ac_var
2694 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2695 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2698 _ | IFS | as_nl) ;; #(
2699 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2700 *) { eval $ac_var=; unset $ac_var;} ;;
2705 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2706 *${as_nl}ac_space=\ *)
2708 "s/'\''/'\''\\\\'\'''\''/g;
2709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2712 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2719 $as_echo "## ----------------- ##
2720 ## Output variables. ##
2721 ## ----------------- ##"
2723 for ac_var in $ac_subst_vars
2725 eval ac_val=\$$ac_var
2727 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2729 $as_echo "$ac_var='\''$ac_val'\''"
2733 if test -n "$ac_subst_files"; then
2734 $as_echo "## ------------------- ##
2735 ## File substitutions. ##
2736 ## ------------------- ##"
2738 for ac_var in $ac_subst_files
2740 eval ac_val=\$$ac_var
2742 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2744 $as_echo "$ac_var='\''$ac_val'\''"
2749 if test -s confdefs.h; then
2750 $as_echo "## ----------- ##
2757 test "$ac_signal" != 0 &&
2758 $as_echo "$as_me: caught signal $ac_signal"
2759 $as_echo "$as_me: exit $exit_status"
2761 rm -f core *.core core.conftest.* &&
2762 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2765 for ac_signal in 1 2 13 15; do
2766 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2770 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2771 rm -f -r conftest* confdefs.h
2773 $as_echo "/* confdefs.h */" > confdefs.h
2775 # Predefined preprocessor variables.
2777 cat >>confdefs.h <<_ACEOF
2778 #define PACKAGE_NAME "$PACKAGE_NAME"
2781 cat >>confdefs.h <<_ACEOF
2782 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2785 cat >>confdefs.h <<_ACEOF
2786 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2789 cat >>confdefs.h <<_ACEOF
2790 #define PACKAGE_STRING "$PACKAGE_STRING"
2793 cat >>confdefs.h <<_ACEOF
2794 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2797 cat >>confdefs.h <<_ACEOF
2798 #define PACKAGE_URL "$PACKAGE_URL"
2802 # Let the site file select an alternate cache file if it wants to.
2803 # Prefer an explicitly selected file to automatically selected ones.
2806 if test -n "$CONFIG_SITE"; then
2807 # We do not want a PATH search for config.site.
2808 case $CONFIG_SITE in #((
2809 -*) ac_site_file1=./$CONFIG_SITE;;
2810 */*) ac_site_file1=$CONFIG_SITE;;
2811 *) ac_site_file1=./$CONFIG_SITE;;
2813 elif test "x$prefix" != xNONE; then
2814 ac_site_file1=$prefix/share/config.site
2815 ac_site_file2=$prefix/etc/config.site
2817 ac_site_file1=$ac_default_prefix/share/config.site
2818 ac_site_file2=$ac_default_prefix/etc/config.site
2820 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2822 test "x$ac_site_file" = xNONE && continue
2823 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2825 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2826 sed 's/^/| /' "$ac_site_file" >&5
2828 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2830 as_fn_error $? "failed to load site script $ac_site_file
2831 See \`config.log' for more details" "$LINENO" 5; }
2835 if test -r "$cache_file"; then
2836 # Some versions of bash will fail to source /dev/null (special files
2837 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2838 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2840 $as_echo "$as_me: loading cache $cache_file" >&6;}
2842 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2843 *) . "./$cache_file";;
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2848 $as_echo "$as_me: creating cache $cache_file" >&6;}
2852 # Check that the precious variables saved in the cache have kept the same
2854 ac_cache_corrupted=false
2855 for ac_var in $ac_precious_vars; do
2856 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2857 eval ac_new_set=\$ac_env_${ac_var}_set
2858 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2859 eval ac_new_val=\$ac_env_${ac_var}_value
2860 case $ac_old_set,$ac_new_set in
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2863 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2864 ac_cache_corrupted=: ;;
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2867 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2868 ac_cache_corrupted=: ;;
2871 if test "x$ac_old_val" != "x$ac_new_val"; then
2872 # differences in whitespace do not lead to failure.
2873 ac_old_val_w=`echo x $ac_old_val`
2874 ac_new_val_w=`echo x $ac_new_val`
2875 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2877 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2878 ac_cache_corrupted=:
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2881 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2882 eval $ac_var=\$ac_old_val
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2885 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2887 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2890 # Pass precious variables to config.status.
2891 if test "$ac_new_set" = set; then
2893 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2894 *) ac_arg=$ac_var=$ac_new_val ;;
2896 case " $ac_configure_args " in
2897 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2898 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2902 if $ac_cache_corrupted; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2906 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2907 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2909 ## -------------------- ##
2910 ## Main body of script. ##
2911 ## -------------------- ##
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2923 ac_config_headers="$ac_config_headers config.h"
2926 am__api_version='1.16'
2929 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2930 if test -f "$ac_dir/install-sh"; then
2932 ac_install_sh="$ac_aux_dir/install-sh -c"
2934 elif test -f "$ac_dir/install.sh"; then
2936 ac_install_sh="$ac_aux_dir/install.sh -c"
2938 elif test -f "$ac_dir/shtool"; then
2940 ac_install_sh="$ac_aux_dir/shtool install -c"
2944 if test -z "$ac_aux_dir"; then
2945 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2948 # These three variables are undocumented and unsupported,
2949 # and are intended to be withdrawn in a future Autoconf release.
2950 # They can cause serious problems if a builder's source tree is in a directory
2951 # whose full name contains unusual characters.
2952 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2953 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2954 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2957 # Find a good install program. We prefer a C program (faster),
2958 # so one script is as good as another. But avoid the broken or
2959 # incompatible versions:
2960 # SysV /etc/install, /usr/sbin/install
2961 # SunOS /usr/etc/install
2962 # IRIX /sbin/install
2964 # AmigaOS /C/install, which installs bootblocks on floppy discs
2965 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2966 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2967 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2968 # OS/2's system install, which has a completely different semantic
2969 # ./install, which can be erroneously created by make from ./install.sh.
2970 # Reject install programs that cannot install multiple files.
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2972 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2973 if test -z "$INSTALL"; then
2974 if ${ac_cv_path_install+:} false; then :
2975 $as_echo_n "(cached) " >&6
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 test -z "$as_dir" && as_dir=.
2982 # Account for people who put trailing slashes in PATH elements.
2983 case $as_dir/ in #((
2984 ./ | .// | /[cC]/* | \
2985 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2986 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2989 # OSF1 and SCO ODT 3.0 have their own names for install.
2990 # Don't use installbsd from OSF since it installs stuff as root
2992 for ac_prog in ginstall scoinst install; do
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2995 if test $ac_prog = install &&
2996 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2997 # AIX install. It has an incompatible calling convention.
2999 elif test $ac_prog = install &&
3000 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3001 # program-specific install script used by HP pwplus--don't use.
3004 rm -rf conftest.one conftest.two conftest.dir
3005 echo one > conftest.one
3006 echo two > conftest.two
3008 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3009 test -s conftest.one && test -s conftest.two &&
3010 test -s conftest.dir/conftest.one &&
3011 test -s conftest.dir/conftest.two
3013 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3026 rm -rf conftest.one conftest.two conftest.dir
3029 if test "${ac_cv_path_install+set}" = set; then
3030 INSTALL=$ac_cv_path_install
3032 # As a last resort, use the slow shell script. Don't cache a
3033 # value for INSTALL within a source directory, because that will
3034 # break other packages using the cache if that directory is
3035 # removed, or if the value is a relative name.
3036 INSTALL=$ac_install_sh
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3040 $as_echo "$INSTALL" >&6; }
3042 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3043 # It thinks the first close brace ends the variable substitution.
3044 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3046 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3048 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3051 $as_echo_n "checking whether build environment is sane... " >&6; }
3052 # Reject unsafe characters in $srcdir or the absolute working directory
3053 # name. Accept space and tab only in the latter.
3057 *[\\\"\#\$\&\'\`$am_lf]*)
3058 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3061 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3062 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3065 # Do 'set' in a subshell so we don't clobber the current shell's
3066 # arguments. Must try -L first in case configure is actually a
3067 # symlink; some systems play weird games with the mod time of symlinks
3068 # (eg FreeBSD returns the mod time of the symlink's containing
3072 for am_try in 1 2; do
3073 echo "timestamp, slept: $am_has_slept" > conftest.file
3074 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3075 if test "$*" = "X"; then
3077 set X `ls -t "$srcdir/configure" conftest.file`
3079 if test "$*" != "X $srcdir/configure conftest.file" \
3080 && test "$*" != "X conftest.file $srcdir/configure"; then
3082 # If neither matched, then we have a broken ls. This can happen
3083 # if, for instance, CONFIG_SHELL is bash and it inherits a
3084 # broken ls alias from the environment. This has actually
3085 # happened. Such a system could not be considered "sane".
3086 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3087 alias in your environment" "$LINENO" 5
3089 if test "$2" = conftest.file || test $am_try -eq 2; then
3096 test "$2" = conftest.file
3102 as_fn_error $? "newly created file is older than distributed files!
3103 Check your system clock" "$LINENO" 5
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3106 $as_echo "yes" >&6; }
3107 # If we didn't sleep, we still need to ensure time stamps of config.status and
3108 # generated files are strictly newer.
3110 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3117 test "$program_prefix" != NONE &&
3118 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3119 # Use a double $ so make ignores it.
3120 test "$program_suffix" != NONE &&
3121 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3122 # Double any \ or $.
3123 # By default was `s,x,x', remove it if useless.
3124 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3125 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3127 # Expand $ac_aux_dir to an absolute path.
3128 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3130 if test x"${MISSING+set}" != xset; then
3133 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3135 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3138 # Use eval to expand $SHELL
3139 if eval "$MISSING --is-lightweight"; then
3140 am_missing_run="$MISSING "
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3144 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3147 if test x"${install_sh+set}" != xset; then
3150 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3152 install_sh="\${SHELL} $am_aux_dir/install-sh"
3156 # Installed binaries are usually stripped using 'strip' when the user
3157 # run "make install-strip". However 'strip' might not be the right
3158 # tool to use in cross-compilation environments, therefore Automake
3159 # will honor the 'STRIP' environment variable to overrule this program.
3160 if test "$cross_compiling" != no; then
3161 if test -n "$ac_tool_prefix"; then
3162 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3163 set dummy ${ac_tool_prefix}strip; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if ${ac_cv_prog_STRIP+:} false; then :
3167 $as_echo_n "(cached) " >&6
3169 if test -n "$STRIP"; then
3170 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 STRIP=$ac_cv_prog_STRIP
3190 if test -n "$STRIP"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3192 $as_echo "$STRIP" >&6; }
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3200 if test -z "$ac_cv_prog_STRIP"; then
3202 # Extract the first word of "strip", so it can be a program name with args.
3203 set dummy strip; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3207 $as_echo_n "(cached) " >&6
3209 if test -n "$ac_ct_STRIP"; then
3210 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_ac_ct_STRIP="strip"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3230 if test -n "$ac_ct_STRIP"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3232 $as_echo "$ac_ct_STRIP" >&6; }
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3238 if test "x$ac_ct_STRIP" = x; then
3241 case $cross_compiling:$ac_tool_warned in
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3245 ac_tool_warned=yes ;;
3250 STRIP="$ac_cv_prog_STRIP"
3254 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3257 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3258 if test -z "$MKDIR_P"; then
3259 if ${ac_cv_path_mkdir+:} false; then :
3260 $as_echo_n "(cached) " >&6
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3266 test -z "$as_dir" && as_dir=.
3267 for ac_prog in mkdir gmkdir; do
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3270 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3271 'mkdir (GNU coreutils) '* | \
3272 'mkdir (coreutils) '* | \
3273 'mkdir (fileutils) '4.1*)
3274 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3284 test -d ./--version && rmdir ./--version
3285 if test "${ac_cv_path_mkdir+set}" = set; then
3286 MKDIR_P="$ac_cv_path_mkdir -p"
3288 # As a last resort, use the slow shell script. Don't cache a
3289 # value for MKDIR_P within a source directory, because that will
3290 # break other packages using the cache if that directory is
3291 # removed, or if the value is a relative name.
3292 MKDIR_P="$ac_install_sh -d"
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3296 $as_echo "$MKDIR_P" >&6; }
3298 for ac_prog in gawk mawk nawk awk
3300 # Extract the first word of "$ac_prog", so it can be a program name with args.
3301 set dummy $ac_prog; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if ${ac_cv_prog_AWK+:} false; then :
3305 $as_echo_n "(cached) " >&6
3307 if test -n "$AWK"; then
3308 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_AWK="$ac_prog"
3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 if test -n "$AWK"; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3330 $as_echo "$AWK" >&6; }
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3337 test -n "$AWK" && break
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3341 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3343 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3344 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3345 $as_echo_n "(cached) " >&6
3347 cat >conftest.make <<\_ACEOF
3350 @echo '@@@%%%=$(MAKE)=@@@%%%'
3352 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3353 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3355 eval ac_cv_prog_make_${ac_make}_set=yes;;
3357 eval ac_cv_prog_make_${ac_make}_set=no;;
3361 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3363 $as_echo "yes" >&6; }
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 SET_MAKE="MAKE=${MAKE-make}"
3371 rm -rf .tst 2>/dev/null
3372 mkdir .tst 2>/dev/null
3373 if test -d .tst; then
3378 rmdir .tst 2>/dev/null
3380 # Check whether --enable-silent-rules was given.
3381 if test "${enable_silent_rules+set}" = set; then :
3382 enableval=$enable_silent_rules;
3385 case $enable_silent_rules in # (((
3386 yes) AM_DEFAULT_VERBOSITY=0;;
3387 no) AM_DEFAULT_VERBOSITY=1;;
3388 *) AM_DEFAULT_VERBOSITY=1;;
3390 am_make=${MAKE-make}
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3392 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3393 if ${am_cv_make_support_nested_variables+:} false; then :
3394 $as_echo_n "(cached) " >&6
3396 if $as_echo 'TRUE=$(BAR$(V))
3402 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3403 am_cv_make_support_nested_variables=yes
3405 am_cv_make_support_nested_variables=no
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3409 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3410 if test $am_cv_make_support_nested_variables = yes; then
3412 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3414 AM_V=$AM_DEFAULT_VERBOSITY
3415 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3419 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3420 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3421 # is not polluted with repeated "-I."
3422 am__isrc=' -I$(srcdir)'
3423 # test to see if srcdir already configured
3424 if test -f $srcdir/config.status; then
3425 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3429 # test whether we have cygpath
3430 if test -z "$CYGPATH_W"; then
3431 if (cygpath --version) >/dev/null 2>/dev/null; then
3432 CYGPATH_W='cygpath -w'
3439 # Define the identity of the package.
3444 # Some tools Automake needs.
3446 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3449 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3452 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3455 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3458 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3460 # For better backward compatibility. To be removed once Automake 1.9.x
3461 # dies out for good. For more background, see:
3462 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3463 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3464 mkdir_p='$(MKDIR_P)'
3466 # We need awk for the "check" target (and possibly the TAP driver). The
3467 # system "awk" is bad on some platforms.
3468 # Always define AMTAR for backward compatibility. Yes, it's still used
3469 # in the wild :-( We should find a proper way to deprecate it ...
3473 # We'll loop over all known methods to create a tar archive until one works.
3474 _am_tools='gnutar plaintar pax cpio none'
3476 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3477 # There is notably a 21 bits limit for the UID and the GID. In fact,
3478 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3480 am_max_uid=2097151 # 2^21 - 1
3481 am_max_gid=$am_max_uid
3482 # The $UID and $GID variables are not portable, so we need to resort
3483 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3484 # below are definitely unexpected, so allow the users to see them
3485 # (that is, avoid stderr redirection).
3486 am_uid=`id -u || echo unknown`
3487 am_gid=`id -g || echo unknown`
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3489 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3490 if test $am_uid -le $am_max_uid; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3492 $as_echo "yes" >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3499 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3500 if test $am_gid -le $am_max_gid; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3502 $as_echo "yes" >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3510 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3512 # Go ahead even if we have the value already cached. We do so because we
3513 # need to set the values for the 'am__tar' and 'am__untar' variables.
3514 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3516 for _am_tool in $_am_tools; do
3519 for _am_tar in tar gnutar gtar; do
3520 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3521 ($_am_tar --version) >&5 2>&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } && break
3526 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3527 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3528 am__untar="$_am_tar -xf -"
3531 # Must skip GNU tar: if it does not support --format= it doesn't create
3532 # ustar tarball either.
3533 (tar --version) >/dev/null 2>&1 && continue
3534 am__tar='tar chf - "$$tardir"'
3535 am__tar_='tar chf - "$tardir"'
3536 am__untar='tar xf -'
3539 am__tar='pax -L -x ustar -w "$$tardir"'
3540 am__tar_='pax -L -x ustar -w "$tardir"'
3544 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3545 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3546 am__untar='cpio -i -H ustar -d'
3555 # If the value was cached, stop now. We just wanted to have am__tar
3556 # and am__untar set.
3557 test -n "${am_cv_prog_tar_ustar}" && break
3559 # tar/untar a dummy directory, and stop if the command works.
3562 echo GrepMe > conftest.dir/file
3563 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3564 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }
3569 if test -s conftest.tar; then
3570 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3571 ($am__untar <conftest.tar) >&5 2>&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }
3575 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3576 (cat conftest.dir/file) >&5 2>&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }
3580 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3585 if ${am_cv_prog_tar_ustar+:} false; then :
3586 $as_echo_n "(cached) " >&6
3588 am_cv_prog_tar_ustar=$_am_tool
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3592 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3599 # POSIX will say in a future version that running "rm -f" with no argument
3600 # is OK; and we want to be able to make that assumption in our Makefile
3601 # recipes. So use an aggressive probe to check that the usage we want is
3602 # actually supported "in the wild" to an acceptable degree.
3603 # See automake bug#10828.
3604 # To make any issue more visible, cause the running configure to be aborted
3605 # by default if the 'rm' program in use doesn't match our expectations; the
3606 # user can still override this though.
3607 if rm -f && rm -fr && rm -rf; then : OK; else
3611 Your 'rm' program seems unable to run without file operands specified
3612 on the command line, even when the '-f' option is present. This is contrary
3613 to the behaviour of most rm programs out there, and not conforming with
3614 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3616 Please tell bug-automake@gnu.org about your system, including the value
3617 of your $PATH and any error possibly output before this message. This
3618 can help us improve future automake versions.
3621 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3622 echo 'Configuration will proceed anyway, since you have set the' >&2
3623 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3627 Aborting the configuration process, to ensure you take notice of the issue.
3629 You can download and install GNU coreutils to get an 'rm' implementation
3630 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3632 If you want to complete the configuration process using your problematic
3633 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3634 to "yes", and re-run configure.
3637 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3641 # Check whether --enable-silent-rules was given.
3642 if test "${enable_silent_rules+set}" = set; then :
3643 enableval=$enable_silent_rules;
3646 case $enable_silent_rules in # (((
3647 yes) AM_DEFAULT_VERBOSITY=0;;
3648 no) AM_DEFAULT_VERBOSITY=1;;
3649 *) AM_DEFAULT_VERBOSITY=0;;
3651 am_make=${MAKE-make}
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3653 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3654 if ${am_cv_make_support_nested_variables+:} false; then :
3655 $as_echo_n "(cached) " >&6
3657 if $as_echo 'TRUE=$(BAR$(V))
3663 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3664 am_cv_make_support_nested_variables=yes
3666 am_cv_make_support_nested_variables=no
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3670 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3671 if test $am_cv_make_support_nested_variables = yes; then
3673 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3675 AM_V=$AM_DEFAULT_VERBOSITY
3676 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3681 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3682 if ${ac_cv_path_SED+:} false; then :
3683 $as_echo_n "(cached) " >&6
3685 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3686 for ac_i in 1 2 3 4 5 6 7; do
3687 ac_script="$ac_script$as_nl$ac_script"
3689 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3690 { ac_script=; unset ac_script;}
3691 if test -z "$SED"; then
3692 ac_path_SED_found=false
3693 # Loop through the user's path and test for each of PROGNAME-LIST
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir=.
3699 for ac_prog in sed gsed; do
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3702 as_fn_executable_p "$ac_path_SED" || continue
3703 # Check for GNU ac_path_SED and select it if it is found.
3704 # Check for GNU $ac_path_SED
3705 case `"$ac_path_SED" --version 2>&1` in
3707 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3710 $as_echo_n 0123456789 >"conftest.in"
3713 cat "conftest.in" "conftest.in" >"conftest.tmp"
3714 mv "conftest.tmp" "conftest.in"
3715 cp "conftest.in" "conftest.nl"
3716 $as_echo '' >> "conftest.nl"
3717 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3719 as_fn_arith $ac_count + 1 && ac_count=$as_val
3720 if test $ac_count -gt ${ac_path_SED_max-0}; then
3721 # Best one so far, save it but keep looking for a better one
3722 ac_cv_path_SED="$ac_path_SED"
3723 ac_path_SED_max=$ac_count
3725 # 10*(2^10) chars as input seems more than enough
3726 test $ac_count -gt 10 && break
3728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3731 $ac_path_SED_found && break 3
3736 if test -z "$ac_cv_path_SED"; then
3737 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3745 $as_echo "$ac_cv_path_SED" >&6; }
3746 SED="$ac_cv_path_SED"
3752 # allow to override gcov location
3754 # Check whether --with-gcov was given.
3755 if test "${with_gcov+set}" = set; then :
3756 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3758 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3763 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3764 # Check whether --enable-code-coverage was given.
3765 if test "${enable_code_coverage+set}" = set; then :
3766 enableval=$enable_code_coverage;
3768 enable_code_coverage=no
3772 if test x$enable_code_coverage = xyes; then
3773 CODE_COVERAGE_ENABLED_TRUE=
3774 CODE_COVERAGE_ENABLED_FALSE='#'
3776 CODE_COVERAGE_ENABLED_TRUE='#'
3777 CODE_COVERAGE_ENABLED_FALSE=
3780 CODE_COVERAGE_ENABLED=$enable_code_coverage
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3783 $as_echo "$enable_code_coverage" >&6; }
3785 if test "$enable_code_coverage" = "yes" ; then :
3788 if test -n "$ac_tool_prefix"; then
3789 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3790 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if ${ac_cv_prog_GCOV+:} false; then :
3794 $as_echo_n "(cached) " >&6
3796 if test -n "$GCOV"; then
3797 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 GCOV=$ac_cv_prog_GCOV
3817 if test -n "$GCOV"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3819 $as_echo "$GCOV" >&6; }
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3827 if test -z "$ac_cv_prog_GCOV"; then
3829 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3830 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3834 $as_echo_n "(cached) " >&6
3836 if test -n "$ac_ct_GCOV"; then
3837 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3857 if test -n "$ac_ct_GCOV"; then
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3859 $as_echo "$ac_ct_GCOV" >&6; }
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3865 if test "x$ac_ct_GCOV" = x; then
3868 case $cross_compiling:$ac_tool_warned in
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3872 ac_tool_warned=yes ;;
3877 GCOV="$ac_cv_prog_GCOV"
3880 if test "X$GCOV" = "X:"; then :
3881 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3885 if test "$GCC" = "no" ; then :
3887 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3891 # Extract the first word of "lcov", so it can be a program name with args.
3892 set dummy lcov; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if ${ac_cv_prog_LCOV+:} false; then :
3896 $as_echo_n "(cached) " >&6
3898 if test -n "$LCOV"; then
3899 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_prog_LCOV="lcov"
3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 LCOV=$ac_cv_prog_LCOV
3919 if test -n "$LCOV"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3921 $as_echo "$LCOV" >&6; }
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3928 # Extract the first word of "genhtml", so it can be a program name with args.
3929 set dummy genhtml; ac_word=$2
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931 $as_echo_n "checking for $ac_word... " >&6; }
3932 if ${ac_cv_prog_GENHTML+:} false; then :
3933 $as_echo_n "(cached) " >&6
3935 if test -n "$GENHTML"; then
3936 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 test -z "$as_dir" && as_dir=.
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3945 ac_cv_prog_GENHTML="genhtml"
3946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 GENHTML=$ac_cv_prog_GENHTML
3956 if test -n "$GENHTML"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3958 $as_echo "$GENHTML" >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3966 if test -z "$LCOV" ; then :
3968 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
3972 if test -z "$GENHTML" ; then :
3974 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3978 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
3979 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3980 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3981 CODE_COVERAGE_LIBS="-lgcov"
3982 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
3990 CODE_COVERAGE_RULES_CHECK='
3991 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
3992 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3994 CODE_COVERAGE_RULES_CAPTURE='
3995 $(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)
3996 $(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)
3997 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3998 $(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)
3999 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
4001 CODE_COVERAGE_RULES_CLEAN='
4002 clean: code-coverage-clean
4003 distclean: code-coverage-clean
4004 code-coverage-clean:
4005 -$(LCOV) --directory $(top_builddir) -z
4006 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4007 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
4012 CODE_COVERAGE_RULES_CHECK='
4013 @echo "Need to reconfigure with --enable-code-coverage"
4015 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
4016 CODE_COVERAGE_RULES_CLEAN=''
4020 CODE_COVERAGE_RULES='
4024 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
4025 # Multiple directories may be specified, separated by whitespace.
4026 # (Default: $(top_builddir))
4027 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
4028 # by lcov for code coverage. (Default:
4029 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
4030 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
4031 # reports to be created. (Default:
4032 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
4033 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
4034 # set to 0 to disable it and leave empty to stay with the default.
4036 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
4037 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4038 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
4039 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4040 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
4041 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
4042 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4043 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
4044 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4045 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
4046 # lcov instance. (Default: empty)
4047 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
4048 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4049 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
4050 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4051 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
4052 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4053 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
4055 # The generated report will be titled using the $(PACKAGE_NAME) and
4056 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
4057 # use the git-version-gen script, available online.
4059 # Optional variables
4060 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
4061 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
4062 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
4063 CODE_COVERAGE_BRANCH_COVERAGE ?=
4064 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4065 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4066 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4067 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
4068 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4069 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4070 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
4071 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4072 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
4073 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4074 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4075 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4076 CODE_COVERAGE_IGNORE_PATTERN ?=
4079 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4081 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
4082 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
4083 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
4084 $(CODE_COVERAGE_OUTPUT_FILE);
4085 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
4086 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
4087 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
4088 $(CODE_COVERAGE_IGNORE_PATTERN);
4089 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
4090 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
4091 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
4092 code_coverage_quiet = $(code_coverage_quiet_$(V))
4093 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
4094 code_coverage_quiet_0 = --quiet
4096 # sanitizes the test-name: replaces with underscores: dashes and dots
4097 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
4099 # Use recursive makes in order to ignore errors during check
4100 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
4102 # Capture code coverage data
4103 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
4105 # Hook rule executed before code-coverage-capture, overridable by the user
4106 code-coverage-capture-hook:
4108 '"$CODE_COVERAGE_RULES_CLEAN"'
4110 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4111 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
4113 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
4120 # Initialize libtool
4121 DEPDIR="${am__leading_dot}deps"
4123 ac_config_commands="$ac_config_commands depfiles"
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4126 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4127 cat > confinc.mk << 'END'
4129 @echo this is the am__doit target >confinc.out
4134 # BSD make does it like this.
4135 echo '.include "confinc.mk" # ignored' > confmf.BSD
4136 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4137 echo 'include confinc.mk # ignored' > confmf.GNU
4139 for s in GNU BSD; do
4140 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4141 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }
4145 case $?:`cat confinc.out 2>/dev/null` in #(
4146 '0:this is the am__doit target') :
4149 am__include='.include' am__quote='"' ;; #(
4151 am__include='include' am__quote='' ;;
4156 if test "$am__include" != "#"; then
4157 _am_result="yes ($s style)"
4161 rm -f confinc.* confmf.*
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4163 $as_echo "${_am_result}" >&6; }
4165 # Check whether --enable-dependency-tracking was given.
4166 if test "${enable_dependency_tracking+set}" = set; then :
4167 enableval=$enable_dependency_tracking;
4170 if test "x$enable_dependency_tracking" != xno; then
4171 am_depcomp="$ac_aux_dir/depcomp"
4175 if test "x$enable_dependency_tracking" != xno; then
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189 if test -n "$ac_tool_prefix"; then
4190 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4191 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193 $as_echo_n "checking for $ac_word... " >&6; }
4194 if ${ac_cv_prog_CC+:} false; then :
4195 $as_echo_n "(cached) " >&6
4197 if test -n "$CC"; then
4198 ac_cv_prog_CC="$CC" # Let the user override the test.
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 if test -n "$CC"; then
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4220 $as_echo "$CC" >&6; }
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 $as_echo "no" >&6; }
4228 if test -z "$ac_cv_prog_CC"; then
4230 # Extract the first word of "gcc", so it can be a program name with args.
4231 set dummy gcc; ac_word=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4235 $as_echo_n "(cached) " >&6
4237 if test -n "$ac_ct_CC"; then
4238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4247 ac_cv_prog_ac_ct_CC="gcc"
4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4258 if test -n "$ac_ct_CC"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4260 $as_echo "$ac_ct_CC" >&6; }
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4266 if test "x$ac_ct_CC" = x; then
4269 case $cross_compiling:$ac_tool_warned in
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4273 ac_tool_warned=yes ;;
4281 if test -z "$CC"; then
4282 if test -n "$ac_tool_prefix"; then
4283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4284 set dummy ${ac_tool_prefix}cc; ac_word=$2
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4286 $as_echo_n "checking for $ac_word... " >&6; }
4287 if ${ac_cv_prog_CC+:} false; then :
4288 $as_echo_n "(cached) " >&6
4290 if test -n "$CC"; then
4291 ac_cv_prog_CC="$CC" # Let the user override the test.
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_CC="${ac_tool_prefix}cc"
4301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 if test -n "$CC"; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4313 $as_echo "$CC" >&6; }
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4322 if test -z "$CC"; then
4323 # Extract the first word of "cc", so it can be a program name with args.
4324 set dummy cc; ac_word=$2
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4326 $as_echo_n "checking for $ac_word... " >&6; }
4327 if ${ac_cv_prog_CC+:} false; then :
4328 $as_echo_n "(cached) " >&6
4330 if test -n "$CC"; then
4331 ac_cv_prog_CC="$CC" # Let the user override the test.
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4341 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4342 ac_prog_rejected=yes
4346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 if test $ac_prog_rejected = yes; then
4354 # We found a bogon in the path, so make sure we never use it.
4355 set dummy $ac_cv_prog_CC
4357 if test $# != 0; then
4358 # We chose a different compiler from the bogus one.
4359 # However, it has the same basename, so the bogon will be chosen
4360 # first if we set CC to just the basename; use the full file name.
4362 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4368 if test -n "$CC"; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4370 $as_echo "$CC" >&6; }
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373 $as_echo "no" >&6; }
4378 if test -z "$CC"; then
4379 if test -n "$ac_tool_prefix"; then
4380 for ac_prog in cl.exe
4382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if ${ac_cv_prog_CC+:} false; then :
4387 $as_echo_n "(cached) " >&6
4389 if test -n "$CC"; then
4390 ac_cv_prog_CC="$CC" # Let the user override the test.
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 if test -n "$CC"; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4412 $as_echo "$CC" >&6; }
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4419 test -n "$CC" && break
4422 if test -z "$CC"; then
4424 for ac_prog in cl.exe
4426 # Extract the first word of "$ac_prog", so it can be a program name with args.
4427 set dummy $ac_prog; ac_word=$2
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429 $as_echo_n "checking for $ac_word... " >&6; }
4430 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4431 $as_echo_n "(cached) " >&6
4433 if test -n "$ac_ct_CC"; then
4434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 ac_cv_prog_ac_ct_CC="$ac_prog"
4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4454 if test -n "$ac_ct_CC"; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4456 $as_echo "$ac_ct_CC" >&6; }
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 $as_echo "no" >&6; }
4463 test -n "$ac_ct_CC" && break
4466 if test "x$ac_ct_CC" = x; then
4469 case $cross_compiling:$ac_tool_warned in
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4473 ac_tool_warned=yes ;;
4482 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484 as_fn_error $? "no acceptable C compiler found in \$PATH
4485 See \`config.log' for more details" "$LINENO" 5; }
4487 # Provide some information about the compiler.
4488 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4491 for ac_option in --version -v -V -qversion; do
4492 { { ac_try="$ac_compiler $ac_option >&5"
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4498 $as_echo "$ac_try_echo"; } >&5
4499 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4501 if test -s conftest.err; then
4503 ... rest of stderr output deleted ...
4504 10q' conftest.err >conftest.er1
4505 cat conftest.er1 >&5
4507 rm -f conftest.er1 conftest.err
4508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509 test $ac_status = 0; }
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4523 ac_clean_files_save=$ac_clean_files
4524 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4525 # Try to create an executable without -o first, disregard a.out.
4526 # It will help us diagnose broken compilers, and finding out an intuition
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4529 $as_echo_n "checking whether the C compiler works... " >&6; }
4530 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4532 # The possible output files:
4533 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4536 for ac_file in $ac_files
4539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4540 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4545 if { { ac_try="$ac_link_default"
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4551 $as_echo "$ac_try_echo"; } >&5
4552 (eval "$ac_link_default") 2>&5
4554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4555 test $ac_status = 0; }; then :
4556 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4557 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4558 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4559 # so that the user can short-circuit this test for compilers unknown to
4561 for ac_file in $ac_files ''
4563 test -f "$ac_file" || continue
4565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4568 # We found the default executable, but exeext='' is most
4572 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4574 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4576 # We set ac_cv_exeext here because the later test for it is not
4577 # safe: cross compilers may not add the suffix if given an `-o'
4578 # argument, so we may need to know it at that point already.
4579 # Even if this section looks crufty: it has the advantage of
4586 test "$ac_cv_exeext" = no && ac_cv_exeext=
4591 if test -z "$ac_file"; then :
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4594 $as_echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4599 as_fn_error 77 "C compiler cannot create executables
4600 See \`config.log' for more details" "$LINENO" 5; }
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4603 $as_echo "yes" >&6; }
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4606 $as_echo_n "checking for C compiler default output file name... " >&6; }
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4608 $as_echo "$ac_file" >&6; }
4609 ac_exeext=$ac_cv_exeext
4611 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4612 ac_clean_files=$ac_clean_files_save
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4614 $as_echo_n "checking for suffix of executables... " >&6; }
4615 if { { ac_try="$ac_link"
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621 $as_echo "$ac_try_echo"; } >&5
4622 (eval "$ac_link") 2>&5
4624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4625 test $ac_status = 0; }; then :
4626 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4627 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4628 # work properly (i.e., refer to `conftest.exe'), while it won't with
4630 for ac_file in conftest.exe conftest conftest.*; do
4631 test -f "$ac_file" || continue
4633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4634 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4642 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4643 See \`config.log' for more details" "$LINENO" 5; }
4645 rm -f conftest conftest$ac_cv_exeext
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4647 $as_echo "$ac_cv_exeext" >&6; }
4649 rm -f conftest.$ac_ext
4650 EXEEXT=$ac_cv_exeext
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4658 FILE *f = fopen ("conftest.out", "w");
4659 return ferror (f) || fclose (f) != 0;
4665 ac_clean_files="$ac_clean_files conftest.out"
4666 # Check that the compiler produces executables we can run. If not, either
4667 # the compiler is broken, or we cross compile.
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4669 $as_echo_n "checking whether we are cross compiling... " >&6; }
4670 if test "$cross_compiling" != yes; then
4671 { { ac_try="$ac_link"
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4677 $as_echo "$ac_try_echo"; } >&5
4678 (eval "$ac_link") 2>&5
4680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4681 test $ac_status = 0; }
4682 if { ac_try='./conftest$ac_cv_exeext'
4683 { { case "(($ac_try" in
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4688 $as_echo "$ac_try_echo"; } >&5
4689 (eval "$ac_try") 2>&5
4691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4692 test $ac_status = 0; }; }; then
4695 if test "$cross_compiling" = maybe; then
4698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4700 as_fn_error $? "cannot run C compiled programs.
4701 If you meant to cross compile, use \`--host'.
4702 See \`config.log' for more details" "$LINENO" 5; }
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4707 $as_echo "$cross_compiling" >&6; }
4709 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4710 ac_clean_files=$ac_clean_files_save
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4712 $as_echo_n "checking for suffix of object files... " >&6; }
4713 if ${ac_cv_objext+:} false; then :
4714 $as_echo_n "(cached) " >&6
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4727 rm -f conftest.o conftest.obj
4728 if { { ac_try="$ac_compile"
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4734 $as_echo "$ac_try_echo"; } >&5
4735 (eval "$ac_compile") 2>&5
4737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4738 test $ac_status = 0; }; then :
4739 for ac_file in conftest.o conftest.obj conftest.*; do
4740 test -f "$ac_file" || continue;
4742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4743 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4748 $as_echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4753 as_fn_error $? "cannot compute suffix of object files: cannot compile
4754 See \`config.log' for more details" "$LINENO" 5; }
4756 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4759 $as_echo "$ac_cv_objext" >&6; }
4760 OBJEXT=$ac_cv_objext
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4763 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4764 if ${ac_cv_c_compiler_gnu+:} false; then :
4765 $as_echo_n "(cached) " >&6
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4781 if ac_fn_c_try_compile "$LINENO"; then :
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4791 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4792 if test $ac_compiler_gnu = yes; then
4797 ac_test_CFLAGS=${CFLAGS+set}
4798 ac_save_CFLAGS=$CFLAGS
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4800 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4801 if ${ac_cv_prog_cc_g+:} false; then :
4802 $as_echo_n "(cached) " >&6
4804 ac_save_c_werror_flag=$ac_c_werror_flag
4805 ac_c_werror_flag=yes
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4819 if ac_fn_c_try_compile "$LINENO"; then :
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4834 if ac_fn_c_try_compile "$LINENO"; then :
4837 ac_c_werror_flag=$ac_save_c_werror_flag
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4850 if ac_fn_c_try_compile "$LINENO"; then :
4853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858 ac_c_werror_flag=$ac_save_c_werror_flag
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4861 $as_echo "$ac_cv_prog_cc_g" >&6; }
4862 if test "$ac_test_CFLAGS" = set; then
4863 CFLAGS=$ac_save_CFLAGS
4864 elif test $ac_cv_prog_cc_g = yes; then
4865 if test "$GCC" = yes; then
4871 if test "$GCC" = yes; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4878 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4879 if ${ac_cv_prog_cc_c89+:} false; then :
4880 $as_echo_n "(cached) " >&6
4882 ac_cv_prog_cc_c89=no
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4889 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4890 struct buf { int x; };
4891 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4892 static char *e (p, i)
4898 static char *f (char * (*g) (char **, int), char **p, ...)
4903 s = g (p, va_arg (v,int));
4908 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4909 function prototypes and stuff, but not '\xHH' hex character constants.
4910 These don't provoke an error unfortunately, instead are silently treated
4911 as 'x'. The following induces an error, until -std is added to get
4912 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4913 array size at least. It's necessary to write '\x00'==0 to get something
4914 that's true only with -std. */
4915 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4917 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4918 inside strings and character constants. */
4920 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4922 int test (int i, double x);
4923 struct s1 {int (*f) (int a);};
4924 struct s2 {int (*f) (double a);};
4925 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4931 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4936 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4937 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4939 CC="$ac_save_CC $ac_arg"
4940 if ac_fn_c_try_compile "$LINENO"; then :
4941 ac_cv_prog_cc_c89=$ac_arg
4943 rm -f core conftest.err conftest.$ac_objext
4944 test "x$ac_cv_prog_cc_c89" != "xno" && break
4946 rm -f conftest.$ac_ext
4951 case "x$ac_cv_prog_cc_c89" in
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4954 $as_echo "none needed" >&6; } ;;
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4957 $as_echo "unsupported" >&6; } ;;
4959 CC="$CC $ac_cv_prog_cc_c89"
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4961 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4963 if test "x$ac_cv_prog_cc_c89" != xno; then :
4968 ac_cpp='$CPP $CPPFLAGS'
4969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4974 ac_cpp='$CPP $CPPFLAGS'
4975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4979 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4980 if ${am_cv_prog_cc_c_o+:} false; then :
4981 $as_echo_n "(cached) " >&6
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4994 # Make sure it works both with $CC and with simple cc.
4995 # Following AC_PROG_CC_C_O, we do the test twice because some
4996 # compilers refuse to overwrite an existing .o file with -o,
4997 # though they will create one.
4998 am_cv_prog_cc_c_o=yes
5000 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5001 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } \
5005 && test -f conftest2.$ac_objext; then
5008 am_cv_prog_cc_c_o=no
5012 rm -f core conftest*
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5016 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5017 if test "$am_cv_prog_cc_c_o" != yes; then
5018 # Losing compiler, so override with the script.
5019 # FIXME: It is wrong to rewrite CC.
5020 # But if we don't then we get into trouble of one sort or another.
5021 # A longer-term fix would be to have automake use am__CC in this case,
5022 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5023 CC="$am_aux_dir/compile $CC"
5026 ac_cpp='$CPP $CPPFLAGS'
5027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5032 depcc="$CC" am_compiler_list=
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5035 $as_echo_n "checking dependency style of $depcc... " >&6; }
5036 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5037 $as_echo_n "(cached) " >&6
5039 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5040 # We make a subdir and do the tests there. Otherwise we can end up
5041 # making bogus files that we don't know about and never remove. For
5042 # instance it was reported that on HP-UX the gcc test will end up
5043 # making a dummy file named 'D' -- because '-MD' means "put the output
5047 # Copy depcomp to subdir because otherwise we won't find it if we're
5048 # using a relative directory.
5049 cp "$am_depcomp" conftest.dir
5051 # We will build objects and dependencies in a subdirectory because
5052 # it helps to detect inapplicable dependency modes. For instance
5053 # both Tru64's cc and ICC support -MD to output dependencies as a
5054 # side effect of compilation, but ICC will put the dependencies in
5055 # the current directory while Tru64 will put them in the object
5059 am_cv_CC_dependencies_compiler_type=none
5060 if test "$am_compiler_list" = ""; then
5061 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5064 case " $depcc " in #(
5065 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5068 for depmode in $am_compiler_list; do
5069 # Setup a source with many dependencies, because some compilers
5070 # like to wrap large dependency lists on column 80 (with \), and
5071 # we should not choose a depcomp mode which is confused by this.
5073 # We need to recreate these files for each test, as the compiler may
5074 # overwrite some of them when testing with obscure command lines.
5075 # This happens at least with the AIX C compiler.
5077 for i in 1 2 3 4 5 6; do
5078 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5079 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5080 # Solaris 10 /bin/sh.
5081 echo '/* dummy */' > sub/conftst$i.h
5083 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5085 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5086 # mode. It turns out that the SunPro C++ compiler does not properly
5087 # handle '-M -o', and we need to detect this. Also, some Intel
5088 # versions had trouble with output in subdirs.
5089 am__obj=sub/conftest.${OBJEXT-o}
5090 am__minus_obj="-o $am__obj"
5093 # This depmode causes a compiler race in universal mode.
5094 test "$am__universal" = false || continue
5097 # After this tag, mechanisms are not by side-effect, so they'll
5098 # only be used when explicitly requested.
5099 if test "x$enable_dependency_tracking" = xyes; then
5105 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5106 # This compiler won't grok '-c -o', but also, the minuso test has
5107 # not run yet. These depmodes are late enough in the game, and
5108 # so weak that their functioning should not be impacted.
5109 am__obj=conftest.${OBJEXT-o}
5114 if depmode=$depmode \
5115 source=sub/conftest.c object=$am__obj \
5116 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5117 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5118 >/dev/null 2>conftest.err &&
5119 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5120 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5121 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5122 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5123 # icc doesn't choke on unknown options, it will just issue warnings
5124 # or remarks (even with -Werror). So we grep stderr for any message
5125 # that says an option was ignored or not supported.
5126 # When given -MP, icc 7.0 and 7.1 complain thusly:
5127 # icc: Command line warning: ignoring option '-M'; no argument required
5128 # The diagnosis changed in icc 8.0:
5129 # icc: Command line remark: option '-MP' not supported
5130 if (grep 'ignoring option' conftest.err ||
5131 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5132 am_cv_CC_dependencies_compiler_type=$depmode
5141 am_cv_CC_dependencies_compiler_type=none
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5146 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5147 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5150 test "x$enable_dependency_tracking" != xno \
5151 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5153 am__fastdepCC_FALSE='#'
5155 am__fastdepCC_TRUE='#'
5156 am__fastdepCC_FALSE=
5161 if test -n "$ac_tool_prefix"; then
5162 for ac_prog in ar lib "link -lib"
5164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_prog_AR+:} false; then :
5169 $as_echo_n "(cached) " >&6
5171 if test -n "$AR"; then
5172 ac_cv_prog_AR="$AR" # Let the user override the test.
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 if test -n "$AR"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5194 $as_echo "$AR" >&6; }
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5201 test -n "$AR" && break
5204 if test -z "$AR"; then
5206 for ac_prog in ar lib "link -lib"
5208 # Extract the first word of "$ac_prog", so it can be a program name with args.
5209 set dummy $ac_prog; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5213 $as_echo_n "(cached) " >&6
5215 if test -n "$ac_ct_AR"; then
5216 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_prog_ac_ct_AR="$ac_prog"
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5236 if test -n "$ac_ct_AR"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5238 $as_echo "$ac_ct_AR" >&6; }
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5245 test -n "$ac_ct_AR" && break
5248 if test "x$ac_ct_AR" = x; then
5251 case $cross_compiling:$ac_tool_warned in
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255 ac_tool_warned=yes ;;
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5264 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5265 if ${am_cv_ar_interface+:} false; then :
5266 $as_echo_n "(cached) " >&6
5269 ac_cpp='$CPP $CPPFLAGS'
5270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5274 am_cv_ar_interface=ar
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 int some_variable = 0;
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5282 (eval $am_ar_try) 2>&5
5284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5285 test $ac_status = 0; }
5286 if test "$ac_status" -eq 0; then
5287 am_cv_ar_interface=ar
5289 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5291 (eval $am_ar_try) 2>&5
5293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5294 test $ac_status = 0; }
5295 if test "$ac_status" -eq 0; then
5296 am_cv_ar_interface=lib
5298 am_cv_ar_interface=unknown
5301 rm -f conftest.lib libconftest.a
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 ac_cpp='$CPP $CPPFLAGS'
5307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5313 $as_echo "$am_cv_ar_interface" >&6; }
5315 case $am_cv_ar_interface in
5319 # Microsoft lib, so override with the ar-lib wrapper script.
5320 # FIXME: It is wrong to rewrite AR.
5321 # But if we don't then we get into trouble of one sort or another.
5322 # A longer-term fix would be to have automake use am__AR in this case,
5323 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5325 AR="$am_aux_dir/ar-lib $AR"
5328 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5336 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5341 macro_version='2.4.6'
5342 macro_revision='2.4.6'
5356 ltmain=$ac_aux_dir/ltmain.sh
5358 # Make sure we can run config.sub.
5359 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5360 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5363 $as_echo_n "checking build system type... " >&6; }
5364 if ${ac_cv_build+:} false; then :
5365 $as_echo_n "(cached) " >&6
5367 ac_build_alias=$build_alias
5368 test "x$ac_build_alias" = x &&
5369 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5370 test "x$ac_build_alias" = x &&
5371 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5372 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5373 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5377 $as_echo "$ac_cv_build" >&6; }
5378 case $ac_cv_build in
5380 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5383 ac_save_IFS=$IFS; IFS='-'
5389 # Remember, the first character of IFS is used to create $*,
5390 # except with old shells:
5393 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5397 $as_echo_n "checking host system type... " >&6; }
5398 if ${ac_cv_host+:} false; then :
5399 $as_echo_n "(cached) " >&6
5401 if test "x$host_alias" = x; then
5402 ac_cv_host=$ac_cv_build
5404 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5405 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5410 $as_echo "$ac_cv_host" >&6; }
5413 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5416 ac_save_IFS=$IFS; IFS='-'
5422 # Remember, the first character of IFS is used to create $*,
5423 # except with old shells:
5426 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5429 # Backslashify metacharacters that are still active within
5430 # double-quoted strings.
5431 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5433 # Same as above, but do not quote variable references.
5434 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5436 # Sed substitution to delay expansion of an escaped shell variable in a
5437 # double_quote_subst'ed string.
5438 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5440 # Sed substitution to delay expansion of an escaped single quote.
5441 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5443 # Sed substitution to avoid accidental globbing in evaled expressions
5444 no_glob_subst='s/\*/\\\*/g'
5446 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5447 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5448 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5451 $as_echo_n "checking how to print strings... " >&6; }
5452 # Test print first, because it will be a builtin if present.
5453 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5454 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5456 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5459 # Use this function as a fallback that always works.
5460 func_fallback_echo ()
5462 eval 'cat <<_LTECHO_EOF
5466 ECHO='func_fallback_echo'
5469 # func_echo_all arg...
5470 # Invoke $ECHO with all args, space-separated.
5477 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5478 $as_echo "printf" >&6; } ;;
5479 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5480 $as_echo "print -r" >&6; } ;;
5481 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5482 $as_echo "cat" >&6; } ;;
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5499 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5500 if ${ac_cv_path_SED+:} false; then :
5501 $as_echo_n "(cached) " >&6
5503 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5504 for ac_i in 1 2 3 4 5 6 7; do
5505 ac_script="$ac_script$as_nl$ac_script"
5507 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5508 { ac_script=; unset ac_script;}
5509 if test -z "$SED"; then
5510 ac_path_SED_found=false
5511 # Loop through the user's path and test for each of PROGNAME-LIST
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 test -z "$as_dir" && as_dir=.
5517 for ac_prog in sed gsed; do
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5520 as_fn_executable_p "$ac_path_SED" || continue
5521 # Check for GNU ac_path_SED and select it if it is found.
5522 # Check for GNU $ac_path_SED
5523 case `"$ac_path_SED" --version 2>&1` in
5525 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5528 $as_echo_n 0123456789 >"conftest.in"
5531 cat "conftest.in" "conftest.in" >"conftest.tmp"
5532 mv "conftest.tmp" "conftest.in"
5533 cp "conftest.in" "conftest.nl"
5534 $as_echo '' >> "conftest.nl"
5535 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5537 as_fn_arith $ac_count + 1 && ac_count=$as_val
5538 if test $ac_count -gt ${ac_path_SED_max-0}; then
5539 # Best one so far, save it but keep looking for a better one
5540 ac_cv_path_SED="$ac_path_SED"
5541 ac_path_SED_max=$ac_count
5543 # 10*(2^10) chars as input seems more than enough
5544 test $ac_count -gt 10 && break
5546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5549 $ac_path_SED_found && break 3
5554 if test -z "$ac_cv_path_SED"; then
5555 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5563 $as_echo "$ac_cv_path_SED" >&6; }
5564 SED="$ac_cv_path_SED"
5567 test -z "$SED" && SED=sed
5568 Xsed="$SED -e 1s/^X//"
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5581 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5582 if ${ac_cv_path_GREP+:} false; then :
5583 $as_echo_n "(cached) " >&6
5585 if test -z "$GREP"; then
5586 ac_path_GREP_found=false
5587 # Loop through the user's path and test for each of PROGNAME-LIST
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5592 test -z "$as_dir" && as_dir=.
5593 for ac_prog in grep ggrep; do
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5596 as_fn_executable_p "$ac_path_GREP" || continue
5597 # Check for GNU ac_path_GREP and select it if it is found.
5598 # Check for GNU $ac_path_GREP
5599 case `"$ac_path_GREP" --version 2>&1` in
5601 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5604 $as_echo_n 0123456789 >"conftest.in"
5607 cat "conftest.in" "conftest.in" >"conftest.tmp"
5608 mv "conftest.tmp" "conftest.in"
5609 cp "conftest.in" "conftest.nl"
5610 $as_echo 'GREP' >> "conftest.nl"
5611 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5613 as_fn_arith $ac_count + 1 && ac_count=$as_val
5614 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5615 # Best one so far, save it but keep looking for a better one
5616 ac_cv_path_GREP="$ac_path_GREP"
5617 ac_path_GREP_max=$ac_count
5619 # 10*(2^10) chars as input seems more than enough
5620 test $ac_count -gt 10 && break
5622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5625 $ac_path_GREP_found && break 3
5630 if test -z "$ac_cv_path_GREP"; then
5631 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5634 ac_cv_path_GREP=$GREP
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5639 $as_echo "$ac_cv_path_GREP" >&6; }
5640 GREP="$ac_cv_path_GREP"
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5644 $as_echo_n "checking for egrep... " >&6; }
5645 if ${ac_cv_path_EGREP+:} false; then :
5646 $as_echo_n "(cached) " >&6
5648 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5649 then ac_cv_path_EGREP="$GREP -E"
5651 if test -z "$EGREP"; then
5652 ac_path_EGREP_found=false
5653 # Loop through the user's path and test for each of PROGNAME-LIST
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5658 test -z "$as_dir" && as_dir=.
5659 for ac_prog in egrep; do
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5662 as_fn_executable_p "$ac_path_EGREP" || continue
5663 # Check for GNU ac_path_EGREP and select it if it is found.
5664 # Check for GNU $ac_path_EGREP
5665 case `"$ac_path_EGREP" --version 2>&1` in
5667 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5670 $as_echo_n 0123456789 >"conftest.in"
5673 cat "conftest.in" "conftest.in" >"conftest.tmp"
5674 mv "conftest.tmp" "conftest.in"
5675 cp "conftest.in" "conftest.nl"
5676 $as_echo 'EGREP' >> "conftest.nl"
5677 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5679 as_fn_arith $ac_count + 1 && ac_count=$as_val
5680 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5681 # Best one so far, save it but keep looking for a better one
5682 ac_cv_path_EGREP="$ac_path_EGREP"
5683 ac_path_EGREP_max=$ac_count
5685 # 10*(2^10) chars as input seems more than enough
5686 test $ac_count -gt 10 && break
5688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5691 $ac_path_EGREP_found && break 3
5696 if test -z "$ac_cv_path_EGREP"; then
5697 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5700 ac_cv_path_EGREP=$EGREP
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5706 $as_echo "$ac_cv_path_EGREP" >&6; }
5707 EGREP="$ac_cv_path_EGREP"
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5711 $as_echo_n "checking for fgrep... " >&6; }
5712 if ${ac_cv_path_FGREP+:} false; then :
5713 $as_echo_n "(cached) " >&6
5715 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5716 then ac_cv_path_FGREP="$GREP -F"
5718 if test -z "$FGREP"; then
5719 ac_path_FGREP_found=false
5720 # Loop through the user's path and test for each of PROGNAME-LIST
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5725 test -z "$as_dir" && as_dir=.
5726 for ac_prog in fgrep; do
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5729 as_fn_executable_p "$ac_path_FGREP" || continue
5730 # Check for GNU ac_path_FGREP and select it if it is found.
5731 # Check for GNU $ac_path_FGREP
5732 case `"$ac_path_FGREP" --version 2>&1` in
5734 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5737 $as_echo_n 0123456789 >"conftest.in"
5740 cat "conftest.in" "conftest.in" >"conftest.tmp"
5741 mv "conftest.tmp" "conftest.in"
5742 cp "conftest.in" "conftest.nl"
5743 $as_echo 'FGREP' >> "conftest.nl"
5744 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5745 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5746 as_fn_arith $ac_count + 1 && ac_count=$as_val
5747 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5748 # Best one so far, save it but keep looking for a better one
5749 ac_cv_path_FGREP="$ac_path_FGREP"
5750 ac_path_FGREP_max=$ac_count
5752 # 10*(2^10) chars as input seems more than enough
5753 test $ac_count -gt 10 && break
5755 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5758 $ac_path_FGREP_found && break 3
5763 if test -z "$ac_cv_path_FGREP"; then
5764 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5767 ac_cv_path_FGREP=$FGREP
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5773 $as_echo "$ac_cv_path_FGREP" >&6; }
5774 FGREP="$ac_cv_path_FGREP"
5777 test -z "$GREP" && GREP=grep
5797 # Check whether --with-gnu-ld was given.
5798 if test "${with_gnu_ld+set}" = set; then :
5799 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5805 if test yes = "$GCC"; then
5806 # Check if gcc -print-prog-name=ld gives a path.
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5808 $as_echo_n "checking for ld used by $CC... " >&6; }
5811 # gcc leaves a trailing carriage return, which upsets mingw
5812 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5814 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5817 # Accept absolute paths.
5819 re_direlt='/[^/][^/]*/\.\./'
5820 # Canonicalize the pathname of ld
5821 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5822 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5823 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5825 test -z "$LD" && LD=$ac_prog
5828 # If it fails, then pretend we aren't using GCC.
5832 # If it is relative, then search for the first ld in PATH.
5836 elif test yes = "$with_gnu_ld"; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5838 $as_echo_n "checking for GNU ld... " >&6; }
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5841 $as_echo_n "checking for non-GNU ld... " >&6; }
5843 if ${lt_cv_path_LD+:} false; then :
5844 $as_echo_n "(cached) " >&6
5846 if test -z "$LD"; then
5847 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5848 for ac_dir in $PATH; do
5850 test -z "$ac_dir" && ac_dir=.
5851 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5852 lt_cv_path_LD=$ac_dir/$ac_prog
5853 # Check to see if the program is GNU ld. I'd rather use --version,
5854 # but apparently some variants of GNU ld only accept -v.
5855 # Break only if it was the GNU/non-GNU ld that we prefer.
5856 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5857 *GNU* | *'with BFD'*)
5858 test no != "$with_gnu_ld" && break
5861 test yes != "$with_gnu_ld" && break
5868 lt_cv_path_LD=$LD # Let the user override the test with a path.
5873 if test -n "$LD"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5875 $as_echo "$LD" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5880 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5882 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5883 if ${lt_cv_prog_gnu_ld+:} false; then :
5884 $as_echo_n "(cached) " >&6
5886 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5887 case `$LD -v 2>&1 </dev/null` in
5888 *GNU* | *'with BFD'*)
5889 lt_cv_prog_gnu_ld=yes
5892 lt_cv_prog_gnu_ld=no
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5897 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5898 with_gnu_ld=$lt_cv_prog_gnu_ld
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5909 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5910 if ${lt_cv_path_NM+:} false; then :
5911 $as_echo_n "(cached) " >&6
5913 if test -n "$NM"; then
5914 # Let the user override the test.
5917 lt_nm_to_check=${ac_tool_prefix}nm
5918 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5919 lt_nm_to_check="$lt_nm_to_check nm"
5921 for lt_tmp_nm in $lt_nm_to_check; do
5922 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5923 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5925 test -z "$ac_dir" && ac_dir=.
5926 tmp_nm=$ac_dir/$lt_tmp_nm
5927 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5928 # Check to see if the nm accepts a BSD-compat flag.
5929 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5930 # nm: unknown option "B" ignored
5931 # Tru64's nm complains that /dev/null is an invalid object file
5932 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5934 mingw*) lt_bad_file=conftest.nm/nofile ;;
5935 *) lt_bad_file=/dev/null ;;
5937 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5938 *$lt_bad_file* | *'Invalid file or object type'*)
5939 lt_cv_path_NM="$tmp_nm -B"
5943 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5945 lt_cv_path_NM="$tmp_nm -p"
5949 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5950 continue # so that we can try to find one that supports BSD flags
5959 : ${lt_cv_path_NM=no}
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5963 $as_echo "$lt_cv_path_NM" >&6; }
5964 if test no != "$lt_cv_path_NM"; then
5967 # Didn't find any BSD compatible name lister, look for dumpbin.
5968 if test -n "$DUMPBIN"; then :
5969 # Let the user override the test.
5971 if test -n "$ac_tool_prefix"; then
5972 for ac_prog in dumpbin "link -dump"
5974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977 $as_echo_n "checking for $ac_word... " >&6; }
5978 if ${ac_cv_prog_DUMPBIN+:} false; then :
5979 $as_echo_n "(cached) " >&6
5981 if test -n "$DUMPBIN"; then
5982 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5991 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 DUMPBIN=$ac_cv_prog_DUMPBIN
6002 if test -n "$DUMPBIN"; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6004 $as_echo "$DUMPBIN" >&6; }
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007 $as_echo "no" >&6; }
6011 test -n "$DUMPBIN" && break
6014 if test -z "$DUMPBIN"; then
6015 ac_ct_DUMPBIN=$DUMPBIN
6016 for ac_prog in dumpbin "link -dump"
6018 # Extract the first word of "$ac_prog", so it can be a program name with args.
6019 set dummy $ac_prog; ac_word=$2
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021 $as_echo_n "checking for $ac_word... " >&6; }
6022 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6023 $as_echo_n "(cached) " >&6
6025 if test -n "$ac_ct_DUMPBIN"; then
6026 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6035 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6046 if test -n "$ac_ct_DUMPBIN"; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6048 $as_echo "$ac_ct_DUMPBIN" >&6; }
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051 $as_echo "no" >&6; }
6055 test -n "$ac_ct_DUMPBIN" && break
6058 if test "x$ac_ct_DUMPBIN" = x; then
6061 case $cross_compiling:$ac_tool_warned in
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6065 ac_tool_warned=yes ;;
6067 DUMPBIN=$ac_ct_DUMPBIN
6071 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6073 DUMPBIN="$DUMPBIN -symbols -headers"
6081 if test : != "$DUMPBIN"; then
6085 test -z "$NM" && NM=nm
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6093 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6094 if ${lt_cv_nm_interface+:} false; then :
6095 $as_echo_n "(cached) " >&6
6097 lt_cv_nm_interface="BSD nm"
6098 echo "int some_variable = 0;" > conftest.$ac_ext
6099 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6100 (eval "$ac_compile" 2>conftest.err)
6101 cat conftest.err >&5
6102 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6103 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6104 cat conftest.err >&5
6105 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6106 cat conftest.out >&5
6107 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6108 lt_cv_nm_interface="MS dumpbin"
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6113 $as_echo "$lt_cv_nm_interface" >&6; }
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6116 $as_echo_n "checking whether ln -s works... " >&6; }
6118 if test "$LN_S" = "ln -s"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6120 $as_echo "yes" >&6; }
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6123 $as_echo "no, using $LN_S" >&6; }
6126 # find the maximum length of command line arguments
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6128 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6129 if ${lt_cv_sys_max_cmd_len+:} false; then :
6130 $as_echo_n "(cached) " >&6
6137 # On DJGPP, this test can blow up pretty badly due to problems in libc
6138 # (any single argument exceeding 2000 bytes causes a buffer overrun
6139 # during glob expansion). Even if it were fixed, the result of this
6140 # check would be larger than it should be.
6141 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6145 # Under GNU Hurd, this test is not required because there is
6146 # no limit to the length of command line arguments.
6147 # Libtool will interpret -1 as no limit whatsoever
6148 lt_cv_sys_max_cmd_len=-1;
6151 cygwin* | mingw* | cegcc*)
6152 # On Win9x/ME, this test blows up -- it succeeds, but takes
6153 # about 5 minutes as the teststring grows exponentially.
6154 # Worse, since 9x/ME are not pre-emptively multitasking,
6155 # you end up with a "frozen" computer, even though with patience
6156 # the test eventually succeeds (with a max line length of 256k).
6157 # Instead, let's just punt: use the minimum linelength reported by
6158 # all of the supported platforms: 8192 (on NT/2K/XP).
6159 lt_cv_sys_max_cmd_len=8192;
6163 # On MiNT this can take a long time and run out of memory.
6164 lt_cv_sys_max_cmd_len=8192;
6168 # On AmigaOS with pdksh, this test takes hours, literally.
6169 # So we just punt and use a minimum line length of 8192.
6170 lt_cv_sys_max_cmd_len=8192;
6173 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6174 # This has been around since 386BSD, at least. Likely further.
6175 if test -x /sbin/sysctl; then
6176 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6177 elif test -x /usr/sbin/sysctl; then
6178 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6180 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6182 # And add a safety zone
6183 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6188 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6189 lt_cv_sys_max_cmd_len=196608
6193 # The test takes a long time on OS/2.
6194 lt_cv_sys_max_cmd_len=8192
6198 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6199 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6200 # nice to cause kernel panics so lets avoid the loop below.
6201 # First set a reasonable default.
6202 lt_cv_sys_max_cmd_len=16384
6204 if test -x /sbin/sysconfig; then
6205 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6206 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6211 lt_cv_sys_max_cmd_len=102400
6213 sysv5* | sco5v6* | sysv4.2uw2*)
6214 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6215 if test -n "$kargmax"; then
6216 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6218 lt_cv_sys_max_cmd_len=32768
6222 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6223 if test -n "$lt_cv_sys_max_cmd_len" && \
6224 test undefined != "$lt_cv_sys_max_cmd_len"; then
6225 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6226 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6228 # Make teststring a little bigger before we do anything with it.
6229 # a 1K string should be a reasonable start.
6230 for i in 1 2 3 4 5 6 7 8; do
6231 teststring=$teststring$teststring
6233 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6234 # If test is not a shell built-in, we'll probably end up computing a
6235 # maximum length that is only half of the actual maximum length, but
6237 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6238 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6239 test 17 != "$i" # 1/2 MB should be enough
6242 teststring=$teststring$teststring
6244 # Only check the string length outside the loop.
6245 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6247 # Add a significant safety factor because C++ compilers can tack on
6248 # massive amounts of additional arguments before passing them to the
6249 # linker. It appears as though 1/2 is a usable value.
6250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6257 if test -n "$lt_cv_sys_max_cmd_len"; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6259 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6262 $as_echo "none" >&6; }
6264 max_cmd_len=$lt_cv_sys_max_cmd_len
6275 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6285 # test EBCDIC or ASCII
6286 case `echo X|tr X '\101'` in
6287 A) # ASCII based system
6288 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6289 lt_SP2NL='tr \040 \012'
6290 lt_NL2SP='tr \015\012 \040\040'
6292 *) # EBCDIC based system
6293 lt_SP2NL='tr \100 \n'
6294 lt_NL2SP='tr \r\n \100\100'
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6307 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6308 if ${lt_cv_to_host_file_cmd+:} false; then :
6309 $as_echo_n "(cached) " >&6
6314 *-*-mingw* ) # actually msys
6315 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6318 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6320 * ) # otherwise, assume *nix
6321 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6327 *-*-mingw* ) # actually msys
6328 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6331 lt_cv_to_host_file_cmd=func_convert_file_noop
6333 * ) # otherwise, assume *nix
6334 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6338 * ) # unhandled hosts (and "normal" native builds)
6339 lt_cv_to_host_file_cmd=func_convert_file_noop
6345 to_host_file_cmd=$lt_cv_to_host_file_cmd
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6347 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6354 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6355 if ${lt_cv_to_tool_file_cmd+:} false; then :
6356 $as_echo_n "(cached) " >&6
6358 #assume ordinary cross tools, or native build.
6359 lt_cv_to_tool_file_cmd=func_convert_file_noop
6363 *-*-mingw* ) # actually msys
6364 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6372 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6374 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6381 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6382 if ${lt_cv_ld_reload_flag+:} false; then :
6383 $as_echo_n "(cached) " >&6
6385 lt_cv_ld_reload_flag='-r'
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6388 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6389 reload_flag=$lt_cv_ld_reload_flag
6390 case $reload_flag in
6392 *) reload_flag=" $reload_flag" ;;
6394 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6396 cygwin* | mingw* | pw32* | cegcc*)
6397 if test yes != "$GCC"; then
6402 if test yes = "$GCC"; then
6403 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6405 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6418 if test -n "$ac_tool_prefix"; then
6419 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6420 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_prog_OBJDUMP+:} false; then :
6424 $as_echo_n "(cached) " >&6
6426 if test -n "$OBJDUMP"; then
6427 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 OBJDUMP=$ac_cv_prog_OBJDUMP
6447 if test -n "$OBJDUMP"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6449 $as_echo "$OBJDUMP" >&6; }
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6457 if test -z "$ac_cv_prog_OBJDUMP"; then
6458 ac_ct_OBJDUMP=$OBJDUMP
6459 # Extract the first word of "objdump", so it can be a program name with args.
6460 set dummy objdump; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6464 $as_echo_n "(cached) " >&6
6466 if test -n "$ac_ct_OBJDUMP"; then
6467 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6487 if test -n "$ac_ct_OBJDUMP"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6489 $as_echo "$ac_ct_OBJDUMP" >&6; }
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6495 if test "x$ac_ct_OBJDUMP" = x; then
6498 case $cross_compiling:$ac_tool_warned in
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6502 ac_tool_warned=yes ;;
6504 OBJDUMP=$ac_ct_OBJDUMP
6507 OBJDUMP="$ac_cv_prog_OBJDUMP"
6510 test -z "$OBJDUMP" && OBJDUMP=objdump
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6521 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6522 if ${lt_cv_deplibs_check_method+:} false; then :
6523 $as_echo_n "(cached) " >&6
6525 lt_cv_file_magic_cmd='$MAGIC_CMD'
6526 lt_cv_file_magic_test_file=
6527 lt_cv_deplibs_check_method='unknown'
6528 # Need to set the preceding variable on all platforms that support
6529 # interlibrary dependencies.
6530 # 'none' -- dependencies not supported.
6531 # 'unknown' -- same as none, but documents that we really don't know.
6532 # 'pass_all' -- all dependencies passed with no checks.
6533 # 'test_compile' -- check by making test program.
6534 # 'file_magic [[regex]]' -- check by looking for files in library path
6535 # that responds to the $file_magic_cmd with a given extended regex.
6536 # If you have 'file' or equivalent on your system and you're not sure
6537 # whether 'pass_all' will *always* work, you probably want this one.
6541 lt_cv_deplibs_check_method=pass_all
6545 lt_cv_deplibs_check_method=pass_all
6549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6550 lt_cv_file_magic_cmd='/usr/bin/file -L'
6551 lt_cv_file_magic_test_file=/shlib/libc.so
6555 # func_win32_libid is a shell function defined in ltmain.sh
6556 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6557 lt_cv_file_magic_cmd='func_win32_libid'
6561 # Base MSYS/MinGW do not provide the 'file' command needed by
6562 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6563 # unless we find 'file', for example because we are cross-compiling.
6564 if ( file / ) >/dev/null 2>&1; then
6565 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6566 lt_cv_file_magic_cmd='func_win32_libid'
6568 # Keep this pattern in sync with the one in func_win32_libid.
6569 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6570 lt_cv_file_magic_cmd='$OBJDUMP -f'
6575 # use the weaker test based on 'objdump'. See mingw*.
6576 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6577 lt_cv_file_magic_cmd='$OBJDUMP -f'
6580 darwin* | rhapsody*)
6581 lt_cv_deplibs_check_method=pass_all
6584 freebsd* | dragonfly*)
6585 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6588 # Not sure whether the presence of OpenBSD here was a mistake.
6589 # Let's accept both of them until this is cleared up.
6590 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6591 lt_cv_file_magic_cmd=/usr/bin/file
6592 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6596 lt_cv_deplibs_check_method=pass_all
6601 lt_cv_deplibs_check_method=pass_all
6604 hpux10.20* | hpux11*)
6605 lt_cv_file_magic_cmd=/usr/bin/file
6608 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6609 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6612 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]'
6613 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6616 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6617 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6623 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6627 irix5* | irix6* | nonstopux*)
6629 *-32|*"-32 ") libmagic=32-bit;;
6630 *-n32|*"-n32 ") libmagic=N32;;
6631 *-64|*"-64 ") libmagic=64-bit;;
6632 *) libmagic=never-match;;
6634 lt_cv_deplibs_check_method=pass_all
6637 # This must be glibc/ELF.
6638 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6639 lt_cv_deplibs_check_method=pass_all
6642 netbsd* | netbsdelf*-gnu)
6643 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6646 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6652 lt_cv_file_magic_cmd=/usr/bin/file
6653 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6657 lt_cv_deplibs_check_method=pass_all
6661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6668 osf3* | osf4* | osf5*)
6669 lt_cv_deplibs_check_method=pass_all
6673 lt_cv_deplibs_check_method=pass_all
6677 lt_cv_deplibs_check_method=pass_all
6680 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6681 lt_cv_deplibs_check_method=pass_all
6685 case $host_vendor in
6687 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]'
6688 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6691 lt_cv_deplibs_check_method=pass_all
6694 lt_cv_file_magic_cmd='/bin/file'
6695 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6698 lt_cv_file_magic_cmd='/bin/file'
6699 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6700 lt_cv_file_magic_test_file=/lib/libc.so
6703 lt_cv_deplibs_check_method=pass_all
6706 lt_cv_deplibs_check_method=pass_all
6712 lt_cv_deplibs_check_method=pass_all
6715 lt_cv_deplibs_check_method=pass_all
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6721 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6725 if test "$build" = "$host"; then
6728 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6731 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6737 file_magic_cmd=$lt_cv_file_magic_cmd
6738 deplibs_check_method=$lt_cv_deplibs_check_method
6739 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6762 if test -n "$ac_tool_prefix"; then
6763 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6764 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if ${ac_cv_prog_DLLTOOL+:} false; then :
6768 $as_echo_n "(cached) " >&6
6770 if test -n "$DLLTOOL"; then
6771 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 DLLTOOL=$ac_cv_prog_DLLTOOL
6791 if test -n "$DLLTOOL"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6793 $as_echo "$DLLTOOL" >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6801 if test -z "$ac_cv_prog_DLLTOOL"; then
6802 ac_ct_DLLTOOL=$DLLTOOL
6803 # Extract the first word of "dlltool", so it can be a program name with args.
6804 set dummy dlltool; ac_word=$2
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 $as_echo_n "checking for $ac_word... " >&6; }
6807 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6808 $as_echo_n "(cached) " >&6
6810 if test -n "$ac_ct_DLLTOOL"; then
6811 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6820 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6831 if test -n "$ac_ct_DLLTOOL"; then
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6833 $as_echo "$ac_ct_DLLTOOL" >&6; }
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6839 if test "x$ac_ct_DLLTOOL" = x; then
6842 case $cross_compiling:$ac_tool_warned in
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6846 ac_tool_warned=yes ;;
6848 DLLTOOL=$ac_ct_DLLTOOL
6851 DLLTOOL="$ac_cv_prog_DLLTOOL"
6854 test -z "$DLLTOOL" && DLLTOOL=dlltool
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6866 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6867 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6868 $as_echo_n "(cached) " >&6
6870 lt_cv_sharedlib_from_linklib_cmd='unknown'
6873 cygwin* | mingw* | pw32* | cegcc*)
6874 # two different shell functions defined in ltmain.sh;
6875 # decide which one to use based on capabilities of $DLLTOOL
6876 case `$DLLTOOL --help 2>&1` in
6877 *--identify-strict*)
6878 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6881 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6886 # fallback: assume linklib IS sharedlib
6887 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6893 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6894 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6895 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6903 if test -n "$ac_tool_prefix"; then
6906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6907 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_prog_AR+:} false; then :
6911 $as_echo_n "(cached) " >&6
6913 if test -n "$AR"; then
6914 ac_cv_prog_AR="$AR" # Let the user override the test.
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6923 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 if test -n "$AR"; then
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6936 $as_echo "$AR" >&6; }
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 $as_echo "no" >&6; }
6943 test -n "$AR" && break
6946 if test -z "$AR"; then
6950 # Extract the first word of "$ac_prog", so it can be a program name with args.
6951 set dummy $ac_prog; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6955 $as_echo_n "(cached) " >&6
6957 if test -n "$ac_ct_AR"; then
6958 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967 ac_cv_prog_ac_ct_AR="$ac_prog"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6978 if test -n "$ac_ct_AR"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6980 $as_echo "$ac_ct_AR" >&6; }
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6987 test -n "$ac_ct_AR" && break
6990 if test "x$ac_ct_AR" = x; then
6993 case $cross_compiling:$ac_tool_warned in
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6997 ac_tool_warned=yes ;;
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7017 $as_echo_n "checking for archiver @FILE support... " >&6; }
7018 if ${lt_cv_ar_at_file+:} false; then :
7019 $as_echo_n "(cached) " >&6
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7033 if ac_fn_c_try_compile "$LINENO"; then :
7034 echo conftest.$ac_objext > conftest.lst
7035 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7037 (eval $lt_ar_try) 2>&5
7039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7040 test $ac_status = 0; }
7041 if test 0 -eq "$ac_status"; then
7042 # Ensure the archiver fails upon bogus file names.
7043 rm -f conftest.$ac_objext libconftest.a
7044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7045 (eval $lt_ar_try) 2>&5
7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048 test $ac_status = 0; }
7049 if test 0 -ne "$ac_status"; then
7053 rm -f conftest.* libconftest.a
7056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7060 $as_echo "$lt_cv_ar_at_file" >&6; }
7062 if test no = "$lt_cv_ar_at_file"; then
7065 archiver_list_spec=$lt_cv_ar_at_file
7074 if test -n "$ac_tool_prefix"; then
7075 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7076 set dummy ${ac_tool_prefix}strip; ac_word=$2
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078 $as_echo_n "checking for $ac_word... " >&6; }
7079 if ${ac_cv_prog_STRIP+:} false; then :
7080 $as_echo_n "(cached) " >&6
7082 if test -n "$STRIP"; then
7083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7092 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 STRIP=$ac_cv_prog_STRIP
7103 if test -n "$STRIP"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7105 $as_echo "$STRIP" >&6; }
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7113 if test -z "$ac_cv_prog_STRIP"; then
7115 # Extract the first word of "strip", so it can be a program name with args.
7116 set dummy strip; ac_word=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7120 $as_echo_n "(cached) " >&6
7122 if test -n "$ac_ct_STRIP"; then
7123 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7132 ac_cv_prog_ac_ct_STRIP="strip"
7133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7143 if test -n "$ac_ct_STRIP"; then
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7145 $as_echo "$ac_ct_STRIP" >&6; }
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148 $as_echo "no" >&6; }
7151 if test "x$ac_ct_STRIP" = x; then
7154 case $cross_compiling:$ac_tool_warned in
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7158 ac_tool_warned=yes ;;
7163 STRIP="$ac_cv_prog_STRIP"
7166 test -z "$STRIP" && STRIP=:
7173 if test -n "$ac_tool_prefix"; then
7174 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7175 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if ${ac_cv_prog_RANLIB+:} false; then :
7179 $as_echo_n "(cached) " >&6
7181 if test -n "$RANLIB"; then
7182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7191 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 RANLIB=$ac_cv_prog_RANLIB
7202 if test -n "$RANLIB"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7204 $as_echo "$RANLIB" >&6; }
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7212 if test -z "$ac_cv_prog_RANLIB"; then
7213 ac_ct_RANLIB=$RANLIB
7214 # Extract the first word of "ranlib", so it can be a program name with args.
7215 set dummy ranlib; ac_word=$2
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217 $as_echo_n "checking for $ac_word... " >&6; }
7218 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7219 $as_echo_n "(cached) " >&6
7221 if test -n "$ac_ct_RANLIB"; then
7222 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231 ac_cv_prog_ac_ct_RANLIB="ranlib"
7232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7242 if test -n "$ac_ct_RANLIB"; then
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7244 $as_echo "$ac_ct_RANLIB" >&6; }
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247 $as_echo "no" >&6; }
7250 if test "x$ac_ct_RANLIB" = x; then
7253 case $cross_compiling:$ac_tool_warned in
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7257 ac_tool_warned=yes ;;
7259 RANLIB=$ac_ct_RANLIB
7262 RANLIB="$ac_cv_prog_RANLIB"
7265 test -z "$RANLIB" && RANLIB=:
7272 # Determine commands to create old-style static archives.
7273 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7274 old_postinstall_cmds='chmod 644 $oldlib'
7275 old_postuninstall_cmds=
7277 if test -n "$RANLIB"; then
7280 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7283 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7286 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7291 lock_old_archive_extraction=yes ;;
7293 lock_old_archive_extraction=no ;;
7334 # If no C compiler was specified, use CC.
7337 # If no C compiler flags were specified, use CFLAGS.
7338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7340 # Allow CC to be a program name with arguments.
7344 # Check for command to grab the raw symbol name followed by C symbol from nm.
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7346 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7347 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7348 $as_echo_n "(cached) " >&6
7351 # These are sane defaults that work on at least a few old systems.
7352 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7354 # Character class describing NM global symbol codes.
7355 symcode='[BCDEGRST]'
7357 # Regexp to match symbols that can be accessed directly from C.
7358 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7360 # Define system-specific variables.
7365 cygwin* | mingw* | pw32* | cegcc*)
7366 symcode='[ABCDGISTW]'
7369 if test ia64 = "$host_cpu"; then
7370 symcode='[ABCDEGRST]'
7374 symcode='[BCDEGRST]'
7377 symcode='[BCDEGQRST]'
7388 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7396 # If we're using GNU nm, then use its standard symbol codes.
7397 case `$NM -V 2>&1` in
7398 *GNU* | *'with BFD'*)
7399 symcode='[ABCDGIRSTW]' ;;
7402 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7403 # Gets list of data symbols to import.
7404 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7405 # Adjust the below global symbol transforms to fixup imported variables.
7406 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7407 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7408 lt_c_name_lib_hook="\
7409 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7410 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7412 # Disable hooks by default.
7413 lt_cv_sys_global_symbol_to_import=
7419 # Transform an extracted symbol line into a proper C declaration.
7420 # Some systems (esp. on ia64) link data and code symbols differently,
7421 # so use this general approach.
7422 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7424 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7425 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7427 # Transform an extracted symbol line into symbol name and symbol address
7428 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7430 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7431 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7433 # Transform an extracted symbol line into symbol name with lib prefix and
7435 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7436 $lt_c_name_lib_hook\
7437 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7438 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7439 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7441 # Handle CRLF in mingw tool chain
7445 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7449 # Try without a prefix underscore, then with it.
7450 for ac_symprfx in "" "_"; do
7452 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7453 symxfrm="\\1 $ac_symprfx\\2 \\2"
7455 # Write the raw and C identifiers.
7456 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7457 # Fake it for dumpbin and say T for any non-static function,
7458 # D for any global variable and I for any imported variable.
7459 # Also find C++ and __fastcall symbols from MSVC++,
7460 # which start with @ or ?.
7461 lt_cv_sys_global_symbol_pipe="$AWK '"\
7462 " {last_section=section; section=\$ 3};"\
7463 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7464 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7465 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7466 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7467 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7468 " \$ 0!~/External *\|/{next};"\
7469 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7470 " {if(hide[section]) next};"\
7471 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7472 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7473 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7474 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7475 " ' prfx=^$ac_symprfx"
7477 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7479 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7481 # Check to see that the pipe works correctly.
7485 cat > conftest.$ac_ext <<_LT_EOF
7490 void nm_test_func(void);
7491 void nm_test_func(void){}
7495 int main(){nm_test_var='a';nm_test_func();return(0);}
7498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7499 (eval $ac_compile) 2>&5
7501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7502 test $ac_status = 0; }; then
7503 # Now try to grab the symbols.
7505 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7506 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7507 # Try sorting and uniquifying the output.
7508 if sort "$nlist" | uniq > "$nlist"T; then
7509 mv -f "$nlist"T "$nlist"
7514 # Make sure that we snagged all the symbols we need.
7515 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7516 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7517 cat <<_LT_EOF > conftest.$ac_ext
7518 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7519 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7520 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7521 relocations are performed -- see ld's documentation on pseudo-relocs. */
7522 # define LT_DLSYM_CONST
7523 #elif defined __osf__
7524 /* This system does not cope well with relocations in const data. */
7525 # define LT_DLSYM_CONST
7527 # define LT_DLSYM_CONST const
7535 # Now generate the symbol file.
7536 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7538 cat <<_LT_EOF >> conftest.$ac_ext
7540 /* The mapping between symbol names and symbols. */
7541 LT_DLSYM_CONST struct {
7545 lt__PROGRAM__LTX_preloaded_symbols[] =
7547 { "@PROGRAM@", (void *) 0 },
7549 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7550 cat <<\_LT_EOF >> conftest.$ac_ext
7554 /* This works around a problem in FreeBSD linker */
7555 #ifdef FREEBSD_WORKAROUND
7556 static const void *lt_preloaded_setup() {
7557 return lt__PROGRAM__LTX_preloaded_symbols;
7565 # Now try linking the two files.
7566 mv conftest.$ac_objext conftstm.$ac_objext
7567 lt_globsym_save_LIBS=$LIBS
7568 lt_globsym_save_CFLAGS=$CFLAGS
7569 LIBS=conftstm.$ac_objext
7570 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7572 (eval $ac_link) 2>&5
7574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7575 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7578 LIBS=$lt_globsym_save_LIBS
7579 CFLAGS=$lt_globsym_save_CFLAGS
7581 echo "cannot find nm_test_func in $nlist" >&5
7584 echo "cannot find nm_test_var in $nlist" >&5
7587 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7590 echo "$progname: failed program was:" >&5
7591 cat conftest.$ac_ext >&5
7593 rm -rf conftest* conftst*
7595 # Do not use the global_symbol_pipe unless it works.
7596 if test yes = "$pipe_works"; then
7599 lt_cv_sys_global_symbol_pipe=
7605 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7606 lt_cv_sys_global_symbol_to_cdecl=
7608 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7610 $as_echo "failed" >&6; }
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7613 $as_echo "ok" >&6; }
7616 # Response file support.
7617 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7618 nm_file_list_spec='@'
7619 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7620 nm_file_list_spec='@'
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7660 $as_echo_n "checking for sysroot... " >&6; }
7662 # Check whether --with-sysroot was given.
7663 if test "${with_sysroot+set}" = set; then :
7664 withval=$with_sysroot;
7671 case $with_sysroot in #(
7673 if test yes = "$GCC"; then
7674 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7678 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7684 $as_echo "$with_sysroot" >&6; }
7685 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7690 $as_echo "${lt_sysroot:-no}" >&6; }
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7697 $as_echo_n "checking for a working dd... " >&6; }
7698 if ${ac_cv_path_lt_DD+:} false; then :
7699 $as_echo_n "(cached) " >&6
7701 printf 0123456789abcdef0123456789abcdef >conftest.i
7702 cat conftest.i conftest.i >conftest2.i
7704 if test -z "$lt_DD"; then
7705 ac_path_lt_DD_found=false
7706 # Loop through the user's path and test for each of PROGNAME-LIST
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 test -z "$as_dir" && as_dir=.
7712 for ac_prog in dd; do
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7715 as_fn_executable_p "$ac_path_lt_DD" || continue
7716 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7717 cmp -s conftest.i conftest.out \
7718 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7720 $ac_path_lt_DD_found && break 3
7725 if test -z "$ac_cv_path_lt_DD"; then
7729 ac_cv_path_lt_DD=$lt_DD
7732 rm -f conftest.i conftest2.i conftest.out
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7735 $as_echo "$ac_cv_path_lt_DD" >&6; }
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7739 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7740 if ${lt_cv_truncate_bin+:} false; then :
7741 $as_echo_n "(cached) " >&6
7743 printf 0123456789abcdef0123456789abcdef >conftest.i
7744 cat conftest.i conftest.i >conftest2.i
7746 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7747 cmp -s conftest.i conftest.out \
7748 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7750 rm -f conftest.i conftest2.i conftest.out
7751 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7754 $as_echo "$lt_cv_truncate_bin" >&6; }
7762 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7765 for cc_temp in $*""; do
7767 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7768 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7773 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7776 # Check whether --enable-libtool-lock was given.
7777 if test "${enable_libtool_lock+set}" = set; then :
7778 enableval=$enable_libtool_lock;
7781 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7783 # Some flags need to be propagated to the compiler or linker for good
7787 # Find out what ABI is being produced by ac_compile, and set mode
7788 # options accordingly.
7789 echo 'int i;' > conftest.$ac_ext
7790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7791 (eval $ac_compile) 2>&5
7793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7794 test $ac_status = 0; }; then
7795 case `/usr/bin/file conftest.$ac_objext` in
7807 # Find out what ABI is being produced by ac_compile, and set linker
7808 # options accordingly.
7809 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7811 (eval $ac_compile) 2>&5
7813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7814 test $ac_status = 0; }; then
7815 if test yes = "$lt_cv_prog_gnu_ld"; then
7816 case `/usr/bin/file conftest.$ac_objext` in
7818 LD="${LD-ld} -melf32bsmip"
7821 LD="${LD-ld} -melf32bmipn32"
7824 LD="${LD-ld} -melf64bmip"
7828 case `/usr/bin/file conftest.$ac_objext` in
7845 # Find out what ABI is being produced by ac_compile, and set linker
7846 # options accordingly.
7847 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7849 (eval $ac_compile) 2>&5
7851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7852 test $ac_status = 0; }; then
7854 case `/usr/bin/file conftest.$ac_objext` in
7862 case `/usr/bin/file conftest.$ac_objext` in
7864 emul="${emul}btsmip"
7867 emul="${emul}ltsmip"
7870 case `/usr/bin/file conftest.$ac_objext` in
7875 LD="${LD-ld} -m $emul"
7880 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7881 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7882 # Find out what ABI is being produced by ac_compile, and set linker
7883 # options accordingly. Note that the listed cases only cover the
7884 # situations where additional linker options are needed (such as when
7885 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7886 # vice versa); the common cases where no linker options are needed do
7887 # not appear in the list.
7888 echo 'int i;' > conftest.$ac_ext
7889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7890 (eval $ac_compile) 2>&5
7892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7893 test $ac_status = 0; }; then
7894 case `/usr/bin/file conftest.o` in
7897 x86_64-*kfreebsd*-gnu)
7898 LD="${LD-ld} -m elf_i386_fbsd"
7901 case `/usr/bin/file conftest.o` in
7903 LD="${LD-ld} -m elf32_x86_64"
7906 LD="${LD-ld} -m elf_i386"
7910 powerpc64le-*linux*)
7911 LD="${LD-ld} -m elf32lppclinux"
7914 LD="${LD-ld} -m elf32ppclinux"
7917 LD="${LD-ld} -m elf_s390"
7920 LD="${LD-ld} -m elf32_sparc"
7926 x86_64-*kfreebsd*-gnu)
7927 LD="${LD-ld} -m elf_x86_64_fbsd"
7930 LD="${LD-ld} -m elf_x86_64"
7933 LD="${LD-ld} -m elf64lppc"
7936 LD="${LD-ld} -m elf64ppc"
7938 s390*-*linux*|s390*-*tpf*)
7939 LD="${LD-ld} -m elf64_s390"
7942 LD="${LD-ld} -m elf64_sparc"
7952 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7954 CFLAGS="$CFLAGS -belf"
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7956 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7957 if ${lt_cv_cc_needs_belf+:} false; then :
7958 $as_echo_n "(cached) " >&6
7961 ac_cpp='$CPP $CPPFLAGS'
7962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7977 if ac_fn_c_try_link "$LINENO"; then :
7978 lt_cv_cc_needs_belf=yes
7980 lt_cv_cc_needs_belf=no
7982 rm -f core conftest.err conftest.$ac_objext \
7983 conftest$ac_exeext conftest.$ac_ext
7985 ac_cpp='$CPP $CPPFLAGS'
7986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7992 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7993 if test yes != "$lt_cv_cc_needs_belf"; then
7994 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7999 # Find out what ABI is being produced by ac_compile, and set linker
8000 # options accordingly.
8001 echo 'int i;' > conftest.$ac_ext
8002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8003 (eval $ac_compile) 2>&5
8005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8006 test $ac_status = 0; }; then
8007 case `/usr/bin/file conftest.o` in
8009 case $lt_cv_prog_gnu_ld in
8012 i?86-*-solaris*|x86_64-*-solaris*)
8013 LD="${LD-ld} -m elf_x86_64"
8016 LD="${LD-ld} -m elf64_sparc"
8019 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8020 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8025 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8037 need_locks=$enable_libtool_lock
8039 if test -n "$ac_tool_prefix"; then
8040 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8041 set dummy ${ac_tool_prefix}mt; ac_word=$2
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 $as_echo_n "checking for $ac_word... " >&6; }
8044 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8045 $as_echo_n "(cached) " >&6
8047 if test -n "$MANIFEST_TOOL"; then
8048 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8057 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8068 if test -n "$MANIFEST_TOOL"; then
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8070 $as_echo "$MANIFEST_TOOL" >&6; }
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8078 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8079 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8080 # Extract the first word of "mt", so it can be a program name with args.
8081 set dummy mt; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8085 $as_echo_n "(cached) " >&6
8087 if test -n "$ac_ct_MANIFEST_TOOL"; then
8088 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 test -z "$as_dir" && as_dir=.
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8097 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8108 if test -n "$ac_ct_MANIFEST_TOOL"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8110 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8116 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8119 case $cross_compiling:$ac_tool_warned in
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8123 ac_tool_warned=yes ;;
8125 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8128 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8131 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8133 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8134 if ${lt_cv_path_mainfest_tool+:} false; then :
8135 $as_echo_n "(cached) " >&6
8137 lt_cv_path_mainfest_tool=no
8138 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8139 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8140 cat conftest.err >&5
8141 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8142 lt_cv_path_mainfest_tool=yes
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8147 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8148 if test yes != "$lt_cv_path_mainfest_tool"; then
8158 rhapsody* | darwin*)
8159 if test -n "$ac_tool_prefix"; then
8160 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8161 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8165 $as_echo_n "(cached) " >&6
8167 if test -n "$DSYMUTIL"; then
8168 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 test -z "$as_dir" && as_dir=.
8175 for ac_exec_ext in '' $ac_executable_extensions; do
8176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8177 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8187 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8188 if test -n "$DSYMUTIL"; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8190 $as_echo "$DSYMUTIL" >&6; }
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193 $as_echo "no" >&6; }
8198 if test -z "$ac_cv_prog_DSYMUTIL"; then
8199 ac_ct_DSYMUTIL=$DSYMUTIL
8200 # Extract the first word of "dsymutil", so it can be a program name with args.
8201 set dummy dsymutil; ac_word=$2
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 $as_echo_n "checking for $ac_word... " >&6; }
8204 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8205 $as_echo_n "(cached) " >&6
8207 if test -n "$ac_ct_DSYMUTIL"; then
8208 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8217 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8228 if test -n "$ac_ct_DSYMUTIL"; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8230 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233 $as_echo "no" >&6; }
8236 if test "x$ac_ct_DSYMUTIL" = x; then
8239 case $cross_compiling:$ac_tool_warned in
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8243 ac_tool_warned=yes ;;
8245 DSYMUTIL=$ac_ct_DSYMUTIL
8248 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8251 if test -n "$ac_tool_prefix"; then
8252 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8253 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255 $as_echo_n "checking for $ac_word... " >&6; }
8256 if ${ac_cv_prog_NMEDIT+:} false; then :
8257 $as_echo_n "(cached) " >&6
8259 if test -n "$NMEDIT"; then
8260 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8269 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 NMEDIT=$ac_cv_prog_NMEDIT
8280 if test -n "$NMEDIT"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8282 $as_echo "$NMEDIT" >&6; }
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 $as_echo "no" >&6; }
8290 if test -z "$ac_cv_prog_NMEDIT"; then
8291 ac_ct_NMEDIT=$NMEDIT
8292 # Extract the first word of "nmedit", so it can be a program name with args.
8293 set dummy nmedit; ac_word=$2
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295 $as_echo_n "checking for $ac_word... " >&6; }
8296 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8297 $as_echo_n "(cached) " >&6
8299 if test -n "$ac_ct_NMEDIT"; then
8300 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8309 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8320 if test -n "$ac_ct_NMEDIT"; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8322 $as_echo "$ac_ct_NMEDIT" >&6; }
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325 $as_echo "no" >&6; }
8328 if test "x$ac_ct_NMEDIT" = x; then
8331 case $cross_compiling:$ac_tool_warned in
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8335 ac_tool_warned=yes ;;
8337 NMEDIT=$ac_ct_NMEDIT
8340 NMEDIT="$ac_cv_prog_NMEDIT"
8343 if test -n "$ac_tool_prefix"; then
8344 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8345 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if ${ac_cv_prog_LIPO+:} false; then :
8349 $as_echo_n "(cached) " >&6
8351 if test -n "$LIPO"; then
8352 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 test -z "$as_dir" && as_dir=.
8359 for ac_exec_ext in '' $ac_executable_extensions; do
8360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8361 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 LIPO=$ac_cv_prog_LIPO
8372 if test -n "$LIPO"; then
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8374 $as_echo "$LIPO" >&6; }
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8382 if test -z "$ac_cv_prog_LIPO"; then
8384 # Extract the first word of "lipo", so it can be a program name with args.
8385 set dummy lipo; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8389 $as_echo_n "(cached) " >&6
8391 if test -n "$ac_ct_LIPO"; then
8392 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8401 ac_cv_prog_ac_ct_LIPO="lipo"
8402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8412 if test -n "$ac_ct_LIPO"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8414 $as_echo "$ac_ct_LIPO" >&6; }
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8420 if test "x$ac_ct_LIPO" = x; then
8423 case $cross_compiling:$ac_tool_warned in
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8427 ac_tool_warned=yes ;;
8432 LIPO="$ac_cv_prog_LIPO"
8435 if test -n "$ac_tool_prefix"; then
8436 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8437 set dummy ${ac_tool_prefix}otool; ac_word=$2
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439 $as_echo_n "checking for $ac_word... " >&6; }
8440 if ${ac_cv_prog_OTOOL+:} false; then :
8441 $as_echo_n "(cached) " >&6
8443 if test -n "$OTOOL"; then
8444 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 test -z "$as_dir" && as_dir=.
8451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8453 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8463 OTOOL=$ac_cv_prog_OTOOL
8464 if test -n "$OTOOL"; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8466 $as_echo "$OTOOL" >&6; }
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469 $as_echo "no" >&6; }
8474 if test -z "$ac_cv_prog_OTOOL"; then
8476 # Extract the first word of "otool", so it can be a program name with args.
8477 set dummy otool; ac_word=$2
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479 $as_echo_n "checking for $ac_word... " >&6; }
8480 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8481 $as_echo_n "(cached) " >&6
8483 if test -n "$ac_ct_OTOOL"; then
8484 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 test -z "$as_dir" && as_dir=.
8491 for ac_exec_ext in '' $ac_executable_extensions; do
8492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8493 ac_cv_prog_ac_ct_OTOOL="otool"
8494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8503 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8504 if test -n "$ac_ct_OTOOL"; then
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8506 $as_echo "$ac_ct_OTOOL" >&6; }
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8512 if test "x$ac_ct_OTOOL" = x; then
8515 case $cross_compiling:$ac_tool_warned in
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8519 ac_tool_warned=yes ;;
8524 OTOOL="$ac_cv_prog_OTOOL"
8527 if test -n "$ac_tool_prefix"; then
8528 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8529 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8531 $as_echo_n "checking for $ac_word... " >&6; }
8532 if ${ac_cv_prog_OTOOL64+:} false; then :
8533 $as_echo_n "(cached) " >&6
8535 if test -n "$OTOOL64"; then
8536 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 test -z "$as_dir" && as_dir=.
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8545 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555 OTOOL64=$ac_cv_prog_OTOOL64
8556 if test -n "$OTOOL64"; then
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8558 $as_echo "$OTOOL64" >&6; }
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 $as_echo "no" >&6; }
8566 if test -z "$ac_cv_prog_OTOOL64"; then
8567 ac_ct_OTOOL64=$OTOOL64
8568 # Extract the first word of "otool64", so it can be a program name with args.
8569 set dummy otool64; ac_word=$2
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8571 $as_echo_n "checking for $ac_word... " >&6; }
8572 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8573 $as_echo_n "(cached) " >&6
8575 if test -n "$ac_ct_OTOOL64"; then
8576 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 test -z "$as_dir" && as_dir=.
8583 for ac_exec_ext in '' $ac_executable_extensions; do
8584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8585 ac_cv_prog_ac_ct_OTOOL64="otool64"
8586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8595 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8596 if test -n "$ac_ct_OTOOL64"; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8598 $as_echo "$ac_ct_OTOOL64" >&6; }
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601 $as_echo "no" >&6; }
8604 if test "x$ac_ct_OTOOL64" = x; then
8607 case $cross_compiling:$ac_tool_warned in
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8611 ac_tool_warned=yes ;;
8613 OTOOL64=$ac_ct_OTOOL64
8616 OTOOL64="$ac_cv_prog_OTOOL64"
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8646 $as_echo_n "checking for -single_module linker flag... " >&6; }
8647 if ${lt_cv_apple_cc_single_mod+:} false; then :
8648 $as_echo_n "(cached) " >&6
8650 lt_cv_apple_cc_single_mod=no
8651 if test -z "$LT_MULTI_MODULE"; then
8652 # By default we will add the -single_module flag. You can override
8653 # by either setting the environment variable LT_MULTI_MODULE
8654 # non-empty at configure time, or by adding -multi_module to the
8656 rm -rf libconftest.dylib*
8657 echo "int foo(void){return 1;}" > conftest.c
8658 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8659 -dynamiclib -Wl,-single_module conftest.c" >&5
8660 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8661 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8663 # If there is a non-empty error log, and "single_module"
8664 # appears in it, assume the flag caused a linker warning
8665 if test -s conftest.err && $GREP single_module conftest.err; then
8666 cat conftest.err >&5
8667 # Otherwise, if the output was created with a 0 exit code from
8668 # the compiler, it worked.
8669 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8670 lt_cv_apple_cc_single_mod=yes
8672 cat conftest.err >&5
8674 rm -rf libconftest.dylib*
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8679 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8682 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8683 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8684 $as_echo_n "(cached) " >&6
8686 lt_cv_ld_exported_symbols_list=no
8687 save_LDFLAGS=$LDFLAGS
8688 echo "_main" > conftest.sym
8689 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8701 if ac_fn_c_try_link "$LINENO"; then :
8702 lt_cv_ld_exported_symbols_list=yes
8704 lt_cv_ld_exported_symbols_list=no
8706 rm -f core conftest.err conftest.$ac_objext \
8707 conftest$ac_exeext conftest.$ac_ext
8708 LDFLAGS=$save_LDFLAGS
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8712 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8715 $as_echo_n "checking for -force_load linker flag... " >&6; }
8716 if ${lt_cv_ld_force_load+:} false; then :
8717 $as_echo_n "(cached) " >&6
8719 lt_cv_ld_force_load=no
8720 cat > conftest.c << _LT_EOF
8721 int forced_loaded() { return 2;}
8723 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8724 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8725 echo "$AR cr libconftest.a conftest.o" >&5
8726 $AR cr libconftest.a conftest.o 2>&5
8727 echo "$RANLIB libconftest.a" >&5
8728 $RANLIB libconftest.a 2>&5
8729 cat > conftest.c << _LT_EOF
8730 int main() { return 0;}
8732 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8733 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8735 if test -s conftest.err && $GREP force_load conftest.err; then
8736 cat conftest.err >&5
8737 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8738 lt_cv_ld_force_load=yes
8740 cat conftest.err >&5
8742 rm -f conftest.err libconftest.a conftest conftest.c
8743 rm -rf conftest.dSYM
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8747 $as_echo "$lt_cv_ld_force_load" >&6; }
8749 rhapsody* | darwin1.[012])
8750 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8752 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8753 darwin*) # darwin 5.x on
8754 # if running on 10.5 or later, the deployment target defaults
8755 # to the OS version, if on x86, and 10.4, the deployment
8756 # target defaults to 10.4. Don't you love it?
8757 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8758 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8759 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8761 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8763 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8767 if test yes = "$lt_cv_apple_cc_single_mod"; then
8768 _lt_dar_single_mod='$single_module'
8770 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8771 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8773 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8775 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8776 _lt_dsymutil='~$DSYMUTIL $lib || :'
8783 # func_munge_path_list VARIABLE PATH
8784 # -----------------------------------
8785 # VARIABLE is name of variable containing _space_ separated list of
8786 # directories to be munged by the contents of PATH, which is string
8789 # string "DIR[ DIR]" will be prepended to VARIABLE
8791 # string "DIR[ DIR]" will be appended to VARIABLE
8792 # "DIRP[:DIRP]::[DIRA:]DIRA"
8793 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8794 # "DIRA[ DIRA]" will be appended to VARIABLE
8796 # VARIABLE will be replaced by "DIR[ DIR]"
8797 func_munge_path_list ()
8803 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8806 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8809 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8810 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8813 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8819 ac_cpp='$CPP $CPPFLAGS'
8820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8824 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8825 # On Suns, sometimes $CPP names a directory.
8826 if test -n "$CPP" && test -d "$CPP"; then
8829 if test -z "$CPP"; then
8830 if ${ac_cv_prog_CPP+:} false; then :
8831 $as_echo_n "(cached) " >&6
8833 # Double quotes because CPP needs to be expanded
8834 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8837 for ac_c_preproc_warn_flag in '' yes
8839 # Use a header file that comes with gcc, so configuring glibc
8840 # with a fresh cross-compiler works.
8841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8842 # <limits.h> exists even on freestanding compilers.
8843 # On the NeXT, cc -E runs the code through the compiler's parser,
8844 # not just through cpp. "Syntax error" is here to catch this case.
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8848 # include <limits.h>
8850 # include <assert.h>
8854 if ac_fn_c_try_cpp "$LINENO"; then :
8857 # Broken: fails on valid input.
8860 rm -f conftest.err conftest.i conftest.$ac_ext
8862 # OK, works on sane cases. Now check whether nonexistent headers
8863 # can be detected and how.
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8866 #include <ac_nonexistent.h>
8868 if ac_fn_c_try_cpp "$LINENO"; then :
8869 # Broken: success on invalid input.
8872 # Passes both tests.
8876 rm -f conftest.err conftest.i conftest.$ac_ext
8879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8880 rm -f conftest.i conftest.err conftest.$ac_ext
8881 if $ac_preproc_ok; then :
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8894 $as_echo "$CPP" >&6; }
8896 for ac_c_preproc_warn_flag in '' yes
8898 # Use a header file that comes with gcc, so configuring glibc
8899 # with a fresh cross-compiler works.
8900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8901 # <limits.h> exists even on freestanding compilers.
8902 # On the NeXT, cc -E runs the code through the compiler's parser,
8903 # not just through cpp. "Syntax error" is here to catch this case.
8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8907 # include <limits.h>
8909 # include <assert.h>
8913 if ac_fn_c_try_cpp "$LINENO"; then :
8916 # Broken: fails on valid input.
8919 rm -f conftest.err conftest.i conftest.$ac_ext
8921 # OK, works on sane cases. Now check whether nonexistent headers
8922 # can be detected and how.
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 #include <ac_nonexistent.h>
8927 if ac_fn_c_try_cpp "$LINENO"; then :
8928 # Broken: success on invalid input.
8931 # Passes both tests.
8935 rm -f conftest.err conftest.i conftest.$ac_ext
8938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8939 rm -f conftest.i conftest.err conftest.$ac_ext
8940 if $ac_preproc_ok; then :
8943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8945 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8946 See \`config.log' for more details" "$LINENO" 5; }
8950 ac_cpp='$CPP $CPPFLAGS'
8951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8957 $as_echo_n "checking for ANSI C header files... " >&6; }
8958 if ${ac_cv_header_stdc+:} false; then :
8959 $as_echo_n "(cached) " >&6
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h. */
8976 if ac_fn_c_try_compile "$LINENO"; then :
8977 ac_cv_header_stdc=yes
8979 ac_cv_header_stdc=no
8981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983 if test $ac_cv_header_stdc = yes; then
8984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h. */
8990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8991 $EGREP "memchr" >/dev/null 2>&1; then :
8994 ac_cv_header_stdc=no
9000 if test $ac_cv_header_stdc = yes; then
9001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9008 $EGREP "free" >/dev/null 2>&1; then :
9011 ac_cv_header_stdc=no
9017 if test $ac_cv_header_stdc = yes; then
9018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9019 if test "$cross_compiling" = yes; then :
9022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h. */
9026 #if ((' ' & 0x0FF) == 0x020)
9027 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9028 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9030 # define ISLOWER(c) \
9031 (('a' <= (c) && (c) <= 'i') \
9032 || ('j' <= (c) && (c) <= 'r') \
9033 || ('s' <= (c) && (c) <= 'z'))
9034 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9037 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9042 for (i = 0; i < 256; i++)
9043 if (XOR (islower (i), ISLOWER (i))
9044 || toupper (i) != TOUPPER (i))
9049 if ac_fn_c_try_run "$LINENO"; then :
9052 ac_cv_header_stdc=no
9054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9055 conftest.$ac_objext conftest.beam conftest.$ac_ext
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9061 $as_echo "$ac_cv_header_stdc" >&6; }
9062 if test $ac_cv_header_stdc = yes; then
9064 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9068 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9069 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9070 inttypes.h stdint.h unistd.h
9072 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9073 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9075 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9076 cat >>confdefs.h <<_ACEOF
9077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9085 for ac_header in dlfcn.h
9087 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9089 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9090 cat >>confdefs.h <<_ACEOF
9091 #define HAVE_DLFCN_H 1
9103 # Check whether --enable-static was given.
9104 if test "${enable_static+set}" = set; then :
9105 enableval=$enable_static; p=${PACKAGE-default}
9107 yes) enable_static=yes ;;
9108 no) enable_static=no ;;
9111 # Look at the argument we got. We use all the common list separators.
9112 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9113 for pkg in $enableval; do
9115 if test "X$pkg" = "X$p"; then
9141 # Check whether --enable-shared was given.
9142 if test "${enable_shared+set}" = set; then :
9143 enableval=$enable_shared; p=${PACKAGE-default}
9145 yes) enable_shared=yes ;;
9146 no) enable_shared=no ;;
9149 # Look at the argument we got. We use all the common list separators.
9150 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9151 for pkg in $enableval; do
9153 if test "X$pkg" = "X$p"; then
9174 # Check whether --with-pic was given.
9175 if test "${with_pic+set}" = set; then :
9176 withval=$with_pic; lt_p=${PACKAGE-default}
9178 yes|no) pic_mode=$withval ;;
9181 # Look at the argument we got. We use all the common list separators.
9182 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9183 for lt_pkg in $withval; do
9185 if test "X$lt_pkg" = "X$lt_p"; then
9203 # Check whether --enable-fast-install was given.
9204 if test "${enable_fast_install+set}" = set; then :
9205 enableval=$enable_fast_install; p=${PACKAGE-default}
9207 yes) enable_fast_install=yes ;;
9208 no) enable_fast_install=no ;;
9210 enable_fast_install=no
9211 # Look at the argument we got. We use all the common list separators.
9212 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9213 for pkg in $enableval; do
9215 if test "X$pkg" = "X$p"; then
9216 enable_fast_install=yes
9223 enable_fast_install=yes
9233 shared_archive_member_spec=
9234 case $host,$enable_shared in
9235 power*-*-aix[5-9]*,yes)
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9237 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9239 # Check whether --with-aix-soname was given.
9240 if test "${with_aix_soname+set}" = set; then :
9241 withval=$with_aix_soname; case $withval in
9245 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9248 lt_cv_with_aix_soname=$with_aix_soname
9250 if ${lt_cv_with_aix_soname+:} false; then :
9251 $as_echo_n "(cached) " >&6
9253 lt_cv_with_aix_soname=aix
9256 with_aix_soname=$lt_cv_with_aix_soname
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9260 $as_echo "$with_aix_soname" >&6; }
9261 if test aix != "$with_aix_soname"; then
9262 # For the AIX way of multilib, we name the shared archive member
9263 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9264 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9265 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9266 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9267 if test 64 = "${OBJECT_MODE-32}"; then
9268 shared_archive_member_spec=shr_64
9270 shared_archive_member_spec=shr
9288 # This can be used to rebuild libtool when needed
9289 LIBTOOL_DEPS=$ltmain
9291 # Always use our own libtool.
9292 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9323 test -z "$LN_S" && LN_S="ln -s"
9338 if test -n "${ZSH_VERSION+set}"; then
9339 setopt NO_GLOB_SUBST
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9343 $as_echo_n "checking for objdir... " >&6; }
9344 if ${lt_cv_objdir+:} false; then :
9345 $as_echo_n "(cached) " >&6
9347 rm -f .libs 2>/dev/null
9348 mkdir .libs 2>/dev/null
9349 if test -d .libs; then
9352 # MS-DOS does not allow filenames that begin with a dot.
9355 rmdir .libs 2>/dev/null
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9358 $as_echo "$lt_cv_objdir" >&6; }
9359 objdir=$lt_cv_objdir
9365 cat >>confdefs.h <<_ACEOF
9366 #define LT_OBJDIR "$lt_cv_objdir/"
9374 # AIX sometimes has problems with the GCC collect2 program. For some
9375 # reason, if we set the COLLECT_NAMES environment variable, the problems
9376 # vanish in a puff of smoke.
9377 if test set != "${COLLECT_NAMES+set}"; then
9379 export COLLECT_NAMES
9386 can_build_shared=yes
9388 # All known linkers require a '.a' archive for static linking (except MSVC,
9389 # which needs '.lib').
9392 with_gnu_ld=$lt_cv_prog_gnu_ld
9397 # Set sane defaults for various variables
9398 test -z "$CC" && CC=cc
9399 test -z "$LTCC" && LTCC=$CC
9400 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9401 test -z "$LD" && LD=ld
9402 test -z "$ac_objext" && ac_objext=o
9404 func_cc_basename $compiler
9405 cc_basename=$func_cc_basename_result
9408 # Only perform the check for file, if the check method requires it
9409 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9410 case $deplibs_check_method in
9412 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9414 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9415 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9416 $as_echo_n "(cached) " >&6
9420 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9423 lt_save_MAGIC_CMD=$MAGIC_CMD
9424 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9425 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9426 for ac_dir in $ac_dummy; do
9428 test -z "$ac_dir" && ac_dir=.
9429 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9430 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9431 if test -n "$file_magic_test_file"; then
9432 case $deplibs_check_method in
9434 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9435 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9436 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9437 $EGREP "$file_magic_regex" > /dev/null; then
9442 *** Warning: the command libtool uses to detect shared libraries,
9443 *** $file_magic_cmd, produces output that libtool cannot recognize.
9444 *** The result is that libtool may fail to recognize shared libraries
9445 *** as such. This will affect the creation of libtool libraries that
9446 *** depend on shared libraries, but programs linked with such libtool
9447 *** libraries will work regardless of this problem. Nevertheless, you
9448 *** may want to report the problem to your system manager and/or to
9449 *** bug-libtool@gnu.org
9459 MAGIC_CMD=$lt_save_MAGIC_CMD
9464 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9465 if test -n "$MAGIC_CMD"; then
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9467 $as_echo "$MAGIC_CMD" >&6; }
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470 $as_echo "no" >&6; }
9477 if test -z "$lt_cv_path_MAGIC_CMD"; then
9478 if test -n "$ac_tool_prefix"; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9480 $as_echo_n "checking for file... " >&6; }
9481 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9482 $as_echo_n "(cached) " >&6
9486 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9489 lt_save_MAGIC_CMD=$MAGIC_CMD
9490 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9491 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9492 for ac_dir in $ac_dummy; do
9494 test -z "$ac_dir" && ac_dir=.
9495 if test -f "$ac_dir/file"; then
9496 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9497 if test -n "$file_magic_test_file"; then
9498 case $deplibs_check_method in
9500 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9501 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9502 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9503 $EGREP "$file_magic_regex" > /dev/null; then
9508 *** Warning: the command libtool uses to detect shared libraries,
9509 *** $file_magic_cmd, produces output that libtool cannot recognize.
9510 *** The result is that libtool may fail to recognize shared libraries
9511 *** as such. This will affect the creation of libtool libraries that
9512 *** depend on shared libraries, but programs linked with such libtool
9513 *** libraries will work regardless of this problem. Nevertheless, you
9514 *** may want to report the problem to your system manager and/or to
9515 *** bug-libtool@gnu.org
9525 MAGIC_CMD=$lt_save_MAGIC_CMD
9530 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9531 if test -n "$MAGIC_CMD"; then
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9533 $as_echo "$MAGIC_CMD" >&6; }
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 $as_echo "no" >&6; }
9549 # Use C for the default configuration in the libtool script
9553 ac_cpp='$CPP $CPPFLAGS'
9554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9559 # Source file extension for C test sources.
9562 # Object file extension for compiled C test sources.
9566 # Code to be used in simple compile tests
9567 lt_simple_compile_test_code="int some_variable = 0;"
9569 # Code to be used in simple link tests
9570 lt_simple_link_test_code='int main(){return(0);}'
9578 # If no C compiler was specified, use CC.
9581 # If no C compiler flags were specified, use CFLAGS.
9582 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9584 # Allow CC to be a program name with arguments.
9587 # Save the default compiler, since it gets overwritten when the other
9588 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9589 compiler_DEFAULT=$CC
9591 # save warnings/boilerplate of simple test code
9592 ac_outfile=conftest.$ac_objext
9593 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9594 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9595 _lt_compiler_boilerplate=`cat conftest.err`
9598 ac_outfile=conftest.$ac_objext
9599 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9600 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9601 _lt_linker_boilerplate=`cat conftest.err`
9606 ## There is no encapsulation within the following macros, do not change
9607 ## the running order or otherwise move them around unless you know exactly
9608 ## what you are doing...
9609 if test -n "$compiler"; then
9611 lt_prog_compiler_no_builtin_flag=
9613 if test yes = "$GCC"; then
9614 case $cc_basename in
9616 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9618 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9622 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9623 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9624 $as_echo_n "(cached) " >&6
9626 lt_cv_prog_compiler_rtti_exceptions=no
9627 ac_outfile=conftest.$ac_objext
9628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9629 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9630 # Insert the option either (1) after the last *FLAGS variable, or
9631 # (2) before a word containing "conftest.", or (3) at the end.
9632 # Note that $ac_compile itself does not contain backslashes and begins
9633 # with a dollar sign (not a hyphen), so the echo should work correctly.
9634 # The option is referenced via a variable to avoid confusing sed.
9635 lt_compile=`echo "$ac_compile" | $SED \
9636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9638 -e 's:$: $lt_compiler_flag:'`
9639 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9640 (eval "$lt_compile" 2>conftest.err)
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 if (exit $ac_status) && test -s "$ac_outfile"; then
9645 # The compiler can only warn and ignore the option if not recognized
9646 # So say no if there are warnings other than the usual output.
9647 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9648 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9649 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9650 lt_cv_prog_compiler_rtti_exceptions=yes
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9657 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9659 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9660 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9672 lt_prog_compiler_wl=
9673 lt_prog_compiler_pic=
9674 lt_prog_compiler_static=
9677 if test yes = "$GCC"; then
9678 lt_prog_compiler_wl='-Wl,'
9679 lt_prog_compiler_static='-static'
9683 # All AIX code is PIC.
9684 if test ia64 = "$host_cpu"; then
9685 # AIX 5 now supports IA64 processor
9686 lt_prog_compiler_static='-Bstatic'
9688 lt_prog_compiler_pic='-fPIC'
9694 # see comment about AmigaOS4 .so support
9695 lt_prog_compiler_pic='-fPIC'
9698 # FIXME: we need at least 68020 code to build shared libraries, but
9699 # adding the '-m68020' flag to GCC prevents building anything better,
9701 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9706 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9707 # PIC is the default for these OSes.
9710 mingw* | cygwin* | pw32* | os2* | cegcc*)
9711 # This hack is so that the source file can tell whether it is being
9712 # built for inclusion in a dll (and should export symbols for example).
9713 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9714 # (--disable-auto-import) libraries
9715 lt_prog_compiler_pic='-DDLL_EXPORT'
9718 lt_prog_compiler_static='$wl-static'
9723 darwin* | rhapsody*)
9724 # PIC is the default on this platform
9725 # Common symbols not allowed in MH_DYLIB files
9726 lt_prog_compiler_pic='-fno-common'
9730 # PIC is the default for Haiku.
9731 # The "-static" flag exists, but is broken.
9732 lt_prog_compiler_static=
9736 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9737 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9738 # sets the default TLS model and affects inlining.
9744 lt_prog_compiler_pic='-fPIC'
9750 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9751 # Instead, we relocate shared libraries at runtime.
9755 # Just because we use GCC doesn't mean we suddenly get shared libraries
9756 # on systems that don't support them.
9757 lt_prog_compiler_can_build_shared=no
9762 # QNX uses GNU C++, but need to define -shared option too, otherwise
9764 lt_prog_compiler_pic='-fPIC -shared'
9768 if test -d /usr/nec; then
9769 lt_prog_compiler_pic=-Kconform_pic
9774 lt_prog_compiler_pic='-fPIC'
9778 case $cc_basename in
9779 nvcc*) # Cuda Compiler Driver 2.2
9780 lt_prog_compiler_wl='-Xlinker '
9781 if test -n "$lt_prog_compiler_pic"; then
9782 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9787 # PORTME Check for flag to pass linker flags through the system compiler.
9790 lt_prog_compiler_wl='-Wl,'
9791 if test ia64 = "$host_cpu"; then
9792 # AIX 5 now supports IA64 processor
9793 lt_prog_compiler_static='-Bstatic'
9795 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9799 darwin* | rhapsody*)
9800 # PIC is the default on this platform
9801 # Common symbols not allowed in MH_DYLIB files
9802 lt_prog_compiler_pic='-fno-common'
9803 case $cc_basename in
9805 # NAG Fortran compiler
9806 lt_prog_compiler_wl='-Wl,-Wl,,'
9807 lt_prog_compiler_pic='-PIC'
9808 lt_prog_compiler_static='-Bstatic'
9813 mingw* | cygwin* | pw32* | os2* | cegcc*)
9814 # This hack is so that the source file can tell whether it is being
9815 # built for inclusion in a dll (and should export symbols for example).
9816 lt_prog_compiler_pic='-DDLL_EXPORT'
9819 lt_prog_compiler_static='$wl-static'
9824 hpux9* | hpux10* | hpux11*)
9825 lt_prog_compiler_wl='-Wl,'
9826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9833 lt_prog_compiler_pic='+Z'
9836 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9837 lt_prog_compiler_static='$wl-a ${wl}archive'
9840 irix5* | irix6* | nonstopux*)
9841 lt_prog_compiler_wl='-Wl,'
9842 # PIC (with -KPIC) is the default.
9843 lt_prog_compiler_static='-non_shared'
9846 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9847 case $cc_basename in
9848 # old Intel for x86_64, which still supported -KPIC.
9850 lt_prog_compiler_wl='-Wl,'
9851 lt_prog_compiler_pic='-KPIC'
9852 lt_prog_compiler_static='-static'
9854 # flang / f18. f95 an alias for gfortran or flang on Debian
9855 flang* | f18* | f95*)
9856 lt_prog_compiler_wl='-Wl,'
9857 lt_prog_compiler_pic='-fPIC'
9858 lt_prog_compiler_static='-static'
9860 # icc used to be incompatible with GCC.
9861 # ICC 10 doesn't accept -KPIC any more.
9863 lt_prog_compiler_wl='-Wl,'
9864 lt_prog_compiler_pic='-fPIC'
9865 lt_prog_compiler_static='-static'
9867 # Lahey Fortran 8.1.
9869 lt_prog_compiler_wl='-Wl,'
9870 lt_prog_compiler_pic='--shared'
9871 lt_prog_compiler_static='--static'
9874 # NAG Fortran compiler
9875 lt_prog_compiler_wl='-Wl,-Wl,,'
9876 lt_prog_compiler_pic='-PIC'
9877 lt_prog_compiler_static='-Bstatic'
9880 # Fabrice Bellard et al's Tiny C Compiler
9881 lt_prog_compiler_wl='-Wl,'
9882 lt_prog_compiler_pic='-fPIC'
9883 lt_prog_compiler_static='-static'
9885 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9886 # Portland Group compilers (*not* the Pentium gcc compiler,
9887 # which looks to be a dead project)
9888 lt_prog_compiler_wl='-Wl,'
9889 lt_prog_compiler_pic='-fpic'
9890 lt_prog_compiler_static='-Bstatic'
9893 lt_prog_compiler_wl='-Wl,'
9894 # All Alpha code is PIC.
9895 lt_prog_compiler_static='-non_shared'
9897 xl* | bgxl* | bgf* | mpixl*)
9898 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9899 lt_prog_compiler_wl='-Wl,'
9900 lt_prog_compiler_pic='-qpic'
9901 lt_prog_compiler_static='-qstaticlink'
9904 case `$CC -V 2>&1 | sed 5q` in
9905 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9906 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9907 lt_prog_compiler_pic='-KPIC'
9908 lt_prog_compiler_static='-Bstatic'
9909 lt_prog_compiler_wl=''
9911 *Sun\ F* | *Sun*Fortran*)
9912 lt_prog_compiler_pic='-KPIC'
9913 lt_prog_compiler_static='-Bstatic'
9914 lt_prog_compiler_wl='-Qoption ld '
9918 lt_prog_compiler_pic='-KPIC'
9919 lt_prog_compiler_static='-Bstatic'
9920 lt_prog_compiler_wl='-Wl,'
9922 *Intel*\ [CF]*Compiler*)
9923 lt_prog_compiler_wl='-Wl,'
9924 lt_prog_compiler_pic='-fPIC'
9925 lt_prog_compiler_static='-static'
9928 lt_prog_compiler_wl='-Wl,'
9929 lt_prog_compiler_pic='-fpic'
9930 lt_prog_compiler_static='-Bstatic'
9938 lt_prog_compiler_pic='-KPIC'
9939 lt_prog_compiler_static='-Bstatic'
9943 # QNX uses GNU C++, but need to define -shared option too, otherwise
9945 lt_prog_compiler_pic='-fPIC -shared'
9948 osf3* | osf4* | osf5*)
9949 lt_prog_compiler_wl='-Wl,'
9950 # All OSF/1 code is PIC.
9951 lt_prog_compiler_static='-non_shared'
9955 lt_prog_compiler_static='-non_shared'
9959 lt_prog_compiler_pic='-KPIC'
9960 lt_prog_compiler_static='-Bstatic'
9961 case $cc_basename in
9962 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9963 lt_prog_compiler_wl='-Qoption ld ';;
9965 lt_prog_compiler_wl='-Wl,';;
9970 lt_prog_compiler_wl='-Qoption ld '
9971 lt_prog_compiler_pic='-PIC'
9972 lt_prog_compiler_static='-Bstatic'
9975 sysv4 | sysv4.2uw2* | sysv4.3*)
9976 lt_prog_compiler_wl='-Wl,'
9977 lt_prog_compiler_pic='-KPIC'
9978 lt_prog_compiler_static='-Bstatic'
9982 if test -d /usr/nec; then
9983 lt_prog_compiler_pic='-Kconform_pic'
9984 lt_prog_compiler_static='-Bstatic'
9988 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9989 lt_prog_compiler_wl='-Wl,'
9990 lt_prog_compiler_pic='-KPIC'
9991 lt_prog_compiler_static='-Bstatic'
9995 lt_prog_compiler_wl='-Wl,'
9996 lt_prog_compiler_can_build_shared=no
10000 lt_prog_compiler_pic='-pic'
10001 lt_prog_compiler_static='-Bstatic'
10005 lt_prog_compiler_can_build_shared=no
10011 # For platforms that do not support PIC, -DPIC is meaningless:
10013 lt_prog_compiler_pic=
10016 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10021 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10022 if ${lt_cv_prog_compiler_pic+:} false; then :
10023 $as_echo_n "(cached) " >&6
10025 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10028 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10029 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10032 # Check to make sure the PIC flag actually works.
10034 if test -n "$lt_prog_compiler_pic"; then
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10036 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10037 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10038 $as_echo_n "(cached) " >&6
10040 lt_cv_prog_compiler_pic_works=no
10041 ac_outfile=conftest.$ac_objext
10042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10043 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10044 # Insert the option either (1) after the last *FLAGS variable, or
10045 # (2) before a word containing "conftest.", or (3) at the end.
10046 # Note that $ac_compile itself does not contain backslashes and begins
10047 # with a dollar sign (not a hyphen), so the echo should work correctly.
10048 # The option is referenced via a variable to avoid confusing sed.
10049 lt_compile=`echo "$ac_compile" | $SED \
10050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10052 -e 's:$: $lt_compiler_flag:'`
10053 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10054 (eval "$lt_compile" 2>conftest.err)
10056 cat conftest.err >&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 if (exit $ac_status) && test -s "$ac_outfile"; then
10059 # The compiler can only warn and ignore the option if not recognized
10060 # So say no if there are warnings other than the usual output.
10061 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10063 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10064 lt_cv_prog_compiler_pic_works=yes
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10071 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10073 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10074 case $lt_prog_compiler_pic in
10076 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10079 lt_prog_compiler_pic=
10080 lt_prog_compiler_can_build_shared=no
10096 # Check to make sure the static flag actually works.
10098 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10100 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10101 if ${lt_cv_prog_compiler_static_works+:} false; then :
10102 $as_echo_n "(cached) " >&6
10104 lt_cv_prog_compiler_static_works=no
10105 save_LDFLAGS=$LDFLAGS
10106 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10107 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10108 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10109 # The linker can only warn and ignore the option if not recognized
10110 # So say no if there are warnings
10111 if test -s conftest.err; then
10112 # Append any errors to the config.log.
10113 cat conftest.err 1>&5
10114 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10116 if diff conftest.exp conftest.er2 >/dev/null; then
10117 lt_cv_prog_compiler_static_works=yes
10120 lt_cv_prog_compiler_static_works=yes
10124 LDFLAGS=$save_LDFLAGS
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10128 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10130 if test yes = "$lt_cv_prog_compiler_static_works"; then
10133 lt_prog_compiler_static=
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10143 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10144 if ${lt_cv_prog_compiler_c_o+:} false; then :
10145 $as_echo_n "(cached) " >&6
10147 lt_cv_prog_compiler_c_o=no
10148 $RM -r conftest 2>/dev/null
10152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10154 lt_compiler_flag="-o out/conftest2.$ac_objext"
10155 # Insert the option either (1) after the last *FLAGS variable, or
10156 # (2) before a word containing "conftest.", or (3) at the end.
10157 # Note that $ac_compile itself does not contain backslashes and begins
10158 # with a dollar sign (not a hyphen), so the echo should work correctly.
10159 lt_compile=`echo "$ac_compile" | $SED \
10160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10162 -e 's:$: $lt_compiler_flag:'`
10163 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10164 (eval "$lt_compile" 2>out/conftest.err)
10166 cat out/conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10170 # The compiler can only warn and ignore the option if not recognized
10171 # So say no if there are warnings
10172 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10173 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10174 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10175 lt_cv_prog_compiler_c_o=yes
10180 # SGI C++ compiler will create directory out/ii_files/ for
10181 # template instantiation
10182 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10183 $RM out/* && rmdir out
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10190 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10198 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10199 if ${lt_cv_prog_compiler_c_o+:} false; then :
10200 $as_echo_n "(cached) " >&6
10202 lt_cv_prog_compiler_c_o=no
10203 $RM -r conftest 2>/dev/null
10207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10209 lt_compiler_flag="-o out/conftest2.$ac_objext"
10210 # Insert the option either (1) after the last *FLAGS variable, or
10211 # (2) before a word containing "conftest.", or (3) at the end.
10212 # Note that $ac_compile itself does not contain backslashes and begins
10213 # with a dollar sign (not a hyphen), so the echo should work correctly.
10214 lt_compile=`echo "$ac_compile" | $SED \
10215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10217 -e 's:$: $lt_compiler_flag:'`
10218 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10219 (eval "$lt_compile" 2>out/conftest.err)
10221 cat out/conftest.err >&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10225 # The compiler can only warn and ignore the option if not recognized
10226 # So say no if there are warnings
10227 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10228 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10229 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10230 lt_cv_prog_compiler_c_o=yes
10235 # SGI C++ compiler will create directory out/ii_files/ for
10236 # template instantiation
10237 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10238 $RM out/* && rmdir out
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10245 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10250 hard_links=nottested
10251 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10252 # do not overwrite the value of need_locks provided by the user
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10254 $as_echo_n "checking if we can lock with hard links... " >&6; }
10257 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10259 ln conftest.a conftest.b 2>&5 || hard_links=no
10260 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10262 $as_echo "$hard_links" >&6; }
10263 if test no = "$hard_links"; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10265 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10278 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10281 allow_undefined_flag=
10282 always_export_symbols=no
10284 archive_expsym_cmds=
10285 compiler_needs_object=no
10286 enable_shared_with_static_runtimes=no
10287 export_dynamic_flag_spec=
10288 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10289 hardcode_automatic=no
10291 hardcode_direct_absolute=no
10292 hardcode_libdir_flag_spec=
10293 hardcode_libdir_separator=
10294 hardcode_minus_L=no
10295 hardcode_shlibpath_var=unsupported
10297 link_all_deplibs=unknown
10299 module_expsym_cmds=
10300 old_archive_from_new_cmds=
10301 old_archive_from_expsyms_cmds=
10302 thread_safe_flag_spec=
10303 whole_archive_flag_spec=
10304 # include_expsyms should be a list of space-separated symbols to be *always*
10305 # included in the symbol list
10307 # exclude_expsyms can be an extended regexp of symbols to exclude
10308 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10309 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10310 # as well as any symbol that contains 'd'.
10311 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10312 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10313 # platforms (ab)use it in PIC code, but their linkers get confused if
10314 # the symbol is explicitly referenced. Since portable code cannot
10315 # rely on this symbol name, it's probably fine to never include it in
10316 # preloaded symbol tables.
10317 # Exclude shared library initialization/finalization symbols.
10318 extract_expsyms_cmds=
10321 cygwin* | mingw* | pw32* | cegcc*)
10322 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10323 # When not using gcc, we currently assume that we are using
10324 # Microsoft Visual C++.
10325 if test yes != "$GCC"; then
10330 # we just hope/assume this is gcc and not c89 (= MSVC++)
10333 openbsd* | bitrig*)
10336 linux* | k*bsd*-gnu | gnu*)
10337 link_all_deplibs=no
10343 # On some targets, GNU ld is compatible enough with the native linker
10344 # that we're better off using the native interface for both.
10345 lt_use_gnu_ld_interface=no
10346 if test yes = "$with_gnu_ld"; then
10349 # The AIX port of GNU ld has always aspired to compatibility
10350 # with the native linker. However, as the warning in the GNU ld
10351 # block says, versions before 2.19.5* couldn't really create working
10352 # shared libraries, regardless of the interface used.
10353 case `$LD -v 2>&1` in
10354 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10355 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10356 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10358 lt_use_gnu_ld_interface=yes
10363 lt_use_gnu_ld_interface=yes
10368 if test yes = "$lt_use_gnu_ld_interface"; then
10369 # If archive_cmds runs LD, not CC, wlarc should be empty
10372 # Set some defaults for GNU ld with shared library support. These
10373 # are reset later if shared libraries are not supported. Putting them
10374 # here allows them to be overridden if necessary.
10375 runpath_var=LD_RUN_PATH
10376 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10377 export_dynamic_flag_spec='$wl--export-dynamic'
10378 # ancient GNU ld didn't support --whole-archive et. al.
10379 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10380 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10382 whole_archive_flag_spec=
10384 supports_anon_versioning=no
10385 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10386 *GNU\ gold*) supports_anon_versioning=yes ;;
10387 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10388 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10389 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10390 *\ 2.11.*) ;; # other 2.11 versions
10391 *) supports_anon_versioning=yes ;;
10394 # See if GNU ld supports shared libraries.
10397 # On AIX/PPC, the GNU linker is very broken
10398 if test ia64 != "$host_cpu"; then
10402 *** Warning: the GNU linker, at least up to release 2.19, is reported
10403 *** to be unable to reliably create shared libraries on AIX.
10404 *** Therefore, libtool is disabling shared libraries support. If you
10405 *** really care for shared libraries, you may want to install binutils
10406 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10407 *** You will then need to restart the configuration process.
10416 # see comment about AmigaOS4 .so support
10417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10418 archive_expsym_cmds=''
10421 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)'
10422 hardcode_libdir_flag_spec='-L$libdir'
10423 hardcode_minus_L=yes
10429 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10430 allow_undefined_flag=unsupported
10431 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10432 # support --undefined. This deserves some investigation. FIXME
10433 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10439 cygwin* | mingw* | pw32* | cegcc*)
10440 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10441 # as there is no search path for DLLs.
10442 hardcode_libdir_flag_spec='-L$libdir'
10443 export_dynamic_flag_spec='$wl--export-all-symbols'
10444 allow_undefined_flag=unsupported
10445 always_export_symbols=no
10446 enable_shared_with_static_runtimes=yes
10447 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'
10448 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10450 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10452 # If the export-symbols file already is a .def file, use it as
10453 # is; otherwise, prepend EXPORTS...
10454 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10455 cp $export_symbols $output_objdir/$soname.def;
10457 echo EXPORTS > $output_objdir/$soname.def;
10458 cat $export_symbols >> $output_objdir/$soname.def;
10460 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10468 link_all_deplibs=yes
10472 hardcode_libdir_flag_spec='-L$libdir'
10473 hardcode_minus_L=yes
10474 allow_undefined_flag=unsupported
10476 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10477 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10478 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10479 $ECHO EXPORTS >> $output_objdir/$libname.def~
10480 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10481 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10482 emximp -o $lib $output_objdir/$libname.def'
10483 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10484 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10485 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10486 $ECHO EXPORTS >> $output_objdir/$libname.def~
10487 prefix_cmds="$SED"~
10488 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10489 prefix_cmds="$prefix_cmds -e 1d";
10491 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10492 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10493 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10494 emximp -o $lib $output_objdir/$libname.def'
10495 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10496 enable_shared_with_static_runtimes=yes
10501 hardcode_shlibpath_var=no
10502 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10503 export_dynamic_flag_spec='$wl-E'
10504 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10505 # Instead, shared libraries are loaded at an image base (0x10000000 by
10506 # default) and relocated if they conflict, which is a slow very memory
10507 # consuming and fragmenting process. To avoid this, we pick a random,
10508 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10509 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10510 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10511 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'
10514 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10516 if test linux-dietlibc = "$host_os"; then
10517 case $cc_basename in
10518 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10521 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10522 && test no = "$tmp_diet"
10524 tmp_addflag=' $pic_flag'
10525 tmp_sharedflag='-shared'
10526 case $cc_basename,$host_cpu in
10527 pgcc*) # Portland Group C compiler
10528 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'
10529 tmp_addflag=' $pic_flag'
10531 pgf77* | pgf90* | pgf95* | pgfortran*)
10532 # Portland Group f77 and f90 compilers
10533 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'
10534 tmp_addflag=' $pic_flag -Mnomain' ;;
10535 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10536 tmp_addflag=' -i_dynamic' ;;
10537 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10538 tmp_addflag=' -i_dynamic -nofor_main' ;;
10539 ifc* | ifort*) # Intel Fortran compiler
10540 tmp_addflag=' -nofor_main' ;;
10541 lf95*) # Lahey Fortran 8.1
10542 whole_archive_flag_spec=
10543 tmp_sharedflag='--shared' ;;
10544 nagfor*) # NAGFOR 5.3
10545 tmp_sharedflag='-Wl,-shared' ;;
10546 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10547 tmp_sharedflag='-qmkshrobj'
10549 nvcc*) # Cuda Compiler Driver 2.2
10550 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'
10551 compiler_needs_object=yes
10554 case `$CC -V 2>&1 | sed 5q` in
10555 *Sun\ C*) # Sun C 5.9
10556 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'
10557 compiler_needs_object=yes
10558 tmp_sharedflag='-G' ;;
10559 *Sun\ F*) # Sun Fortran 8.3
10560 tmp_sharedflag='-G' ;;
10562 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10564 if test yes = "$supports_anon_versioning"; then
10565 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10566 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10567 echo "local: *; };" >> $output_objdir/$libname.ver~
10568 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10571 case $cc_basename in
10573 export_dynamic_flag_spec='-rdynamic'
10575 xlf* | bgf* | bgxlf* | mpixlf*)
10576 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10577 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10578 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10579 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10580 if test yes = "$supports_anon_versioning"; then
10581 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10582 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10583 echo "local: *; };" >> $output_objdir/$libname.ver~
10584 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10593 netbsd* | netbsdelf*-gnu)
10594 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10595 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10598 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10599 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10604 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10608 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10609 *** create shared libraries on Solaris systems. Therefore, libtool
10610 *** is disabling shared libraries support. We urge you to upgrade GNU
10611 *** binutils to release 2.9.1 or newer. Another option is to modify
10612 *** your PATH or compiler configuration so that the native linker is
10613 *** used, and then restart.
10616 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10617 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10618 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10624 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10625 case `$LD -v 2>&1` in
10626 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10630 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10631 *** reliably create shared libraries on SCO systems. Therefore, libtool
10632 *** is disabling shared libraries support. We urge you to upgrade GNU
10633 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10634 *** your PATH or compiler configuration so that the native linker is
10635 *** used, and then restart.
10640 # For security reasons, it is highly recommended that you always
10641 # use absolute paths for naming shared libraries, and exclude the
10642 # DT_RUNPATH tag from executables and libraries. But doing so
10643 # requires that you compile everything twice, which is a pain.
10644 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10645 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10647 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10656 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10658 hardcode_direct=yes
10659 hardcode_shlibpath_var=no
10663 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10664 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10665 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10672 if test no = "$ld_shlibs"; then
10674 hardcode_libdir_flag_spec=
10675 export_dynamic_flag_spec=
10676 whole_archive_flag_spec=
10679 # PORTME fill in a description of your system's linker (not GNU ld)
10682 allow_undefined_flag=unsupported
10683 always_export_symbols=yes
10684 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'
10685 # Note: this linker hardcodes the directories in LIBPATH if there
10686 # are no directories specified by -L.
10687 hardcode_minus_L=yes
10688 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10689 # Neither direct hardcoding nor static linking is supported with a
10691 hardcode_direct=unsupported
10696 if test ia64 = "$host_cpu"; then
10697 # On IA64, the linker does run time linking by default, so we don't
10698 # have to do anything special.
10699 aix_use_runtimelinking=no
10700 exp_sym_flag='-Bexport'
10703 # If we're using GNU nm, then we don't want the "-C" option.
10704 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10705 # Without the "-l" option, or with the "-B" option, AIX nm treats
10706 # weak defined symbols like other global defined symbols, whereas
10707 # GNU nm marks them as "W".
10708 # While the 'weak' keyword is ignored in the Export File, we need
10709 # it in the Import File for the 'aix-soname' feature, so we have
10710 # to replace the "-B" option with "-P" for AIX nm.
10711 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10712 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'
10714 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'
10716 aix_use_runtimelinking=no
10718 # Test if we are trying to use run time linking or normal
10719 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10720 # have runtime linking enabled, and use it for executables.
10721 # For shared libraries, we enable/disable runtime linking
10722 # depending on the kind of the shared library created -
10723 # when "with_aix_soname,aix_use_runtimelinking" is:
10724 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10725 # "aix,yes" lib.so shared, rtl:yes, for executables
10726 # lib.a static archive
10727 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10728 # lib.a(lib.so.V) shared, rtl:no, for executables
10729 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10730 # lib.a(lib.so.V) shared, rtl:no
10731 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10732 # lib.a static archive
10733 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10734 for ld_flag in $LDFLAGS; do
10735 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10736 aix_use_runtimelinking=yes
10740 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10741 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10742 # so we don't have lib.a shared libs to link our executables.
10743 # We have to force runtime linking in this case.
10744 aix_use_runtimelinking=yes
10745 LDFLAGS="$LDFLAGS -Wl,-brtl"
10750 exp_sym_flag='-bexport'
10751 no_entry_flag='-bnoentry'
10754 # When large executables or shared objects are built, AIX ld can
10755 # have problems creating the table of contents. If linking a library
10756 # or program results in "error TOC overflow" add -mminimal-toc to
10757 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10758 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10761 hardcode_direct=yes
10762 hardcode_direct_absolute=yes
10763 hardcode_libdir_separator=':'
10764 link_all_deplibs=yes
10765 file_list_spec='$wl-f,'
10766 case $with_aix_soname,$aix_use_runtimelinking in
10767 aix,*) ;; # traditional, no import file
10768 svr4,* | *,yes) # use import file
10769 # The Import File defines what to hardcode.
10771 hardcode_direct_absolute=no
10775 if test yes = "$GCC"; then
10776 case $host_os in aix4.[012]|aix4.[012].*)
10777 # We only want to do this on AIX 4.2 and lower, the check
10778 # below for broken collect2 doesn't work under 4.3+
10779 collect2name=`$CC -print-prog-name=collect2`
10780 if test -f "$collect2name" &&
10781 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10783 # We have reworked collect2
10786 # We have old collect2
10787 hardcode_direct=unsupported
10788 # It fails to find uninstalled libraries when the uninstalled
10789 # path is not listed in the libpath. Setting hardcode_minus_L
10790 # to unsupported forces relinking
10791 hardcode_minus_L=yes
10792 hardcode_libdir_flag_spec='-L$libdir'
10793 hardcode_libdir_separator=
10797 shared_flag='-shared'
10798 if test yes = "$aix_use_runtimelinking"; then
10799 shared_flag="$shared_flag "'$wl-G'
10801 # Need to ensure runtime linking is disabled for the traditional
10802 # shared library, or the linker may eventually find shared libraries
10803 # /with/ Import File - we do not want to mix them.
10804 shared_flag_aix='-shared'
10805 shared_flag_svr4='-shared $wl-G'
10808 if test ia64 = "$host_cpu"; then
10809 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10810 # chokes on -Wl,-G. The following line is correct:
10813 if test yes = "$aix_use_runtimelinking"; then
10814 shared_flag='$wl-G'
10816 shared_flag='$wl-bM:SRE'
10818 shared_flag_aix='$wl-bM:SRE'
10819 shared_flag_svr4='$wl-G'
10823 export_dynamic_flag_spec='$wl-bexpall'
10824 # It seems that -bexpall does not export symbols beginning with
10825 # underscore (_), so it is better to generate a list of symbols to export.
10826 always_export_symbols=yes
10827 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10828 # Warning - without using the other runtime loading flags (-brtl),
10829 # -berok will link without error, but may produce a broken library.
10830 allow_undefined_flag='-berok'
10831 # Determine the default libpath from the value encoded in an
10832 # empty executable.
10833 if test set = "${lt_cv_aix_libpath+set}"; then
10834 aix_libpath=$lt_cv_aix_libpath
10836 if ${lt_cv_aix_libpath_+:} false; then :
10837 $as_echo_n "(cached) " >&6
10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h. */
10850 if ac_fn_c_try_link "$LINENO"; then :
10852 lt_aix_libpath_sed='
10853 /Import File Strings/,/^$/ {
10855 s/^0 *\([^ ]*\) *$/\1/
10859 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10860 # Check for a 64-bit object if we didn't find anything.
10861 if test -z "$lt_cv_aix_libpath_"; then
10862 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10865 rm -f core conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10867 if test -z "$lt_cv_aix_libpath_"; then
10868 lt_cv_aix_libpath_=/usr/lib:/lib
10873 aix_libpath=$lt_cv_aix_libpath_
10876 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10877 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
10879 if test ia64 = "$host_cpu"; then
10880 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10881 allow_undefined_flag="-z nodefs"
10882 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"
10884 # Determine the default libpath from the value encoded in an
10885 # empty executable.
10886 if test set = "${lt_cv_aix_libpath+set}"; then
10887 aix_libpath=$lt_cv_aix_libpath
10889 if ${lt_cv_aix_libpath_+:} false; then :
10890 $as_echo_n "(cached) " >&6
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10903 if ac_fn_c_try_link "$LINENO"; then :
10905 lt_aix_libpath_sed='
10906 /Import File Strings/,/^$/ {
10908 s/^0 *\([^ ]*\) *$/\1/
10912 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10913 # Check for a 64-bit object if we didn't find anything.
10914 if test -z "$lt_cv_aix_libpath_"; then
10915 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10918 rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10920 if test -z "$lt_cv_aix_libpath_"; then
10921 lt_cv_aix_libpath_=/usr/lib:/lib
10926 aix_libpath=$lt_cv_aix_libpath_
10929 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10930 # Warning - without using the other run time loading flags,
10931 # -berok will link without error, but may produce a broken library.
10932 no_undefined_flag=' $wl-bernotok'
10933 allow_undefined_flag=' $wl-berok'
10934 if test yes = "$with_gnu_ld"; then
10935 # We only use this code for GNU lds that support --whole-archive.
10936 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10938 # Exported symbols can be pulled into shared objects from archives
10939 whole_archive_flag_spec='$convenience'
10941 archive_cmds_need_lc=yes
10942 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10943 # -brtl affects multiple linker settings, -berok does not and is overridden later
10944 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10945 if test svr4 != "$with_aix_soname"; then
10946 # This is similar to how AIX traditionally builds its shared libraries.
10947 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'
10949 if test aix != "$with_aix_soname"; then
10950 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'
10952 # used by -dlpreopen to get the symbols
10953 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10955 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10963 # see comment about AmigaOS4 .so support
10964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10965 archive_expsym_cmds=''
10968 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)'
10969 hardcode_libdir_flag_spec='-L$libdir'
10970 hardcode_minus_L=yes
10976 export_dynamic_flag_spec=-rdynamic
10979 cygwin* | mingw* | pw32* | cegcc*)
10980 # When not using gcc, we currently assume that we are using
10981 # Microsoft Visual C++.
10982 # hardcode_libdir_flag_spec is actually meaningless, as there is
10983 # no search path for DLLs.
10984 case $cc_basename in
10987 hardcode_libdir_flag_spec=' '
10988 allow_undefined_flag=unsupported
10989 always_export_symbols=yes
10991 # Tell ltmain to make .lib files, not .a files.
10993 # Tell ltmain to make .dll files, not .so files.
10995 # FIXME: Setting linknames here is a bad hack.
10996 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10997 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10998 cp "$export_symbols" "$output_objdir/$soname.def";
10999 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11001 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11003 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11005 # The linker will not automatically build a static lib if we build a DLL.
11006 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11007 enable_shared_with_static_runtimes=yes
11008 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11009 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11011 old_postinstall_cmds='chmod 644 $oldlib'
11012 postlink_cmds='lt_outputfile="@OUTPUT@"~
11013 lt_tool_outputfile="@TOOL_OUTPUT@"~
11014 case $lt_outputfile in
11017 lt_outputfile=$lt_outputfile.exe
11018 lt_tool_outputfile=$lt_tool_outputfile.exe
11021 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11022 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11023 $RM "$lt_outputfile.manifest";
11027 # Assume MSVC wrapper
11028 hardcode_libdir_flag_spec=' '
11029 allow_undefined_flag=unsupported
11030 # Tell ltmain to make .lib files, not .a files.
11032 # Tell ltmain to make .dll files, not .so files.
11034 # FIXME: Setting linknames here is a bad hack.
11035 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11036 # The linker will automatically build a .lib file if we build a DLL.
11037 old_archive_from_new_cmds='true'
11038 # FIXME: Should let the user specify the lib program.
11039 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11040 enable_shared_with_static_runtimes=yes
11045 darwin* | rhapsody*)
11048 archive_cmds_need_lc=no
11050 hardcode_automatic=yes
11051 hardcode_shlibpath_var=unsupported
11052 if test yes = "$lt_cv_ld_force_load"; then
11053 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\"`'
11056 whole_archive_flag_spec=''
11058 link_all_deplibs=yes
11059 allow_undefined_flag=$_lt_dar_allow_undefined
11060 case $cc_basename in
11061 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11062 *) _lt_dar_can_shared=$GCC ;;
11064 if test yes = "$_lt_dar_can_shared"; then
11065 output_verbose_link_cmd=func_echo_all
11066 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11067 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11068 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"
11069 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"
11078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11079 hardcode_libdir_flag_spec='-L$libdir'
11080 hardcode_shlibpath_var=no
11083 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11084 # support. Future versions do this automatically, but an explicit c++rt0.o
11085 # does not break anything, and helps significantly (at the cost of a little
11088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11089 hardcode_libdir_flag_spec='-R$libdir'
11090 hardcode_direct=yes
11091 hardcode_shlibpath_var=no
11094 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11097 hardcode_direct=yes
11098 hardcode_minus_L=yes
11099 hardcode_shlibpath_var=no
11102 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11103 freebsd* | dragonfly*)
11104 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11105 hardcode_libdir_flag_spec='-R$libdir'
11106 hardcode_direct=yes
11107 hardcode_shlibpath_var=no
11111 if test yes = "$GCC"; then
11112 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'
11114 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'
11116 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11117 hardcode_libdir_separator=:
11118 hardcode_direct=yes
11120 # hardcode_minus_L: Not really in the search PATH,
11121 # but as the default location of the library.
11122 hardcode_minus_L=yes
11123 export_dynamic_flag_spec='$wl-E'
11127 if test yes,no = "$GCC,$with_gnu_ld"; then
11128 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11130 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11132 if test no = "$with_gnu_ld"; then
11133 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11134 hardcode_libdir_separator=:
11135 hardcode_direct=yes
11136 hardcode_direct_absolute=yes
11137 export_dynamic_flag_spec='$wl-E'
11138 # hardcode_minus_L: Not really in the search PATH,
11139 # but as the default location of the library.
11140 hardcode_minus_L=yes
11145 if test yes,no = "$GCC,$with_gnu_ld"; then
11148 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11151 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11154 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11160 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11163 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11167 # Older versions of the 11.00 compiler do not understand -b yet
11168 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11170 $as_echo_n "checking if $CC understands -b... " >&6; }
11171 if ${lt_cv_prog_compiler__b+:} false; then :
11172 $as_echo_n "(cached) " >&6
11174 lt_cv_prog_compiler__b=no
11175 save_LDFLAGS=$LDFLAGS
11176 LDFLAGS="$LDFLAGS -b"
11177 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11178 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11179 # The linker can only warn and ignore the option if not recognized
11180 # So say no if there are warnings
11181 if test -s conftest.err; then
11182 # Append any errors to the config.log.
11183 cat conftest.err 1>&5
11184 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11186 if diff conftest.exp conftest.er2 >/dev/null; then
11187 lt_cv_prog_compiler__b=yes
11190 lt_cv_prog_compiler__b=yes
11194 LDFLAGS=$save_LDFLAGS
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11198 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11200 if test yes = "$lt_cv_prog_compiler__b"; then
11201 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11203 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11209 if test no = "$with_gnu_ld"; then
11210 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11211 hardcode_libdir_separator=:
11216 hardcode_shlibpath_var=no
11219 hardcode_direct=yes
11220 hardcode_direct_absolute=yes
11221 export_dynamic_flag_spec='$wl-E'
11223 # hardcode_minus_L: Not really in the search PATH,
11224 # but as the default location of the library.
11225 hardcode_minus_L=yes
11231 irix5* | irix6* | nonstopux*)
11232 if test yes = "$GCC"; then
11233 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'
11234 # Try to use the -exported_symbol ld option, if it does not
11235 # work, assume that -exports_file does not work either and
11236 # implicitly export all symbols.
11237 # This should be the same for all languages, so no per-tag cache variable.
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11239 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11240 if ${lt_cv_irix_exported_symbol+:} false; then :
11241 $as_echo_n "(cached) " >&6
11243 save_LDFLAGS=$LDFLAGS
11244 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h. */
11247 int foo (void) { return 0; }
11249 if ac_fn_c_try_link "$LINENO"; then :
11250 lt_cv_irix_exported_symbol=yes
11252 lt_cv_irix_exported_symbol=no
11254 rm -f core conftest.err conftest.$ac_objext \
11255 conftest$ac_exeext conftest.$ac_ext
11256 LDFLAGS=$save_LDFLAGS
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11259 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11260 if test yes = "$lt_cv_irix_exported_symbol"; then
11261 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'
11263 link_all_deplibs=no
11265 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'
11266 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'
11268 archive_cmds_need_lc='no'
11269 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11270 hardcode_libdir_separator=:
11272 link_all_deplibs=yes
11276 case $cc_basename in
11278 # Fabrice Bellard et al's Tiny C Compiler
11280 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11285 netbsd* | netbsdelf*-gnu)
11286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11287 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11289 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11291 hardcode_libdir_flag_spec='-R$libdir'
11292 hardcode_direct=yes
11293 hardcode_shlibpath_var=no
11297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11298 hardcode_direct=yes
11299 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11300 hardcode_libdir_separator=:
11301 hardcode_shlibpath_var=no
11307 openbsd* | bitrig*)
11308 if test -f /usr/libexec/ld.so; then
11309 hardcode_direct=yes
11310 hardcode_shlibpath_var=no
11311 hardcode_direct_absolute=yes
11312 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11314 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11315 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11316 export_dynamic_flag_spec='$wl-E'
11318 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11319 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11327 hardcode_libdir_flag_spec='-L$libdir'
11328 hardcode_minus_L=yes
11329 allow_undefined_flag=unsupported
11331 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11332 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11333 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11334 $ECHO EXPORTS >> $output_objdir/$libname.def~
11335 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11336 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11337 emximp -o $lib $output_objdir/$libname.def'
11338 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11339 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11340 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11341 $ECHO EXPORTS >> $output_objdir/$libname.def~
11342 prefix_cmds="$SED"~
11343 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11344 prefix_cmds="$prefix_cmds -e 1d";
11346 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11347 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11348 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11349 emximp -o $lib $output_objdir/$libname.def'
11350 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11351 enable_shared_with_static_runtimes=yes
11355 if test yes = "$GCC"; then
11356 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11357 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'
11359 allow_undefined_flag=' -expect_unresolved \*'
11360 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'
11362 archive_cmds_need_lc='no'
11363 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11364 hardcode_libdir_separator=:
11367 osf4* | osf5*) # as osf3* with the addition of -msym flag
11368 if test yes = "$GCC"; then
11369 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11370 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'
11371 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11373 allow_undefined_flag=' -expect_unresolved \*'
11374 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'
11375 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~
11376 $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'
11378 # Both c and cxx compiler support -rpath directly
11379 hardcode_libdir_flag_spec='-rpath $libdir'
11381 archive_cmds_need_lc='no'
11382 hardcode_libdir_separator=:
11386 no_undefined_flag=' -z defs'
11387 if test yes = "$GCC"; then
11389 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11390 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11391 $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'
11393 case `$CC -V 2>&1` in
11396 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11397 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11398 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11402 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11404 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11408 hardcode_libdir_flag_spec='-R$libdir'
11409 hardcode_shlibpath_var=no
11411 solaris2.[0-5] | solaris2.[0-5].*) ;;
11413 # The compiler driver will combine and reorder linker options,
11414 # but understands '-z linker_flag'. GCC discards it without '$wl',
11415 # but is careful enough not to reorder.
11416 # Supported since Solaris 2.6 (maybe 2.5.1?)
11417 if test yes = "$GCC"; then
11418 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11420 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11424 link_all_deplibs=yes
11428 if test sequent = "$host_vendor"; then
11429 # Use $CC to link under sequent, because it throws in some extra .o
11430 # files that make .init and .fini sections work.
11431 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11433 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11435 hardcode_libdir_flag_spec='-L$libdir'
11436 hardcode_direct=yes
11437 hardcode_minus_L=yes
11438 hardcode_shlibpath_var=no
11442 case $host_vendor in
11444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11445 hardcode_direct=yes # is this really true???
11448 ## LD is ld it makes a PLAMLIB
11449 ## CC just makes a GrossModule.
11450 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11451 reload_cmds='$CC -r -o $output$reload_objs'
11455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11456 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11459 runpath_var='LD_RUN_PATH'
11460 hardcode_shlibpath_var=no
11464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11465 hardcode_shlibpath_var=no
11466 export_dynamic_flag_spec='-Bexport'
11470 if test -d /usr/nec; then
11471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11472 hardcode_shlibpath_var=no
11473 runpath_var=LD_RUN_PATH
11474 hardcode_runpath_var=yes
11479 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11480 no_undefined_flag='$wl-z,text'
11481 archive_cmds_need_lc=no
11482 hardcode_shlibpath_var=no
11483 runpath_var='LD_RUN_PATH'
11485 if test yes = "$GCC"; then
11486 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11487 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11489 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11490 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11494 sysv5* | sco3.2v5* | sco5v6*)
11495 # Note: We CANNOT use -z defs as we might desire, because we do not
11496 # link with -lc, and that would cause any symbols used from libc to
11497 # always be unresolved, which means just about no library would
11498 # ever link correctly. If we're not using GNU ld we use -z text
11499 # though, which does catch some bad symbols but isn't as heavy-handed
11501 no_undefined_flag='$wl-z,text'
11502 allow_undefined_flag='$wl-z,nodefs'
11503 archive_cmds_need_lc=no
11504 hardcode_shlibpath_var=no
11505 hardcode_libdir_flag_spec='$wl-R,$libdir'
11506 hardcode_libdir_separator=':'
11507 link_all_deplibs=yes
11508 export_dynamic_flag_spec='$wl-Bexport'
11509 runpath_var='LD_RUN_PATH'
11511 if test yes = "$GCC"; then
11512 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11513 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11515 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11516 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11522 hardcode_libdir_flag_spec='-L$libdir'
11523 hardcode_shlibpath_var=no
11531 if test sni = "$host_vendor"; then
11533 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11534 export_dynamic_flag_spec='$wl-Blargedynsym'
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11541 $as_echo "$ld_shlibs" >&6; }
11542 test no = "$ld_shlibs" && can_build_shared=no
11544 with_gnu_ld=$with_gnu_ld
11561 # Do we need to explicitly link libc?
11563 case "x$archive_cmds_need_lc" in
11565 # Assume -lc should be added
11566 archive_cmds_need_lc=yes
11568 if test yes,yes = "$GCC,$enable_shared"; then
11569 case $archive_cmds in
11571 # FIXME: we may have to deal with multi-command sequences.
11574 # Test whether the compiler implicitly links with -lc since on some
11575 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11576 # to ld, don't add -lc before -lgcc.
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11578 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11579 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11580 $as_echo_n "(cached) " >&6
11583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11586 (eval $ac_compile) 2>&5
11588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11589 test $ac_status = 0; } 2>conftest.err; then
11592 libobjs=conftest.$ac_objext
11594 wl=$lt_prog_compiler_wl
11595 pic_flag=$lt_prog_compiler_pic
11601 lt_save_allow_undefined_flag=$allow_undefined_flag
11602 allow_undefined_flag=
11603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11604 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11607 test $ac_status = 0; }
11609 lt_cv_archive_cmds_need_lc=no
11611 lt_cv_archive_cmds_need_lc=yes
11613 allow_undefined_flag=$lt_save_allow_undefined_flag
11615 cat conftest.err 1>&5
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11621 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11622 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11781 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11783 if test yes = "$GCC"; then
11785 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11786 *) lt_awk_arg='/^libraries:/' ;;
11789 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11790 *) lt_sed_strip_eq='s|=/|/|g' ;;
11792 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11793 case $lt_search_path_spec in
11795 # if the path contains ";" then we assume it to be the separator
11796 # otherwise default to the standard path separator (i.e. ":") - it is
11797 # assumed that no part of a normal pathname contains ";" but that should
11798 # okay in the real world where ";" in dirpaths is itself problematic.
11799 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11802 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11805 # Ok, now we have the path, separated by spaces, we can step through it
11806 # and add multilib dir if necessary...
11807 lt_tmp_lt_search_path_spec=
11808 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11809 # ...but if some path component already ends with the multilib dir we assume
11810 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11811 case "$lt_multi_os_dir; $lt_search_path_spec " in
11812 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11816 for lt_sys_path in $lt_search_path_spec; do
11817 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11818 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11819 elif test -n "$lt_multi_os_dir"; then
11820 test -d "$lt_sys_path" && \
11821 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11824 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11825 BEGIN {RS = " "; FS = "/|\n";} {
11828 for (lt_i = NF; lt_i > 0; lt_i--) {
11829 if ($lt_i != "" && $lt_i != ".") {
11830 if ($lt_i == "..") {
11833 if (lt_count == 0) {
11834 lt_foo = "/" $lt_i lt_foo;
11841 if (lt_foo != "") { lt_freq[lt_foo]++; }
11842 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11844 # AWK program above erroneously prepends '/' to C:/dos/paths
11847 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11848 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11850 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11852 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11854 library_names_spec=
11855 libname_spec='lib$name'
11859 postuninstall_cmds=
11863 shlibpath_overrides_runpath=unknown
11865 dynamic_linker="$host_os ld.so"
11866 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11867 need_lib_prefix=unknown
11868 hardcode_into_libs=no
11870 # when you set need_version to no, make sure it does not cause -set_version
11871 # flags to be left without arguments
11872 need_version=unknown
11878 version_type=linux # correct to gnu/linux during the next big refactor
11879 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11880 shlibpath_var=LIBPATH
11882 # AIX 3 has no versioning support, so we append a major version to the name.
11883 soname_spec='$libname$release$shared_ext$major'
11887 version_type=linux # correct to gnu/linux during the next big refactor
11890 hardcode_into_libs=yes
11891 if test ia64 = "$host_cpu"; then
11892 # AIX 5 supports IA64
11893 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11894 shlibpath_var=LD_LIBRARY_PATH
11896 # With GCC up to 2.95.x, collect2 would create an import file
11897 # for dependence libraries. The import file would start with
11898 # the line '#! .'. This would cause the generated library to
11899 # depend on '.', always an invalid library. This was fixed in
11900 # development snapshots of GCC prior to 3.0.
11902 aix4 | aix4.[01] | aix4.[01].*)
11903 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11905 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11908 can_build_shared=no
11912 # Using Import Files as archive members, it is possible to support
11913 # filename-based versioning of shared library archives on AIX. While
11914 # this would work for both with and without runtime linking, it will
11915 # prevent static linking of such archives. So we do filename-based
11916 # shared library versioning with .so extension only, which is used
11917 # when both runtime linking and shared linking is enabled.
11918 # Unfortunately, runtime linking may impact performance, so we do
11919 # not want this to be the default eventually. Also, we use the
11920 # versioned .so libs for executables only if there is the -brtl
11921 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11922 # To allow for filename-based versioning support, we need to create
11923 # libNAME.so.V as an archive file, containing:
11924 # *) an Import File, referring to the versioned filename of the
11925 # archive as well as the shared archive member, telling the
11926 # bitwidth (32 or 64) of that shared object, and providing the
11927 # list of exported symbols of that shared object, eventually
11928 # decorated with the 'weak' keyword
11929 # *) the shared object with the F_LOADONLY flag set, to really avoid
11930 # it being seen by the linker.
11931 # At run time we better use the real file rather than another symlink,
11932 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11934 case $with_aix_soname,$aix_use_runtimelinking in
11935 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11936 # soname into executable. Probably we can add versioning support to
11937 # collect2, so additional links can be useful in future.
11938 aix,yes) # traditional libtool
11939 dynamic_linker='AIX unversionable lib.so'
11940 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11941 # instead of lib<name>.a to let people know that these are not
11942 # typical AIX shared libraries.
11943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11945 aix,no) # traditional AIX only
11946 dynamic_linker='AIX lib.a(lib.so.V)'
11947 # We preserve .a as extension for shared libraries through AIX4.2
11948 # and later when we are not doing run time linking.
11949 library_names_spec='$libname$release.a $libname.a'
11950 soname_spec='$libname$release$shared_ext$major'
11952 svr4,*) # full svr4 only
11953 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11954 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11955 # We do not specify a path in Import Files, so LIBPATH fires.
11956 shlibpath_overrides_runpath=yes
11958 *,yes) # both, prefer svr4
11959 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11960 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11961 # unpreferred sharedlib libNAME.a needs extra handling
11962 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"'
11963 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"'
11964 # We do not specify a path in Import Files, so LIBPATH fires.
11965 shlibpath_overrides_runpath=yes
11967 *,no) # both, prefer aix
11968 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11969 library_names_spec='$libname$release.a $libname.a'
11970 soname_spec='$libname$release$shared_ext$major'
11971 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11972 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)'
11973 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"'
11976 shlibpath_var=LIBPATH
11983 # Since July 2007 AmigaOS4 officially supports .so libraries.
11984 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11988 library_names_spec='$libname.ixlibrary $libname.a'
11989 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11990 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'
11996 library_names_spec='$libname$shared_ext'
11997 dynamic_linker="$host_os ld.so"
11998 shlibpath_var=LIBRARY_PATH
12002 version_type=linux # correct to gnu/linux during the next big refactor
12004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12005 soname_spec='$libname$release$shared_ext$major'
12006 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12007 shlibpath_var=LD_LIBRARY_PATH
12008 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12009 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12010 # the default ld.so.conf also contains /usr/contrib/lib and
12011 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12012 # libtool to hard-code these into programs
12015 cygwin* | mingw* | pw32* | cegcc*)
12016 version_type=windows
12021 case $GCC,$cc_basename in
12024 library_names_spec='$libname.dll.a'
12025 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12026 postinstall_cmds='base_file=`basename \$file`~
12027 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12028 dldir=$destdir/`dirname \$dlpath`~
12029 test -d \$dldir || mkdir -p \$dldir~
12030 $install_prog $dir/$dlname \$dldir/$dlname~
12031 chmod a+x \$dldir/$dlname~
12032 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12033 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12035 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12036 dlpath=$dir/\$dldll~
12038 shlibpath_overrides_runpath=yes
12042 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12043 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12045 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12048 # MinGW DLLs use traditional 'lib' prefix
12049 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12052 # pw32 DLLs use 'pw' prefix rather than 'lib'
12053 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12056 dynamic_linker='Win32 ld.exe'
12061 libname_spec='$name'
12062 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12063 library_names_spec='$libname.dll.lib'
12067 sys_lib_search_path_spec=
12070 for lt_path in $LIB
12073 # Let DOS variable expansion print the short 8.3 style file name.
12074 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12075 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12078 # Convert to MSYS style.
12079 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12082 # Convert to unix form, then to dos form, then back to unix form
12083 # but this time dos style (no spaces!) so that the unix form looks
12084 # like /cygdrive/c/PROGRA~1:/cygdr...
12085 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12086 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12087 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12090 sys_lib_search_path_spec=$LIB
12091 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12092 # It is most probably a Windows format PATH.
12093 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12095 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12097 # FIXME: find the short name or the path components, as spaces are
12098 # common. (e.g. "Program Files" -> "PROGRA~1")
12102 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12103 postinstall_cmds='base_file=`basename \$file`~
12104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12105 dldir=$destdir/`dirname \$dlpath`~
12106 test -d \$dldir || mkdir -p \$dldir~
12107 $install_prog $dir/$dlname \$dldir/$dlname'
12108 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12109 dlpath=$dir/\$dldll~
12111 shlibpath_overrides_runpath=yes
12112 dynamic_linker='Win32 link.exe'
12116 # Assume MSVC wrapper
12117 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12118 dynamic_linker='Win32 ld.exe'
12121 # FIXME: first we should search . and the directory the executable is in
12125 darwin* | rhapsody*)
12126 dynamic_linker="$host_os dyld"
12127 version_type=darwin
12130 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12131 soname_spec='$libname$release$major$shared_ext'
12132 shlibpath_overrides_runpath=yes
12133 shlibpath_var=DYLD_LIBRARY_PATH
12134 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12136 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12137 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12141 version_type=linux # correct to gnu/linux during the next big refactor
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'
12146 shlibpath_var=LD_LIBRARY_PATH
12149 freebsd* | dragonfly*)
12150 # DragonFly does not have aout. When/if they implement a new
12151 # versioning mechanism, adjust this.
12152 if test -x /usr/bin/objformat; then
12153 objformat=`/usr/bin/objformat`
12156 freebsd[23].*) objformat=aout ;;
12157 *) objformat=elf ;;
12160 version_type=freebsd-$objformat
12161 case $version_type in
12163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12164 soname_spec='$libname$release$shared_ext$major'
12169 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12173 shlibpath_var=LD_LIBRARY_PATH
12176 shlibpath_overrides_runpath=yes
12178 freebsd3.[01]* | freebsdelf3.[01]*)
12179 shlibpath_overrides_runpath=yes
12180 hardcode_into_libs=yes
12182 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12183 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12184 shlibpath_overrides_runpath=no
12185 hardcode_into_libs=yes
12187 *) # from 4.6 on, and DragonFly
12188 shlibpath_overrides_runpath=yes
12189 hardcode_into_libs=yes
12195 version_type=linux # correct to gnu/linux during the next big refactor
12198 dynamic_linker="$host_os runtime_loader"
12199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12200 soname_spec='$libname$release$shared_ext$major'
12201 shlibpath_var=LIBRARY_PATH
12202 shlibpath_overrides_runpath=no
12203 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12204 hardcode_into_libs=yes
12207 hpux9* | hpux10* | hpux11*)
12208 # Give a soname corresponding to the major version so that dld.sl refuses to
12209 # link against other versions.
12216 hardcode_into_libs=yes
12217 dynamic_linker="$host_os dld.so"
12218 shlibpath_var=LD_LIBRARY_PATH
12219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12221 soname_spec='$libname$release$shared_ext$major'
12222 if test 32 = "$HPUX_IA64_MODE"; then
12223 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12224 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12226 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12227 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12232 hardcode_into_libs=yes
12233 dynamic_linker="$host_os dld.sl"
12234 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12237 soname_spec='$libname$release$shared_ext$major'
12238 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12243 dynamic_linker="$host_os dld.sl"
12244 shlibpath_var=SHLIB_PATH
12245 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12247 soname_spec='$libname$release$shared_ext$major'
12250 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12251 postinstall_cmds='chmod 555 $lib'
12252 # or fails outright, so override atomically:
12253 install_override_mode=555
12257 version_type=linux # correct to gnu/linux during the next big refactor
12260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12261 soname_spec='$libname$release$shared_ext$major'
12262 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12263 shlibpath_var=LD_LIBRARY_PATH
12264 shlibpath_overrides_runpath=no
12265 hardcode_into_libs=yes
12268 irix5* | irix6* | nonstopux*)
12270 nonstopux*) version_type=nonstopux ;;
12272 if test yes = "$lt_cv_prog_gnu_ld"; then
12273 version_type=linux # correct to gnu/linux during the next big refactor
12280 soname_spec='$libname$release$shared_ext$major'
12281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12283 irix5* | nonstopux*)
12284 libsuff= shlibsuff=
12287 case $LD in # libtool.m4 will add one of these switches to LD
12288 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12289 libsuff= shlibsuff= libmagic=32-bit;;
12290 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12291 libsuff=32 shlibsuff=N32 libmagic=N32;;
12292 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12293 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12294 *) libsuff= shlibsuff= libmagic=never-match;;
12298 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12299 shlibpath_overrides_runpath=no
12300 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12301 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12302 hardcode_into_libs=yes
12305 # No shared lib support for Linux oldld, aout, or coff.
12306 linux*oldld* | linux*aout* | linux*coff*)
12311 version_type=none # Android doesn't support versioned libraries.
12314 library_names_spec='$libname$release$shared_ext'
12315 soname_spec='$libname$release$shared_ext'
12317 shlibpath_var=LD_LIBRARY_PATH
12318 shlibpath_overrides_runpath=yes
12320 # This implies no fast_install, which is unacceptable.
12321 # Some rework will be needed to allow for fast_install
12322 # before this can be enabled.
12323 hardcode_into_libs=yes
12325 dynamic_linker='Android linker'
12326 # Don't embed -rpath directories since the linker doesn't support them.
12327 hardcode_libdir_flag_spec='-L$libdir'
12330 # This must be glibc/ELF.
12331 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12332 version_type=linux # correct to gnu/linux during the next big refactor
12335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12336 soname_spec='$libname$release$shared_ext$major'
12337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12338 shlibpath_var=LD_LIBRARY_PATH
12339 shlibpath_overrides_runpath=no
12341 # Some binutils ld are patched to set DT_RUNPATH
12342 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12343 $as_echo_n "(cached) " >&6
12345 lt_cv_shlibpath_overrides_runpath=no
12346 save_LDFLAGS=$LDFLAGS
12347 save_libdir=$libdir
12348 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12349 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12361 if ac_fn_c_try_link "$LINENO"; then :
12362 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12363 lt_cv_shlibpath_overrides_runpath=yes
12366 rm -f core conftest.err conftest.$ac_objext \
12367 conftest$ac_exeext conftest.$ac_ext
12368 LDFLAGS=$save_LDFLAGS
12369 libdir=$save_libdir
12373 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12375 # This implies no fast_install, which is unacceptable.
12376 # Some rework will be needed to allow for fast_install
12377 # before this can be enabled.
12378 hardcode_into_libs=yes
12380 # Ideally, we could use ldconfig to report *all* directores which are
12381 # searched for libraries, however this is still not possible. Aside from not
12382 # being certain /sbin/ldconfig is available, command
12383 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12384 # even though it is searched at run-time. Try to do the best guess by
12385 # appending ld.so.conf contents (and includes) to the search path.
12386 if test -f /etc/ld.so.conf; then
12387 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' ' '`
12388 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12391 # We used to test for /lib/ld.so.1 and disable shared libraries on
12392 # powerpc, because MkLinux only supported shared libraries with the
12393 # GNU dynamic linker. Since this was broken with cross compilers,
12394 # most powerpc-linux boxes support dynamic linking these days and
12395 # people can always --disable-shared, the test was removed, and we
12396 # assume the GNU/Linux dynamic linker is in use.
12397 dynamic_linker='GNU/Linux ld.so'
12404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12405 soname_spec='${libname}${release}${shared_ext}$major'
12406 shlibpath_var=LD_LIBRARY_PATH
12407 shlibpath_overrides_runpath=no
12408 hardcode_into_libs=yes
12409 dynamic_linker='NetBSD ld.elf_so'
12416 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12417 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12419 dynamic_linker='NetBSD (a.out) ld.so'
12421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12422 soname_spec='$libname$release$shared_ext$major'
12423 dynamic_linker='NetBSD ld.elf_so'
12425 shlibpath_var=LD_LIBRARY_PATH
12426 shlibpath_overrides_runpath=yes
12427 hardcode_into_libs=yes
12431 version_type=linux # correct to gnu/linux during the next big refactor
12432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12433 shlibpath_var=LD_LIBRARY_PATH
12434 shlibpath_overrides_runpath=yes
12441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12442 soname_spec='$libname$release$shared_ext$major'
12443 shlibpath_var=LD_LIBRARY_PATH
12444 shlibpath_overrides_runpath=no
12445 hardcode_into_libs=yes
12446 dynamic_linker='ldqnx.so'
12449 openbsd* | bitrig*)
12451 sys_lib_dlsearch_path_spec=/usr/lib
12453 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12458 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12460 shlibpath_var=LD_LIBRARY_PATH
12461 shlibpath_overrides_runpath=yes
12465 libname_spec='$name'
12466 version_type=windows
12470 # OS/2 can only load a DLL with a base name of 8 characters or less.
12471 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12472 v=$($ECHO $release$versuffix | tr -d .-);
12473 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12474 $ECHO $n$v`$shared_ext'
12475 library_names_spec='${libname}_dll.$libext'
12476 dynamic_linker='OS/2 ld.exe'
12477 shlibpath_var=BEGINLIBPATH
12478 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12480 postinstall_cmds='base_file=`basename \$file`~
12481 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12482 dldir=$destdir/`dirname \$dlpath`~
12483 test -d \$dldir || mkdir -p \$dldir~
12484 $install_prog $dir/$dlname \$dldir/$dlname~
12485 chmod a+x \$dldir/$dlname~
12486 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12487 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12489 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12490 dlpath=$dir/\$dldll~
12494 osf3* | osf4* | osf5*)
12498 soname_spec='$libname$release$shared_ext$major'
12499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12500 shlibpath_var=LD_LIBRARY_PATH
12501 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12502 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12510 version_type=linux # correct to gnu/linux during the next big refactor
12513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12514 soname_spec='$libname$release$shared_ext$major'
12515 shlibpath_var=LD_LIBRARY_PATH
12516 shlibpath_overrides_runpath=yes
12517 hardcode_into_libs=yes
12518 # ldd complains unless libraries are executable
12519 postinstall_cmds='chmod +x $lib'
12524 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12525 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12526 shlibpath_var=LD_LIBRARY_PATH
12527 shlibpath_overrides_runpath=yes
12528 if test yes = "$with_gnu_ld"; then
12535 version_type=linux # correct to gnu/linux during the next big refactor
12536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12537 soname_spec='$libname$release$shared_ext$major'
12538 shlibpath_var=LD_LIBRARY_PATH
12539 case $host_vendor in
12541 shlibpath_overrides_runpath=no
12543 runpath_var=LD_RUN_PATH
12551 shlibpath_overrides_runpath=no
12552 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12558 if test -d /usr/nec; then
12559 version_type=linux # correct to gnu/linux during the next big refactor
12560 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12561 soname_spec='$libname$shared_ext.$major'
12562 shlibpath_var=LD_LIBRARY_PATH
12566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12571 soname_spec='$libname$release$shared_ext$major'
12572 shlibpath_var=LD_LIBRARY_PATH
12573 shlibpath_overrides_runpath=yes
12574 hardcode_into_libs=yes
12575 if test yes = "$with_gnu_ld"; then
12576 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12578 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12581 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12585 sys_lib_dlsearch_path_spec='/usr/lib'
12589 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12590 version_type=linux # correct to gnu/linux during the next big refactor
12593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12594 shlibpath_var=LD_LIBRARY_PATH
12595 shlibpath_overrides_runpath=no
12596 hardcode_into_libs=yes
12600 version_type=linux # correct to gnu/linux during the next big refactor
12601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12602 soname_spec='$libname$release$shared_ext$major'
12603 shlibpath_var=LD_LIBRARY_PATH
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12611 $as_echo "$dynamic_linker" >&6; }
12612 test no = "$dynamic_linker" && can_build_shared=no
12614 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12615 if test yes = "$GCC"; then
12616 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12619 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12620 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12623 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12624 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12627 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12628 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12630 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12631 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12633 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12634 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12733 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12735 if test -n "$hardcode_libdir_flag_spec" ||
12736 test -n "$runpath_var" ||
12737 test yes = "$hardcode_automatic"; then
12739 # We can hardcode non-existent directories.
12740 if test no != "$hardcode_direct" &&
12741 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12742 # have to relink, otherwise we might link with an installed library
12743 # when we should be linking with a yet-to-be-installed one
12744 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12745 test no != "$hardcode_minus_L"; then
12746 # Linking always hardcodes the temporary library directory.
12747 hardcode_action=relink
12749 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12750 hardcode_action=immediate
12753 # We cannot hardcode anything, or else we can only hardcode existing
12755 hardcode_action=unsupported
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12758 $as_echo "$hardcode_action" >&6; }
12760 if test relink = "$hardcode_action" ||
12761 test yes = "$inherit_rpath"; then
12762 # Fast installation is not supported
12763 enable_fast_install=no
12764 elif test yes = "$shlibpath_overrides_runpath" ||
12765 test no = "$enable_shared"; then
12766 # Fast installation is not necessary
12767 enable_fast_install=needless
12775 if test yes != "$enable_dlopen"; then
12776 enable_dlopen=unknown
12777 enable_dlopen_self=unknown
12778 enable_dlopen_self_static=unknown
12785 lt_cv_dlopen=load_add_on
12787 lt_cv_dlopen_self=yes
12790 mingw* | pw32* | cegcc*)
12791 lt_cv_dlopen=LoadLibrary
12796 lt_cv_dlopen=dlopen
12801 # if libdl is installed we need to link against it
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12803 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12804 if ${ac_cv_lib_dl_dlopen+:} false; then :
12805 $as_echo_n "(cached) " >&6
12807 ac_check_lib_save_LIBS=$LIBS
12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h. */
12812 /* Override any GCC internal prototype to avoid an error.
12813 Use char because int might match the return type of a GCC
12814 builtin and then its argument prototype would still apply. */
12827 if ac_fn_c_try_link "$LINENO"; then :
12828 ac_cv_lib_dl_dlopen=yes
12830 ac_cv_lib_dl_dlopen=no
12832 rm -f core conftest.err conftest.$ac_objext \
12833 conftest$ac_exeext conftest.$ac_ext
12834 LIBS=$ac_check_lib_save_LIBS
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12837 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12838 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12839 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12844 lt_cv_dlopen_self=yes
12851 # Don't try to run any link tests for TPF. We know it's impossible
12852 # because TPF is a cross-compiler, and we know how we open DSOs.
12853 lt_cv_dlopen=dlopen
12855 lt_cv_dlopen_self=no
12859 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12860 if test "x$ac_cv_func_shl_load" = xyes; then :
12861 lt_cv_dlopen=shl_load
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12864 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12865 if ${ac_cv_lib_dld_shl_load+:} false; then :
12866 $as_echo_n "(cached) " >&6
12868 ac_check_lib_save_LIBS=$LIBS
12870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12871 /* end confdefs.h. */
12873 /* Override any GCC internal prototype to avoid an error.
12874 Use char because int might match the return type of a GCC
12875 builtin and then its argument prototype would still apply. */
12883 return shl_load ();
12888 if ac_fn_c_try_link "$LINENO"; then :
12889 ac_cv_lib_dld_shl_load=yes
12891 ac_cv_lib_dld_shl_load=no
12893 rm -f core conftest.err conftest.$ac_objext \
12894 conftest$ac_exeext conftest.$ac_ext
12895 LIBS=$ac_check_lib_save_LIBS
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12898 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12899 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12900 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12902 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12903 if test "x$ac_cv_func_dlopen" = xyes; then :
12904 lt_cv_dlopen=dlopen
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12907 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12908 if ${ac_cv_lib_dl_dlopen+:} false; then :
12909 $as_echo_n "(cached) " >&6
12911 ac_check_lib_save_LIBS=$LIBS
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12916 /* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12931 if ac_fn_c_try_link "$LINENO"; then :
12932 ac_cv_lib_dl_dlopen=yes
12934 ac_cv_lib_dl_dlopen=no
12936 rm -f core conftest.err conftest.$ac_objext \
12937 conftest$ac_exeext conftest.$ac_ext
12938 LIBS=$ac_check_lib_save_LIBS
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12942 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12943 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12946 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12947 if ${ac_cv_lib_svld_dlopen+:} false; then :
12948 $as_echo_n "(cached) " >&6
12950 ac_check_lib_save_LIBS=$LIBS
12951 LIBS="-lsvld $LIBS"
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h. */
12955 /* Override any GCC internal prototype to avoid an error.
12956 Use char because int might match the return type of a GCC
12957 builtin and then its argument prototype would still apply. */
12970 if ac_fn_c_try_link "$LINENO"; then :
12971 ac_cv_lib_svld_dlopen=yes
12973 ac_cv_lib_svld_dlopen=no
12975 rm -f core conftest.err conftest.$ac_objext \
12976 conftest$ac_exeext conftest.$ac_ext
12977 LIBS=$ac_check_lib_save_LIBS
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12980 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12981 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12982 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12985 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12986 if ${ac_cv_lib_dld_dld_link+:} false; then :
12987 $as_echo_n "(cached) " >&6
12989 ac_check_lib_save_LIBS=$LIBS
12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h. */
12994 /* Override any GCC internal prototype to avoid an error.
12995 Use char because int might match the return type of a GCC
12996 builtin and then its argument prototype would still apply. */
13004 return dld_link ();
13009 if ac_fn_c_try_link "$LINENO"; then :
13010 ac_cv_lib_dld_dld_link=yes
13012 ac_cv_lib_dld_dld_link=no
13014 rm -f core conftest.err conftest.$ac_objext \
13015 conftest$ac_exeext conftest.$ac_ext
13016 LIBS=$ac_check_lib_save_LIBS
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13019 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13020 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13021 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13042 if test no = "$lt_cv_dlopen"; then
13048 case $lt_cv_dlopen in
13050 save_CPPFLAGS=$CPPFLAGS
13051 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13053 save_LDFLAGS=$LDFLAGS
13054 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13057 LIBS="$lt_cv_dlopen_libs $LIBS"
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13060 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13061 if ${lt_cv_dlopen_self+:} false; then :
13062 $as_echo_n "(cached) " >&6
13064 if test yes = "$cross_compiling"; then :
13065 lt_cv_dlopen_self=cross
13067 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13068 lt_status=$lt_dlunknown
13069 cat > conftest.$ac_ext <<_LT_EOF
13070 #line $LINENO "configure"
13071 #include "confdefs.h"
13080 # define LT_DLGLOBAL RTLD_GLOBAL
13083 # define LT_DLGLOBAL DL_GLOBAL
13085 # define LT_DLGLOBAL 0
13089 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13090 find out it does not work in some platform. */
13091 #ifndef LT_DLLAZY_OR_NOW
13093 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13096 # define LT_DLLAZY_OR_NOW DL_LAZY
13099 # define LT_DLLAZY_OR_NOW RTLD_NOW
13102 # define LT_DLLAZY_OR_NOW DL_NOW
13104 # define LT_DLLAZY_OR_NOW 0
13111 /* When -fvisibility=hidden is used, assume the code has been annotated
13112 correspondingly for the symbols needed. */
13113 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13114 int fnord () __attribute__((visibility("default")));
13117 int fnord () { return 42; }
13120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13121 int status = $lt_dlunknown;
13125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13128 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13129 else puts (dlerror ());
13131 /* dlclose (self); */
13139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13140 (eval $ac_link) 2>&5
13142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13143 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13144 (./conftest; exit; ) >&5 2>/dev/null
13146 case x$lt_status in
13147 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13148 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13149 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13152 # compilation failed
13153 lt_cv_dlopen_self=no
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13161 $as_echo "$lt_cv_dlopen_self" >&6; }
13163 if test yes = "$lt_cv_dlopen_self"; then
13164 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13166 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13167 if ${lt_cv_dlopen_self_static+:} false; then :
13168 $as_echo_n "(cached) " >&6
13170 if test yes = "$cross_compiling"; then :
13171 lt_cv_dlopen_self_static=cross
13173 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13174 lt_status=$lt_dlunknown
13175 cat > conftest.$ac_ext <<_LT_EOF
13176 #line $LINENO "configure"
13177 #include "confdefs.h"
13186 # define LT_DLGLOBAL RTLD_GLOBAL
13189 # define LT_DLGLOBAL DL_GLOBAL
13191 # define LT_DLGLOBAL 0
13195 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13196 find out it does not work in some platform. */
13197 #ifndef LT_DLLAZY_OR_NOW
13199 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13202 # define LT_DLLAZY_OR_NOW DL_LAZY
13205 # define LT_DLLAZY_OR_NOW RTLD_NOW
13208 # define LT_DLLAZY_OR_NOW DL_NOW
13210 # define LT_DLLAZY_OR_NOW 0
13217 /* When -fvisibility=hidden is used, assume the code has been annotated
13218 correspondingly for the symbols needed. */
13219 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13220 int fnord () __attribute__((visibility("default")));
13223 int fnord () { return 42; }
13226 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13227 int status = $lt_dlunknown;
13231 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13234 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13235 else puts (dlerror ());
13237 /* dlclose (self); */
13245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13246 (eval $ac_link) 2>&5
13248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13249 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13250 (./conftest; exit; ) >&5 2>/dev/null
13252 case x$lt_status in
13253 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13254 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13255 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13258 # compilation failed
13259 lt_cv_dlopen_self_static=no
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13267 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13270 CPPFLAGS=$save_CPPFLAGS
13271 LDFLAGS=$save_LDFLAGS
13276 case $lt_cv_dlopen_self in
13277 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13278 *) enable_dlopen_self=unknown ;;
13281 case $lt_cv_dlopen_self_static in
13282 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13283 *) enable_dlopen_self_static=unknown ;;
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13306 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13307 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13308 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13309 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13311 $as_echo "yes" >&6; }
13313 # FIXME - insert some real tests, host_os isn't really good enough
13316 if test -n "$STRIP"; then
13317 striplib="$STRIP -x"
13318 old_striplib="$STRIP -S"
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13320 $as_echo "yes" >&6; }
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323 $as_echo "no" >&6; }
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328 $as_echo "no" >&6; }
13344 # Report what library types will actually be built
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13346 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13348 $as_echo "$can_build_shared" >&6; }
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13351 $as_echo_n "checking whether to build shared libraries... " >&6; }
13352 test no = "$can_build_shared" && enable_shared=no
13354 # On AIX, shared libraries and static libraries use the same namespace, and
13355 # are all built from PIC.
13358 test yes = "$enable_shared" && enable_static=no
13359 if test -n "$RANLIB"; then
13360 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13361 postinstall_cmds='$RANLIB $lib'
13366 if test ia64 != "$host_cpu"; then
13367 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13368 yes,aix,yes) ;; # shared object as lib.so file only
13369 yes,svr4,*) ;; # shared object as lib.so archive member only
13370 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13376 $as_echo "$enable_shared" >&6; }
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13379 $as_echo_n "checking whether to build static libraries... " >&6; }
13380 # Make sure either enable_shared or enable_static is yes.
13381 test yes = "$enable_shared" || enable_static=yes
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13383 $as_echo "$enable_static" >&6; }
13390 ac_cpp='$CPP $CPPFLAGS'
13391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13411 ac_config_commands="$ac_config_commands libtool"
13416 # Only expand once:
13420 # Check for programs
13422 ac_cpp='$CPP $CPPFLAGS'
13423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13426 if test -n "$ac_tool_prefix"; then
13427 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13428 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13430 $as_echo_n "checking for $ac_word... " >&6; }
13431 if ${ac_cv_prog_CC+:} false; then :
13432 $as_echo_n "(cached) " >&6
13434 if test -n "$CC"; then
13435 ac_cv_prog_CC="$CC" # Let the user override the test.
13437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438 for as_dir in $PATH
13441 test -z "$as_dir" && as_dir=.
13442 for ac_exec_ext in '' $ac_executable_extensions; do
13443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13444 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13455 if test -n "$CC"; then
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13457 $as_echo "$CC" >&6; }
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460 $as_echo "no" >&6; }
13465 if test -z "$ac_cv_prog_CC"; then
13467 # Extract the first word of "gcc", so it can be a program name with args.
13468 set dummy gcc; ac_word=$2
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13470 $as_echo_n "checking for $ac_word... " >&6; }
13471 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13472 $as_echo_n "(cached) " >&6
13474 if test -n "$ac_ct_CC"; then
13475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in $PATH
13481 test -z "$as_dir" && as_dir=.
13482 for ac_exec_ext in '' $ac_executable_extensions; do
13483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13484 ac_cv_prog_ac_ct_CC="gcc"
13485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13495 if test -n "$ac_ct_CC"; then
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13497 $as_echo "$ac_ct_CC" >&6; }
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500 $as_echo "no" >&6; }
13503 if test "x$ac_ct_CC" = x; then
13506 case $cross_compiling:$ac_tool_warned in
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13510 ac_tool_warned=yes ;;
13515 CC="$ac_cv_prog_CC"
13518 if test -z "$CC"; then
13519 if test -n "$ac_tool_prefix"; then
13520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13521 set dummy ${ac_tool_prefix}cc; ac_word=$2
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13523 $as_echo_n "checking for $ac_word... " >&6; }
13524 if ${ac_cv_prog_CC+:} false; then :
13525 $as_echo_n "(cached) " >&6
13527 if test -n "$CC"; then
13528 ac_cv_prog_CC="$CC" # Let the user override the test.
13530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531 for as_dir in $PATH
13534 test -z "$as_dir" && as_dir=.
13535 for ac_exec_ext in '' $ac_executable_extensions; do
13536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13537 ac_cv_prog_CC="${ac_tool_prefix}cc"
13538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13548 if test -n "$CC"; then
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13550 $as_echo "$CC" >&6; }
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553 $as_echo "no" >&6; }
13559 if test -z "$CC"; then
13560 # Extract the first word of "cc", so it can be a program name with args.
13561 set dummy cc; ac_word=$2
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563 $as_echo_n "checking for $ac_word... " >&6; }
13564 if ${ac_cv_prog_CC+:} false; then :
13565 $as_echo_n "(cached) " >&6
13567 if test -n "$CC"; then
13568 ac_cv_prog_CC="$CC" # Let the user override the test.
13570 ac_prog_rejected=no
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13575 test -z "$as_dir" && as_dir=.
13576 for ac_exec_ext in '' $ac_executable_extensions; do
13577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13579 ac_prog_rejected=yes
13583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13590 if test $ac_prog_rejected = yes; then
13591 # We found a bogon in the path, so make sure we never use it.
13592 set dummy $ac_cv_prog_CC
13594 if test $# != 0; then
13595 # We chose a different compiler from the bogus one.
13596 # However, it has the same basename, so the bogon will be chosen
13597 # first if we set CC to just the basename; use the full file name.
13599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13605 if test -n "$CC"; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13607 $as_echo "$CC" >&6; }
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610 $as_echo "no" >&6; }
13615 if test -z "$CC"; then
13616 if test -n "$ac_tool_prefix"; then
13617 for ac_prog in cl.exe
13619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13622 $as_echo_n "checking for $ac_word... " >&6; }
13623 if ${ac_cv_prog_CC+:} false; then :
13624 $as_echo_n "(cached) " >&6
13626 if test -n "$CC"; then
13627 ac_cv_prog_CC="$CC" # Let the user override the test.
13629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630 for as_dir in $PATH
13633 test -z "$as_dir" && as_dir=.
13634 for ac_exec_ext in '' $ac_executable_extensions; do
13635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13647 if test -n "$CC"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13649 $as_echo "$CC" >&6; }
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13656 test -n "$CC" && break
13659 if test -z "$CC"; then
13661 for ac_prog in cl.exe
13663 # Extract the first word of "$ac_prog", so it can be a program name with args.
13664 set dummy $ac_prog; ac_word=$2
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13666 $as_echo_n "checking for $ac_word... " >&6; }
13667 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13668 $as_echo_n "(cached) " >&6
13670 if test -n "$ac_ct_CC"; then
13671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674 for as_dir in $PATH
13677 test -z "$as_dir" && as_dir=.
13678 for ac_exec_ext in '' $ac_executable_extensions; do
13679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13680 ac_cv_prog_ac_ct_CC="$ac_prog"
13681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13691 if test -n "$ac_ct_CC"; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13693 $as_echo "$ac_ct_CC" >&6; }
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696 $as_echo "no" >&6; }
13700 test -n "$ac_ct_CC" && break
13703 if test "x$ac_ct_CC" = x; then
13706 case $cross_compiling:$ac_tool_warned in
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13710 ac_tool_warned=yes ;;
13719 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13721 as_fn_error $? "no acceptable C compiler found in \$PATH
13722 See \`config.log' for more details" "$LINENO" 5; }
13724 # Provide some information about the compiler.
13725 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13728 for ac_option in --version -v -V -qversion; do
13729 { { ac_try="$ac_compiler $ac_option >&5"
13730 case "(($ac_try" in
13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732 *) ac_try_echo=$ac_try;;
13734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13735 $as_echo "$ac_try_echo"; } >&5
13736 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13738 if test -s conftest.err; then
13740 ... rest of stderr output deleted ...
13741 10q' conftest.err >conftest.er1
13742 cat conftest.er1 >&5
13744 rm -f conftest.er1 conftest.err
13745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13746 test $ac_status = 0; }
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13750 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13751 if ${ac_cv_c_compiler_gnu+:} false; then :
13752 $as_echo_n "(cached) " >&6
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13768 if ac_fn_c_try_compile "$LINENO"; then :
13769 ac_compiler_gnu=yes
13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13778 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13779 if test $ac_compiler_gnu = yes; then
13784 ac_test_CFLAGS=${CFLAGS+set}
13785 ac_save_CFLAGS=$CFLAGS
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13787 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13788 if ${ac_cv_prog_cc_g+:} false; then :
13789 $as_echo_n "(cached) " >&6
13791 ac_save_c_werror_flag=$ac_c_werror_flag
13792 ac_c_werror_flag=yes
13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h. */
13806 if ac_fn_c_try_compile "$LINENO"; then :
13807 ac_cv_prog_cc_g=yes
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13821 if ac_fn_c_try_compile "$LINENO"; then :
13824 ac_c_werror_flag=$ac_save_c_werror_flag
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13837 if ac_fn_c_try_compile "$LINENO"; then :
13838 ac_cv_prog_cc_g=yes
13840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845 ac_c_werror_flag=$ac_save_c_werror_flag
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13848 $as_echo "$ac_cv_prog_cc_g" >&6; }
13849 if test "$ac_test_CFLAGS" = set; then
13850 CFLAGS=$ac_save_CFLAGS
13851 elif test $ac_cv_prog_cc_g = yes; then
13852 if test "$GCC" = yes; then
13858 if test "$GCC" = yes; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13865 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13866 if ${ac_cv_prog_cc_c89+:} false; then :
13867 $as_echo_n "(cached) " >&6
13869 ac_cv_prog_cc_c89=no
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13873 #include <stdarg.h>
13876 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13877 struct buf { int x; };
13878 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13879 static char *e (p, i)
13885 static char *f (char * (*g) (char **, int), char **p, ...)
13890 s = g (p, va_arg (v,int));
13895 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13896 function prototypes and stuff, but not '\xHH' hex character constants.
13897 These don't provoke an error unfortunately, instead are silently treated
13898 as 'x'. The following induces an error, until -std is added to get
13899 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13900 array size at least. It's necessary to write '\x00'==0 to get something
13901 that's true only with -std. */
13902 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13904 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13905 inside strings and character constants. */
13907 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13909 int test (int i, double x);
13910 struct s1 {int (*f) (int a);};
13911 struct s2 {int (*f) (double a);};
13912 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13918 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13923 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13924 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13926 CC="$ac_save_CC $ac_arg"
13927 if ac_fn_c_try_compile "$LINENO"; then :
13928 ac_cv_prog_cc_c89=$ac_arg
13930 rm -f core conftest.err conftest.$ac_objext
13931 test "x$ac_cv_prog_cc_c89" != "xno" && break
13933 rm -f conftest.$ac_ext
13938 case "x$ac_cv_prog_cc_c89" in
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13941 $as_echo "none needed" >&6; } ;;
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13944 $as_echo "unsupported" >&6; } ;;
13946 CC="$CC $ac_cv_prog_cc_c89"
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13948 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13950 if test "x$ac_cv_prog_cc_c89" != xno; then :
13955 ac_cpp='$CPP $CPPFLAGS'
13956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13961 ac_cpp='$CPP $CPPFLAGS'
13962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13966 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13967 if ${am_cv_prog_cc_c_o+:} false; then :
13968 $as_echo_n "(cached) " >&6
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13981 # Make sure it works both with $CC and with simple cc.
13982 # Following AC_PROG_CC_C_O, we do the test twice because some
13983 # compilers refuse to overwrite an existing .o file with -o,
13984 # though they will create one.
13985 am_cv_prog_cc_c_o=yes
13986 for am_i in 1 2; do
13987 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13988 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } \
13992 && test -f conftest2.$ac_objext; then
13995 am_cv_prog_cc_c_o=no
13999 rm -f core conftest*
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14003 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14004 if test "$am_cv_prog_cc_c_o" != yes; then
14005 # Losing compiler, so override with the script.
14006 # FIXME: It is wrong to rewrite CC.
14007 # But if we don't then we get into trouble of one sort or another.
14008 # A longer-term fix would be to have automake use am__CC in this case,
14009 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14010 CC="$am_aux_dir/compile $CC"
14013 ac_cpp='$CPP $CPPFLAGS'
14014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14019 depcc="$CC" am_compiler_list=
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14022 $as_echo_n "checking dependency style of $depcc... " >&6; }
14023 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14024 $as_echo_n "(cached) " >&6
14026 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14027 # We make a subdir and do the tests there. Otherwise we can end up
14028 # making bogus files that we don't know about and never remove. For
14029 # instance it was reported that on HP-UX the gcc test will end up
14030 # making a dummy file named 'D' -- because '-MD' means "put the output
14032 rm -rf conftest.dir
14034 # Copy depcomp to subdir because otherwise we won't find it if we're
14035 # using a relative directory.
14036 cp "$am_depcomp" conftest.dir
14038 # We will build objects and dependencies in a subdirectory because
14039 # it helps to detect inapplicable dependency modes. For instance
14040 # both Tru64's cc and ICC support -MD to output dependencies as a
14041 # side effect of compilation, but ICC will put the dependencies in
14042 # the current directory while Tru64 will put them in the object
14046 am_cv_CC_dependencies_compiler_type=none
14047 if test "$am_compiler_list" = ""; then
14048 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14050 am__universal=false
14051 case " $depcc " in #(
14052 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14055 for depmode in $am_compiler_list; do
14056 # Setup a source with many dependencies, because some compilers
14057 # like to wrap large dependency lists on column 80 (with \), and
14058 # we should not choose a depcomp mode which is confused by this.
14060 # We need to recreate these files for each test, as the compiler may
14061 # overwrite some of them when testing with obscure command lines.
14062 # This happens at least with the AIX C compiler.
14064 for i in 1 2 3 4 5 6; do
14065 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14066 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14067 # Solaris 10 /bin/sh.
14068 echo '/* dummy */' > sub/conftst$i.h
14070 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14072 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14073 # mode. It turns out that the SunPro C++ compiler does not properly
14074 # handle '-M -o', and we need to detect this. Also, some Intel
14075 # versions had trouble with output in subdirs.
14076 am__obj=sub/conftest.${OBJEXT-o}
14077 am__minus_obj="-o $am__obj"
14080 # This depmode causes a compiler race in universal mode.
14081 test "$am__universal" = false || continue
14084 # After this tag, mechanisms are not by side-effect, so they'll
14085 # only be used when explicitly requested.
14086 if test "x$enable_dependency_tracking" = xyes; then
14092 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14093 # This compiler won't grok '-c -o', but also, the minuso test has
14094 # not run yet. These depmodes are late enough in the game, and
14095 # so weak that their functioning should not be impacted.
14096 am__obj=conftest.${OBJEXT-o}
14101 if depmode=$depmode \
14102 source=sub/conftest.c object=$am__obj \
14103 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14104 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14105 >/dev/null 2>conftest.err &&
14106 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14107 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14108 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14109 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14110 # icc doesn't choke on unknown options, it will just issue warnings
14111 # or remarks (even with -Werror). So we grep stderr for any message
14112 # that says an option was ignored or not supported.
14113 # When given -MP, icc 7.0 and 7.1 complain thusly:
14114 # icc: Command line warning: ignoring option '-M'; no argument required
14115 # The diagnosis changed in icc 8.0:
14116 # icc: Command line remark: option '-MP' not supported
14117 if (grep 'ignoring option' conftest.err ||
14118 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14119 am_cv_CC_dependencies_compiler_type=$depmode
14126 rm -rf conftest.dir
14128 am_cv_CC_dependencies_compiler_type=none
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14133 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14134 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14137 test "x$enable_dependency_tracking" != xno \
14138 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14139 am__fastdepCC_TRUE=
14140 am__fastdepCC_FALSE='#'
14142 am__fastdepCC_TRUE='#'
14143 am__fastdepCC_FALSE=
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14148 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14149 if ${ac_cv_prog_cc_c99+:} false; then :
14150 $as_echo_n "(cached) " >&6
14152 ac_cv_prog_cc_c99=no
14154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155 /* end confdefs.h. */
14156 #include <stdarg.h>
14157 #include <stdbool.h>
14158 #include <stdlib.h>
14162 // Check varargs macros. These examples are taken from C99 6.10.3.5.
14163 #define debug(...) fprintf (stderr, __VA_ARGS__)
14164 #define showlist(...) puts (#__VA_ARGS__)
14165 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14167 test_varargs_macros (void)
14172 debug ("X = %d\n", x);
14173 showlist (The first, second, and third items.);
14174 report (x>y, "x is %d but y is %d", x, y);
14177 // Check long long types.
14178 #define BIG64 18446744073709551615ull
14179 #define BIG32 4294967295ul
14180 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14182 your preprocessor is broken;
14186 your preprocessor is broken;
14188 static long long int bignum = -9223372036854775807LL;
14189 static unsigned long long int ubignum = BIG64;
14191 struct incomplete_array
14197 struct named_init {
14199 const wchar_t *name;
14203 typedef const char *ccp;
14206 test_restrict (ccp restrict text)
14208 // See if C++-style comments work.
14209 // Iterate through items via the restricted pointer.
14210 // Also check for declarations in for loops.
14211 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14216 // Check varargs and va_copy.
14218 test_varargs (const char *format, ...)
14221 va_start (args, format);
14223 va_copy (args_copy, args);
14233 case 's': // string
14234 str = va_arg (args_copy, const char *);
14237 number = va_arg (args_copy, int);
14240 fnumber = va_arg (args_copy, double);
14246 va_end (args_copy);
14255 _Bool success = false;
14258 if (test_restrict ("String literal") == 0)
14260 char *restrict newvar = "Another string";
14263 test_varargs ("s, d' f .", "string", 65, 34.234);
14264 test_varargs_macros ();
14266 // Check flexible array members.
14267 struct incomplete_array *ia =
14268 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14270 for (int i = 0; i < ia->datasize; ++i)
14271 ia->data[i] = i * 1.234;
14273 // Check named initializers.
14274 struct named_init ni = {
14276 .name = L"Test wide string",
14277 .average = 543.34343,
14282 int dynamic_array[ni.number];
14283 dynamic_array[ni.number - 1] = 543;
14285 // work around unused variable warnings
14286 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14287 || dynamic_array[ni.number - 1] != 543);
14293 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14295 CC="$ac_save_CC $ac_arg"
14296 if ac_fn_c_try_compile "$LINENO"; then :
14297 ac_cv_prog_cc_c99=$ac_arg
14299 rm -f core conftest.err conftest.$ac_objext
14300 test "x$ac_cv_prog_cc_c99" != "xno" && break
14302 rm -f conftest.$ac_ext
14307 case "x$ac_cv_prog_cc_c99" in
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14310 $as_echo "none needed" >&6; } ;;
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14313 $as_echo "unsupported" >&6; } ;;
14315 CC="$CC $ac_cv_prog_cc_c99"
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14317 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14319 if test "x$ac_cv_prog_cc_c99" != xno; then :
14326 ac_cpp='$CXXCPP $CPPFLAGS'
14327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14330 if test -z "$CXX"; then
14331 if test -n "$CCC"; then
14334 if test -n "$ac_tool_prefix"; then
14335 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14340 $as_echo_n "checking for $ac_word... " >&6; }
14341 if ${ac_cv_prog_CXX+:} false; then :
14342 $as_echo_n "(cached) " >&6
14344 if test -n "$CXX"; then
14345 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14348 for as_dir in $PATH
14351 test -z "$as_dir" && as_dir=.
14352 for ac_exec_ext in '' $ac_executable_extensions; do
14353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14354 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14364 CXX=$ac_cv_prog_CXX
14365 if test -n "$CXX"; then
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14367 $as_echo "$CXX" >&6; }
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370 $as_echo "no" >&6; }
14374 test -n "$CXX" && break
14377 if test -z "$CXX"; then
14379 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14381 # Extract the first word of "$ac_prog", so it can be a program name with args.
14382 set dummy $ac_prog; ac_word=$2
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14384 $as_echo_n "checking for $ac_word... " >&6; }
14385 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14386 $as_echo_n "(cached) " >&6
14388 if test -n "$ac_ct_CXX"; then
14389 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $PATH
14395 test -z "$as_dir" && as_dir=.
14396 for ac_exec_ext in '' $ac_executable_extensions; do
14397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14398 ac_cv_prog_ac_ct_CXX="$ac_prog"
14399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14408 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14409 if test -n "$ac_ct_CXX"; then
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14411 $as_echo "$ac_ct_CXX" >&6; }
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14414 $as_echo "no" >&6; }
14418 test -n "$ac_ct_CXX" && break
14421 if test "x$ac_ct_CXX" = x; then
14424 case $cross_compiling:$ac_tool_warned in
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14428 ac_tool_warned=yes ;;
14436 # Provide some information about the compiler.
14437 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14440 for ac_option in --version -v -V -qversion; do
14441 { { ac_try="$ac_compiler $ac_option >&5"
14442 case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14447 $as_echo "$ac_try_echo"; } >&5
14448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14450 if test -s conftest.err; then
14452 ... rest of stderr output deleted ...
14453 10q' conftest.err >conftest.er1
14454 cat conftest.er1 >&5
14456 rm -f conftest.er1 conftest.err
14457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14458 test $ac_status = 0; }
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14462 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14463 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14464 $as_echo_n "(cached) " >&6
14466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14467 /* end confdefs.h. */
14480 if ac_fn_cxx_try_compile "$LINENO"; then :
14481 ac_compiler_gnu=yes
14485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14486 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14490 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14491 if test $ac_compiler_gnu = yes; then
14496 ac_test_CXXFLAGS=${CXXFLAGS+set}
14497 ac_save_CXXFLAGS=$CXXFLAGS
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14499 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14500 if ${ac_cv_prog_cxx_g+:} false; then :
14501 $as_echo_n "(cached) " >&6
14503 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14504 ac_cxx_werror_flag=yes
14505 ac_cv_prog_cxx_g=no
14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14518 if ac_fn_cxx_try_compile "$LINENO"; then :
14519 ac_cv_prog_cxx_g=yes
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14533 if ac_fn_cxx_try_compile "$LINENO"; then :
14536 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h. */
14549 if ac_fn_cxx_try_compile "$LINENO"; then :
14550 ac_cv_prog_cxx_g=yes
14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14560 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14561 if test "$ac_test_CXXFLAGS" = set; then
14562 CXXFLAGS=$ac_save_CXXFLAGS
14563 elif test $ac_cv_prog_cxx_g = yes; then
14564 if test "$GXX" = yes; then
14570 if test "$GXX" = yes; then
14577 ac_cpp='$CPP $CPPFLAGS'
14578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14582 depcc="$CXX" am_compiler_list=
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14585 $as_echo_n "checking dependency style of $depcc... " >&6; }
14586 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14587 $as_echo_n "(cached) " >&6
14589 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14590 # We make a subdir and do the tests there. Otherwise we can end up
14591 # making bogus files that we don't know about and never remove. For
14592 # instance it was reported that on HP-UX the gcc test will end up
14593 # making a dummy file named 'D' -- because '-MD' means "put the output
14595 rm -rf conftest.dir
14597 # Copy depcomp to subdir because otherwise we won't find it if we're
14598 # using a relative directory.
14599 cp "$am_depcomp" conftest.dir
14601 # We will build objects and dependencies in a subdirectory because
14602 # it helps to detect inapplicable dependency modes. For instance
14603 # both Tru64's cc and ICC support -MD to output dependencies as a
14604 # side effect of compilation, but ICC will put the dependencies in
14605 # the current directory while Tru64 will put them in the object
14609 am_cv_CXX_dependencies_compiler_type=none
14610 if test "$am_compiler_list" = ""; then
14611 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14613 am__universal=false
14614 case " $depcc " in #(
14615 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14618 for depmode in $am_compiler_list; do
14619 # Setup a source with many dependencies, because some compilers
14620 # like to wrap large dependency lists on column 80 (with \), and
14621 # we should not choose a depcomp mode which is confused by this.
14623 # We need to recreate these files for each test, as the compiler may
14624 # overwrite some of them when testing with obscure command lines.
14625 # This happens at least with the AIX C compiler.
14627 for i in 1 2 3 4 5 6; do
14628 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14629 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14630 # Solaris 10 /bin/sh.
14631 echo '/* dummy */' > sub/conftst$i.h
14633 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14635 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14636 # mode. It turns out that the SunPro C++ compiler does not properly
14637 # handle '-M -o', and we need to detect this. Also, some Intel
14638 # versions had trouble with output in subdirs.
14639 am__obj=sub/conftest.${OBJEXT-o}
14640 am__minus_obj="-o $am__obj"
14643 # This depmode causes a compiler race in universal mode.
14644 test "$am__universal" = false || continue
14647 # After this tag, mechanisms are not by side-effect, so they'll
14648 # only be used when explicitly requested.
14649 if test "x$enable_dependency_tracking" = xyes; then
14655 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14656 # This compiler won't grok '-c -o', but also, the minuso test has
14657 # not run yet. These depmodes are late enough in the game, and
14658 # so weak that their functioning should not be impacted.
14659 am__obj=conftest.${OBJEXT-o}
14664 if depmode=$depmode \
14665 source=sub/conftest.c object=$am__obj \
14666 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14667 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14668 >/dev/null 2>conftest.err &&
14669 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14670 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14671 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14672 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14673 # icc doesn't choke on unknown options, it will just issue warnings
14674 # or remarks (even with -Werror). So we grep stderr for any message
14675 # that says an option was ignored or not supported.
14676 # When given -MP, icc 7.0 and 7.1 complain thusly:
14677 # icc: Command line warning: ignoring option '-M'; no argument required
14678 # The diagnosis changed in icc 8.0:
14679 # icc: Command line remark: option '-MP' not supported
14680 if (grep 'ignoring option' conftest.err ||
14681 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14682 am_cv_CXX_dependencies_compiler_type=$depmode
14689 rm -rf conftest.dir
14691 am_cv_CXX_dependencies_compiler_type=none
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14696 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14697 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14700 test "x$enable_dependency_tracking" != xno \
14701 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14702 am__fastdepCXX_TRUE=
14703 am__fastdepCXX_FALSE='#'
14705 am__fastdepCXX_TRUE='#'
14706 am__fastdepCXX_FALSE=
14712 func_stripname_cnf ()
14715 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14716 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14718 } # func_stripname_cnf
14720 if test -n "$CXX" && ( test no != "$CXX" &&
14721 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14722 (test g++ != "$CXX"))); then
14724 ac_cpp='$CXXCPP $CPPFLAGS'
14725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14729 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14730 if test -z "$CXXCPP"; then
14731 if ${ac_cv_prog_CXXCPP+:} false; then :
14732 $as_echo_n "(cached) " >&6
14734 # Double quotes because CXXCPP needs to be expanded
14735 for CXXCPP in "$CXX -E" "/lib/cpp"
14737 ac_preproc_ok=false
14738 for ac_cxx_preproc_warn_flag in '' yes
14740 # Use a header file that comes with gcc, so configuring glibc
14741 # with a fresh cross-compiler works.
14742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14743 # <limits.h> exists even on freestanding compilers.
14744 # On the NeXT, cc -E runs the code through the compiler's parser,
14745 # not just through cpp. "Syntax error" is here to catch this case.
14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h. */
14749 # include <limits.h>
14751 # include <assert.h>
14755 if ac_fn_cxx_try_cpp "$LINENO"; then :
14758 # Broken: fails on valid input.
14761 rm -f conftest.err conftest.i conftest.$ac_ext
14763 # OK, works on sane cases. Now check whether nonexistent headers
14764 # can be detected and how.
14765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766 /* end confdefs.h. */
14767 #include <ac_nonexistent.h>
14769 if ac_fn_cxx_try_cpp "$LINENO"; then :
14770 # Broken: success on invalid input.
14773 # Passes both tests.
14777 rm -f conftest.err conftest.i conftest.$ac_ext
14780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14781 rm -f conftest.i conftest.err conftest.$ac_ext
14782 if $ac_preproc_ok; then :
14787 ac_cv_prog_CXXCPP=$CXXCPP
14790 CXXCPP=$ac_cv_prog_CXXCPP
14792 ac_cv_prog_CXXCPP=$CXXCPP
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14795 $as_echo "$CXXCPP" >&6; }
14796 ac_preproc_ok=false
14797 for ac_cxx_preproc_warn_flag in '' yes
14799 # Use a header file that comes with gcc, so configuring glibc
14800 # with a fresh cross-compiler works.
14801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14802 # <limits.h> exists even on freestanding compilers.
14803 # On the NeXT, cc -E runs the code through the compiler's parser,
14804 # not just through cpp. "Syntax error" is here to catch this case.
14805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14806 /* end confdefs.h. */
14808 # include <limits.h>
14810 # include <assert.h>
14814 if ac_fn_cxx_try_cpp "$LINENO"; then :
14817 # Broken: fails on valid input.
14820 rm -f conftest.err conftest.i conftest.$ac_ext
14822 # OK, works on sane cases. Now check whether nonexistent headers
14823 # can be detected and how.
14824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14825 /* end confdefs.h. */
14826 #include <ac_nonexistent.h>
14828 if ac_fn_cxx_try_cpp "$LINENO"; then :
14829 # Broken: success on invalid input.
14832 # Passes both tests.
14836 rm -f conftest.err conftest.i conftest.$ac_ext
14839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14840 rm -f conftest.i conftest.err conftest.$ac_ext
14841 if $ac_preproc_ok; then :
14844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14846 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14847 See \`config.log' for more details" "$LINENO" 5; }
14851 ac_cpp='$CPP $CPPFLAGS'
14852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14857 _lt_caught_CXX_error=yes
14861 ac_cpp='$CXXCPP $CPPFLAGS'
14862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14866 archive_cmds_need_lc_CXX=no
14867 allow_undefined_flag_CXX=
14868 always_export_symbols_CXX=no
14869 archive_expsym_cmds_CXX=
14870 compiler_needs_object_CXX=no
14871 export_dynamic_flag_spec_CXX=
14872 hardcode_direct_CXX=no
14873 hardcode_direct_absolute_CXX=no
14874 hardcode_libdir_flag_spec_CXX=
14875 hardcode_libdir_separator_CXX=
14876 hardcode_minus_L_CXX=no
14877 hardcode_shlibpath_var_CXX=unsupported
14878 hardcode_automatic_CXX=no
14879 inherit_rpath_CXX=no
14881 module_expsym_cmds_CXX=
14882 link_all_deplibs_CXX=unknown
14883 old_archive_cmds_CXX=$old_archive_cmds
14884 reload_flag_CXX=$reload_flag
14885 reload_cmds_CXX=$reload_cmds
14886 no_undefined_flag_CXX=
14887 whole_archive_flag_spec_CXX=
14888 enable_shared_with_static_runtimes_CXX=no
14890 # Source file extension for C++ test sources.
14893 # Object file extension for compiled C++ test sources.
14897 # No sense in running all these tests if we already determined that
14898 # the CXX compiler isn't working. Some variables (like enable_shared)
14899 # are currently assumed to apply to all compilers on this platform,
14900 # and will be corrupted by setting them based on a non-working compiler.
14901 if test yes != "$_lt_caught_CXX_error"; then
14902 # Code to be used in simple compile tests
14903 lt_simple_compile_test_code="int some_variable = 0;"
14905 # Code to be used in simple link tests
14906 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14908 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14915 # If no C compiler was specified, use CC.
14918 # If no C compiler flags were specified, use CFLAGS.
14919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14921 # Allow CC to be a program name with arguments.
14925 # save warnings/boilerplate of simple test code
14926 ac_outfile=conftest.$ac_objext
14927 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14928 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14929 _lt_compiler_boilerplate=`cat conftest.err`
14932 ac_outfile=conftest.$ac_objext
14933 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14934 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14935 _lt_linker_boilerplate=`cat conftest.err`
14939 # Allow CC to be a program name with arguments.
14941 lt_save_CFLAGS=$CFLAGS
14945 lt_save_with_gnu_ld=$with_gnu_ld
14946 lt_save_path_LD=$lt_cv_path_LD
14947 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14948 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14950 $as_unset lt_cv_prog_gnu_ld
14952 if test -n "${lt_cv_path_LDCXX+set}"; then
14953 lt_cv_path_LD=$lt_cv_path_LDCXX
14955 $as_unset lt_cv_path_LD
14957 test -z "${LDCXX+set}" || LD=$LDCXX
14962 func_cc_basename $compiler
14963 cc_basename=$func_cc_basename_result
14966 if test -n "$compiler"; then
14967 # We don't want -fno-exception when compiling C++ code, so set the
14968 # no_builtin_flag separately
14969 if test yes = "$GXX"; then
14970 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14972 lt_prog_compiler_no_builtin_flag_CXX=
14975 if test yes = "$GXX"; then
14976 # Set up default GNU C++ configuration
14980 # Check whether --with-gnu-ld was given.
14981 if test "${with_gnu_ld+set}" = set; then :
14982 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14988 if test yes = "$GCC"; then
14989 # Check if gcc -print-prog-name=ld gives a path.
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14991 $as_echo_n "checking for ld used by $CC... " >&6; }
14994 # gcc leaves a trailing carriage return, which upsets mingw
14995 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14997 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15000 # Accept absolute paths.
15002 re_direlt='/[^/][^/]*/\.\./'
15003 # Canonicalize the pathname of ld
15004 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15005 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15006 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15008 test -z "$LD" && LD=$ac_prog
15011 # If it fails, then pretend we aren't using GCC.
15015 # If it is relative, then search for the first ld in PATH.
15016 with_gnu_ld=unknown
15019 elif test yes = "$with_gnu_ld"; then
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15021 $as_echo_n "checking for GNU ld... " >&6; }
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15024 $as_echo_n "checking for non-GNU ld... " >&6; }
15026 if ${lt_cv_path_LD+:} false; then :
15027 $as_echo_n "(cached) " >&6
15029 if test -z "$LD"; then
15030 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15031 for ac_dir in $PATH; do
15033 test -z "$ac_dir" && ac_dir=.
15034 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15035 lt_cv_path_LD=$ac_dir/$ac_prog
15036 # Check to see if the program is GNU ld. I'd rather use --version,
15037 # but apparently some variants of GNU ld only accept -v.
15038 # Break only if it was the GNU/non-GNU ld that we prefer.
15039 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15040 *GNU* | *'with BFD'*)
15041 test no != "$with_gnu_ld" && break
15044 test yes != "$with_gnu_ld" && break
15051 lt_cv_path_LD=$LD # Let the user override the test with a path.
15056 if test -n "$LD"; then
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15058 $as_echo "$LD" >&6; }
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15061 $as_echo "no" >&6; }
15063 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15065 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15066 if ${lt_cv_prog_gnu_ld+:} false; then :
15067 $as_echo_n "(cached) " >&6
15069 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15070 case `$LD -v 2>&1 </dev/null` in
15071 *GNU* | *'with BFD'*)
15072 lt_cv_prog_gnu_ld=yes
15075 lt_cv_prog_gnu_ld=no
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15080 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15081 with_gnu_ld=$lt_cv_prog_gnu_ld
15089 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15090 # archiving commands below assume that GNU ld is being used.
15091 if test yes = "$with_gnu_ld"; then
15092 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15093 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'
15095 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15096 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15098 # If archive_cmds runs LD, not CC, wlarc should be empty
15099 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15100 # investigate it a little bit more. (MM)
15103 # ancient GNU ld didn't support --whole-archive et. al.
15104 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15105 $GREP 'no-whole-archive' > /dev/null; then
15106 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15108 whole_archive_flag_spec_CXX=
15114 # A generic and very simple default shared library creation
15115 # command for GNU C++ for the case where it uses the native
15116 # linker, instead of GNU ld. If possible, this setting should
15117 # overridden to take advantage of the native linker features on
15118 # the platform it is being used on.
15119 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15122 # Commands to make compiler produce verbose output that lists
15123 # what "hidden" libraries, object files and flags are used when
15124 # linking a shared library.
15125 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15133 # PORTME: fill in a description of your system's C++ link characteristics
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15135 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15139 # FIXME: insert proper C++ library support
15143 if test ia64 = "$host_cpu"; then
15144 # On IA64, the linker does run time linking by default, so we don't
15145 # have to do anything special.
15146 aix_use_runtimelinking=no
15147 exp_sym_flag='-Bexport'
15150 aix_use_runtimelinking=no
15152 # Test if we are trying to use run time linking or normal
15153 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15154 # have runtime linking enabled, and use it for executables.
15155 # For shared libraries, we enable/disable runtime linking
15156 # depending on the kind of the shared library created -
15157 # when "with_aix_soname,aix_use_runtimelinking" is:
15158 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15159 # "aix,yes" lib.so shared, rtl:yes, for executables
15160 # lib.a static archive
15161 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15162 # lib.a(lib.so.V) shared, rtl:no, for executables
15163 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15164 # lib.a(lib.so.V) shared, rtl:no
15165 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15166 # lib.a static archive
15167 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15168 for ld_flag in $LDFLAGS; do
15171 aix_use_runtimelinking=yes
15176 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15177 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15178 # so we don't have lib.a shared libs to link our executables.
15179 # We have to force runtime linking in this case.
15180 aix_use_runtimelinking=yes
15181 LDFLAGS="$LDFLAGS -Wl,-brtl"
15186 exp_sym_flag='-bexport'
15187 no_entry_flag='-bnoentry'
15190 # When large executables or shared objects are built, AIX ld can
15191 # have problems creating the table of contents. If linking a library
15192 # or program results in "error TOC overflow" add -mminimal-toc to
15193 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15194 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15196 archive_cmds_CXX=''
15197 hardcode_direct_CXX=yes
15198 hardcode_direct_absolute_CXX=yes
15199 hardcode_libdir_separator_CXX=':'
15200 link_all_deplibs_CXX=yes
15201 file_list_spec_CXX='$wl-f,'
15202 case $with_aix_soname,$aix_use_runtimelinking in
15203 aix,*) ;; # no import file
15204 svr4,* | *,yes) # use import file
15205 # The Import File defines what to hardcode.
15206 hardcode_direct_CXX=no
15207 hardcode_direct_absolute_CXX=no
15211 if test yes = "$GXX"; then
15212 case $host_os in aix4.[012]|aix4.[012].*)
15213 # We only want to do this on AIX 4.2 and lower, the check
15214 # below for broken collect2 doesn't work under 4.3+
15215 collect2name=`$CC -print-prog-name=collect2`
15216 if test -f "$collect2name" &&
15217 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15219 # We have reworked collect2
15222 # We have old collect2
15223 hardcode_direct_CXX=unsupported
15224 # It fails to find uninstalled libraries when the uninstalled
15225 # path is not listed in the libpath. Setting hardcode_minus_L
15226 # to unsupported forces relinking
15227 hardcode_minus_L_CXX=yes
15228 hardcode_libdir_flag_spec_CXX='-L$libdir'
15229 hardcode_libdir_separator_CXX=
15232 shared_flag='-shared'
15233 if test yes = "$aix_use_runtimelinking"; then
15234 shared_flag=$shared_flag' $wl-G'
15236 # Need to ensure runtime linking is disabled for the traditional
15237 # shared library, or the linker may eventually find shared libraries
15238 # /with/ Import File - we do not want to mix them.
15239 shared_flag_aix='-shared'
15240 shared_flag_svr4='-shared $wl-G'
15243 if test ia64 = "$host_cpu"; then
15244 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15245 # chokes on -Wl,-G. The following line is correct:
15248 if test yes = "$aix_use_runtimelinking"; then
15249 shared_flag='$wl-G'
15251 shared_flag='$wl-bM:SRE'
15253 shared_flag_aix='$wl-bM:SRE'
15254 shared_flag_svr4='$wl-G'
15258 export_dynamic_flag_spec_CXX='$wl-bexpall'
15259 # It seems that -bexpall does not export symbols beginning with
15260 # underscore (_), so it is better to generate a list of symbols to
15262 always_export_symbols_CXX=yes
15263 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15264 # Warning - without using the other runtime loading flags (-brtl),
15265 # -berok will link without error, but may produce a broken library.
15266 # The "-G" linker flag allows undefined symbols.
15267 no_undefined_flag_CXX='-bernotok'
15268 # Determine the default libpath from the value encoded in an empty
15270 if test set = "${lt_cv_aix_libpath+set}"; then
15271 aix_libpath=$lt_cv_aix_libpath
15273 if ${lt_cv_aix_libpath__CXX+:} false; then :
15274 $as_echo_n "(cached) " >&6
15276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277 /* end confdefs.h. */
15287 if ac_fn_cxx_try_link "$LINENO"; then :
15289 lt_aix_libpath_sed='
15290 /Import File Strings/,/^$/ {
15292 s/^0 *\([^ ]*\) *$/\1/
15296 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15297 # Check for a 64-bit object if we didn't find anything.
15298 if test -z "$lt_cv_aix_libpath__CXX"; then
15299 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15302 rm -f core conftest.err conftest.$ac_objext \
15303 conftest$ac_exeext conftest.$ac_ext
15304 if test -z "$lt_cv_aix_libpath__CXX"; then
15305 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15310 aix_libpath=$lt_cv_aix_libpath__CXX
15313 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15315 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
15317 if test ia64 = "$host_cpu"; then
15318 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15319 allow_undefined_flag_CXX="-z nodefs"
15320 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"
15322 # Determine the default libpath from the value encoded in an
15323 # empty executable.
15324 if test set = "${lt_cv_aix_libpath+set}"; then
15325 aix_libpath=$lt_cv_aix_libpath
15327 if ${lt_cv_aix_libpath__CXX+:} false; then :
15328 $as_echo_n "(cached) " >&6
15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15341 if ac_fn_cxx_try_link "$LINENO"; then :
15343 lt_aix_libpath_sed='
15344 /Import File Strings/,/^$/ {
15346 s/^0 *\([^ ]*\) *$/\1/
15350 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15351 # Check for a 64-bit object if we didn't find anything.
15352 if test -z "$lt_cv_aix_libpath__CXX"; then
15353 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15356 rm -f core conftest.err conftest.$ac_objext \
15357 conftest$ac_exeext conftest.$ac_ext
15358 if test -z "$lt_cv_aix_libpath__CXX"; then
15359 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15364 aix_libpath=$lt_cv_aix_libpath__CXX
15367 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15368 # Warning - without using the other run time loading flags,
15369 # -berok will link without error, but may produce a broken library.
15370 no_undefined_flag_CXX=' $wl-bernotok'
15371 allow_undefined_flag_CXX=' $wl-berok'
15372 if test yes = "$with_gnu_ld"; then
15373 # We only use this code for GNU lds that support --whole-archive.
15374 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15376 # Exported symbols can be pulled into shared objects from archives
15377 whole_archive_flag_spec_CXX='$convenience'
15379 archive_cmds_need_lc_CXX=yes
15380 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15381 # -brtl affects multiple linker settings, -berok does not and is overridden later
15382 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15383 if test svr4 != "$with_aix_soname"; then
15384 # This is similar to how AIX traditionally builds its shared
15385 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15386 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'
15388 if test aix != "$with_aix_soname"; then
15389 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'
15391 # used by -dlpreopen to get the symbols
15392 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15394 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15400 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15401 allow_undefined_flag_CXX=unsupported
15402 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15403 # support --undefined. This deserves some investigation. FIXME
15404 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15411 case $cc_basename in
15413 # FIXME: insert proper C++ library support
15419 cygwin* | mingw* | pw32* | cegcc*)
15420 case $GXX,$cc_basename in
15423 # hardcode_libdir_flag_spec is actually meaningless, as there is
15424 # no search path for DLLs.
15425 hardcode_libdir_flag_spec_CXX=' '
15426 allow_undefined_flag_CXX=unsupported
15427 always_export_symbols_CXX=yes
15428 file_list_spec_CXX='@'
15429 # Tell ltmain to make .lib files, not .a files.
15431 # Tell ltmain to make .dll files, not .so files.
15433 # FIXME: Setting linknames here is a bad hack.
15434 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15435 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15436 cp "$export_symbols" "$output_objdir/$soname.def";
15437 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15439 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15441 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15443 # The linker will not automatically build a static lib if we build a DLL.
15444 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15445 enable_shared_with_static_runtimes_CXX=yes
15447 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15448 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15449 lt_tool_outputfile="@TOOL_OUTPUT@"~
15450 case $lt_outputfile in
15453 lt_outputfile=$lt_outputfile.exe
15454 lt_tool_outputfile=$lt_tool_outputfile.exe
15457 func_to_tool_file "$lt_outputfile"~
15458 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15459 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15460 $RM "$lt_outputfile.manifest";
15465 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15466 # as there is no search path for DLLs.
15467 hardcode_libdir_flag_spec_CXX='-L$libdir'
15468 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15469 allow_undefined_flag_CXX=unsupported
15470 always_export_symbols_CXX=no
15471 enable_shared_with_static_runtimes_CXX=yes
15473 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15474 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'
15475 # If the export-symbols file already is a .def file, use it as
15476 # is; otherwise, prepend EXPORTS...
15477 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15478 cp $export_symbols $output_objdir/$soname.def;
15480 echo EXPORTS > $output_objdir/$soname.def;
15481 cat $export_symbols >> $output_objdir/$soname.def;
15483 $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'
15490 darwin* | rhapsody*)
15493 archive_cmds_need_lc_CXX=no
15494 hardcode_direct_CXX=no
15495 hardcode_automatic_CXX=yes
15496 hardcode_shlibpath_var_CXX=unsupported
15497 if test yes = "$lt_cv_ld_force_load"; then
15498 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\"`'
15501 whole_archive_flag_spec_CXX=''
15503 link_all_deplibs_CXX=yes
15504 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15505 case $cc_basename in
15506 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15507 *) _lt_dar_can_shared=$GCC ;;
15509 if test yes = "$_lt_dar_can_shared"; then
15510 output_verbose_link_cmd=func_echo_all
15511 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"
15512 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15513 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"
15514 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"
15515 if test yes != "$lt_cv_apple_cc_single_mod"; then
15516 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"
15517 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"
15527 hardcode_libdir_flag_spec_CXX='-L$libdir'
15528 hardcode_minus_L_CXX=yes
15529 allow_undefined_flag_CXX=unsupported
15531 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15532 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15533 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15534 $ECHO EXPORTS >> $output_objdir/$libname.def~
15535 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15536 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15537 emximp -o $lib $output_objdir/$libname.def'
15538 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15539 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15540 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15541 $ECHO EXPORTS >> $output_objdir/$libname.def~
15542 prefix_cmds="$SED"~
15543 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15544 prefix_cmds="$prefix_cmds -e 1d";
15546 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15547 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15548 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15549 emximp -o $lib $output_objdir/$libname.def'
15550 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15551 enable_shared_with_static_runtimes_CXX=yes
15555 case $cc_basename in
15557 # FIXME: insert proper C++ library support
15561 # Green Hills C++ Compiler
15562 # FIXME: insert proper C++ library support
15566 # FIXME: insert proper C++ library support
15573 # C++ shared libraries reported to be fairly broken before
15579 archive_cmds_need_lc_CXX=no
15582 freebsd* | dragonfly*)
15583 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15589 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15590 link_all_deplibs_CXX=yes
15594 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15595 hardcode_libdir_separator_CXX=:
15596 export_dynamic_flag_spec_CXX='$wl-E'
15597 hardcode_direct_CXX=yes
15598 hardcode_minus_L_CXX=yes # Not in the search PATH,
15599 # but as the default
15600 # location of the library.
15602 case $cc_basename in
15604 # FIXME: insert proper C++ library support
15608 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'
15609 # Commands to make compiler produce verbose output that lists
15610 # what "hidden" libraries, object files and flags are used when
15611 # linking a shared library.
15613 # There doesn't appear to be a way to prevent this compiler from
15614 # explicitly linking system object files so we need to strip them
15615 # from the output so that they don't get included in the library
15617 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"'
15620 if test yes = "$GXX"; then
15621 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'
15623 # FIXME: insert proper C++ library support
15631 if test no = "$with_gnu_ld"; then
15632 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15633 hardcode_libdir_separator_CXX=:
15639 export_dynamic_flag_spec_CXX='$wl-E'
15645 hardcode_direct_CXX=no
15646 hardcode_shlibpath_var_CXX=no
15649 hardcode_direct_CXX=yes
15650 hardcode_direct_absolute_CXX=yes
15651 hardcode_minus_L_CXX=yes # Not in the search PATH,
15652 # but as the default
15653 # location of the library.
15657 case $cc_basename in
15659 # FIXME: insert proper C++ library support
15665 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15668 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15671 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15674 # Commands to make compiler produce verbose output that lists
15675 # what "hidden" libraries, object files and flags are used when
15676 # linking a shared library.
15678 # There doesn't appear to be a way to prevent this compiler from
15679 # explicitly linking system object files so we need to strip them
15680 # from the output so that they don't get included in the library
15682 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"'
15685 if test yes = "$GXX"; then
15686 if test no = "$with_gnu_ld"; then
15689 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15692 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15695 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'
15700 # FIXME: insert proper C++ library support
15708 hardcode_direct_CXX=no
15709 hardcode_shlibpath_var_CXX=no
15710 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15711 export_dynamic_flag_spec_CXX='$wl-E'
15712 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15713 # Instead, shared libraries are loaded at an image base (0x10000000 by
15714 # default) and relocated if they conflict, which is a slow very memory
15715 # consuming and fragmenting process. To avoid this, we pick a random,
15716 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15717 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15718 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'
15719 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'
15722 case $cc_basename in
15725 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'
15727 # Archives containing C++ object files must be created using
15728 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15729 # necessary to make sure instantiated templates are included
15731 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15734 if test yes = "$GXX"; then
15735 if test no = "$with_gnu_ld"; then
15736 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'
15738 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'
15741 link_all_deplibs_CXX=yes
15744 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15745 hardcode_libdir_separator_CXX=:
15746 inherit_rpath_CXX=yes
15749 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15750 case $cc_basename in
15752 # Kuck and Associates, Inc. (KAI) C++ Compiler
15754 # KCC will only create a shared library if the output file
15755 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15756 # to its proper name (with version) after linking.
15757 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'
15758 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'
15759 # Commands to make compiler produce verbose output that lists
15760 # what "hidden" libraries, object files and flags are used when
15761 # linking a shared library.
15763 # There doesn't appear to be a way to prevent this compiler from
15764 # explicitly linking system object files so we need to strip them
15765 # from the output so that they don't get included in the library
15767 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"'
15769 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15770 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15772 # Archives containing C++ object files must be created using
15773 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15774 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15779 # version 8.0 and above of icpc choke on multiply defined symbols
15780 # if we add $predep_objects and $postdep_objects, however 7.1 and
15781 # earlier do not add the objects themselves.
15782 case `$CC -V 2>&1` in
15784 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15785 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'
15787 *) # Version 8.0 or newer
15790 ia64*) tmp_idyn=' -i_dynamic';;
15792 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15793 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'
15796 archive_cmds_need_lc_CXX=no
15797 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15798 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15799 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15802 # Portland Group C++ compiler
15804 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15805 prelink_cmds_CXX='tpldir=Template.dir~
15807 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15808 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15809 old_archive_cmds_CXX='tpldir=Template.dir~
15811 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15812 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15814 archive_cmds_CXX='tpldir=Template.dir~
15816 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15817 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15818 archive_expsym_cmds_CXX='tpldir=Template.dir~
15820 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15821 $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'
15823 *) # Version 6 and above use weak symbols
15824 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15825 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'
15829 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15830 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15831 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'
15835 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15836 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'
15838 runpath_var=LD_RUN_PATH
15839 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15840 hardcode_libdir_separator_CXX=:
15842 # Commands to make compiler produce verbose output that lists
15843 # what "hidden" libraries, object files and flags are used when
15844 # linking a shared library.
15846 # There doesn't appear to be a way to prevent this compiler from
15847 # explicitly linking system object files so we need to strip them
15848 # from the output so that they don't get included in the library
15850 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'
15852 xl* | mpixl* | bgxl*)
15853 # IBM XL 8.0 on PPC, with GNU ld
15854 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15855 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15856 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15857 if test yes = "$supports_anon_versioning"; then
15858 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15859 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15860 echo "local: *; };" >> $output_objdir/$libname.ver~
15861 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15865 case `$CC -V 2>&1 | sed 5q` in
15868 no_undefined_flag_CXX=' -zdefs'
15869 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15870 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'
15871 hardcode_libdir_flag_spec_CXX='-R$libdir'
15872 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'
15873 compiler_needs_object_CXX=yes
15875 # Not sure whether something based on
15876 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15878 output_verbose_link_cmd='func_echo_all'
15880 # Archives containing C++ object files must be created using
15881 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15882 # necessary to make sure instantiated templates are included
15884 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15892 # FIXME: insert proper C++ library support
15897 # FIXME: insert proper C++ library support
15902 case $cc_basename in
15904 # FIXME: insert proper C++ library support
15908 # FIXME: insert proper C++ library support
15915 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15916 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15918 hardcode_libdir_flag_spec_CXX='-R$libdir'
15919 hardcode_direct_CXX=yes
15920 hardcode_shlibpath_var_CXX=no
15922 # Workaround some broken pre-1.5 toolchains
15923 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15930 openbsd* | bitrig*)
15931 if test -f /usr/libexec/ld.so; then
15932 hardcode_direct_CXX=yes
15933 hardcode_shlibpath_var_CXX=no
15934 hardcode_direct_absolute_CXX=yes
15935 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15936 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15937 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15938 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15939 export_dynamic_flag_spec_CXX='$wl-E'
15940 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15942 output_verbose_link_cmd=func_echo_all
15948 osf3* | osf4* | osf5*)
15949 case $cc_basename in
15951 # Kuck and Associates, Inc. (KAI) C++ Compiler
15953 # KCC will only create a shared library if the output file
15954 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15955 # to its proper name (with version) after linking.
15956 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'
15958 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15959 hardcode_libdir_separator_CXX=:
15961 # Archives containing C++ object files must be created using
15962 # the KAI C++ compiler.
15964 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15965 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15969 # Rational C++ 2.4.1
15970 # FIXME: insert proper C++ library support
15976 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15977 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'
15978 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15981 allow_undefined_flag_CXX=' -expect_unresolved \*'
15982 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'
15983 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15984 echo "-hidden">> $lib.exp~
15985 $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~
15987 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15991 hardcode_libdir_separator_CXX=:
15993 # Commands to make compiler produce verbose output that lists
15994 # what "hidden" libraries, object files and flags are used when
15995 # linking a shared library.
15997 # There doesn't appear to be a way to prevent this compiler from
15998 # explicitly linking system object files so we need to strip them
15999 # from the output so that they don't get included in the library
16001 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"'
16004 if test yes,no = "$GXX,$with_gnu_ld"; then
16005 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16008 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'
16011 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'
16015 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16016 hardcode_libdir_separator_CXX=:
16018 # Commands to make compiler produce verbose output that lists
16019 # what "hidden" libraries, object files and flags are used when
16020 # linking a shared library.
16021 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16024 # FIXME: insert proper C++ library support
16032 # FIXME: insert proper C++ library support
16037 case $cc_basename in
16040 # FIXME: insert proper C++ library support
16045 # FIXME: insert proper C++ library support
16049 # FIXME: insert proper C++ library support
16056 case $cc_basename in
16058 # Sun C++ 4.2, 5.x and Centerline C++
16059 archive_cmds_need_lc_CXX=yes
16060 no_undefined_flag_CXX=' -zdefs'
16061 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16062 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16063 $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'
16065 hardcode_libdir_flag_spec_CXX='-R$libdir'
16066 hardcode_shlibpath_var_CXX=no
16068 solaris2.[0-5] | solaris2.[0-5].*) ;;
16070 # The compiler driver will combine and reorder linker options,
16071 # but understands '-z linker_flag'.
16072 # Supported since Solaris 2.6 (maybe 2.5.1?)
16073 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16076 link_all_deplibs_CXX=yes
16078 output_verbose_link_cmd='func_echo_all'
16080 # Archives containing C++ object files must be created using
16081 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16082 # necessary to make sure instantiated templates are included
16084 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16087 # Green Hills C++ Compiler
16088 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16090 # The C++ compiler must be used to create the archive.
16091 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16094 # GNU C++ compiler with Solaris linker
16095 if test yes,no = "$GXX,$with_gnu_ld"; then
16096 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16097 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16098 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16099 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16100 $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'
16102 # Commands to make compiler produce verbose output that lists
16103 # what "hidden" libraries, object files and flags are used when
16104 # linking a shared library.
16105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16107 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16109 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16110 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16111 $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'
16113 # Commands to make compiler produce verbose output that lists
16114 # what "hidden" libraries, object files and flags are used when
16115 # linking a shared library.
16116 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16119 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16121 solaris2.[0-5] | solaris2.[0-5].*) ;;
16123 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16131 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16132 no_undefined_flag_CXX='$wl-z,text'
16133 archive_cmds_need_lc_CXX=no
16134 hardcode_shlibpath_var_CXX=no
16135 runpath_var='LD_RUN_PATH'
16137 case $cc_basename in
16139 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16140 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16143 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16144 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16149 sysv5* | sco3.2v5* | sco5v6*)
16150 # Note: We CANNOT use -z defs as we might desire, because we do not
16151 # link with -lc, and that would cause any symbols used from libc to
16152 # always be unresolved, which means just about no library would
16153 # ever link correctly. If we're not using GNU ld we use -z text
16154 # though, which does catch some bad symbols but isn't as heavy-handed
16156 no_undefined_flag_CXX='$wl-z,text'
16157 allow_undefined_flag_CXX='$wl-z,nodefs'
16158 archive_cmds_need_lc_CXX=no
16159 hardcode_shlibpath_var_CXX=no
16160 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16161 hardcode_libdir_separator_CXX=':'
16162 link_all_deplibs_CXX=yes
16163 export_dynamic_flag_spec_CXX='$wl-Bexport'
16164 runpath_var='LD_RUN_PATH'
16166 case $cc_basename in
16168 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16169 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16170 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16171 '"$old_archive_cmds_CXX"
16172 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16173 '"$reload_cmds_CXX"
16176 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16177 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16183 case $cc_basename in
16185 # NonStop-UX NCC 3.20
16186 # FIXME: insert proper C++ library support
16190 # FIXME: insert proper C++ library support
16197 # FIXME: insert proper C++ library support
16202 # FIXME: insert proper C++ library support
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16208 $as_echo "$ld_shlibs_CXX" >&6; }
16209 test no = "$ld_shlibs_CXX" && can_build_shared=no
16215 ## There is no encapsulation within the following macros, do not change
16216 ## the running order or otherwise move them around unless you know exactly
16217 ## what you are doing...
16218 # Dependencies to place before and after the object being linked:
16219 predep_objects_CXX=
16220 postdep_objects_CXX=
16223 compiler_lib_search_path_CXX=
16225 cat > conftest.$ac_ext <<_LT_EOF
16229 Foo (void) { a = 0; }
16236 _lt_libdeps_save_CFLAGS=$CFLAGS
16237 case "$CC $CFLAGS " in #(
16238 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16239 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16240 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16244 (eval $ac_compile) 2>&5
16246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16247 test $ac_status = 0; }; then
16248 # Parse the compiler output and extract the necessary
16249 # objects, libraries and library flags.
16251 # Sentinel used to keep track of whether or not we are before
16252 # the conftest object file.
16253 pre_test_object_deps_done=no
16255 for p in `eval "$output_verbose_link_cmd"`; do
16259 # Some compilers place space between "-{L,R}" and the path.
16260 # Remove the space.
16261 if test x-L = "$p" ||
16262 test x-R = "$p"; then
16267 # Expand the sysroot to ease extracting the directories later.
16268 if test -z "$prev"; then
16270 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16271 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16272 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16276 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16278 if test no = "$pre_test_object_deps_done"; then
16281 # Internal compiler library paths should come after those
16282 # provided the user. The postdeps already come after the
16283 # user supplied libs so there is no need to process them.
16284 if test -z "$compiler_lib_search_path_CXX"; then
16285 compiler_lib_search_path_CXX=$prev$p
16287 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16290 # The "-l" case would never come before the object being
16291 # linked, so don't bother handling this case.
16294 if test -z "$postdeps_CXX"; then
16295 postdeps_CXX=$prev$p
16297 postdeps_CXX="${postdeps_CXX} $prev$p"
16303 *.lto.$objext) ;; # Ignore GCC LTO objects
16305 # This assumes that the test object file only shows up
16306 # once in the compiler output.
16307 if test "$p" = "conftest.$objext"; then
16308 pre_test_object_deps_done=yes
16312 if test no = "$pre_test_object_deps_done"; then
16313 if test -z "$predep_objects_CXX"; then
16314 predep_objects_CXX=$p
16316 predep_objects_CXX="$predep_objects_CXX $p"
16319 if test -z "$postdep_objects_CXX"; then
16320 postdep_objects_CXX=$p
16322 postdep_objects_CXX="$postdep_objects_CXX $p"
16327 *) ;; # Ignore the rest.
16335 echo "libtool.m4: error: problem compiling CXX test program"
16338 $RM -f confest.$objext
16339 CFLAGS=$_lt_libdeps_save_CFLAGS
16341 # PORTME: override above test on systems where it is broken
16344 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16345 # hack all around it, let's just trust "g++" to DTRT.
16346 predep_objects_CXX=
16347 postdep_objects_CXX=
16353 case " $postdeps_CXX " in
16354 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16356 compiler_lib_search_dirs_CXX=
16357 if test -n "${compiler_lib_search_path_CXX}"; then
16358 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16391 lt_prog_compiler_wl_CXX=
16392 lt_prog_compiler_pic_CXX=
16393 lt_prog_compiler_static_CXX=
16396 # C++ specific cases for pic, static, wl, etc.
16397 if test yes = "$GXX"; then
16398 lt_prog_compiler_wl_CXX='-Wl,'
16399 lt_prog_compiler_static_CXX='-static'
16403 # All AIX code is PIC.
16404 if test ia64 = "$host_cpu"; then
16405 # AIX 5 now supports IA64 processor
16406 lt_prog_compiler_static_CXX='-Bstatic'
16408 lt_prog_compiler_pic_CXX='-fPIC'
16414 # see comment about AmigaOS4 .so support
16415 lt_prog_compiler_pic_CXX='-fPIC'
16418 # FIXME: we need at least 68020 code to build shared libraries, but
16419 # adding the '-m68020' flag to GCC prevents building anything better,
16421 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16426 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16427 # PIC is the default for these OSes.
16429 mingw* | cygwin* | os2* | pw32* | cegcc*)
16430 # This hack is so that the source file can tell whether it is being
16431 # built for inclusion in a dll (and should export symbols for example).
16432 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16433 # (--disable-auto-import) libraries
16434 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16437 lt_prog_compiler_static_CXX='$wl-static'
16441 darwin* | rhapsody*)
16442 # PIC is the default on this platform
16443 # Common symbols not allowed in MH_DYLIB files
16444 lt_prog_compiler_pic_CXX='-fno-common'
16447 # DJGPP does not support shared libraries at all
16448 lt_prog_compiler_pic_CXX=
16451 # PIC is the default for Haiku.
16452 # The "-static" flag exists, but is broken.
16453 lt_prog_compiler_static_CXX=
16456 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16457 # Instead, we relocate shared libraries at runtime.
16460 if test -d /usr/nec; then
16461 lt_prog_compiler_pic_CXX=-Kconform_pic
16465 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16466 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16467 # sets the default TLS model and affects inlining.
16472 lt_prog_compiler_pic_CXX='-fPIC'
16477 # QNX uses GNU C++, but need to define -shared option too, otherwise
16478 # it will coredump.
16479 lt_prog_compiler_pic_CXX='-fPIC -shared'
16482 lt_prog_compiler_pic_CXX='-fPIC'
16488 # All AIX code is PIC.
16489 if test ia64 = "$host_cpu"; then
16490 # AIX 5 now supports IA64 processor
16491 lt_prog_compiler_static_CXX='-Bstatic'
16493 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16497 case $cc_basename in
16499 # Green Hills C++ Compiler
16500 # _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"
16504 mingw* | cygwin* | os2* | pw32* | cegcc*)
16505 # This hack is so that the source file can tell whether it is being
16506 # built for inclusion in a dll (and should export symbols for example).
16507 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16510 case $cc_basename in
16512 lt_prog_compiler_pic_CXX='-KPIC'
16515 # Green Hills C++ Compiler
16516 lt_prog_compiler_pic_CXX='-pic'
16522 freebsd* | dragonfly*)
16523 # FreeBSD uses GNU C++
16525 hpux9* | hpux10* | hpux11*)
16526 case $cc_basename in
16528 lt_prog_compiler_wl_CXX='-Wl,'
16529 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16530 if test ia64 != "$host_cpu"; then
16531 lt_prog_compiler_pic_CXX='+Z'
16535 lt_prog_compiler_wl_CXX='-Wl,'
16536 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16542 lt_prog_compiler_pic_CXX='+Z'
16551 # This is c89, which is MS Visual C++ (no shared libs)
16552 # Anyone wants to do a port?
16554 irix5* | irix6* | nonstopux*)
16555 case $cc_basename in
16557 lt_prog_compiler_wl_CXX='-Wl,'
16558 lt_prog_compiler_static_CXX='-non_shared'
16559 # CC pic flag -KPIC is the default.
16565 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16566 case $cc_basename in
16569 lt_prog_compiler_wl_CXX='--backend -Wl,'
16570 lt_prog_compiler_pic_CXX='-fPIC'
16573 # old Intel C++ for x86_64, which still supported -KPIC.
16574 lt_prog_compiler_wl_CXX='-Wl,'
16575 lt_prog_compiler_pic_CXX='-KPIC'
16576 lt_prog_compiler_static_CXX='-static'
16579 # Intel C++, used to be incompatible with GCC.
16580 # ICC 10 doesn't accept -KPIC any more.
16581 lt_prog_compiler_wl_CXX='-Wl,'
16582 lt_prog_compiler_pic_CXX='-fPIC'
16583 lt_prog_compiler_static_CXX='-static'
16586 # Portland Group C++ compiler
16587 lt_prog_compiler_wl_CXX='-Wl,'
16588 lt_prog_compiler_pic_CXX='-fpic'
16589 lt_prog_compiler_static_CXX='-Bstatic'
16593 # Make sure the PIC flag is empty. It appears that all Alpha
16594 # Linux and Compaq Tru64 Unix objects are PIC.
16595 lt_prog_compiler_pic_CXX=
16596 lt_prog_compiler_static_CXX='-non_shared'
16598 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16599 # IBM XL 8.0, 9.0 on PPC and BlueGene
16600 lt_prog_compiler_wl_CXX='-Wl,'
16601 lt_prog_compiler_pic_CXX='-qpic'
16602 lt_prog_compiler_static_CXX='-qstaticlink'
16605 case `$CC -V 2>&1 | sed 5q` in
16608 lt_prog_compiler_pic_CXX='-KPIC'
16609 lt_prog_compiler_static_CXX='-Bstatic'
16610 lt_prog_compiler_wl_CXX='-Qoption ld '
16621 case $cc_basename in
16623 lt_prog_compiler_pic_CXX='-W c,exportall'
16629 netbsd* | netbsdelf*-gnu)
16632 # QNX uses GNU C++, but need to define -shared option too, otherwise
16633 # it will coredump.
16634 lt_prog_compiler_pic_CXX='-fPIC -shared'
16636 osf3* | osf4* | osf5*)
16637 case $cc_basename in
16639 lt_prog_compiler_wl_CXX='--backend -Wl,'
16642 # Rational C++ 2.4.1
16643 lt_prog_compiler_pic_CXX='-pic'
16646 # Digital/Compaq C++
16647 lt_prog_compiler_wl_CXX='-Wl,'
16648 # Make sure the PIC flag is empty. It appears that all Alpha
16649 # Linux and Compaq Tru64 Unix objects are PIC.
16650 lt_prog_compiler_pic_CXX=
16651 lt_prog_compiler_static_CXX='-non_shared'
16660 case $cc_basename in
16662 # Sun C++ 4.2, 5.x and Centerline C++
16663 lt_prog_compiler_pic_CXX='-KPIC'
16664 lt_prog_compiler_static_CXX='-Bstatic'
16665 lt_prog_compiler_wl_CXX='-Qoption ld '
16668 # Green Hills C++ Compiler
16669 lt_prog_compiler_pic_CXX='-PIC'
16676 case $cc_basename in
16679 lt_prog_compiler_pic_CXX='-pic'
16680 lt_prog_compiler_static_CXX='-Bstatic'
16684 lt_prog_compiler_pic_CXX='-pic'
16690 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16691 case $cc_basename in
16693 lt_prog_compiler_wl_CXX='-Wl,'
16694 lt_prog_compiler_pic_CXX='-KPIC'
16695 lt_prog_compiler_static_CXX='-Bstatic'
16700 case $cc_basename in
16702 # NonStop-UX NCC 3.20
16703 lt_prog_compiler_pic_CXX='-KPIC'
16712 lt_prog_compiler_can_build_shared_CXX=no
16718 # For platforms that do not support PIC, -DPIC is meaningless:
16720 lt_prog_compiler_pic_CXX=
16723 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16728 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16729 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16730 $as_echo_n "(cached) " >&6
16732 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16735 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16736 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16739 # Check to make sure the PIC flag actually works.
16741 if test -n "$lt_prog_compiler_pic_CXX"; then
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16743 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16744 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16745 $as_echo_n "(cached) " >&6
16747 lt_cv_prog_compiler_pic_works_CXX=no
16748 ac_outfile=conftest.$ac_objext
16749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16750 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16751 # Insert the option either (1) after the last *FLAGS variable, or
16752 # (2) before a word containing "conftest.", or (3) at the end.
16753 # Note that $ac_compile itself does not contain backslashes and begins
16754 # with a dollar sign (not a hyphen), so the echo should work correctly.
16755 # The option is referenced via a variable to avoid confusing sed.
16756 lt_compile=`echo "$ac_compile" | $SED \
16757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16759 -e 's:$: $lt_compiler_flag:'`
16760 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16761 (eval "$lt_compile" 2>conftest.err)
16763 cat conftest.err >&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 if (exit $ac_status) && test -s "$ac_outfile"; then
16766 # The compiler can only warn and ignore the option if not recognized
16767 # So say no if there are warnings other than the usual output.
16768 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16770 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16771 lt_cv_prog_compiler_pic_works_CXX=yes
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16778 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16780 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16781 case $lt_prog_compiler_pic_CXX in
16783 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16786 lt_prog_compiler_pic_CXX=
16787 lt_prog_compiler_can_build_shared_CXX=no
16797 # Check to make sure the static flag actually works.
16799 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16801 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16802 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16803 $as_echo_n "(cached) " >&6
16805 lt_cv_prog_compiler_static_works_CXX=no
16806 save_LDFLAGS=$LDFLAGS
16807 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16808 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16809 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16810 # The linker can only warn and ignore the option if not recognized
16811 # So say no if there are warnings
16812 if test -s conftest.err; then
16813 # Append any errors to the config.log.
16814 cat conftest.err 1>&5
16815 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16817 if diff conftest.exp conftest.er2 >/dev/null; then
16818 lt_cv_prog_compiler_static_works_CXX=yes
16821 lt_cv_prog_compiler_static_works_CXX=yes
16825 LDFLAGS=$save_LDFLAGS
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16829 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16831 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16834 lt_prog_compiler_static_CXX=
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16841 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16842 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16843 $as_echo_n "(cached) " >&6
16845 lt_cv_prog_compiler_c_o_CXX=no
16846 $RM -r conftest 2>/dev/null
16850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16852 lt_compiler_flag="-o out/conftest2.$ac_objext"
16853 # Insert the option either (1) after the last *FLAGS variable, or
16854 # (2) before a word containing "conftest.", or (3) at the end.
16855 # Note that $ac_compile itself does not contain backslashes and begins
16856 # with a dollar sign (not a hyphen), so the echo should work correctly.
16857 lt_compile=`echo "$ac_compile" | $SED \
16858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16860 -e 's:$: $lt_compiler_flag:'`
16861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16862 (eval "$lt_compile" 2>out/conftest.err)
16864 cat out/conftest.err >&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16868 # The compiler can only warn and ignore the option if not recognized
16869 # So say no if there are warnings
16870 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16871 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16872 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16873 lt_cv_prog_compiler_c_o_CXX=yes
16878 # SGI C++ compiler will create directory out/ii_files/ for
16879 # template instantiation
16880 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16881 $RM out/* && rmdir out
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16888 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16893 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16894 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16895 $as_echo_n "(cached) " >&6
16897 lt_cv_prog_compiler_c_o_CXX=no
16898 $RM -r conftest 2>/dev/null
16902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16904 lt_compiler_flag="-o out/conftest2.$ac_objext"
16905 # Insert the option either (1) after the last *FLAGS variable, or
16906 # (2) before a word containing "conftest.", or (3) at the end.
16907 # Note that $ac_compile itself does not contain backslashes and begins
16908 # with a dollar sign (not a hyphen), so the echo should work correctly.
16909 lt_compile=`echo "$ac_compile" | $SED \
16910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16912 -e 's:$: $lt_compiler_flag:'`
16913 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16914 (eval "$lt_compile" 2>out/conftest.err)
16916 cat out/conftest.err >&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16920 # The compiler can only warn and ignore the option if not recognized
16921 # So say no if there are warnings
16922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16923 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16924 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16925 lt_cv_prog_compiler_c_o_CXX=yes
16930 # SGI C++ compiler will create directory out/ii_files/ for
16931 # template instantiation
16932 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16933 $RM out/* && rmdir out
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16940 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16945 hard_links=nottested
16946 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16947 # do not overwrite the value of need_locks provided by the user
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16949 $as_echo_n "checking if we can lock with hard links... " >&6; }
16952 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16954 ln conftest.a conftest.b 2>&5 || hard_links=no
16955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16957 $as_echo "$hard_links" >&6; }
16958 if test no = "$hard_links"; then
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16960 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16970 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16972 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16973 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16976 # If we're using GNU nm, then we don't want the "-C" option.
16977 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16978 # Without the "-l" option, or with the "-B" option, AIX nm treats
16979 # weak defined symbols like other global defined symbols, whereas
16980 # GNU nm marks them as "W".
16981 # While the 'weak' keyword is ignored in the Export File, we need
16982 # it in the Import File for the 'aix-soname' feature, so we have
16983 # to replace the "-B" option with "-P" for AIX nm.
16984 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16985 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'
16987 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'
16991 export_symbols_cmds_CXX=$ltdll_cmds
16993 cygwin* | mingw* | cegcc*)
16994 case $cc_basename in
16996 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16999 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'
17000 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17004 linux* | k*bsd*-gnu | gnu*)
17005 link_all_deplibs_CXX=no
17008 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17013 $as_echo "$ld_shlibs_CXX" >&6; }
17014 test no = "$ld_shlibs_CXX" && can_build_shared=no
17016 with_gnu_ld_CXX=$with_gnu_ld
17024 # Do we need to explicitly link libc?
17026 case "x$archive_cmds_need_lc_CXX" in
17028 # Assume -lc should be added
17029 archive_cmds_need_lc_CXX=yes
17031 if test yes,yes = "$GCC,$enable_shared"; then
17032 case $archive_cmds_CXX in
17034 # FIXME: we may have to deal with multi-command sequences.
17037 # Test whether the compiler implicitly links with -lc since on some
17038 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17039 # to ld, don't add -lc before -lgcc.
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17041 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17042 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17043 $as_echo_n "(cached) " >&6
17046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17049 (eval $ac_compile) 2>&5
17051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17052 test $ac_status = 0; } 2>conftest.err; then
17055 libobjs=conftest.$ac_objext
17057 wl=$lt_prog_compiler_wl_CXX
17058 pic_flag=$lt_prog_compiler_pic_CXX
17064 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17065 allow_undefined_flag_CXX=
17066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17067 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17070 test $ac_status = 0; }
17072 lt_cv_archive_cmds_need_lc_CXX=no
17074 lt_cv_archive_cmds_need_lc_CXX=yes
17076 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17078 cat conftest.err 1>&5
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17084 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17085 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17154 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17156 library_names_spec=
17157 libname_spec='lib$name'
17161 postuninstall_cmds=
17165 shlibpath_overrides_runpath=unknown
17167 dynamic_linker="$host_os ld.so"
17168 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17169 need_lib_prefix=unknown
17170 hardcode_into_libs=no
17172 # when you set need_version to no, make sure it does not cause -set_version
17173 # flags to be left without arguments
17174 need_version=unknown
17180 version_type=linux # correct to gnu/linux during the next big refactor
17181 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17182 shlibpath_var=LIBPATH
17184 # AIX 3 has no versioning support, so we append a major version to the name.
17185 soname_spec='$libname$release$shared_ext$major'
17189 version_type=linux # correct to gnu/linux during the next big refactor
17192 hardcode_into_libs=yes
17193 if test ia64 = "$host_cpu"; then
17194 # AIX 5 supports IA64
17195 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17196 shlibpath_var=LD_LIBRARY_PATH
17198 # With GCC up to 2.95.x, collect2 would create an import file
17199 # for dependence libraries. The import file would start with
17200 # the line '#! .'. This would cause the generated library to
17201 # depend on '.', always an invalid library. This was fixed in
17202 # development snapshots of GCC prior to 3.0.
17204 aix4 | aix4.[01] | aix4.[01].*)
17205 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17207 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17210 can_build_shared=no
17214 # Using Import Files as archive members, it is possible to support
17215 # filename-based versioning of shared library archives on AIX. While
17216 # this would work for both with and without runtime linking, it will
17217 # prevent static linking of such archives. So we do filename-based
17218 # shared library versioning with .so extension only, which is used
17219 # when both runtime linking and shared linking is enabled.
17220 # Unfortunately, runtime linking may impact performance, so we do
17221 # not want this to be the default eventually. Also, we use the
17222 # versioned .so libs for executables only if there is the -brtl
17223 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17224 # To allow for filename-based versioning support, we need to create
17225 # libNAME.so.V as an archive file, containing:
17226 # *) an Import File, referring to the versioned filename of the
17227 # archive as well as the shared archive member, telling the
17228 # bitwidth (32 or 64) of that shared object, and providing the
17229 # list of exported symbols of that shared object, eventually
17230 # decorated with the 'weak' keyword
17231 # *) the shared object with the F_LOADONLY flag set, to really avoid
17232 # it being seen by the linker.
17233 # At run time we better use the real file rather than another symlink,
17234 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17236 case $with_aix_soname,$aix_use_runtimelinking in
17237 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17238 # soname into executable. Probably we can add versioning support to
17239 # collect2, so additional links can be useful in future.
17240 aix,yes) # traditional libtool
17241 dynamic_linker='AIX unversionable lib.so'
17242 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17243 # instead of lib<name>.a to let people know that these are not
17244 # typical AIX shared libraries.
17245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17247 aix,no) # traditional AIX only
17248 dynamic_linker='AIX lib.a(lib.so.V)'
17249 # We preserve .a as extension for shared libraries through AIX4.2
17250 # and later when we are not doing run time linking.
17251 library_names_spec='$libname$release.a $libname.a'
17252 soname_spec='$libname$release$shared_ext$major'
17254 svr4,*) # full svr4 only
17255 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17256 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17257 # We do not specify a path in Import Files, so LIBPATH fires.
17258 shlibpath_overrides_runpath=yes
17260 *,yes) # both, prefer svr4
17261 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17262 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17263 # unpreferred sharedlib libNAME.a needs extra handling
17264 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"'
17265 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"'
17266 # We do not specify a path in Import Files, so LIBPATH fires.
17267 shlibpath_overrides_runpath=yes
17269 *,no) # both, prefer aix
17270 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17271 library_names_spec='$libname$release.a $libname.a'
17272 soname_spec='$libname$release$shared_ext$major'
17273 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17274 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)'
17275 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"'
17278 shlibpath_var=LIBPATH
17285 # Since July 2007 AmigaOS4 officially supports .so libraries.
17286 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17290 library_names_spec='$libname.ixlibrary $libname.a'
17291 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17292 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'
17298 library_names_spec='$libname$shared_ext'
17299 dynamic_linker="$host_os ld.so"
17300 shlibpath_var=LIBRARY_PATH
17304 version_type=linux # correct to gnu/linux during the next big refactor
17306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17307 soname_spec='$libname$release$shared_ext$major'
17308 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17309 shlibpath_var=LD_LIBRARY_PATH
17310 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17311 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17312 # the default ld.so.conf also contains /usr/contrib/lib and
17313 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17314 # libtool to hard-code these into programs
17317 cygwin* | mingw* | pw32* | cegcc*)
17318 version_type=windows
17323 case $GCC,$cc_basename in
17326 library_names_spec='$libname.dll.a'
17327 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17328 postinstall_cmds='base_file=`basename \$file`~
17329 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17330 dldir=$destdir/`dirname \$dlpath`~
17331 test -d \$dldir || mkdir -p \$dldir~
17332 $install_prog $dir/$dlname \$dldir/$dlname~
17333 chmod a+x \$dldir/$dlname~
17334 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17335 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17337 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17338 dlpath=$dir/\$dldll~
17340 shlibpath_overrides_runpath=yes
17344 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17345 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17349 # MinGW DLLs use traditional 'lib' prefix
17350 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17353 # pw32 DLLs use 'pw' prefix rather than 'lib'
17354 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17357 dynamic_linker='Win32 ld.exe'
17362 libname_spec='$name'
17363 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17364 library_names_spec='$libname.dll.lib'
17368 sys_lib_search_path_spec=
17371 for lt_path in $LIB
17374 # Let DOS variable expansion print the short 8.3 style file name.
17375 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17376 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17379 # Convert to MSYS style.
17380 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17383 # Convert to unix form, then to dos form, then back to unix form
17384 # but this time dos style (no spaces!) so that the unix form looks
17385 # like /cygdrive/c/PROGRA~1:/cygdr...
17386 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17387 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17388 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17391 sys_lib_search_path_spec=$LIB
17392 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17393 # It is most probably a Windows format PATH.
17394 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17396 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17398 # FIXME: find the short name or the path components, as spaces are
17399 # common. (e.g. "Program Files" -> "PROGRA~1")
17403 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17404 postinstall_cmds='base_file=`basename \$file`~
17405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17406 dldir=$destdir/`dirname \$dlpath`~
17407 test -d \$dldir || mkdir -p \$dldir~
17408 $install_prog $dir/$dlname \$dldir/$dlname'
17409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17410 dlpath=$dir/\$dldll~
17412 shlibpath_overrides_runpath=yes
17413 dynamic_linker='Win32 link.exe'
17417 # Assume MSVC wrapper
17418 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17419 dynamic_linker='Win32 ld.exe'
17422 # FIXME: first we should search . and the directory the executable is in
17426 darwin* | rhapsody*)
17427 dynamic_linker="$host_os dyld"
17428 version_type=darwin
17431 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17432 soname_spec='$libname$release$major$shared_ext'
17433 shlibpath_overrides_runpath=yes
17434 shlibpath_var=DYLD_LIBRARY_PATH
17435 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17437 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17441 version_type=linux # correct to gnu/linux during the next big refactor
17444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17445 soname_spec='$libname$release$shared_ext$major'
17446 shlibpath_var=LD_LIBRARY_PATH
17449 freebsd* | dragonfly*)
17450 # DragonFly does not have aout. When/if they implement a new
17451 # versioning mechanism, adjust this.
17452 if test -x /usr/bin/objformat; then
17453 objformat=`/usr/bin/objformat`
17456 freebsd[23].*) objformat=aout ;;
17457 *) objformat=elf ;;
17460 version_type=freebsd-$objformat
17461 case $version_type in
17463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17464 soname_spec='$libname$release$shared_ext$major'
17469 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17473 shlibpath_var=LD_LIBRARY_PATH
17476 shlibpath_overrides_runpath=yes
17478 freebsd3.[01]* | freebsdelf3.[01]*)
17479 shlibpath_overrides_runpath=yes
17480 hardcode_into_libs=yes
17482 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17483 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17484 shlibpath_overrides_runpath=no
17485 hardcode_into_libs=yes
17487 *) # from 4.6 on, and DragonFly
17488 shlibpath_overrides_runpath=yes
17489 hardcode_into_libs=yes
17495 version_type=linux # correct to gnu/linux during the next big refactor
17498 dynamic_linker="$host_os runtime_loader"
17499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17500 soname_spec='$libname$release$shared_ext$major'
17501 shlibpath_var=LIBRARY_PATH
17502 shlibpath_overrides_runpath=no
17503 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17504 hardcode_into_libs=yes
17507 hpux9* | hpux10* | hpux11*)
17508 # Give a soname corresponding to the major version so that dld.sl refuses to
17509 # link against other versions.
17516 hardcode_into_libs=yes
17517 dynamic_linker="$host_os dld.so"
17518 shlibpath_var=LD_LIBRARY_PATH
17519 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17521 soname_spec='$libname$release$shared_ext$major'
17522 if test 32 = "$HPUX_IA64_MODE"; then
17523 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17524 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17526 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17527 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17532 hardcode_into_libs=yes
17533 dynamic_linker="$host_os dld.sl"
17534 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17537 soname_spec='$libname$release$shared_ext$major'
17538 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17543 dynamic_linker="$host_os dld.sl"
17544 shlibpath_var=SHLIB_PATH
17545 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17547 soname_spec='$libname$release$shared_ext$major'
17550 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17551 postinstall_cmds='chmod 555 $lib'
17552 # or fails outright, so override atomically:
17553 install_override_mode=555
17557 version_type=linux # correct to gnu/linux during the next big refactor
17560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17561 soname_spec='$libname$release$shared_ext$major'
17562 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17563 shlibpath_var=LD_LIBRARY_PATH
17564 shlibpath_overrides_runpath=no
17565 hardcode_into_libs=yes
17568 irix5* | irix6* | nonstopux*)
17570 nonstopux*) version_type=nonstopux ;;
17572 if test yes = "$lt_cv_prog_gnu_ld"; then
17573 version_type=linux # correct to gnu/linux during the next big refactor
17580 soname_spec='$libname$release$shared_ext$major'
17581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17583 irix5* | nonstopux*)
17584 libsuff= shlibsuff=
17587 case $LD in # libtool.m4 will add one of these switches to LD
17588 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17589 libsuff= shlibsuff= libmagic=32-bit;;
17590 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17591 libsuff=32 shlibsuff=N32 libmagic=N32;;
17592 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17593 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17594 *) libsuff= shlibsuff= libmagic=never-match;;
17598 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17599 shlibpath_overrides_runpath=no
17600 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17601 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17602 hardcode_into_libs=yes
17605 # No shared lib support for Linux oldld, aout, or coff.
17606 linux*oldld* | linux*aout* | linux*coff*)
17611 version_type=none # Android doesn't support versioned libraries.
17614 library_names_spec='$libname$release$shared_ext'
17615 soname_spec='$libname$release$shared_ext'
17617 shlibpath_var=LD_LIBRARY_PATH
17618 shlibpath_overrides_runpath=yes
17620 # This implies no fast_install, which is unacceptable.
17621 # Some rework will be needed to allow for fast_install
17622 # before this can be enabled.
17623 hardcode_into_libs=yes
17625 dynamic_linker='Android linker'
17626 # Don't embed -rpath directories since the linker doesn't support them.
17627 hardcode_libdir_flag_spec_CXX='-L$libdir'
17630 # This must be glibc/ELF.
17631 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17632 version_type=linux # correct to gnu/linux during the next big refactor
17635 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17636 soname_spec='$libname$release$shared_ext$major'
17637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17638 shlibpath_var=LD_LIBRARY_PATH
17639 shlibpath_overrides_runpath=no
17641 # Some binutils ld are patched to set DT_RUNPATH
17642 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17643 $as_echo_n "(cached) " >&6
17645 lt_cv_shlibpath_overrides_runpath=no
17646 save_LDFLAGS=$LDFLAGS
17647 save_libdir=$libdir
17648 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17649 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17651 /* end confdefs.h. */
17661 if ac_fn_cxx_try_link "$LINENO"; then :
17662 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17663 lt_cv_shlibpath_overrides_runpath=yes
17666 rm -f core conftest.err conftest.$ac_objext \
17667 conftest$ac_exeext conftest.$ac_ext
17668 LDFLAGS=$save_LDFLAGS
17669 libdir=$save_libdir
17673 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17675 # This implies no fast_install, which is unacceptable.
17676 # Some rework will be needed to allow for fast_install
17677 # before this can be enabled.
17678 hardcode_into_libs=yes
17680 # Ideally, we could use ldconfig to report *all* directores which are
17681 # searched for libraries, however this is still not possible. Aside from not
17682 # being certain /sbin/ldconfig is available, command
17683 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17684 # even though it is searched at run-time. Try to do the best guess by
17685 # appending ld.so.conf contents (and includes) to the search path.
17686 if test -f /etc/ld.so.conf; then
17687 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' ' '`
17688 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17691 # We used to test for /lib/ld.so.1 and disable shared libraries on
17692 # powerpc, because MkLinux only supported shared libraries with the
17693 # GNU dynamic linker. Since this was broken with cross compilers,
17694 # most powerpc-linux boxes support dynamic linking these days and
17695 # people can always --disable-shared, the test was removed, and we
17696 # assume the GNU/Linux dynamic linker is in use.
17697 dynamic_linker='GNU/Linux ld.so'
17704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17705 soname_spec='${libname}${release}${shared_ext}$major'
17706 shlibpath_var=LD_LIBRARY_PATH
17707 shlibpath_overrides_runpath=no
17708 hardcode_into_libs=yes
17709 dynamic_linker='NetBSD ld.elf_so'
17716 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17717 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17719 dynamic_linker='NetBSD (a.out) ld.so'
17721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17722 soname_spec='$libname$release$shared_ext$major'
17723 dynamic_linker='NetBSD ld.elf_so'
17725 shlibpath_var=LD_LIBRARY_PATH
17726 shlibpath_overrides_runpath=yes
17727 hardcode_into_libs=yes
17731 version_type=linux # correct to gnu/linux during the next big refactor
17732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17733 shlibpath_var=LD_LIBRARY_PATH
17734 shlibpath_overrides_runpath=yes
17741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17742 soname_spec='$libname$release$shared_ext$major'
17743 shlibpath_var=LD_LIBRARY_PATH
17744 shlibpath_overrides_runpath=no
17745 hardcode_into_libs=yes
17746 dynamic_linker='ldqnx.so'
17749 openbsd* | bitrig*)
17751 sys_lib_dlsearch_path_spec=/usr/lib
17753 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17758 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17760 shlibpath_var=LD_LIBRARY_PATH
17761 shlibpath_overrides_runpath=yes
17765 libname_spec='$name'
17766 version_type=windows
17770 # OS/2 can only load a DLL with a base name of 8 characters or less.
17771 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17772 v=$($ECHO $release$versuffix | tr -d .-);
17773 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17774 $ECHO $n$v`$shared_ext'
17775 library_names_spec='${libname}_dll.$libext'
17776 dynamic_linker='OS/2 ld.exe'
17777 shlibpath_var=BEGINLIBPATH
17778 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17780 postinstall_cmds='base_file=`basename \$file`~
17781 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17782 dldir=$destdir/`dirname \$dlpath`~
17783 test -d \$dldir || mkdir -p \$dldir~
17784 $install_prog $dir/$dlname \$dldir/$dlname~
17785 chmod a+x \$dldir/$dlname~
17786 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17787 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17789 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17790 dlpath=$dir/\$dldll~
17794 osf3* | osf4* | osf5*)
17798 soname_spec='$libname$release$shared_ext$major'
17799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17800 shlibpath_var=LD_LIBRARY_PATH
17801 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17810 version_type=linux # correct to gnu/linux during the next big refactor
17813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17814 soname_spec='$libname$release$shared_ext$major'
17815 shlibpath_var=LD_LIBRARY_PATH
17816 shlibpath_overrides_runpath=yes
17817 hardcode_into_libs=yes
17818 # ldd complains unless libraries are executable
17819 postinstall_cmds='chmod +x $lib'
17824 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17825 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17826 shlibpath_var=LD_LIBRARY_PATH
17827 shlibpath_overrides_runpath=yes
17828 if test yes = "$with_gnu_ld"; then
17835 version_type=linux # correct to gnu/linux during the next big refactor
17836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17837 soname_spec='$libname$release$shared_ext$major'
17838 shlibpath_var=LD_LIBRARY_PATH
17839 case $host_vendor in
17841 shlibpath_overrides_runpath=no
17843 runpath_var=LD_RUN_PATH
17851 shlibpath_overrides_runpath=no
17852 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17858 if test -d /usr/nec; then
17859 version_type=linux # correct to gnu/linux during the next big refactor
17860 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17861 soname_spec='$libname$shared_ext.$major'
17862 shlibpath_var=LD_LIBRARY_PATH
17866 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17871 soname_spec='$libname$release$shared_ext$major'
17872 shlibpath_var=LD_LIBRARY_PATH
17873 shlibpath_overrides_runpath=yes
17874 hardcode_into_libs=yes
17875 if test yes = "$with_gnu_ld"; then
17876 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17878 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17881 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17885 sys_lib_dlsearch_path_spec='/usr/lib'
17889 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17890 version_type=linux # correct to gnu/linux during the next big refactor
17893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17894 shlibpath_var=LD_LIBRARY_PATH
17895 shlibpath_overrides_runpath=no
17896 hardcode_into_libs=yes
17900 version_type=linux # correct to gnu/linux during the next big refactor
17901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17902 soname_spec='$libname$release$shared_ext$major'
17903 shlibpath_var=LD_LIBRARY_PATH
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17911 $as_echo "$dynamic_linker" >&6; }
17912 test no = "$dynamic_linker" && can_build_shared=no
17914 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17915 if test yes = "$GCC"; then
17916 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17919 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17920 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17923 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17924 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17927 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17928 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17930 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17931 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17933 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17934 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17976 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17977 hardcode_action_CXX=
17978 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17979 test -n "$runpath_var_CXX" ||
17980 test yes = "$hardcode_automatic_CXX"; then
17982 # We can hardcode non-existent directories.
17983 if test no != "$hardcode_direct_CXX" &&
17984 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17985 # have to relink, otherwise we might link with an installed library
17986 # when we should be linking with a yet-to-be-installed one
17987 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17988 test no != "$hardcode_minus_L_CXX"; then
17989 # Linking always hardcodes the temporary library directory.
17990 hardcode_action_CXX=relink
17992 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17993 hardcode_action_CXX=immediate
17996 # We cannot hardcode anything, or else we can only hardcode existing
17998 hardcode_action_CXX=unsupported
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18001 $as_echo "$hardcode_action_CXX" >&6; }
18003 if test relink = "$hardcode_action_CXX" ||
18004 test yes = "$inherit_rpath_CXX"; then
18005 # Fast installation is not supported
18006 enable_fast_install=no
18007 elif test yes = "$shlibpath_overrides_runpath" ||
18008 test no = "$enable_shared"; then
18009 # Fast installation is not necessary
18010 enable_fast_install=needless
18019 fi # test -n "$compiler"
18022 CFLAGS=$lt_save_CFLAGS
18026 with_gnu_ld=$lt_save_with_gnu_ld
18027 lt_cv_path_LDCXX=$lt_cv_path_LD
18028 lt_cv_path_LD=$lt_save_path_LD
18029 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18030 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18031 fi # test yes != "$_lt_caught_CXX_error"
18034 ac_cpp='$CPP $CPPFLAGS'
18035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18040 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
18042 ac_cpp='$CXXCPP $CPPFLAGS'
18043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
18048 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
18049 if ${ax_cv_cxx_compile_cxx11+:} false; then :
18050 $as_echo_n "(cached) " >&6
18052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18053 /* end confdefs.h. */
18056 // If the compiler admits that it is not ready for C++11, why torture it?
18057 // Hopefully, this will speed up the test.
18059 #ifndef __cplusplus
18061 #error "This is not a C++ compiler"
18063 #elif __cplusplus < 201103L
18065 #error "This is not a C++11 compiler"
18072 namespace test_static_assert
18075 template <typename T>
18078 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18083 namespace test_final_override
18088 virtual void f() {}
18091 struct Derived : public Base
18093 virtual void f() override {}
18098 namespace test_double_right_angle_brackets
18101 template < typename T >
18104 typedef check<void> single_type;
18105 typedef check<check<void>> double_type;
18106 typedef check<check<check<void>>> triple_type;
18107 typedef check<check<check<check<void>>>> quadruple_type;
18111 namespace test_decltype
18124 namespace test_type_deduction
18127 template < typename T1, typename T2 >
18130 static const bool value = false;
18133 template < typename T >
18134 struct is_same<T, T>
18136 static const bool value = true;
18139 template < typename T1, typename T2 >
18141 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18147 test(const int c, volatile int v)
18149 static_assert(is_same<int, decltype(0)>::value == true, "");
18150 static_assert(is_same<int, decltype(c)>::value == false, "");
18151 static_assert(is_same<int, decltype(v)>::value == false, "");
18154 auto sumi = ac + av + 'x';
18155 auto sumf = ac + av + 1.0;
18156 static_assert(is_same<int, decltype(ac)>::value == true, "");
18157 static_assert(is_same<int, decltype(av)>::value == true, "");
18158 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18159 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18160 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18161 return (sumf > 0.0) ? sumi : add(c, v);
18166 namespace test_noexcept
18169 int f() { return 0; }
18170 int g() noexcept { return 0; }
18172 static_assert(noexcept(f()) == false, "");
18173 static_assert(noexcept(g()) == true, "");
18177 namespace test_constexpr
18180 template < typename CharT >
18181 unsigned long constexpr
18182 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18184 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18187 template < typename CharT >
18188 unsigned long constexpr
18189 strlen_c(const CharT *const s) noexcept
18191 return strlen_c_r(s, 0UL);
18194 static_assert(strlen_c("") == 0UL, "");
18195 static_assert(strlen_c("1") == 1UL, "");
18196 static_assert(strlen_c("example") == 7UL, "");
18197 static_assert(strlen_c("another\0example") == 7UL, "");
18201 namespace test_rvalue_references
18207 static constexpr int value = N;
18210 answer<1> f(int&) { return answer<1>(); }
18211 answer<2> f(const int&) { return answer<2>(); }
18212 answer<3> f(int&&) { return answer<3>(); }
18219 static_assert(decltype(f(i))::value == 1, "");
18220 static_assert(decltype(f(c))::value == 2, "");
18221 static_assert(decltype(f(0))::value == 3, "");
18226 namespace test_uniform_initialization
18231 static const int zero {};
18232 static const int one {1};
18235 static_assert(test::zero == 0, "");
18236 static_assert(test::one == 1, "");
18240 namespace test_lambdas
18246 auto lambda1 = [](){};
18247 auto lambda2 = lambda1;
18255 auto a = [](int i, int j){ return i + j; }(1, 2);
18256 auto b = []() -> int { return '0'; }();
18257 auto c = [=](){ return a + b; }();
18258 auto d = [&](){ return c; }();
18259 auto e = [a, &b](int x) mutable {
18260 const auto identity = [](int y){ return y; };
18261 for (auto i = 0; i < a; ++i)
18263 return x + identity(a + b);
18265 return a + b + c + d + e;
18271 const auto nullary = [](){ return 0; };
18272 const auto unary = [](int x){ return x; };
18273 using nullary_t = decltype(nullary);
18274 using unary_t = decltype(unary);
18275 const auto higher1st = [](nullary_t f){ return f(); };
18276 const auto higher2nd = [unary](nullary_t f1){
18277 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18279 return higher1st(nullary) + higher2nd(nullary)(unary);
18284 namespace test_variadic_templates
18290 template <int N0, int... N1toN>
18291 struct sum<N0, N1toN...>
18293 static constexpr auto value = N0 + sum<N1toN...>::value;
18299 static constexpr auto value = 0;
18302 static_assert(sum<>::value == 0, "");
18303 static_assert(sum<1>::value == 1, "");
18304 static_assert(sum<23>::value == 23, "");
18305 static_assert(sum<1, 2>::value == 3, "");
18306 static_assert(sum<5, 5, 11>::value == 21, "");
18307 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18311 // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18312 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18313 // because of this.
18314 namespace test_template_alias_sfinae
18319 template<typename T>
18320 using member = typename T::member_type;
18322 template<typename T>
18325 template<typename T>
18326 void func(member<T>*) {}
18330 void test() { func<foo>(0); }
18334 } // namespace cxx11
18336 #endif // __cplusplus >= 201103L
18341 if ac_fn_cxx_try_compile "$LINENO"; then :
18342 ax_cv_cxx_compile_cxx11=yes
18344 ax_cv_cxx_compile_cxx11=no
18346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18349 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18350 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18354 if test x$ac_success = xno; then
18355 for alternative in ${ax_cxx_compile_alternatives}; do
18356 switch="-std=gnu++${alternative}"
18357 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18359 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18360 if eval \${$cachevar+:} false; then :
18361 $as_echo_n "(cached) " >&6
18365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366 /* end confdefs.h. */
18369 // If the compiler admits that it is not ready for C++11, why torture it?
18370 // Hopefully, this will speed up the test.
18372 #ifndef __cplusplus
18374 #error "This is not a C++ compiler"
18376 #elif __cplusplus < 201103L
18378 #error "This is not a C++11 compiler"
18385 namespace test_static_assert
18388 template <typename T>
18391 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18396 namespace test_final_override
18401 virtual void f() {}
18404 struct Derived : public Base
18406 virtual void f() override {}
18411 namespace test_double_right_angle_brackets
18414 template < typename T >
18417 typedef check<void> single_type;
18418 typedef check<check<void>> double_type;
18419 typedef check<check<check<void>>> triple_type;
18420 typedef check<check<check<check<void>>>> quadruple_type;
18424 namespace test_decltype
18437 namespace test_type_deduction
18440 template < typename T1, typename T2 >
18443 static const bool value = false;
18446 template < typename T >
18447 struct is_same<T, T>
18449 static const bool value = true;
18452 template < typename T1, typename T2 >
18454 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18460 test(const int c, volatile int v)
18462 static_assert(is_same<int, decltype(0)>::value == true, "");
18463 static_assert(is_same<int, decltype(c)>::value == false, "");
18464 static_assert(is_same<int, decltype(v)>::value == false, "");
18467 auto sumi = ac + av + 'x';
18468 auto sumf = ac + av + 1.0;
18469 static_assert(is_same<int, decltype(ac)>::value == true, "");
18470 static_assert(is_same<int, decltype(av)>::value == true, "");
18471 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18472 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18473 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18474 return (sumf > 0.0) ? sumi : add(c, v);
18479 namespace test_noexcept
18482 int f() { return 0; }
18483 int g() noexcept { return 0; }
18485 static_assert(noexcept(f()) == false, "");
18486 static_assert(noexcept(g()) == true, "");
18490 namespace test_constexpr
18493 template < typename CharT >
18494 unsigned long constexpr
18495 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18497 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18500 template < typename CharT >
18501 unsigned long constexpr
18502 strlen_c(const CharT *const s) noexcept
18504 return strlen_c_r(s, 0UL);
18507 static_assert(strlen_c("") == 0UL, "");
18508 static_assert(strlen_c("1") == 1UL, "");
18509 static_assert(strlen_c("example") == 7UL, "");
18510 static_assert(strlen_c("another\0example") == 7UL, "");
18514 namespace test_rvalue_references
18520 static constexpr int value = N;
18523 answer<1> f(int&) { return answer<1>(); }
18524 answer<2> f(const int&) { return answer<2>(); }
18525 answer<3> f(int&&) { return answer<3>(); }
18532 static_assert(decltype(f(i))::value == 1, "");
18533 static_assert(decltype(f(c))::value == 2, "");
18534 static_assert(decltype(f(0))::value == 3, "");
18539 namespace test_uniform_initialization
18544 static const int zero {};
18545 static const int one {1};
18548 static_assert(test::zero == 0, "");
18549 static_assert(test::one == 1, "");
18553 namespace test_lambdas
18559 auto lambda1 = [](){};
18560 auto lambda2 = lambda1;
18568 auto a = [](int i, int j){ return i + j; }(1, 2);
18569 auto b = []() -> int { return '0'; }();
18570 auto c = [=](){ return a + b; }();
18571 auto d = [&](){ return c; }();
18572 auto e = [a, &b](int x) mutable {
18573 const auto identity = [](int y){ return y; };
18574 for (auto i = 0; i < a; ++i)
18576 return x + identity(a + b);
18578 return a + b + c + d + e;
18584 const auto nullary = [](){ return 0; };
18585 const auto unary = [](int x){ return x; };
18586 using nullary_t = decltype(nullary);
18587 using unary_t = decltype(unary);
18588 const auto higher1st = [](nullary_t f){ return f(); };
18589 const auto higher2nd = [unary](nullary_t f1){
18590 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18592 return higher1st(nullary) + higher2nd(nullary)(unary);
18597 namespace test_variadic_templates
18603 template <int N0, int... N1toN>
18604 struct sum<N0, N1toN...>
18606 static constexpr auto value = N0 + sum<N1toN...>::value;
18612 static constexpr auto value = 0;
18615 static_assert(sum<>::value == 0, "");
18616 static_assert(sum<1>::value == 1, "");
18617 static_assert(sum<23>::value == 23, "");
18618 static_assert(sum<1, 2>::value == 3, "");
18619 static_assert(sum<5, 5, 11>::value == 21, "");
18620 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18624 // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18625 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18626 // because of this.
18627 namespace test_template_alias_sfinae
18632 template<typename T>
18633 using member = typename T::member_type;
18635 template<typename T>
18638 template<typename T>
18639 void func(member<T>*) {}
18643 void test() { func<foo>(0); }
18647 } // namespace cxx11
18649 #endif // __cplusplus >= 201103L
18654 if ac_fn_cxx_try_compile "$LINENO"; then :
18659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18662 eval ac_res=\$$cachevar
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18664 $as_echo "$ac_res" >&6; }
18665 if eval test x\$$cachevar = xyes; then
18667 if test -n "$CXXCPP" ; then
18668 CXXCPP="$CXXCPP $switch"
18676 if test x$ac_success = xno; then
18677 for alternative in ${ax_cxx_compile_alternatives}; do
18678 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
18679 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18681 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18682 if eval \${$cachevar+:} false; then :
18683 $as_echo_n "(cached) " >&6
18687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h. */
18691 // If the compiler admits that it is not ready for C++11, why torture it?
18692 // Hopefully, this will speed up the test.
18694 #ifndef __cplusplus
18696 #error "This is not a C++ compiler"
18698 #elif __cplusplus < 201103L
18700 #error "This is not a C++11 compiler"
18707 namespace test_static_assert
18710 template <typename T>
18713 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18718 namespace test_final_override
18723 virtual void f() {}
18726 struct Derived : public Base
18728 virtual void f() override {}
18733 namespace test_double_right_angle_brackets
18736 template < typename T >
18739 typedef check<void> single_type;
18740 typedef check<check<void>> double_type;
18741 typedef check<check<check<void>>> triple_type;
18742 typedef check<check<check<check<void>>>> quadruple_type;
18746 namespace test_decltype
18759 namespace test_type_deduction
18762 template < typename T1, typename T2 >
18765 static const bool value = false;
18768 template < typename T >
18769 struct is_same<T, T>
18771 static const bool value = true;
18774 template < typename T1, typename T2 >
18776 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18782 test(const int c, volatile int v)
18784 static_assert(is_same<int, decltype(0)>::value == true, "");
18785 static_assert(is_same<int, decltype(c)>::value == false, "");
18786 static_assert(is_same<int, decltype(v)>::value == false, "");
18789 auto sumi = ac + av + 'x';
18790 auto sumf = ac + av + 1.0;
18791 static_assert(is_same<int, decltype(ac)>::value == true, "");
18792 static_assert(is_same<int, decltype(av)>::value == true, "");
18793 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18794 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18795 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18796 return (sumf > 0.0) ? sumi : add(c, v);
18801 namespace test_noexcept
18804 int f() { return 0; }
18805 int g() noexcept { return 0; }
18807 static_assert(noexcept(f()) == false, "");
18808 static_assert(noexcept(g()) == true, "");
18812 namespace test_constexpr
18815 template < typename CharT >
18816 unsigned long constexpr
18817 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18819 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18822 template < typename CharT >
18823 unsigned long constexpr
18824 strlen_c(const CharT *const s) noexcept
18826 return strlen_c_r(s, 0UL);
18829 static_assert(strlen_c("") == 0UL, "");
18830 static_assert(strlen_c("1") == 1UL, "");
18831 static_assert(strlen_c("example") == 7UL, "");
18832 static_assert(strlen_c("another\0example") == 7UL, "");
18836 namespace test_rvalue_references
18842 static constexpr int value = N;
18845 answer<1> f(int&) { return answer<1>(); }
18846 answer<2> f(const int&) { return answer<2>(); }
18847 answer<3> f(int&&) { return answer<3>(); }
18854 static_assert(decltype(f(i))::value == 1, "");
18855 static_assert(decltype(f(c))::value == 2, "");
18856 static_assert(decltype(f(0))::value == 3, "");
18861 namespace test_uniform_initialization
18866 static const int zero {};
18867 static const int one {1};
18870 static_assert(test::zero == 0, "");
18871 static_assert(test::one == 1, "");
18875 namespace test_lambdas
18881 auto lambda1 = [](){};
18882 auto lambda2 = lambda1;
18890 auto a = [](int i, int j){ return i + j; }(1, 2);
18891 auto b = []() -> int { return '0'; }();
18892 auto c = [=](){ return a + b; }();
18893 auto d = [&](){ return c; }();
18894 auto e = [a, &b](int x) mutable {
18895 const auto identity = [](int y){ return y; };
18896 for (auto i = 0; i < a; ++i)
18898 return x + identity(a + b);
18900 return a + b + c + d + e;
18906 const auto nullary = [](){ return 0; };
18907 const auto unary = [](int x){ return x; };
18908 using nullary_t = decltype(nullary);
18909 using unary_t = decltype(unary);
18910 const auto higher1st = [](nullary_t f){ return f(); };
18911 const auto higher2nd = [unary](nullary_t f1){
18912 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18914 return higher1st(nullary) + higher2nd(nullary)(unary);
18919 namespace test_variadic_templates
18925 template <int N0, int... N1toN>
18926 struct sum<N0, N1toN...>
18928 static constexpr auto value = N0 + sum<N1toN...>::value;
18934 static constexpr auto value = 0;
18937 static_assert(sum<>::value == 0, "");
18938 static_assert(sum<1>::value == 1, "");
18939 static_assert(sum<23>::value == 23, "");
18940 static_assert(sum<1, 2>::value == 3, "");
18941 static_assert(sum<5, 5, 11>::value == 21, "");
18942 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18946 // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18947 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18948 // because of this.
18949 namespace test_template_alias_sfinae
18954 template<typename T>
18955 using member = typename T::member_type;
18957 template<typename T>
18960 template<typename T>
18961 void func(member<T>*) {}
18965 void test() { func<foo>(0); }
18969 } // namespace cxx11
18971 #endif // __cplusplus >= 201103L
18976 if ac_fn_cxx_try_compile "$LINENO"; then :
18981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18984 eval ac_res=\$$cachevar
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18986 $as_echo "$ac_res" >&6; }
18987 if eval test x\$$cachevar = xyes; then
18989 if test -n "$CXXCPP" ; then
18990 CXXCPP="$CXXCPP $switch"
18996 if test x$ac_success = xyes; then
19002 ac_cpp='$CPP $CPPFLAGS'
19003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19007 if test x$ax_cxx_compile_cxx11_required = xtrue; then
19008 if test x$ac_success = xno; then
19009 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
19012 if test x$ac_success = xno; then
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
19015 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
19019 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
19025 # Check whether --enable-largefile was given.
19026 if test "${enable_largefile+set}" = set; then :
19027 enableval=$enable_largefile;
19030 if test "$enable_largefile" != no; then
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
19033 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
19034 if ${ac_cv_sys_largefile_CC+:} false; then :
19035 $as_echo_n "(cached) " >&6
19037 ac_cv_sys_largefile_CC=no
19038 if test "$GCC" != yes; then
19041 # IRIX 6.2 and later do not support large files by default,
19042 # so use the C compiler's -n32 option if that helps.
19043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19044 /* end confdefs.h. */
19045 #include <sys/types.h>
19046 /* Check that off_t can represent 2**63 - 1 correctly.
19047 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19048 since some C++ compilers masquerading as C compilers
19049 incorrectly reject 9223372036854775807. */
19050 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19051 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19052 && LARGE_OFF_T % 2147483647 == 1)
19062 if ac_fn_c_try_compile "$LINENO"; then :
19065 rm -f core conftest.err conftest.$ac_objext
19067 if ac_fn_c_try_compile "$LINENO"; then :
19068 ac_cv_sys_largefile_CC=' -n32'; break
19070 rm -f core conftest.err conftest.$ac_objext
19074 rm -f conftest.$ac_ext
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
19078 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
19079 if test "$ac_cv_sys_largefile_CC" != no; then
19080 CC=$CC$ac_cv_sys_largefile_CC
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19084 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19085 if ${ac_cv_sys_file_offset_bits+:} false; then :
19086 $as_echo_n "(cached) " >&6
19089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19090 /* end confdefs.h. */
19091 #include <sys/types.h>
19092 /* Check that off_t can represent 2**63 - 1 correctly.
19093 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19094 since some C++ compilers masquerading as C compilers
19095 incorrectly reject 9223372036854775807. */
19096 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19097 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19098 && LARGE_OFF_T % 2147483647 == 1)
19108 if ac_fn_c_try_compile "$LINENO"; then :
19109 ac_cv_sys_file_offset_bits=no; break
19111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h. */
19114 #define _FILE_OFFSET_BITS 64
19115 #include <sys/types.h>
19116 /* Check that off_t can represent 2**63 - 1 correctly.
19117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19118 since some C++ compilers masquerading as C compilers
19119 incorrectly reject 9223372036854775807. */
19120 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19122 && LARGE_OFF_T % 2147483647 == 1)
19132 if ac_fn_c_try_compile "$LINENO"; then :
19133 ac_cv_sys_file_offset_bits=64; break
19135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19136 ac_cv_sys_file_offset_bits=unknown
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
19141 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
19142 case $ac_cv_sys_file_offset_bits in #(
19145 cat >>confdefs.h <<_ACEOF
19146 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19151 if test $ac_cv_sys_file_offset_bits = unknown; then
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
19153 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19154 if ${ac_cv_sys_large_files+:} false; then :
19155 $as_echo_n "(cached) " >&6
19158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19159 /* end confdefs.h. */
19160 #include <sys/types.h>
19161 /* Check that off_t can represent 2**63 - 1 correctly.
19162 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19163 since some C++ compilers masquerading as C compilers
19164 incorrectly reject 9223372036854775807. */
19165 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19166 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19167 && LARGE_OFF_T % 2147483647 == 1)
19177 if ac_fn_c_try_compile "$LINENO"; then :
19178 ac_cv_sys_large_files=no; break
19180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19182 /* end confdefs.h. */
19183 #define _LARGE_FILES 1
19184 #include <sys/types.h>
19185 /* Check that off_t can represent 2**63 - 1 correctly.
19186 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19187 since some C++ compilers masquerading as C compilers
19188 incorrectly reject 9223372036854775807. */
19189 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19190 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19191 && LARGE_OFF_T % 2147483647 == 1)
19201 if ac_fn_c_try_compile "$LINENO"; then :
19202 ac_cv_sys_large_files=1; break
19204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19205 ac_cv_sys_large_files=unknown
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
19210 $as_echo "$ac_cv_sys_large_files" >&6; }
19211 case $ac_cv_sys_large_files in #(
19214 cat >>confdefs.h <<_ACEOF
19215 #define _LARGE_FILES $ac_cv_sys_large_files
19232 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19233 if test -n "$ac_tool_prefix"; then
19234 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19235 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19237 $as_echo_n "checking for $ac_word... " >&6; }
19238 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19239 $as_echo_n "(cached) " >&6
19241 case $PKG_CONFIG in
19243 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19247 for as_dir in $PATH
19250 test -z "$as_dir" && as_dir=.
19251 for ac_exec_ext in '' $ac_executable_extensions; do
19252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19253 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19264 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19265 if test -n "$PKG_CONFIG"; then
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19267 $as_echo "$PKG_CONFIG" >&6; }
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19270 $as_echo "no" >&6; }
19275 if test -z "$ac_cv_path_PKG_CONFIG"; then
19276 ac_pt_PKG_CONFIG=$PKG_CONFIG
19277 # Extract the first word of "pkg-config", so it can be a program name with args.
19278 set dummy pkg-config; ac_word=$2
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19280 $as_echo_n "checking for $ac_word... " >&6; }
19281 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19282 $as_echo_n "(cached) " >&6
19284 case $ac_pt_PKG_CONFIG in
19286 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19290 for as_dir in $PATH
19293 test -z "$as_dir" && as_dir=.
19294 for ac_exec_ext in '' $ac_executable_extensions; do
19295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19296 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19307 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19308 if test -n "$ac_pt_PKG_CONFIG"; then
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19310 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19313 $as_echo "no" >&6; }
19316 if test "x$ac_pt_PKG_CONFIG" = x; then
19319 case $cross_compiling:$ac_tool_warned in
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19323 ac_tool_warned=yes ;;
19325 PKG_CONFIG=$ac_pt_PKG_CONFIG
19328 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19332 if test -n "$PKG_CONFIG"; then
19333 _pkg_min_version=0.28
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19335 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19336 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19338 $as_echo "yes" >&6; }
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19341 $as_echo "no" >&6; }
19346 RAGEL=${RAGEL-"${am_missing_run}ragel"}
19349 GIT=${GIT-"${am_missing_run}git"}
19368 HB_LIBTOOL_VERSION_INFO=30400:0:30400
19372 # Check whether --with-libstdc++ was given.
19373 if test "${with_libstdc__+set}" = set; then :
19374 withval=$with_libstdc__; with_libstdcxx=$withval
19379 if test "x$with_libstdcxx" = "xyes"; then
19380 WITH_LIBSTDCXX_TRUE=
19381 WITH_LIBSTDCXX_FALSE='#'
19383 WITH_LIBSTDCXX_TRUE='#'
19384 WITH_LIBSTDCXX_FALSE=
19394 gtk_doc_requires="gtk-doc >= 1.15"
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
19396 $as_echo_n "checking for gtk-doc... " >&6; }
19397 if test -n "$PKG_CONFIG" && \
19398 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
19399 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
19401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19402 test $ac_status = 0; }; then
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
19408 $as_echo "$have_gtk_doc" >&6; }
19410 if test "$have_gtk_doc" = "no"; then
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19412 You will not be able to create source packages with 'make dist'
19413 because $gtk_doc_requires is not found." >&5
19414 $as_echo "$as_me: WARNING:
19415 You will not be able to create source packages with 'make dist'
19416 because $gtk_doc_requires is not found." >&2;}
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_prog_GTKDOC_CHECK+:} false; then :
19424 $as_echo_n "(cached) " >&6
19426 if test -n "$GTKDOC_CHECK"; then
19427 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
19429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19430 for as_dir in $PATH
19433 test -z "$as_dir" && as_dir=.
19434 for ac_exec_ext in '' $ac_executable_extensions; do
19435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19436 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
19437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19446 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
19447 if test -n "$GTKDOC_CHECK"; then
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
19449 $as_echo "$GTKDOC_CHECK" >&6; }
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19452 $as_echo "no" >&6; }
19456 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19457 set dummy gtkdoc-check; ac_word=$2
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19459 $as_echo_n "checking for $ac_word... " >&6; }
19460 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
19461 $as_echo_n "(cached) " >&6
19463 case $GTKDOC_CHECK_PATH in
19465 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
19468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19469 for as_dir in $PATH
19472 test -z "$as_dir" && as_dir=.
19473 for ac_exec_ext in '' $ac_executable_extensions; do
19474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19475 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
19476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19486 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
19487 if test -n "$GTKDOC_CHECK_PATH"; then
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
19489 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19492 $as_echo "no" >&6; }
19496 for ac_prog in gtkdoc-rebase
19498 # Extract the first word of "$ac_prog", so it can be a program name with args.
19499 set dummy $ac_prog; ac_word=$2
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19501 $as_echo_n "checking for $ac_word... " >&6; }
19502 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
19503 $as_echo_n "(cached) " >&6
19505 case $GTKDOC_REBASE in
19507 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
19510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19511 for as_dir in $PATH
19514 test -z "$as_dir" && as_dir=.
19515 for ac_exec_ext in '' $ac_executable_extensions; do
19516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19517 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
19518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19528 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
19529 if test -n "$GTKDOC_REBASE"; then
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
19531 $as_echo "$GTKDOC_REBASE" >&6; }
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19534 $as_echo "no" >&6; }
19538 test -n "$GTKDOC_REBASE" && break
19540 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
19542 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
19543 set dummy gtkdoc-mkpdf; ac_word=$2
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19545 $as_echo_n "checking for $ac_word... " >&6; }
19546 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
19547 $as_echo_n "(cached) " >&6
19549 case $GTKDOC_MKPDF in
19551 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
19554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19555 for as_dir in $PATH
19558 test -z "$as_dir" && as_dir=.
19559 for ac_exec_ext in '' $ac_executable_extensions; do
19560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19561 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
19562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19572 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
19573 if test -n "$GTKDOC_MKPDF"; then
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
19575 $as_echo "$GTKDOC_MKPDF" >&6; }
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19578 $as_echo "no" >&6; }
19584 # Check whether --with-html-dir was given.
19585 if test "${with_html_dir+set}" = set; then :
19586 withval=$with_html_dir;
19588 with_html_dir='${datadir}/gtk-doc/html'
19591 HTML_DIR="$with_html_dir"
19594 # Check whether --enable-gtk-doc was given.
19595 if test "${enable_gtk_doc+set}" = set; then :
19596 enableval=$enable_gtk_doc;
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
19603 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
19605 $as_echo "$enable_gtk_doc" >&6; }
19607 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
19609 You must have $gtk_doc_requires installed to build documentation for
19610 $PACKAGE_NAME. Please install gtk-doc or disable building the
19611 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
19614 if test "x$PACKAGE_NAME" != "xglib"; then
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
19618 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
19620 if test -n "$GTKDOC_DEPS_CFLAGS"; then
19621 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
19622 elif test -n "$PKG_CONFIG"; then
19623 if test -n "$PKG_CONFIG" && \
19624 { { $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
19625 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
19627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19628 test $ac_status = 0; }; then
19629 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
19630 test "x$?" != "x0" && pkg_failed=yes
19637 if test -n "$GTKDOC_DEPS_LIBS"; then
19638 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
19639 elif test -n "$PKG_CONFIG"; then
19640 if test -n "$PKG_CONFIG" && \
19641 { { $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
19642 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
19644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19645 test $ac_status = 0; }; then
19646 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
19647 test "x$?" != "x0" && pkg_failed=yes
19657 if test $pkg_failed = yes; then
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19659 $as_echo "no" >&6; }
19661 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19662 _pkg_short_errors_supported=yes
19664 _pkg_short_errors_supported=no
19666 if test $_pkg_short_errors_supported = yes; then
19667 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`
19669 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
19671 # Put the nasty error message in config.log where it belongs
19672 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
19675 elif test $pkg_failed = untried; then
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19677 $as_echo "no" >&6; }
19680 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
19681 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19683 $as_echo "yes" >&6; }
19688 # Check whether --enable-gtk-doc-html was given.
19689 if test "${enable_gtk_doc_html+set}" = set; then :
19690 enableval=$enable_gtk_doc_html;
19692 enable_gtk_doc_html=yes
19695 # Check whether --enable-gtk-doc-pdf was given.
19696 if test "${enable_gtk_doc_pdf+set}" = set; then :
19697 enableval=$enable_gtk_doc_pdf;
19699 enable_gtk_doc_pdf=no
19703 if test -z "$GTKDOC_MKPDF"; then
19704 enable_gtk_doc_pdf=no
19707 if test -z "$AM_DEFAULT_VERBOSITY"; then
19708 AM_DEFAULT_VERBOSITY=1
19712 if test x$have_gtk_doc = xyes; then
19714 HAVE_GTK_DOC_FALSE='#'
19716 HAVE_GTK_DOC_TRUE='#'
19717 HAVE_GTK_DOC_FALSE=
19720 if test x$enable_gtk_doc = xyes; then
19721 ENABLE_GTK_DOC_TRUE=
19722 ENABLE_GTK_DOC_FALSE='#'
19724 ENABLE_GTK_DOC_TRUE='#'
19725 ENABLE_GTK_DOC_FALSE=
19728 if test x$enable_gtk_doc_html = xyes; then
19729 GTK_DOC_BUILD_HTML_TRUE=
19730 GTK_DOC_BUILD_HTML_FALSE='#'
19732 GTK_DOC_BUILD_HTML_TRUE='#'
19733 GTK_DOC_BUILD_HTML_FALSE=
19736 if test x$enable_gtk_doc_pdf = xyes; then
19737 GTK_DOC_BUILD_PDF_TRUE=
19738 GTK_DOC_BUILD_PDF_FALSE='#'
19740 GTK_DOC_BUILD_PDF_TRUE='#'
19741 GTK_DOC_BUILD_PDF_FALSE=
19744 if test -n "$LIBTOOL"; then
19745 GTK_DOC_USE_LIBTOOL_TRUE=
19746 GTK_DOC_USE_LIBTOOL_FALSE='#'
19748 GTK_DOC_USE_LIBTOOL_TRUE='#'
19749 GTK_DOC_USE_LIBTOOL_FALSE=
19752 if test -n "$GTKDOC_REBASE"; then
19753 GTK_DOC_USE_REBASE_TRUE=
19754 GTK_DOC_USE_REBASE_FALSE='#'
19756 GTK_DOC_USE_REBASE_TRUE='#'
19757 GTK_DOC_USE_REBASE_FALSE=
19761 if test "x$enable_gtk_doc" = xyes; then
19766 # Functions and headers
19767 for ac_func in atexit mprotect sysconf getpagesize mmap isatty newlocale uselocale
19769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19770 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19771 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19772 cat >>confdefs.h <<_ACEOF
19773 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19779 for ac_header in unistd.h sys/mman.h stdbool.h xlocale.h
19781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19782 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19783 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19784 cat >>confdefs.h <<_ACEOF
19785 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19795 # The cast to long int works around a bug in the HP C Compiler,
19796 # see AC_CHECK_SIZEOF for more information.
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
19798 $as_echo_n "checking alignment of struct{char;}... " >&6; }
19799 if ${ac_cv_alignof_struct_char__+:} false; then :
19800 $as_echo_n "(cached) " >&6
19802 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__" "$ac_includes_default
19804 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
19806 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
19809 if test "$ac_cv_type_struct_char__" = yes; then
19810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19812 as_fn_error 77 "cannot compute alignment of struct{char;}
19813 See \`config.log' for more details" "$LINENO" 5; }
19815 ac_cv_alignof_struct_char__=0
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
19821 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
19825 cat >>confdefs.h <<_ACEOF
19826 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
19830 if test "x$GCC" = "xyes"; then
19832 # Make symbols link locally
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Bsymbolic-functions" >&5
19834 $as_echo_n "checking whether the linker accepts -Bsymbolic-functions... " >&6; }
19835 if ${ax_cv_check_ldflags___Bsymbolic_functions+:} false; then :
19836 $as_echo_n "(cached) " >&6
19839 ax_check_save_flags=$LDFLAGS
19840 LDFLAGS="$LDFLAGS -Bsymbolic-functions"
19841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19842 /* end confdefs.h. */
19852 if ac_fn_c_try_link "$LINENO"; then :
19853 ax_cv_check_ldflags___Bsymbolic_functions=yes
19855 ax_cv_check_ldflags___Bsymbolic_functions=no
19857 rm -f core conftest.err conftest.$ac_objext \
19858 conftest$ac_exeext conftest.$ac_ext
19859 LDFLAGS=$ax_check_save_flags
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Bsymbolic_functions" >&5
19862 $as_echo "$ax_cv_check_ldflags___Bsymbolic_functions" >&6; }
19863 if test "x$ax_cv_check_ldflags___Bsymbolic_functions" = xyes; then :
19864 LDFLAGS="$LDFLAGS -Bsymbolic-functions"
19870 # Make it possible to not link to libstdc++
19871 # No threadsafe statics in C++ as we do it ourselves.
19872 # We don't use these features, so it's safe to disable them
19873 # even in the cases where we DO link to libstdc++.
19874 # Put -fno-rtti before $CXXFLAGS such that users can re-enable it
19875 # by overriding CXXFLAGS.
19876 CXXFLAGS="-fno-rtti $CXXFLAGS -fno-exceptions -fno-threadsafe-statics"
19882 # Hide inline methods
19883 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19889 if test "x$ac_cv_alignof_struct_char__" != x1; then
19890 # Request byte alignment
19891 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
19897 if test "x$GCC" = "xyes"; then
19907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
19908 $as_echo_n "checking for native Win32... " >&6; }
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
19915 $as_echo "$hb_os_win32" >&6; }
19916 if test "$hb_os_win32" = "yes"; then
19931 ac_cpp='$CPP $CPPFLAGS'
19932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19938 # We used to check for pthread.h first, but this fails if pthread.h
19939 # requires special compiler flags (e.g. on Tru64 or Sequent).
19940 # It gets checked for in the link test anyway.
19942 # First of all, check if the user has set any of the PTHREAD_LIBS,
19943 # etcetera environment variables, and if threads linking works using
19945 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19946 ax_pthread_save_CC="$CC"
19947 ax_pthread_save_CFLAGS="$CFLAGS"
19948 ax_pthread_save_LIBS="$LIBS"
19949 if test "x$PTHREAD_CC" != "x"; then :
19952 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19953 LIBS="$PTHREAD_LIBS $LIBS"
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19955 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19957 /* end confdefs.h. */
19959 /* Override any GCC internal prototype to avoid an error.
19960 Use char because int might match the return type of a GCC
19961 builtin and then its argument prototype would still apply. */
19965 char pthread_join ();
19969 return pthread_join ();
19974 if ac_fn_c_try_link "$LINENO"; then :
19977 rm -f core conftest.err conftest.$ac_objext \
19978 conftest$ac_exeext conftest.$ac_ext
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19980 $as_echo "$ax_pthread_ok" >&6; }
19981 if test "x$ax_pthread_ok" = "xno"; then
19985 CC="$ax_pthread_save_CC"
19986 CFLAGS="$ax_pthread_save_CFLAGS"
19987 LIBS="$ax_pthread_save_LIBS"
19990 # We must check for the threads library under a number of different
19991 # names; the ordering is very important because some systems
19992 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19993 # libraries is broken (non-POSIX).
19995 # Create a list of thread flags to try. Items starting with a "-" are
19996 # C compiler flags, and other items are library names, except for "none"
19997 # which indicates that we try without any flags at all, and "pthread-config"
19998 # which is a program returning the flags for the Pth emulation library.
20000 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20002 # The ordering *is* (sometimes) important. Some notes on the
20003 # individual items follow:
20005 # pthreads: AIX (must check this before -lpthread)
20006 # none: in case threads are in libc; should be tried before -Kthread and
20007 # other compiler flags to prevent continual compiler warnings
20008 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20009 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
20010 # (Note: HP C rejects this with "bad form for `-t' option")
20011 # -pthreads: Solaris/gcc (Note: HP C also rejects)
20012 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20013 # doesn't hurt to check since this sometimes defines pthreads and
20014 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
20015 # is present but should not be used directly; and before -mthreads,
20016 # because the compiler interprets this as "-mt" + "-hreads")
20017 # -mthreads: Mingw32/gcc, Lynx/gcc
20018 # pthread: Linux, etcetera
20019 # --thread-safe: KAI C++
20020 # pthread-config: use pthread-config program (for GNU Pth library)
20026 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20027 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20029 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
20034 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
20035 # multi-threading and also sets -lpthread."
20037 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
20042 # IBM z/OS requires a feature-test macro to be defined in order to
20043 # enable POSIX threads at all, so give the user a hint if this is
20044 # not set. (We don't define these ourselves, as they can affect
20045 # other portions of the system API in unpredictable ways.)
20047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20048 /* end confdefs.h. */
20050 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
20051 AX_PTHREAD_ZOS_MISSING
20055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20056 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
20058 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
20066 # On Solaris (at least, for some versions), libc contains stubbed
20067 # (non-functional) versions of the pthreads routines, so link-based
20068 # tests will erroneously succeed. (N.B.: The stubs are missing
20069 # pthread_cleanup_push, or rather a function called by this macro,
20070 # so we could check for that, but who knows whether they'll stub
20071 # that too in a future libc.) So we'll check first for the
20072 # standard Solaris way of linking pthreads (-mt -lpthread).
20074 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
20078 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
20080 if test "x$GCC" = "xyes"; then :
20081 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
20084 # The presence of a feature test macro requesting re-entrant function
20085 # definitions is, on some systems, a strong hint that pthreads support is
20086 # correctly enabled
20089 darwin* | hpux* | linux* | osf* | solaris*)
20090 ax_pthread_check_macro="_REENTRANT"
20094 ax_pthread_check_macro="_THREAD_SAFE"
20098 ax_pthread_check_macro="--"
20101 if test "x$ax_pthread_check_macro" = "x--"; then :
20102 ax_pthread_check_cond=0
20104 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
20107 # Are we compiling with Clang?
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
20110 $as_echo_n "checking whether $CC is Clang... " >&6; }
20111 if ${ax_cv_PTHREAD_CLANG+:} false; then :
20112 $as_echo_n "(cached) " >&6
20114 ax_cv_PTHREAD_CLANG=no
20115 # Note that Autoconf sets GCC=yes for Clang as well as GCC
20116 if test "x$GCC" = "xyes"; then
20117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20118 /* end confdefs.h. */
20119 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
20120 # if defined(__clang__) && defined(__llvm__)
20121 AX_PTHREAD_CC_IS_CLANG
20125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20126 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
20127 ax_cv_PTHREAD_CLANG=yes
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
20135 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
20136 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
20138 ax_pthread_clang_warning=no
20140 # Clang needs special handling, because older versions handle the -pthread
20141 # option in a rather... idiosyncratic way
20143 if test "x$ax_pthread_clang" = "xyes"; then
20145 # Clang takes -pthread; it has never supported any other flag
20147 # (Note 1: This will need to be revisited if a system that Clang
20148 # supports has POSIX threads in a separate library. This tends not
20149 # to be the way of modern systems, but it's conceivable.)
20151 # (Note 2: On some systems, notably Darwin, -pthread is not needed
20152 # to get POSIX threads support; the API is always present and
20153 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
20154 # -pthread does define _REENTRANT, and while the Darwin headers
20155 # ignore this macro, third-party headers might not.)
20157 PTHREAD_CFLAGS="-pthread"
20162 # However, older versions of Clang make a point of warning the user
20163 # that, in an invocation where only linking and no compilation is
20164 # taking place, the -pthread option has no effect ("argument unused
20165 # during compilation"). They expect -pthread to be passed in only
20166 # when source code is being compiled.
20168 # Problem is, this is at odds with the way Automake and most other
20169 # C build frameworks function, which is that the same flags used in
20170 # compilation (CFLAGS) are also used in linking. Many systems
20171 # supported by AX_PTHREAD require exactly this for POSIX threads
20172 # support, and in fact it is often not straightforward to specify a
20173 # flag that is used only in the compilation phase and not in
20174 # linking. Such a scenario is extremely rare in practice.
20176 # Even though use of the -pthread flag in linking would only print
20177 # a warning, this can be a nuisance for well-run software projects
20178 # that build with -Werror. So if the active version of Clang has
20179 # this misfeature, we search for an option to squash it.
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
20182 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
20183 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
20184 $as_echo_n "(cached) " >&6
20186 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
20187 # Create an alternate version of $ac_link that compiles and
20188 # links in two steps (.c -> .o, .o -> exe) instead of one
20189 # (.c -> exe), because the warning occurs only in the second
20191 ax_pthread_save_ac_link="$ac_link"
20192 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
20193 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
20194 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
20195 ax_pthread_save_CFLAGS="$CFLAGS"
20196 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
20197 if test "x$ax_pthread_try" = "xunknown"; then :
20200 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
20201 ac_link="$ax_pthread_save_ac_link"
20202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20203 /* end confdefs.h. */
20204 int main(void){return 0;}
20206 if ac_fn_c_try_link "$LINENO"; then :
20207 ac_link="$ax_pthread_2step_ac_link"
20208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20209 /* end confdefs.h. */
20210 int main(void){return 0;}
20212 if ac_fn_c_try_link "$LINENO"; then :
20215 rm -f core conftest.err conftest.$ac_objext \
20216 conftest$ac_exeext conftest.$ac_ext
20219 rm -f core conftest.err conftest.$ac_objext \
20220 conftest$ac_exeext conftest.$ac_ext
20222 ac_link="$ax_pthread_save_ac_link"
20223 CFLAGS="$ax_pthread_save_CFLAGS"
20224 if test "x$ax_pthread_try" = "x"; then :
20227 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
20231 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
20233 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
20235 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
20238 fi # $ax_pthread_clang = yes
20240 if test "x$ax_pthread_ok" = "xno"; then
20241 for ax_pthread_try_flag in $ax_pthread_flags; do
20243 case $ax_pthread_try_flag in
20245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20246 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
20251 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
20252 PTHREAD_CFLAGS="-mt"
20253 PTHREAD_LIBS="-lpthread"
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
20258 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
20259 PTHREAD_CFLAGS="$ax_pthread_try_flag"
20263 # Extract the first word of "pthread-config", so it can be a program name with args.
20264 set dummy pthread-config; ac_word=$2
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20266 $as_echo_n "checking for $ac_word... " >&6; }
20267 if ${ac_cv_prog_ax_pthread_config+:} false; then :
20268 $as_echo_n "(cached) " >&6
20270 if test -n "$ax_pthread_config"; then
20271 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
20273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20274 for as_dir in $PATH
20277 test -z "$as_dir" && as_dir=.
20278 for ac_exec_ext in '' $ac_executable_extensions; do
20279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20280 ac_cv_prog_ax_pthread_config="yes"
20281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20288 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
20291 ax_pthread_config=$ac_cv_prog_ax_pthread_config
20292 if test -n "$ax_pthread_config"; then
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20294 $as_echo "$ax_pthread_config" >&6; }
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20297 $as_echo "no" >&6; }
20301 if test "x$ax_pthread_config" = "xno"; then :
20304 PTHREAD_CFLAGS="`pthread-config --cflags`"
20305 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
20310 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
20311 PTHREAD_LIBS="-l$ax_pthread_try_flag"
20315 ax_pthread_save_CFLAGS="$CFLAGS"
20316 ax_pthread_save_LIBS="$LIBS"
20317 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20318 LIBS="$PTHREAD_LIBS $LIBS"
20320 # Check for various functions. We must include pthread.h,
20321 # since some functions may be macros. (On the Sequent, we
20322 # need a special flag -Kthread to make this header compile.)
20323 # We check for pthread_join because it is in -lpthread on IRIX
20324 # while pthread_create is in libc. We check for pthread_attr_init
20325 # due to DEC craziness with -lpthreads. We check for
20326 # pthread_cleanup_push because it is one of the few pthread
20327 # functions on Solaris that doesn't have a non-functional libc stub.
20328 # We try pthread_create on general principles.
20330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20331 /* end confdefs.h. */
20332 #include <pthread.h>
20333 # if $ax_pthread_check_cond
20334 # error "$ax_pthread_check_macro must be defined"
20336 static void routine(void *a) { a = 0; }
20337 static void *start_routine(void *a) { return a; }
20341 pthread_t th; pthread_attr_t attr;
20342 pthread_create(&th, 0, start_routine, 0);
20343 pthread_join(th, 0);
20344 pthread_attr_init(&attr);
20345 pthread_cleanup_push(routine, 0);
20346 pthread_cleanup_pop(0) /* ; */
20351 if ac_fn_c_try_link "$LINENO"; then :
20354 rm -f core conftest.err conftest.$ac_objext \
20355 conftest$ac_exeext conftest.$ac_ext
20357 CFLAGS="$ax_pthread_save_CFLAGS"
20358 LIBS="$ax_pthread_save_LIBS"
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20361 $as_echo "$ax_pthread_ok" >&6; }
20362 if test "x$ax_pthread_ok" = "xyes"; then :
20371 # Various other checks:
20372 if test "x$ax_pthread_ok" = "xyes"; then
20373 ax_pthread_save_CFLAGS="$CFLAGS"
20374 ax_pthread_save_LIBS="$LIBS"
20375 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20376 LIBS="$PTHREAD_LIBS $LIBS"
20378 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20380 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20381 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
20382 $as_echo_n "(cached) " >&6
20384 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
20385 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20387 /* end confdefs.h. */
20388 #include <pthread.h>
20392 int attr = $ax_pthread_attr; return attr /* ; */
20397 if ac_fn_c_try_link "$LINENO"; then :
20398 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
20400 rm -f core conftest.err conftest.$ac_objext \
20401 conftest$ac_exeext conftest.$ac_ext
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
20406 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
20407 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
20408 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
20409 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
20411 cat >>confdefs.h <<_ACEOF
20412 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
20415 ax_pthread_joinable_attr_defined=yes
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
20420 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
20421 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
20422 $as_echo_n "(cached) " >&6
20424 ax_cv_PTHREAD_SPECIAL_FLAGS=no
20427 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
20433 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
20434 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
20435 test "x$ax_pthread_special_flags_added" != "xyes"; then :
20436 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
20437 ax_pthread_special_flags_added=yes
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20441 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20442 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
20443 $as_echo_n "(cached) " >&6
20445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20446 /* end confdefs.h. */
20447 #include <pthread.h>
20451 int i = PTHREAD_PRIO_INHERIT;
20456 if ac_fn_c_try_link "$LINENO"; then :
20457 ax_cv_PTHREAD_PRIO_INHERIT=yes
20459 ax_cv_PTHREAD_PRIO_INHERIT=no
20461 rm -f core conftest.err conftest.$ac_objext \
20462 conftest$ac_exeext conftest.$ac_ext
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20466 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20467 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
20468 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
20470 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20472 ax_pthread_prio_inherit_defined=yes
20476 CFLAGS="$ax_pthread_save_CFLAGS"
20477 LIBS="$ax_pthread_save_LIBS"
20479 # More AIX lossage: compile with *_r variant
20480 if test "x$GCC" != "xyes"; then
20484 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20485 #handle absolute path differently from PATH based program lookup
20488 if as_fn_executable_p ${CC}_r; then :
20489 PTHREAD_CC="${CC}_r"
20492 for ac_prog in ${CC}_r
20494 # Extract the first word of "$ac_prog", so it can be a program name with args.
20495 set dummy $ac_prog; ac_word=$2
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20497 $as_echo_n "checking for $ac_word... " >&6; }
20498 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20499 $as_echo_n "(cached) " >&6
20501 if test -n "$PTHREAD_CC"; then
20502 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20505 for as_dir in $PATH
20508 test -z "$as_dir" && as_dir=.
20509 for ac_exec_ext in '' $ac_executable_extensions; do
20510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20511 ac_cv_prog_PTHREAD_CC="$ac_prog"
20512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20521 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20522 if test -n "$PTHREAD_CC"; then
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20524 $as_echo "$PTHREAD_CC" >&6; }
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20527 $as_echo "no" >&6; }
20531 test -n "$PTHREAD_CC" && break
20533 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20544 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20550 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20551 if test "x$ax_pthread_ok" = "xyes"; then
20559 ac_cpp='$CPP $CPPFLAGS'
20560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20565 if $have_pthread; then
20567 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20570 if $have_pthread; then
20572 HAVE_PTHREAD_FALSE='#'
20574 HAVE_PTHREAD_TRUE='#'
20575 HAVE_PTHREAD_FALSE=
20581 # Check whether --with-glib was given.
20582 if test "${with_glib+set}" = set; then :
20583 withval=$with_glib;
20589 GLIB_DEPS="glib-2.0 >= 2.19.1"
20591 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
20595 $as_echo_n "checking for GLIB... " >&6; }
20597 if test -n "$GLIB_CFLAGS"; then
20598 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
20599 elif test -n "$PKG_CONFIG"; then
20600 if test -n "$PKG_CONFIG" && \
20601 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
20602 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
20604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20605 test $ac_status = 0; }; then
20606 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
20607 test "x$?" != "x0" && pkg_failed=yes
20614 if test -n "$GLIB_LIBS"; then
20615 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
20616 elif test -n "$PKG_CONFIG"; then
20617 if test -n "$PKG_CONFIG" && \
20618 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
20619 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
20621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20622 test $ac_status = 0; }; then
20623 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
20624 test "x$?" != "x0" && pkg_failed=yes
20634 if test $pkg_failed = yes; then
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20636 $as_echo "no" >&6; }
20638 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20639 _pkg_short_errors_supported=yes
20641 _pkg_short_errors_supported=no
20643 if test $_pkg_short_errors_supported = yes; then
20644 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
20646 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
20648 # Put the nasty error message in config.log where it belongs
20649 echo "$GLIB_PKG_ERRORS" >&5
20652 elif test $pkg_failed = untried; then
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20654 $as_echo "no" >&6; }
20657 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
20658 GLIB_LIBS=$pkg_cv_GLIB_LIBS
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20660 $as_echo "yes" >&6; }
20664 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
20665 as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
20667 if $have_glib; then
20669 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
20672 if $have_glib; then
20674 HAVE_GLIB_FALSE='#'
20683 # Check whether --with-gobject was given.
20684 if test "${with_gobject+set}" = set; then :
20685 withval=$with_gobject;
20691 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
20695 $as_echo_n "checking for GOBJECT... " >&6; }
20697 if test -n "$GOBJECT_CFLAGS"; then
20698 pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
20699 elif test -n "$PKG_CONFIG"; then
20700 if test -n "$PKG_CONFIG" && \
20701 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
20702 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
20704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20705 test $ac_status = 0; }; then
20706 pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
20707 test "x$?" != "x0" && pkg_failed=yes
20714 if test -n "$GOBJECT_LIBS"; then
20715 pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
20716 elif test -n "$PKG_CONFIG"; then
20717 if test -n "$PKG_CONFIG" && \
20718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
20719 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
20721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20722 test $ac_status = 0; }; then
20723 pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
20724 test "x$?" != "x0" && pkg_failed=yes
20734 if test $pkg_failed = yes; then
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20736 $as_echo "no" >&6; }
20738 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20739 _pkg_short_errors_supported=yes
20741 _pkg_short_errors_supported=no
20743 if test $_pkg_short_errors_supported = yes; then
20744 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
20746 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
20748 # Put the nasty error message in config.log where it belongs
20749 echo "$GOBJECT_PKG_ERRORS" >&5
20752 elif test $pkg_failed = untried; then
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20754 $as_echo "no" >&6; }
20757 GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
20758 GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20760 $as_echo "yes" >&6; }
20764 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
20765 as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
20767 if $have_gobject; then
20769 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
20771 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
20774 if $have_gobject; then
20776 HAVE_GOBJECT_FALSE='#'
20778 HAVE_GOBJECT_TRUE='#'
20779 HAVE_GOBJECT_FALSE=
20786 # Gobject-Introspection
20787 have_introspection=false
20789 if $have_gobject; then
20793 # Check whether --enable-introspection was given.
20794 if test "${enable_introspection+set}" = set; then :
20795 enableval=$enable_introspection;
20797 enable_introspection=auto
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
20802 $as_echo_n "checking for gobject-introspection... " >&6; }
20804 case $enable_introspection in #(
20806 found_introspection="no (disabled, use --enable-introspection to enable)"
20809 if test -n "$PKG_CONFIG" && \
20810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
20811 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
20813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20814 test $ac_status = 0; }; then
20817 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
20819 if test -n "$PKG_CONFIG" && \
20820 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20821 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20824 test $ac_status = 0; }; then
20825 found_introspection=yes
20827 as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
20831 if test -n "$PKG_CONFIG" && \
20832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20833 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20836 test $ac_status = 0; }; then
20837 found_introspection=yes
20839 found_introspection=no
20841 enable_introspection=$found_introspection
20844 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
20848 $as_echo "$found_introspection" >&6; }
20851 EXP_VAR=_GI_EXP_DATADIR
20852 FROM_VAR="$datadir"
20854 prefix_save=$prefix
20855 exec_prefix_save=$exec_prefix
20857 if test "x$prefix" = "xNONE"; then
20858 prefix="$ac_default_prefix"
20860 if test "x$exec_prefix" = "xNONE"; then
20861 exec_prefix=$prefix
20864 full_var="$FROM_VAR"
20866 new_full_var="`eval echo $full_var`"
20867 if test "x$new_full_var" = "x$full_var"; then break; fi
20868 full_var=$new_full_var
20871 full_var=$new_full_var
20872 _GI_EXP_DATADIR="$full_var"
20875 prefix=$prefix_save
20876 exec_prefix=$exec_prefix_save
20879 EXP_VAR=_GI_EXP_LIBDIR
20882 prefix_save=$prefix
20883 exec_prefix_save=$exec_prefix
20885 if test "x$prefix" = "xNONE"; then
20886 prefix="$ac_default_prefix"
20888 if test "x$exec_prefix" = "xNONE"; then
20889 exec_prefix=$prefix
20892 full_var="$FROM_VAR"
20894 new_full_var="`eval echo $full_var`"
20895 if test "x$new_full_var" = "x$full_var"; then break; fi
20896 full_var=$new_full_var
20899 full_var=$new_full_var
20900 _GI_EXP_LIBDIR="$full_var"
20903 prefix=$prefix_save
20904 exec_prefix=$exec_prefix_save
20907 INTROSPECTION_SCANNER=
20908 INTROSPECTION_COMPILER=
20909 INTROSPECTION_GENERATE=
20910 INTROSPECTION_GIRDIR=
20911 INTROSPECTION_TYPELIBDIR=
20912 if test "x$found_introspection" = "xyes"; then
20913 INTROSPECTION_SCANNER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
20914 INTROSPECTION_COMPILER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
20915 INTROSPECTION_GENERATE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
20916 INTROSPECTION_GIRDIR=`$PKG_CONFIG --define-variable=datadir="${_GI_EXP_DATADIR}" --variable=girdir gobject-introspection-1.0`
20917 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --define-variable=libdir="${_GI_EXP_LIBDIR}" --variable=typelibdir gobject-introspection-1.0)"
20918 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
20919 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
20920 INTROSPECTION_MAKEFILE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
20931 if test "x$found_introspection" = "xyes"; then
20932 HAVE_INTROSPECTION_TRUE=
20933 HAVE_INTROSPECTION_FALSE='#'
20935 HAVE_INTROSPECTION_TRUE='#'
20936 HAVE_INTROSPECTION_FALSE=
20941 if test "x$found_introspection" = xyes; then
20942 have_introspection=true
20946 HAVE_INTROSPECTION_TRUE=
20947 HAVE_INTROSPECTION_FALSE='#'
20949 HAVE_INTROSPECTION_TRUE='#'
20950 HAVE_INTROSPECTION_FALSE=
20958 # Check whether --with-cairo was given.
20959 if test "${with_cairo+set}" = set; then :
20960 withval=$with_cairo;
20966 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
20970 $as_echo_n "checking for CAIRO... " >&6; }
20972 if test -n "$CAIRO_CFLAGS"; then
20973 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
20974 elif test -n "$PKG_CONFIG"; then
20975 if test -n "$PKG_CONFIG" && \
20976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20977 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20980 test $ac_status = 0; }; then
20981 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
20982 test "x$?" != "x0" && pkg_failed=yes
20989 if test -n "$CAIRO_LIBS"; then
20990 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
20991 elif test -n "$PKG_CONFIG"; then
20992 if test -n "$PKG_CONFIG" && \
20993 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20994 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20997 test $ac_status = 0; }; then
20998 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
20999 test "x$?" != "x0" && pkg_failed=yes
21009 if test $pkg_failed = yes; then
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21011 $as_echo "no" >&6; }
21013 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21014 _pkg_short_errors_supported=yes
21016 _pkg_short_errors_supported=no
21018 if test $_pkg_short_errors_supported = yes; then
21019 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
21021 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
21023 # Put the nasty error message in config.log where it belongs
21024 echo "$CAIRO_PKG_ERRORS" >&5
21027 elif test $pkg_failed = untried; then
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21029 $as_echo "no" >&6; }
21032 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
21033 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21035 $as_echo "yes" >&6; }
21039 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
21040 as_fn_error $? "cairo support requested but not found" "$LINENO" 5
21042 if $have_cairo; then
21044 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
21047 if $have_cairo; then
21049 HAVE_CAIRO_FALSE='#'
21051 HAVE_CAIRO_TRUE='#'
21056 have_cairo_ft=false
21057 if $have_cairo; then
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
21061 $as_echo_n "checking for CAIRO_FT... " >&6; }
21063 if test -n "$CAIRO_FT_CFLAGS"; then
21064 pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
21065 elif test -n "$PKG_CONFIG"; then
21066 if test -n "$PKG_CONFIG" && \
21067 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
21068 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
21070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21071 test $ac_status = 0; }; then
21072 pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
21073 test "x$?" != "x0" && pkg_failed=yes
21080 if test -n "$CAIRO_FT_LIBS"; then
21081 pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
21082 elif test -n "$PKG_CONFIG"; then
21083 if test -n "$PKG_CONFIG" && \
21084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
21085 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
21087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21088 test $ac_status = 0; }; then
21089 pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
21090 test "x$?" != "x0" && pkg_failed=yes
21100 if test $pkg_failed = yes; then
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21102 $as_echo "no" >&6; }
21104 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21105 _pkg_short_errors_supported=yes
21107 _pkg_short_errors_supported=no
21109 if test $_pkg_short_errors_supported = yes; then
21110 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-ft" 2>&1`
21112 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-ft" 2>&1`
21114 # Put the nasty error message in config.log where it belongs
21115 echo "$CAIRO_FT_PKG_ERRORS" >&5
21118 elif test $pkg_failed = untried; then
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21120 $as_echo "no" >&6; }
21123 CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
21124 CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
21125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21126 $as_echo "yes" >&6; }
21130 if $have_cairo_ft; then
21132 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
21135 if $have_cairo_ft; then
21136 HAVE_CAIRO_FT_TRUE=
21137 HAVE_CAIRO_FT_FALSE='#'
21139 HAVE_CAIRO_FT_TRUE='#'
21140 HAVE_CAIRO_FT_FALSE=
21146 # Check whether --with-chafa was given.
21147 if test "${with_chafa+set}" = set; then :
21148 withval=$with_chafa;
21154 if test "x$with_chafa" = "xyes" -o "x$with_chafa" = "xauto"; then
21157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAFA" >&5
21158 $as_echo_n "checking for CHAFA... " >&6; }
21160 if test -n "$CHAFA_CFLAGS"; then
21161 pkg_cv_CHAFA_CFLAGS="$CHAFA_CFLAGS"
21162 elif test -n "$PKG_CONFIG"; then
21163 if test -n "$PKG_CONFIG" && \
21164 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"chafa >= 1.6.0\""; } >&5
21165 ($PKG_CONFIG --exists --print-errors "chafa >= 1.6.0") 2>&5
21167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21168 test $ac_status = 0; }; then
21169 pkg_cv_CHAFA_CFLAGS=`$PKG_CONFIG --cflags "chafa >= 1.6.0" 2>/dev/null`
21170 test "x$?" != "x0" && pkg_failed=yes
21177 if test -n "$CHAFA_LIBS"; then
21178 pkg_cv_CHAFA_LIBS="$CHAFA_LIBS"
21179 elif test -n "$PKG_CONFIG"; then
21180 if test -n "$PKG_CONFIG" && \
21181 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"chafa >= 1.6.0\""; } >&5
21182 ($PKG_CONFIG --exists --print-errors "chafa >= 1.6.0") 2>&5
21184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21185 test $ac_status = 0; }; then
21186 pkg_cv_CHAFA_LIBS=`$PKG_CONFIG --libs "chafa >= 1.6.0" 2>/dev/null`
21187 test "x$?" != "x0" && pkg_failed=yes
21197 if test $pkg_failed = yes; then
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21199 $as_echo "no" >&6; }
21201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21202 _pkg_short_errors_supported=yes
21204 _pkg_short_errors_supported=no
21206 if test $_pkg_short_errors_supported = yes; then
21207 CHAFA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "chafa >= 1.6.0" 2>&1`
21209 CHAFA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "chafa >= 1.6.0" 2>&1`
21211 # Put the nasty error message in config.log where it belongs
21212 echo "$CHAFA_PKG_ERRORS" >&5
21215 elif test $pkg_failed = untried; then
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21217 $as_echo "no" >&6; }
21220 CHAFA_CFLAGS=$pkg_cv_CHAFA_CFLAGS
21221 CHAFA_LIBS=$pkg_cv_CHAFA_LIBS
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21223 $as_echo "yes" >&6; }
21227 if test "x$with_chafa" = "xyes" -a "x$have_chafa" != "xtrue"; then
21228 as_fn_error $? "chafa support requested but not found" "$LINENO" 5
21230 if $have_chafa; then
21232 $as_echo "#define HAVE_CHAFA 1" >>confdefs.h
21235 if $have_chafa; then
21237 HAVE_CHAFA_FALSE='#'
21239 HAVE_CHAFA_TRUE='#'
21246 # Check whether --with-icu was given.
21247 if test "${with_icu+set}" = set; then :
21254 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
21257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
21258 $as_echo_n "checking for ICU... " >&6; }
21260 if test -n "$ICU_CFLAGS"; then
21261 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
21262 elif test -n "$PKG_CONFIG"; then
21263 if test -n "$PKG_CONFIG" && \
21264 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21265 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21268 test $ac_status = 0; }; then
21269 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
21270 test "x$?" != "x0" && pkg_failed=yes
21277 if test -n "$ICU_LIBS"; then
21278 pkg_cv_ICU_LIBS="$ICU_LIBS"
21279 elif test -n "$PKG_CONFIG"; then
21280 if test -n "$PKG_CONFIG" && \
21281 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21282 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21285 test $ac_status = 0; }; then
21286 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
21287 test "x$?" != "x0" && pkg_failed=yes
21297 if test $pkg_failed = yes; then
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21299 $as_echo "no" >&6; }
21301 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21302 _pkg_short_errors_supported=yes
21304 _pkg_short_errors_supported=no
21306 if test $_pkg_short_errors_supported = yes; then
21307 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
21309 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
21311 # Put the nasty error message in config.log where it belongs
21312 echo "$ICU_PKG_ERRORS" >&5
21315 elif test $pkg_failed = untried; then
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21317 $as_echo "no" >&6; }
21320 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
21321 ICU_LIBS=$pkg_cv_ICU_LIBS
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21323 $as_echo "yes" >&6; }
21327 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
21328 as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
21332 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
21334 $as_echo "#define HAVE_ICU 1" >>confdefs.h
21336 if test "x$with_icu" = "xbuiltin"; then
21338 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
21350 if $have_icu && test "x$with_icu" = "xbuiltin"; then
21351 HAVE_ICU_BUILTIN_TRUE=
21352 HAVE_ICU_BUILTIN_FALSE='#'
21354 HAVE_ICU_BUILTIN_TRUE='#'
21355 HAVE_ICU_BUILTIN_FALSE=
21361 # Check whether --with-graphite2 was given.
21362 if test "${with_graphite2+set}" = set; then :
21363 withval=$with_graphite2;
21368 have_graphite2=false
21369 GRAPHITE2_DEPS="graphite2 >= 1.2.0"
21371 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
21375 $as_echo_n "checking for GRAPHITE2... " >&6; }
21377 if test -n "$GRAPHITE2_CFLAGS"; then
21378 pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
21379 elif test -n "$PKG_CONFIG"; then
21380 if test -n "$PKG_CONFIG" && \
21381 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
21382 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
21384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21385 test $ac_status = 0; }; then
21386 pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
21387 test "x$?" != "x0" && pkg_failed=yes
21394 if test -n "$GRAPHITE2_LIBS"; then
21395 pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
21396 elif test -n "$PKG_CONFIG"; then
21397 if test -n "$PKG_CONFIG" && \
21398 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
21399 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
21401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21402 test $ac_status = 0; }; then
21403 pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
21404 test "x$?" != "x0" && pkg_failed=yes
21414 if test $pkg_failed = yes; then
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21416 $as_echo "no" >&6; }
21418 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21419 _pkg_short_errors_supported=yes
21421 _pkg_short_errors_supported=no
21423 if test $_pkg_short_errors_supported = yes; then
21424 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
21426 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
21428 # Put the nasty error message in config.log where it belongs
21429 echo "$GRAPHITE2_PKG_ERRORS" >&5
21432 elif test $pkg_failed = untried; then
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21434 $as_echo "no" >&6; }
21437 GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
21438 GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21440 $as_echo "yes" >&6; }
21441 have_graphite2=true
21443 if test "x$have_graphite2" != "xtrue"; then
21444 # If pkg-config is not available, graphite2 can still be there
21445 ac_save_CFLAGS="$CFLAGS"
21446 ac_save_CPPFLAGS="$CPPFLAGS"
21447 CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS"
21448 CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS"
21449 ac_fn_c_check_header_mongrel "$LINENO" "graphite2/Segment.h" "ac_cv_header_graphite2_Segment_h" "$ac_includes_default"
21450 if test "x$ac_cv_header_graphite2_Segment_h" = xyes; then :
21451 have_graphite2=true
21457 CPPFLAGS="$ac_save_CPPFLAGS"
21458 CFLAGS="$ac_save_CFLAGS"
21461 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
21462 as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
21464 if $have_graphite2; then
21466 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
21469 if $have_graphite2; then
21470 HAVE_GRAPHITE2_TRUE=
21471 HAVE_GRAPHITE2_FALSE='#'
21473 HAVE_GRAPHITE2_TRUE='#'
21474 HAVE_GRAPHITE2_FALSE=
21480 # Check whether --with-freetype was given.
21481 if test "${with_freetype+set}" = set; then :
21482 withval=$with_freetype;
21487 have_freetype=false
21488 FREETYPE_DEPS="freetype2 >= 12.0.6"
21490 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
21491 # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
21495 $as_echo_n "checking for FREETYPE... " >&6; }
21497 if test -n "$FREETYPE_CFLAGS"; then
21498 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
21499 elif test -n "$PKG_CONFIG"; then
21500 if test -n "$PKG_CONFIG" && \
21501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
21502 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
21504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21505 test $ac_status = 0; }; then
21506 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
21507 test "x$?" != "x0" && pkg_failed=yes
21514 if test -n "$FREETYPE_LIBS"; then
21515 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
21516 elif test -n "$PKG_CONFIG"; then
21517 if test -n "$PKG_CONFIG" && \
21518 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
21519 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
21521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21522 test $ac_status = 0; }; then
21523 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
21524 test "x$?" != "x0" && pkg_failed=yes
21534 if test $pkg_failed = yes; then
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21536 $as_echo "no" >&6; }
21538 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21539 _pkg_short_errors_supported=yes
21541 _pkg_short_errors_supported=no
21543 if test $_pkg_short_errors_supported = yes; then
21544 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
21546 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
21548 # Put the nasty error message in config.log where it belongs
21549 echo "$FREETYPE_PKG_ERRORS" >&5
21552 elif test $pkg_failed = untried; then
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21554 $as_echo "no" >&6; }
21557 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
21558 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21560 $as_echo "yes" >&6; }
21564 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
21565 as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
21567 if $have_freetype; then
21569 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
21572 LIBS="$LIBS $FREETYPE_LIBS"
21573 for ac_func in FT_Get_Var_Blend_Coordinates FT_Set_Var_Blend_Coordinates FT_Done_MM_Var
21575 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21576 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21577 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21578 cat >>confdefs.h <<_ACEOF
21579 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21587 if $have_freetype; then
21588 HAVE_FREETYPE_TRUE=
21589 HAVE_FREETYPE_FALSE='#'
21591 HAVE_FREETYPE_TRUE='#'
21592 HAVE_FREETYPE_FALSE=
21598 # Check whether --with-uniscribe was given.
21599 if test "${with_uniscribe+set}" = set; then :
21600 withval=$with_uniscribe;
21605 have_uniscribe=false
21606 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
21607 for ac_header in usp10.h windows.h
21609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21610 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21611 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21612 cat >>confdefs.h <<_ACEOF
21613 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21615 have_uniscribe=true
21621 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
21622 as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
21624 if $have_uniscribe; then
21626 UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
21630 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
21633 if $have_uniscribe; then
21634 HAVE_UNISCRIBE_TRUE=
21635 HAVE_UNISCRIBE_FALSE='#'
21637 HAVE_UNISCRIBE_TRUE='#'
21638 HAVE_UNISCRIBE_FALSE=
21644 # Check whether --with-gdi was given.
21645 if test "${with_gdi+set}" = set; then :
21652 if test "x$with_gdi" = "xyes" -o "x$with_gdi" = "xauto"; then
21653 for ac_header in windows.h
21655 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
21656 if test "x$ac_cv_header_windows_h" = xyes; then :
21657 cat >>confdefs.h <<_ACEOF
21658 #define HAVE_WINDOWS_H 1
21666 if test "x$with_gdi" = "xyes" -a "x$have_gdi" != "xtrue"; then
21667 as_fn_error $? "gdi support requested but not found" "$LINENO" 5
21675 $as_echo "#define HAVE_GDI 1" >>confdefs.h
21689 # Check whether --with-directwrite was given.
21690 if test "${with_directwrite+set}" = set; then :
21691 withval=$with_directwrite;
21693 with_directwrite=no
21696 have_directwrite=false
21698 ac_cpp='$CXXCPP $CPPFLAGS'
21699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21703 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
21705 for ac_header in dwrite.h
21707 ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
21708 if test "x$ac_cv_header_dwrite_h" = xyes; then :
21709 cat >>confdefs.h <<_ACEOF
21710 #define HAVE_DWRITE_H 1
21712 have_directwrite=true
21719 ac_cpp='$CPP $CPPFLAGS'
21720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21724 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
21725 as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
21727 if $have_directwrite; then
21728 DIRECTWRITE_CXXFLAGS=
21733 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
21736 if $have_directwrite; then
21737 HAVE_DIRECTWRITE_TRUE=
21738 HAVE_DIRECTWRITE_FALSE='#'
21740 HAVE_DIRECTWRITE_TRUE='#'
21741 HAVE_DIRECTWRITE_FALSE=
21747 # Check whether --with-coretext was given.
21748 if test "${with_coretext+set}" = set; then :
21749 withval=$with_coretext;
21754 have_coretext=false
21755 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
21756 ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
21758 if test "x$ac_cv_type_CTFontRef" = xyes; then :
21763 if $have_coretext; then
21765 CORETEXT_LIBS="-framework ApplicationServices"
21769 # On iOS CoreText and CoreGraphics are stand-alone frameworks
21770 if test "x$have_coretext" != "xtrue"; then
21771 # Check for a different symbol to avoid getting cached result.
21772 ac_fn_c_check_type "$LINENO" "CTRunRef" "ac_cv_type_CTRunRef" "#include <CoreText/CoreText.h>
21774 if test "x$ac_cv_type_CTRunRef" = xyes; then :
21780 if $have_coretext; then
21782 CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation"
21788 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
21789 as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
21791 if $have_coretext; then
21793 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
21796 if $have_coretext; then
21797 HAVE_CORETEXT_TRUE=
21798 HAVE_CORETEXT_FALSE='#'
21800 HAVE_CORETEXT_TRUE='#'
21801 HAVE_CORETEXT_FALSE=
21806 ac_config_files="$ac_config_files Makefile src/Makefile src/harfbuzz-config.cmake util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shape/Makefile test/shape/data/Makefile test/shape/data/aots/Makefile test/shape/data/in-house/Makefile test/shape/data/text-rendering-tests/Makefile test/subset/Makefile test/subset/data/Makefile test/subset/data/repack_tests/Makefile docs/Makefile docs/version.xml"
21809 cat >confcache <<\_ACEOF
21810 # This file is a shell script that caches the results of configure
21811 # tests run on this system so they can be shared between configure
21812 # scripts and configure runs, see configure's option --config-cache.
21813 # It is not useful on other systems. If it contains results you don't
21814 # want to keep, you may remove or edit it.
21816 # config.status only pays attention to the cache file if you give it
21817 # the --recheck option to rerun configure.
21819 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21820 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21821 # following values.
21825 # The following way of writing the cache mishandles newlines in values,
21826 # but we know of no workaround that is simple, portable, and efficient.
21827 # So, we kill variables containing newlines.
21828 # Ultrix sh set writes to stderr and can't be redirected directly,
21829 # and sets the high bit in the cache file unless we assign to the vars.
21831 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21832 eval ac_val=\$$ac_var
21836 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21837 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21840 _ | IFS | as_nl) ;; #(
21841 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21842 *) { eval $ac_var=; unset $ac_var;} ;;
21848 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21849 *${as_nl}ac_space=\ *)
21850 # `set' does not quote correctly, so add quotes: double-quote
21851 # substitution turns \\\\ into \\, and sed turns \\ into \.
21854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21857 # `set' quotes correctly as required by POSIX, so do not add quotes.
21858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21867 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21869 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21871 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21872 if test -w "$cache_file"; then
21873 if test "x$cache_file" != "x/dev/null"; then
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21875 $as_echo "$as_me: updating cache $cache_file" >&6;}
21876 if test ! -f "$cache_file" || test -h "$cache_file"; then
21877 cat confcache >"$cache_file"
21879 case $cache_file in #(
21881 mv -f confcache "$cache_file"$$ &&
21882 mv -f "$cache_file"$$ "$cache_file" ;; #(
21884 mv -f confcache "$cache_file" ;;
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21890 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21895 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21896 # Let make expand exec_prefix.
21897 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21899 DEFS=-DHAVE_CONFIG_H
21904 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21905 # 1. Remove the extension, and $U if already installed.
21906 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21907 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21908 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21909 # will be set to the directory where LIBOBJS objects are built.
21910 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21911 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21913 LIBOBJS=$ac_libobjs
21915 LTLIBOBJS=$ac_ltlibobjs
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21919 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21920 if test -n "$am_sleep_pid"; then
21921 # Hide warnings about reused PIDs.
21922 wait $am_sleep_pid 2>/dev/null
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21925 $as_echo "done" >&6; }
21926 if test -n "$EXEEXT"; then
21928 am__EXEEXT_FALSE='#'
21930 am__EXEEXT_TRUE='#'
21934 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
21935 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
21936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21938 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21939 as_fn_error $? "conditional \"AMDEP\" was never defined.
21940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21942 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21943 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21946 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21947 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21950 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21951 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21954 if test -z "${WITH_LIBSTDCXX_TRUE}" && test -z "${WITH_LIBSTDCXX_FALSE}"; then
21955 as_fn_error $? "conditional \"WITH_LIBSTDCXX\" was never defined.
21956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21958 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
21959 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
21960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21962 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
21963 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
21964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21966 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
21967 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
21968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21970 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
21971 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
21972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21974 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
21975 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
21976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21978 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
21979 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
21980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21982 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
21983 as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
21984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21986 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
21987 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
21988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21990 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
21991 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
21992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21994 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
21995 as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
21996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21998 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
21999 as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
22000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22002 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
22003 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
22004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22006 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
22007 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
22008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22010 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
22011 as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
22012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22014 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
22015 as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
22016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22018 if test -z "${HAVE_CHAFA_TRUE}" && test -z "${HAVE_CHAFA_FALSE}"; then
22019 as_fn_error $? "conditional \"HAVE_CHAFA\" was never defined.
22020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22022 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
22023 as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
22024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22026 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
22027 as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
22028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22030 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
22031 as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
22032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22034 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
22035 as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
22036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22038 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
22039 as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
22040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22042 if test -z "${HAVE_GDI_TRUE}" && test -z "${HAVE_GDI_FALSE}"; then
22043 as_fn_error $? "conditional \"HAVE_GDI\" was never defined.
22044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22046 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
22047 as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
22048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22050 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
22051 as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
22052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22055 : "${CONFIG_STATUS=./config.status}"
22057 ac_clean_files_save=$ac_clean_files
22058 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22060 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22062 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22064 # Generated by $as_me.
22065 # Run this file to recreate the current configuration.
22066 # Compiler output produced by configure, useful for debugging
22067 # configure, is in config.log if it exists.
22070 ac_cs_recheck=false
22073 SHELL=\${CONFIG_SHELL-$SHELL}
22076 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22077 ## -------------------- ##
22078 ## M4sh Initialization. ##
22079 ## -------------------- ##
22081 # Be more Bourne compatible
22082 DUALCASE=1; export DUALCASE # for MKS sh
22083 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22086 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22087 # is contrary to our usage. Disable this feature.
22088 alias -g '${1+"$@"}'='"$@"'
22089 setopt NO_GLOB_SUBST
22091 case `(set -o) 2>/dev/null` in #(
22103 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22104 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22105 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22106 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22107 # Prefer a ksh shell builtin over an external printf program on Solaris,
22108 # but without wasting forks for bash or zsh.
22109 if test -z "$BASH_VERSION$ZSH_VERSION" \
22110 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22111 as_echo='print -r --'
22112 as_echo_n='print -rn --'
22113 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22114 as_echo='printf %s\n'
22115 as_echo_n='printf %s'
22117 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22118 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22119 as_echo_n='/usr/ucb/echo -n'
22121 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22122 as_echo_n_body='eval
22126 expr "X$arg" : "X\\(.*\\)$as_nl";
22127 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22129 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22131 export as_echo_n_body
22132 as_echo_n='sh -c $as_echo_n_body as_echo'
22134 export as_echo_body
22135 as_echo='sh -c $as_echo_body as_echo'
22138 # The user is always right.
22139 if test "${PATH_SEPARATOR+set}" != set; then
22141 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22142 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22149 # We need space, tab and new line, in precisely that order. Quoting is
22150 # there to prevent editors from complaining about space-tab.
22151 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22152 # splitting by setting IFS to empty value.)
22155 # Find who we are. Look in the path if we contain no directory separator.
22158 *[\\/]* ) as_myself=$0 ;;
22159 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22160 for as_dir in $PATH
22163 test -z "$as_dir" && as_dir=.
22164 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22170 # We did not find ourselves, most probably we were run as `sh COMMAND'
22171 # in which case we are not to be found in the path.
22172 if test "x$as_myself" = x; then
22175 if test ! -f "$as_myself"; then
22176 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22180 # Unset variables that we do not need and which cause bugs (e.g. in
22181 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22182 # suppresses any "Segmentation fault" message there. '((' could
22183 # trigger a bug in pdksh 5.2.14.
22184 for as_var in BASH_ENV ENV MAIL MAILPATH
22185 do eval test x\${$as_var+set} = xset \
22186 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22199 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22202 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22203 # ----------------------------------------
22204 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22205 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22206 # script with STATUS, using 1 if that was 0.
22209 as_status=$1; test $as_status -eq 0 && as_status=1
22211 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22212 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22214 $as_echo "$as_me: error: $2" >&2
22215 as_fn_exit $as_status
22219 # as_fn_set_status STATUS
22220 # -----------------------
22221 # Set $? to STATUS, without forking.
22222 as_fn_set_status ()
22225 } # as_fn_set_status
22227 # as_fn_exit STATUS
22228 # -----------------
22229 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22233 as_fn_set_status $1
22239 # Portably unset VAR.
22242 { eval $1=; unset $1;}
22244 as_unset=as_fn_unset
22245 # as_fn_append VAR VALUE
22246 # ----------------------
22247 # Append the text in VALUE to the end of the definition contained in VAR. Take
22248 # advantage of any shell optimizations that allow amortized linear growth over
22249 # repeated appends, instead of the typical quadratic growth present in naive
22251 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22252 eval 'as_fn_append ()
22263 # as_fn_arith ARG...
22264 # ------------------
22265 # Perform arithmetic evaluation on the ARGs, and store the result in the
22266 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22267 # must be portable across $(()) and expr.
22268 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22269 eval 'as_fn_arith ()
22276 as_val=`expr "$@" || test $? -eq 1`
22281 if expr a : '\(a\)' >/dev/null 2>&1 &&
22282 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22288 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22289 as_basename=basename
22294 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22300 as_me=`$as_basename -- "$0" ||
22301 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22302 X"$0" : 'X\(//\)$' \| \
22303 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22305 sed '/^.*\/\([^/][^/]*\)\/*$/{
22319 # Avoid depending upon Character Ranges.
22320 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22321 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22322 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22323 as_cr_digits='0123456789'
22324 as_cr_alnum=$as_cr_Letters$as_cr_digits
22326 ECHO_C= ECHO_N= ECHO_T=
22327 case `echo -n x` in #(((((
22329 case `echo 'xy\c'` in
22330 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22332 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22339 rm -f conf$$ conf$$.exe conf$$.file
22340 if test -d conf$$.dir; then
22341 rm -f conf$$.dir/conf$$.file
22344 mkdir conf$$.dir 2>/dev/null
22346 if (echo >conf$$.file) 2>/dev/null; then
22347 if ln -s conf$$.file conf$$ 2>/dev/null; then
22349 # ... but there are two gotchas:
22350 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22351 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22352 # In both cases, we have to default to `cp -pR'.
22353 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22355 elif ln conf$$.file conf$$ 2>/dev/null; then
22363 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22364 rmdir conf$$.dir 2>/dev/null
22369 # Create "$as_dir" as a directory, including parents if necessary.
22374 -*) as_dir=./$as_dir;;
22376 test -d "$as_dir" || eval $as_mkdir_p || {
22380 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22381 *) as_qdir=$as_dir;;
22383 as_dirs="'$as_qdir' $as_dirs"
22384 as_dir=`$as_dirname -- "$as_dir" ||
22385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22386 X"$as_dir" : 'X\(//\)[^/]' \| \
22387 X"$as_dir" : 'X\(//\)$' \| \
22388 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22389 $as_echo X"$as_dir" |
22390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22394 /^X\(\/\/\)[^/].*/{
22407 test -d "$as_dir" && break
22409 test -z "$as_dirs" || eval "mkdir $as_dirs"
22410 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22414 if mkdir -p . 2>/dev/null; then
22415 as_mkdir_p='mkdir -p "$as_dir"'
22417 test -d ./-p && rmdir ./-p
22422 # as_fn_executable_p FILE
22423 # -----------------------
22424 # Test if FILE is an executable regular file.
22425 as_fn_executable_p ()
22427 test -f "$1" && test -x "$1"
22428 } # as_fn_executable_p
22429 as_test_x='test -x'
22430 as_executable_p=as_fn_executable_p
22432 # Sed expression to map a string onto a valid CPP name.
22433 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22435 # Sed expression to map a string onto a valid variable name.
22436 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22440 ## ----------------------------------- ##
22441 ## Main body of $CONFIG_STATUS script. ##
22442 ## ----------------------------------- ##
22444 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22447 # Save the log message, to keep $0 and so on meaningful, and to
22448 # report actual input values of CONFIG_FILES etc. instead of their
22449 # values after options handling.
22451 This file was extended by HarfBuzz $as_me 3.4.0, which was
22452 generated by GNU Autoconf 2.69. Invocation command line was
22454 CONFIG_FILES = $CONFIG_FILES
22455 CONFIG_HEADERS = $CONFIG_HEADERS
22456 CONFIG_LINKS = $CONFIG_LINKS
22457 CONFIG_COMMANDS = $CONFIG_COMMANDS
22460 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22465 case $ac_config_files in *"
22466 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22469 case $ac_config_headers in *"
22470 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22475 # Files that config.status was made for.
22476 config_files="$ac_config_files"
22477 config_headers="$ac_config_headers"
22478 config_commands="$ac_config_commands"
22482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22484 \`$as_me' instantiates files and other configuration actions
22485 from templates according to the current configuration. Unless the files
22486 and actions are specified as TAGs, all are instantiated by default.
22488 Usage: $0 [OPTION]... [TAG]...
22490 -h, --help print this help, then exit
22491 -V, --version print version number and configuration settings, then exit
22492 --config print configuration, then exit
22493 -q, --quiet, --silent
22494 do not print progress messages
22495 -d, --debug don't remove temporary files
22496 --recheck update $as_me by reconfiguring in the same conditions
22497 --file=FILE[:TEMPLATE]
22498 instantiate the configuration file FILE
22499 --header=FILE[:TEMPLATE]
22500 instantiate the configuration header FILE
22502 Configuration files:
22505 Configuration headers:
22508 Configuration commands:
22511 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
22512 HarfBuzz home page: <http://harfbuzz.org/>."
22515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22516 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22518 HarfBuzz config.status 3.4.0
22519 configured by $0, generated by GNU Autoconf 2.69,
22520 with options \\"\$ac_cs_config\\"
22522 Copyright (C) 2012 Free Software Foundation, Inc.
22523 This config.status script is free software; the Free Software Foundation
22524 gives unlimited permission to copy, distribute and modify it."
22531 test -n "\$AWK" || AWK=awk
22534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22535 # The default lists apply if the user does not specify any file.
22541 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22542 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22546 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22558 # Handling of the options.
22559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22561 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22562 $as_echo "$ac_cs_version"; exit ;;
22563 --config | --confi | --conf | --con | --co | --c )
22564 $as_echo "$ac_cs_config"; exit ;;
22565 --debug | --debu | --deb | --de | --d | -d )
22567 --file | --fil | --fi | --f )
22570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22571 '') as_fn_error $? "missing file argument" ;;
22573 as_fn_append CONFIG_FILES " '$ac_optarg'"
22574 ac_need_defaults=false;;
22575 --header | --heade | --head | --hea )
22578 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22580 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22581 ac_need_defaults=false;;
22583 # Conflict between --help and --header
22584 as_fn_error $? "ambiguous option: \`$1'
22585 Try \`$0 --help' for more information.";;
22586 --help | --hel | -h )
22587 $as_echo "$ac_cs_usage"; exit ;;
22588 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22589 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22592 # This is an error.
22593 -*) as_fn_error $? "unrecognized option: \`$1'
22594 Try \`$0 --help' for more information." ;;
22596 *) as_fn_append ac_config_targets " $1"
22597 ac_need_defaults=false ;;
22603 ac_configure_extra_args=
22605 if $ac_cs_silent; then
22607 ac_configure_extra_args="$ac_configure_extra_args --silent"
22611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22612 if \$ac_cs_recheck; then
22613 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22615 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22616 CONFIG_SHELL='$SHELL'
22617 export CONFIG_SHELL
22622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22626 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22627 ## Running $as_me. ##
22633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22637 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22640 # The HP-UX ksh and POSIX shell print the target directory to stdout
22641 # if CDPATH is set.
22642 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22644 sed_quote_subst='$sed_quote_subst'
22645 double_quote_subst='$double_quote_subst'
22646 delay_variable_subst='$delay_variable_subst'
22647 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22648 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22649 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22650 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22651 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22652 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22653 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22654 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22655 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22656 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22657 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22658 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22659 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22660 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22661 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22662 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22663 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22664 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22665 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22666 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22667 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22668 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22669 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22670 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22671 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22672 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22673 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22674 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22675 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22676 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22677 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22678 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22679 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22680 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22681 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22682 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22683 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22684 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22685 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22686 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22687 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22688 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22689 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22690 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22691 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22692 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22693 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22694 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22695 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22696 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22697 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22698 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22699 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22700 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22701 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22702 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22703 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22704 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22705 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"`'
22706 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22707 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22708 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22709 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22710 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22711 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22712 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22713 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22714 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22715 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22716 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22717 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22718 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22719 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22720 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22721 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22722 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22723 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22724 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22725 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22726 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22727 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22728 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22729 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22730 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22731 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22732 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22733 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22734 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22735 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22736 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22737 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22738 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22739 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22740 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22741 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22742 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22743 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22744 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22745 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22746 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22747 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22748 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22749 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22750 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22751 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22752 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22753 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22754 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22755 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22756 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22757 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22758 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22759 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22760 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22761 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22762 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22763 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22764 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22765 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22766 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22767 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22768 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22769 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22770 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22771 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22772 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22773 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22774 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22775 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22776 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22777 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22778 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22779 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22780 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22781 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22782 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22783 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22784 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22785 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22786 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22787 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22788 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22789 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22790 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22791 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22792 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22793 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22794 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22795 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22796 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22797 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22798 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22799 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22800 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22801 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22802 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22803 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22804 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22805 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22806 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22807 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22808 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22809 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22810 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22811 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22812 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22813 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22814 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22815 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22816 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22817 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22818 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22819 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22820 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22821 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22822 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22823 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22824 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22825 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22826 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22827 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22828 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22829 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22830 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22831 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22832 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22833 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22834 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22835 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22838 LTCFLAGS='$LTCFLAGS'
22839 compiler='$compiler_DEFAULT'
22841 # A function that is used when there is no print builtin or printf.
22842 func_fallback_echo ()
22844 eval 'cat <<_LTECHO_EOF
22849 # Quote evaled strings.
22864 deplibs_check_method \
22869 sharedlib_from_linklib_cmd \
22872 archiver_list_spec \
22878 lt_cv_sys_global_symbol_pipe \
22879 lt_cv_sys_global_symbol_to_cdecl \
22880 lt_cv_sys_global_symbol_to_import \
22881 lt_cv_sys_global_symbol_to_c_name_address \
22882 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22883 lt_cv_nm_interface \
22884 nm_file_list_spec \
22885 lt_cv_truncate_bin \
22886 lt_prog_compiler_no_builtin_flag \
22887 lt_prog_compiler_pic \
22888 lt_prog_compiler_wl \
22889 lt_prog_compiler_static \
22890 lt_cv_prog_compiler_c_o \
22899 export_dynamic_flag_spec \
22900 whole_archive_flag_spec \
22901 compiler_needs_object \
22903 allow_undefined_flag \
22904 no_undefined_flag \
22905 hardcode_libdir_flag_spec \
22906 hardcode_libdir_separator \
22910 variables_saved_for_relink \
22912 library_names_spec \
22914 install_override_mode \
22918 compiler_lib_search_dirs \
22923 compiler_lib_search_path \
22927 lt_prog_compiler_no_builtin_flag_CXX \
22928 lt_prog_compiler_pic_CXX \
22929 lt_prog_compiler_wl_CXX \
22930 lt_prog_compiler_static_CXX \
22931 lt_cv_prog_compiler_c_o_CXX \
22932 export_dynamic_flag_spec_CXX \
22933 whole_archive_flag_spec_CXX \
22934 compiler_needs_object_CXX \
22936 allow_undefined_flag_CXX \
22937 no_undefined_flag_CXX \
22938 hardcode_libdir_flag_spec_CXX \
22939 hardcode_libdir_separator_CXX \
22940 exclude_expsyms_CXX \
22941 include_expsyms_CXX \
22942 file_list_spec_CXX \
22943 compiler_lib_search_dirs_CXX \
22944 predep_objects_CXX \
22945 postdep_objects_CXX \
22948 compiler_lib_search_path_CXX; do
22949 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22950 *[\\\\\\\`\\"\\\$]*)
22951 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22954 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22959 # Double-quote double-evaled strings.
22960 for var in reload_cmds \
22961 old_postinstall_cmds \
22962 old_postuninstall_cmds \
22964 extract_expsyms_cmds \
22965 old_archive_from_new_cmds \
22966 old_archive_from_expsyms_cmds \
22968 archive_expsym_cmds \
22970 module_expsym_cmds \
22971 export_symbols_cmds \
22975 postuninstall_cmds \
22977 sys_lib_search_path_spec \
22978 configure_time_dlsearch_path \
22979 configure_time_lt_sys_library_path \
22981 old_archive_cmds_CXX \
22982 old_archive_from_new_cmds_CXX \
22983 old_archive_from_expsyms_cmds_CXX \
22985 archive_expsym_cmds_CXX \
22987 module_expsym_cmds_CXX \
22988 export_symbols_cmds_CXX \
22990 postlink_cmds_CXX; do
22991 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22992 *[\\\\\\\`\\"\\\$]*)
22993 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22996 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23001 ac_aux_dir='$ac_aux_dir'
23003 # See if we are running on zsh, and set the options that allow our
23004 # commands through without removal of \ escapes INIT.
23005 if test -n "\${ZSH_VERSION+set}"; then
23006 setopt NO_GLOB_SUBST
23022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23024 # Handling of arguments.
23025 for ac_config_target in $ac_config_targets
23027 case $ac_config_target in
23028 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23029 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23030 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23031 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23032 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23033 "src/harfbuzz-config.cmake") CONFIG_FILES="$CONFIG_FILES src/harfbuzz-config.cmake" ;;
23034 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
23035 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23036 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
23037 "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
23038 "test/shape/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/Makefile" ;;
23039 "test/shape/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/data/Makefile" ;;
23040 "test/shape/data/aots/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/data/aots/Makefile" ;;
23041 "test/shape/data/in-house/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/data/in-house/Makefile" ;;
23042 "test/shape/data/text-rendering-tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/data/text-rendering-tests/Makefile" ;;
23043 "test/subset/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/Makefile" ;;
23044 "test/subset/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/Makefile" ;;
23045 "test/subset/data/repack_tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/repack_tests/Makefile" ;;
23046 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
23047 "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
23049 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23054 # If the user did not use the arguments to specify the items to instantiate,
23055 # then the envvar interface is used. Set only those that are not.
23056 # We use the long form for the default assignment because of an extremely
23057 # bizarre bug on SunOS 4.1.3.
23058 if $ac_need_defaults; then
23059 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23060 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23061 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23064 # Have a temporary directory for convenience. Make it in the build tree
23065 # simply because there is no reason against having it here, and in addition,
23066 # creating and moving files from /tmp can sometimes cause problems.
23067 # Hook for its removal unless debugging.
23068 # Note that there is a small window in which the directory will not be cleaned:
23069 # after its creation but before its name has been assigned to `$tmp'.
23073 trap 'exit_status=$?
23074 : "${ac_tmp:=$tmp}"
23075 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23077 trap 'as_fn_exit 1' 1 2 13 15
23079 # Create a (secure) tmp directory for tmp files.
23082 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23086 tmp=./conf$$-$RANDOM
23087 (umask 077 && mkdir "$tmp")
23088 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23091 # Set up the scripts for CONFIG_FILES section.
23092 # No need to generate them if there are no CONFIG_FILES.
23093 # This happens for instance with `./config.status config.h'.
23094 if test -n "$CONFIG_FILES"; then
23097 ac_cr=`echo X | tr X '\015'`
23098 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23099 # But we know of no other shell where ac_cr would be empty at this
23100 # point, so we can use a bashism as a fallback.
23101 if test "x$ac_cr" = x; then
23102 eval ac_cr=\$\'\\r\'
23104 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23105 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23108 ac_cs_awk_cr=$ac_cr
23111 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23116 echo "cat >conf$$subs.awk <<_ACEOF" &&
23117 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23119 } >conf$$subs.sh ||
23120 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23121 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23123 for ac_last_try in false false false false false :; do
23124 . ./conf$$subs.sh ||
23125 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23127 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23128 if test $ac_delim_n = $ac_delim_num; then
23130 elif $ac_last_try; then
23131 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23133 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23136 rm -f conf$$subs.sh
23138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23139 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23143 s/^/S["/; s/!.*/"]=/
23153 s/\(.\{148\}\)..*/\1/
23155 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23160 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23167 s/\(.\{148\}\)..*/\1/
23169 s/["\\]/\\&/g; s/^/"/; s/$/"/
23173 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23178 ' <conf$$subs.awk | sed '
23183 ' >>$CONFIG_STATUS || ac_write_fail=1
23184 rm -f conf$$subs.awk
23185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23187 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23188 for (key in S) S_is_set[key] = 1
23194 nfields = split(line, field, "@")
23196 len = length(field[1])
23197 for (i = 2; i < nfields; i++) {
23199 keylen = length(key)
23200 if (S_is_set[key]) {
23202 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23203 len += length(value) + length(field[++i])
23214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23215 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23216 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23219 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23220 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23223 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23224 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23225 # trailing colons and then remove the whole line if VPATH becomes empty
23226 # (actually we leave an empty line to preserve line numbers).
23227 if test "x$srcdir" = x.; then
23228 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23247 fi # test -n "$CONFIG_FILES"
23249 # Set up the scripts for CONFIG_HEADERS section.
23250 # No need to generate them if there are no CONFIG_HEADERS.
23251 # This happens for instance with `./config.status Makefile'.
23252 if test -n "$CONFIG_HEADERS"; then
23253 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23257 # Transform confdefs.h into an awk script `defines.awk', embedded as
23258 # here-document in config.status, that substitutes the proper values into
23259 # config.h.in to produce config.h.
23261 # Create a delimiter string that does not exist in confdefs.h, to ease
23262 # handling of long lines.
23264 for ac_last_try in false false :; do
23265 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23266 if test -z "$ac_tt"; then
23268 elif $ac_last_try; then
23269 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23271 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23275 # For the awk script, D is an array of macro values keyed by name,
23276 # likewise P contains macro parameters if any. Preserve backslash
23277 # newline sequences.
23279 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23281 s/.\{148\}/&'"$ac_delim"'/g
23284 s/^[ ]*#[ ]*define[ ][ ]*/ /
23291 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23293 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23297 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23298 D["\1"]=" \3\\\\\\n"\\/p
23300 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23305 s/.\{148\}/&'"$ac_delim"'/g
23310 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23313 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23315 ' <confdefs.h | sed '
23316 s/'"$ac_delim"'/"\\\
23317 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23320 for (key in D) D_is_set[key] = 1
23323 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23325 split(line, arg, " ")
23326 if (arg[1] == "#") {
23330 defundef = substr(arg[1], 2)
23333 split(mac1, mac2, "(") #)
23335 prefix = substr(line, 1, index(line, defundef) - 1)
23336 if (D_is_set[macro]) {
23337 # Preserve the white space surrounding the "#".
23338 print prefix "define", macro P[macro] D[macro]
23341 # Replace #undef with comments. This is necessary, for example,
23342 # in the case of _POSIX_SOURCE, which is predefined and required
23343 # on some systems where configure will not decide to define it.
23344 if (defundef == "undef") {
23345 print "/*", prefix defundef, macro, "*/"
23353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23354 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23355 fi # test -n "$CONFIG_HEADERS"
23358 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23363 :[FHLC]) ac_mode=$ac_tag; continue;;
23365 case $ac_mode$ac_tag in
23367 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23368 :[FH]-) ac_tag=-:-;;
23369 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23386 -) ac_f="$ac_tmp/stdin";;
23387 *) # Look for the file first in the build tree, then in the source tree
23388 # (if the path is not absolute). The absolute path cannot be DOS-style,
23389 # because $ac_f cannot contain `:'.
23393 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23395 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23397 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23398 as_fn_append ac_file_inputs " '$ac_f'"
23401 # Let's still pretend it is `configure' which instantiates (i.e., don't
23402 # use $as_me), people would be surprised to read:
23403 # /* config.h. Generated by config.status. */
23404 configure_input='Generated from '`
23405 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23407 if test x"$ac_file" != x-; then
23408 configure_input="$ac_file. $configure_input"
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23410 $as_echo "$as_me: creating $ac_file" >&6;}
23412 # Neutralize special characters interpreted by sed in replacement strings.
23413 case $configure_input in #(
23414 *\&* | *\|* | *\\* )
23415 ac_sed_conf_input=`$as_echo "$configure_input" |
23416 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23417 *) ac_sed_conf_input=$configure_input;;
23421 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23427 ac_dir=`$as_dirname -- "$ac_file" ||
23428 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23429 X"$ac_file" : 'X\(//\)[^/]' \| \
23430 X"$ac_file" : 'X\(//\)$' \| \
23431 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23432 $as_echo X"$ac_file" |
23433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23437 /^X\(\/\/\)[^/].*/{
23450 as_dir="$ac_dir"; as_fn_mkdir_p
23454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23456 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23457 # A ".." for each directory in $ac_dir_suffix.
23458 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23459 case $ac_top_builddir_sub in
23460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23464 ac_abs_top_builddir=$ac_pwd
23465 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23466 # for backward compatibility:
23467 ac_top_builddir=$ac_top_build_prefix
23470 .) # We are building in place.
23472 ac_top_srcdir=$ac_top_builddir_sub
23473 ac_abs_top_srcdir=$ac_pwd ;;
23474 [\\/]* | ?:[\\/]* ) # Absolute name.
23475 ac_srcdir=$srcdir$ac_dir_suffix;
23476 ac_top_srcdir=$srcdir
23477 ac_abs_top_srcdir=$srcdir ;;
23478 *) # Relative name.
23479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23480 ac_top_srcdir=$ac_top_build_prefix$srcdir
23481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23493 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23494 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23496 ac_MKDIR_P=$MKDIR_P
23498 [\\/$]* | ?:[\\/]* ) ;;
23499 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23504 # If the template does not know about datarootdir, expand it.
23505 # FIXME: This hack should be removed a few years after 2.60.
23506 ac_datarootdir_hack=; ac_datarootdir_seen=
23517 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23518 *datarootdir*) ac_datarootdir_seen=yes;;
23519 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23521 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23524 ac_datarootdir_hack='
23525 s&@datadir@&$datadir&g
23526 s&@docdir@&$docdir&g
23527 s&@infodir@&$infodir&g
23528 s&@localedir@&$localedir&g
23529 s&@mandir@&$mandir&g
23530 s&\\\${datarootdir}&$datarootdir&g' ;;
23534 # Neutralize VPATH when `$srcdir' = `.'.
23535 # Shell code in configure.ac might set extrasub.
23536 # FIXME: do we really want to maintain this feature?
23537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23538 ac_sed_extra="$ac_vpsub
23541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23544 s|@configure_input@|$ac_sed_conf_input|;t t
23545 s&@top_builddir@&$ac_top_builddir_sub&;t t
23546 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23547 s&@srcdir@&$ac_srcdir&;t t
23548 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23549 s&@top_srcdir@&$ac_top_srcdir&;t t
23550 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23551 s&@builddir@&$ac_builddir&;t t
23552 s&@abs_builddir@&$ac_abs_builddir&;t t
23553 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23554 s&@INSTALL@&$ac_INSTALL&;t t
23555 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23556 $ac_datarootdir_hack
23558 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23559 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23561 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23562 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23563 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23564 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23566 which seems to be undefined. Please make sure it is defined" >&5
23567 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23568 which seems to be undefined. Please make sure it is defined" >&2;}
23570 rm -f "$ac_tmp/stdin"
23572 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23573 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23575 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23581 if test x"$ac_file" != x-; then
23583 $as_echo "/* $configure_input */" \
23584 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23585 } >"$ac_tmp/config.h" \
23586 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23587 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23589 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23592 mv "$ac_tmp/config.h" "$ac_file" \
23593 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23596 $as_echo "/* $configure_input */" \
23597 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23598 || as_fn_error $? "could not create -" "$LINENO" 5
23600 # Compute "$ac_file"'s index in $config_headers.
23603 for _am_header in $config_headers :; do
23604 case $_am_header in
23605 $_am_arg | $_am_arg:* )
23608 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23611 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23612 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23613 X"$_am_arg" : 'X\(//\)[^/]' \| \
23614 X"$_am_arg" : 'X\(//\)$' \| \
23615 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23616 $as_echo X"$_am_arg" |
23617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23621 /^X\(\/\/\)[^/].*/{
23633 s/.*/./; q'`/stamp-h$_am_stamp_count
23636 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23637 $as_echo "$as_me: executing $ac_file commands" >&6;}
23642 case $ac_file$ac_mode in
23643 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23644 # Older Autoconf quotes --file arguments for eval, but not when files
23645 # are listed without --file. Let's play safe and only enable the eval
23646 # if we detect the quoting.
23647 # TODO: see whether this extra hack can be removed once we start
23648 # requiring Autoconf 2.70 or later.
23649 case $CONFIG_FILES in #(
23651 eval set x "$CONFIG_FILES" ;; #(
23653 set x $CONFIG_FILES ;; #(
23658 # Used to flag and report bootstrapping failures.
23662 # Strip MF so we end up with the name of the file.
23663 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
23664 # Check whether this is an Automake generated Makefile which includes
23665 # dependency-tracking related rules and includes.
23666 # Grep'ing the whole file directly is not great: AIX grep has a line
23667 # limit of 2048, but all sed's we know have understand at least 4000.
23668 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23670 am_dirpart=`$as_dirname -- "$am_mf" ||
23671 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23672 X"$am_mf" : 'X\(//\)[^/]' \| \
23673 X"$am_mf" : 'X\(//\)$' \| \
23674 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23675 $as_echo X"$am_mf" |
23676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23680 /^X\(\/\/\)[^/].*/{
23693 am_filepart=`$as_basename -- "$am_mf" ||
23694 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23695 X"$am_mf" : 'X\(//\)$' \| \
23696 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23697 $as_echo X/"$am_mf" |
23698 sed '/^.*\/\([^/][^/]*\)\/*$/{
23711 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23712 && sed -e '/# am--include-marker/d' "$am_filepart" \
23713 | $MAKE -f - am--depfiles" >&5
23714 (cd "$am_dirpart" \
23715 && sed -e '/# am--include-marker/d' "$am_filepart" \
23716 | $MAKE -f - am--depfiles) >&5 2>&5
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); } || am_rc=$?
23721 if test $am_rc -ne 0; then
23722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23724 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23725 for automatic dependency tracking. Try re-running configure with the
23726 '--disable-dependency-tracking' option to at least be able to build
23727 the package (albeit without support for automatic dependency tracking).
23728 See \`config.log' for more details" "$LINENO" 5; }
23730 { am_dirpart=; unset am_dirpart;}
23731 { am_filepart=; unset am_filepart;}
23732 { am_mf=; unset am_mf;}
23733 { am_rc=; unset am_rc;}
23734 rm -f conftest-deps.mk
23739 # See if we are running on zsh, and set the options that allow our
23740 # commands through without removal of \ escapes.
23741 if test -n "${ZSH_VERSION+set}"; then
23742 setopt NO_GLOB_SUBST
23746 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23749 cat <<_LT_EOF >> "$cfgfile"
23751 # Generated automatically by $as_me ($PACKAGE) $VERSION
23752 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23754 # Provide generalized library-building support services.
23755 # Written by Gordon Matzigkeit, 1996
23757 # Copyright (C) 2014 Free Software Foundation, Inc.
23758 # This is free software; see the source for copying conditions. There is NO
23759 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23761 # GNU Libtool is free software; you can redistribute it and/or modify
23762 # it under the terms of the GNU General Public License as published by
23763 # the Free Software Foundation; either version 2 of of the License, or
23764 # (at your option) any later version.
23766 # As a special exception to the GNU General Public License, if you
23767 # distribute this file as part of a program or library that is built
23768 # using GNU Libtool, you may include this file under the same
23769 # distribution terms that you use for the rest of that program.
23771 # GNU Libtool is distributed in the hope that it will be useful, but
23772 # WITHOUT ANY WARRANTY; without even the implied warranty of
23773 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23774 # GNU General Public License for more details.
23776 # You should have received a copy of the GNU General Public License
23777 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23780 # The names of the tagged configurations supported by this script.
23781 available_tags='CXX '
23783 # Configured defaults for sys_lib_dlsearch_path munging.
23784 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23786 # ### BEGIN LIBTOOL CONFIG
23788 # Which release of libtool.m4 was used?
23789 macro_version=$macro_version
23790 macro_revision=$macro_revision
23792 # Whether or not to build static libraries.
23793 build_old_libs=$enable_static
23795 # Whether or not to build shared libraries.
23796 build_libtool_libs=$enable_shared
23798 # What type of objects to build.
23801 # Whether or not to optimize for fast installation.
23802 fast_install=$enable_fast_install
23804 # Shared archive member basename,for filename based shared library versioning on AIX.
23805 shared_archive_member_spec=$shared_archive_member_spec
23807 # Shell to use when invoking shell scripts.
23810 # An echo program that protects backslashes.
23813 # The PATH separator for the build system.
23814 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23817 host_alias=$host_alias
23821 # The build system.
23822 build_alias=$build_alias
23826 # A sed program that does not truncate output.
23829 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23830 Xsed="\$SED -e 1s/^X//"
23832 # A grep program that handles long lines.
23838 # A literal string matcher.
23841 # A BSD- or MS-compatible name lister.
23844 # Whether we need soft or hard links.
23847 # What is the maximum length of a command?
23848 max_cmd_len=$max_cmd_len
23850 # Object file suffix (normally "o").
23853 # Executable file suffix (normally "").
23856 # whether the shell understands "unset".
23859 # turn spaces into newlines.
23862 # turn newlines into spaces.
23865 # convert \$build file names to \$host format.
23866 to_host_file_cmd=$lt_cv_to_host_file_cmd
23868 # convert \$build files to toolchain format.
23869 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23871 # An object symbol dumper.
23872 OBJDUMP=$lt_OBJDUMP
23874 # Method to check whether dependent libraries are shared objects.
23875 deplibs_check_method=$lt_deplibs_check_method
23877 # Command to use when deplibs_check_method = "file_magic".
23878 file_magic_cmd=$lt_file_magic_cmd
23880 # How to find potential files when deplibs_check_method = "file_magic".
23881 file_magic_glob=$lt_file_magic_glob
23883 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23884 want_nocaseglob=$lt_want_nocaseglob
23886 # DLL creation program.
23887 DLLTOOL=$lt_DLLTOOL
23889 # Command to associate shared and link libraries.
23890 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23895 # Flags to create an archive.
23896 AR_FLAGS=$lt_AR_FLAGS
23898 # How to feed a file listing to the archiver.
23899 archiver_list_spec=$lt_archiver_list_spec
23901 # A symbol stripping program.
23904 # Commands used to install an old-style archive.
23906 old_postinstall_cmds=$lt_old_postinstall_cmds
23907 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23909 # Whether to use a lock for old archive extraction.
23910 lock_old_archive_extraction=$lock_old_archive_extraction
23915 # LTCC compiler flags.
23916 LTCFLAGS=$lt_CFLAGS
23918 # Take the output of nm and produce a listing of raw symbols and C names.
23919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23921 # Transform the output of nm in a proper C declaration.
23922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23924 # Transform the output of nm into a list of symbols to manually relocate.
23925 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23927 # Transform the output of nm in a C name address pair.
23928 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23930 # Transform the output of nm in a C name address pair when lib prefix is needed.
23931 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23933 # The name lister interface.
23934 nm_interface=$lt_lt_cv_nm_interface
23936 # Specify filename containing input files for \$NM.
23937 nm_file_list_spec=$lt_nm_file_list_spec
23939 # The root where to search for dependent libraries,and where our libraries should be installed.
23940 lt_sysroot=$lt_sysroot
23942 # Command to truncate a binary pipe.
23943 lt_truncate_bin=$lt_lt_cv_truncate_bin
23945 # The name of the directory that contains temporary libtool files.
23948 # Used to examine libraries when file_magic_cmd begins with "file".
23949 MAGIC_CMD=$MAGIC_CMD
23951 # Must we lock files when doing compilation?
23952 need_locks=$lt_need_locks
23955 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23957 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23958 DSYMUTIL=$lt_DSYMUTIL
23960 # Tool to change global to local symbols on Mac OS X.
23963 # Tool to manipulate fat objects and archives on Mac OS X.
23966 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23969 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23970 OTOOL64=$lt_OTOOL64
23972 # Old archive suffix (normally "a").
23975 # Shared library suffix (normally ".so").
23976 shrext_cmds=$lt_shrext_cmds
23978 # The commands to extract the exported symbol list from a shared archive.
23979 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23981 # Variables whose values should be saved in libtool wrapper scripts and
23982 # restored at link time.
23983 variables_saved_for_relink=$lt_variables_saved_for_relink
23985 # Do we need the "lib" prefix for modules?
23986 need_lib_prefix=$need_lib_prefix
23988 # Do we need a version for libraries?
23989 need_version=$need_version
23991 # Library versioning type.
23992 version_type=$version_type
23994 # Shared library runtime path variable.
23995 runpath_var=$runpath_var
23997 # Shared library path variable.
23998 shlibpath_var=$shlibpath_var
24000 # Is shlibpath searched before the hard-coded library search path?
24001 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24003 # Format of library name prefix.
24004 libname_spec=$lt_libname_spec
24006 # List of archive names. First name is the real one, the rest are links.
24007 # The last name is the one that the linker finds with -lNAME
24008 library_names_spec=$lt_library_names_spec
24010 # The coded name of the library, if different from the real name.
24011 soname_spec=$lt_soname_spec
24013 # Permission mode override for installation of shared libraries.
24014 install_override_mode=$lt_install_override_mode
24016 # Command to use after installation of a shared archive.
24017 postinstall_cmds=$lt_postinstall_cmds
24019 # Command to use after uninstallation of a shared archive.
24020 postuninstall_cmds=$lt_postuninstall_cmds
24022 # Commands used to finish a libtool library installation in a directory.
24023 finish_cmds=$lt_finish_cmds
24025 # As "finish_cmds", except a single script fragment to be evaled but
24027 finish_eval=$lt_finish_eval
24029 # Whether we should hardcode library paths into libraries.
24030 hardcode_into_libs=$hardcode_into_libs
24032 # Compile-time system search path for libraries.
24033 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24035 # Detected run-time system search path for libraries.
24036 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24038 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24039 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24041 # Whether dlopen is supported.
24042 dlopen_support=$enable_dlopen
24044 # Whether dlopen of programs is supported.
24045 dlopen_self=$enable_dlopen_self
24047 # Whether dlopen of statically linked programs is supported.
24048 dlopen_self_static=$enable_dlopen_self_static
24050 # Commands to strip libraries.
24051 old_striplib=$lt_old_striplib
24052 striplib=$lt_striplib
24055 # The linker used to build libraries.
24058 # How to create reloadable object files.
24059 reload_flag=$lt_reload_flag
24060 reload_cmds=$lt_reload_cmds
24062 # Commands used to build an old-style archive.
24063 old_archive_cmds=$lt_old_archive_cmds
24065 # A language specific compiler.
24068 # Is the compiler the GNU compiler?
24071 # Compiler flag to turn off builtin functions.
24072 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24074 # Additional compiler flags for building library objects.
24075 pic_flag=$lt_lt_prog_compiler_pic
24077 # How to pass a linker flag through the compiler.
24078 wl=$lt_lt_prog_compiler_wl
24080 # Compiler flag to prevent dynamic linking.
24081 link_static_flag=$lt_lt_prog_compiler_static
24083 # Does compiler simultaneously support -c and -o options?
24084 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24086 # Whether or not to add -lc for building shared libraries.
24087 build_libtool_need_lc=$archive_cmds_need_lc
24089 # Whether or not to disallow shared libs when runtime libs are static.
24090 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24092 # Compiler flag to allow reflexive dlopens.
24093 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24095 # Compiler flag to generate shared objects directly from archives.
24096 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24098 # Whether the compiler copes with passing no objects directly.
24099 compiler_needs_object=$lt_compiler_needs_object
24101 # Create an old-style archive from a shared archive.
24102 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24104 # Create a temporary old-style archive to link instead of a shared archive.
24105 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24107 # Commands used to build a shared archive.
24108 archive_cmds=$lt_archive_cmds
24109 archive_expsym_cmds=$lt_archive_expsym_cmds
24111 # Commands used to build a loadable module if different from building
24112 # a shared archive.
24113 module_cmds=$lt_module_cmds
24114 module_expsym_cmds=$lt_module_expsym_cmds
24116 # Whether we are building with GNU ld or not.
24117 with_gnu_ld=$lt_with_gnu_ld
24119 # Flag that allows shared libraries with undefined symbols to be built.
24120 allow_undefined_flag=$lt_allow_undefined_flag
24122 # Flag that enforces no undefined symbols.
24123 no_undefined_flag=$lt_no_undefined_flag
24125 # Flag to hardcode \$libdir into a binary during linking.
24126 # This must work even if \$libdir does not exist
24127 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24129 # Whether we need a single "-rpath" flag with a separated argument.
24130 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24132 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24133 # DIR into the resulting binary.
24134 hardcode_direct=$hardcode_direct
24136 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24137 # DIR into the resulting binary and the resulting library dependency is
24138 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24139 # library is relocated.
24140 hardcode_direct_absolute=$hardcode_direct_absolute
24142 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24143 # into the resulting binary.
24144 hardcode_minus_L=$hardcode_minus_L
24146 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24147 # into the resulting binary.
24148 hardcode_shlibpath_var=$hardcode_shlibpath_var
24150 # Set to "yes" if building a shared library automatically hardcodes DIR
24151 # into the library and all subsequent libraries and executables linked
24153 hardcode_automatic=$hardcode_automatic
24155 # Set to yes if linker adds runtime paths of dependent libraries
24156 # to runtime path list.
24157 inherit_rpath=$inherit_rpath
24159 # Whether libtool must link a program against all its dependency libraries.
24160 link_all_deplibs=$link_all_deplibs
24162 # Set to "yes" if exported symbols are required.
24163 always_export_symbols=$always_export_symbols
24165 # The commands to list exported symbols.
24166 export_symbols_cmds=$lt_export_symbols_cmds
24168 # Symbols that should not be listed in the preloaded symbols.
24169 exclude_expsyms=$lt_exclude_expsyms
24171 # Symbols that must always be exported.
24172 include_expsyms=$lt_include_expsyms
24174 # Commands necessary for linking programs (against libraries) with templates.
24175 prelink_cmds=$lt_prelink_cmds
24177 # Commands necessary for finishing linking programs.
24178 postlink_cmds=$lt_postlink_cmds
24180 # Specify filename containing input files.
24181 file_list_spec=$lt_file_list_spec
24183 # How to hardcode a shared library path into an executable.
24184 hardcode_action=$hardcode_action
24186 # The directories searched by this compiler when creating a shared library.
24187 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24189 # Dependencies to place before and after the objects being linked to
24190 # create a shared library.
24191 predep_objects=$lt_predep_objects
24192 postdep_objects=$lt_postdep_objects
24193 predeps=$lt_predeps
24194 postdeps=$lt_postdeps
24196 # The library search path used internally by the compiler when linking
24197 # a shared library.
24198 compiler_lib_search_path=$lt_compiler_lib_search_path
24200 # ### END LIBTOOL CONFIG
24204 cat <<'_LT_EOF' >> "$cfgfile"
24206 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24208 # func_munge_path_list VARIABLE PATH
24209 # -----------------------------------
24210 # VARIABLE is name of variable containing _space_ separated list of
24211 # directories to be munged by the contents of PATH, which is string
24214 # string "DIR[ DIR]" will be prepended to VARIABLE
24216 # string "DIR[ DIR]" will be appended to VARIABLE
24217 # "DIRP[:DIRP]::[DIRA:]DIRA"
24218 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24219 # "DIRA[ DIRA]" will be appended to VARIABLE
24221 # VARIABLE will be replaced by "DIR[ DIR]"
24222 func_munge_path_list ()
24228 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24231 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24234 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24235 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24238 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24244 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24245 func_cc_basename ()
24247 for cc_temp in $*""; do
24249 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24250 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24255 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24259 # ### END FUNCTIONS SHARED WITH CONFIGURE
24265 cat <<\_LT_EOF >> "$cfgfile"
24266 # AIX sometimes has problems with the GCC collect2 program. For some
24267 # reason, if we set the COLLECT_NAMES environment variable, the problems
24268 # vanish in a puff of smoke.
24269 if test set != "${COLLECT_NAMES+set}"; then
24271 export COLLECT_NAMES
24278 ltmain=$ac_aux_dir/ltmain.sh
24281 # We use sed instead of cat because bash on DJGPP gets confused if
24282 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24283 # text mode, it properly converts lines to CR/LF. This bash problem
24284 # is reportedly fixed, but why not run on old versions too?
24285 sed '$q' "$ltmain" >> "$cfgfile" \
24286 || (rm -f "$cfgfile"; exit 1)
24288 mv -f "$cfgfile" "$ofile" ||
24289 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24293 cat <<_LT_EOF >> "$ofile"
24295 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24297 # The linker used to build libraries.
24300 # How to create reloadable object files.
24301 reload_flag=$lt_reload_flag_CXX
24302 reload_cmds=$lt_reload_cmds_CXX
24304 # Commands used to build an old-style archive.
24305 old_archive_cmds=$lt_old_archive_cmds_CXX
24307 # A language specific compiler.
24308 CC=$lt_compiler_CXX
24310 # Is the compiler the GNU compiler?
24313 # Compiler flag to turn off builtin functions.
24314 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24316 # Additional compiler flags for building library objects.
24317 pic_flag=$lt_lt_prog_compiler_pic_CXX
24319 # How to pass a linker flag through the compiler.
24320 wl=$lt_lt_prog_compiler_wl_CXX
24322 # Compiler flag to prevent dynamic linking.
24323 link_static_flag=$lt_lt_prog_compiler_static_CXX
24325 # Does compiler simultaneously support -c and -o options?
24326 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24328 # Whether or not to add -lc for building shared libraries.
24329 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24331 # Whether or not to disallow shared libs when runtime libs are static.
24332 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24334 # Compiler flag to allow reflexive dlopens.
24335 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24337 # Compiler flag to generate shared objects directly from archives.
24338 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24340 # Whether the compiler copes with passing no objects directly.
24341 compiler_needs_object=$lt_compiler_needs_object_CXX
24343 # Create an old-style archive from a shared archive.
24344 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24346 # Create a temporary old-style archive to link instead of a shared archive.
24347 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24349 # Commands used to build a shared archive.
24350 archive_cmds=$lt_archive_cmds_CXX
24351 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24353 # Commands used to build a loadable module if different from building
24354 # a shared archive.
24355 module_cmds=$lt_module_cmds_CXX
24356 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24358 # Whether we are building with GNU ld or not.
24359 with_gnu_ld=$lt_with_gnu_ld_CXX
24361 # Flag that allows shared libraries with undefined symbols to be built.
24362 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24364 # Flag that enforces no undefined symbols.
24365 no_undefined_flag=$lt_no_undefined_flag_CXX
24367 # Flag to hardcode \$libdir into a binary during linking.
24368 # This must work even if \$libdir does not exist
24369 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24371 # Whether we need a single "-rpath" flag with a separated argument.
24372 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24374 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24375 # DIR into the resulting binary.
24376 hardcode_direct=$hardcode_direct_CXX
24378 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24379 # DIR into the resulting binary and the resulting library dependency is
24380 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24381 # library is relocated.
24382 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24384 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24385 # into the resulting binary.
24386 hardcode_minus_L=$hardcode_minus_L_CXX
24388 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24389 # into the resulting binary.
24390 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24392 # Set to "yes" if building a shared library automatically hardcodes DIR
24393 # into the library and all subsequent libraries and executables linked
24395 hardcode_automatic=$hardcode_automatic_CXX
24397 # Set to yes if linker adds runtime paths of dependent libraries
24398 # to runtime path list.
24399 inherit_rpath=$inherit_rpath_CXX
24401 # Whether libtool must link a program against all its dependency libraries.
24402 link_all_deplibs=$link_all_deplibs_CXX
24404 # Set to "yes" if exported symbols are required.
24405 always_export_symbols=$always_export_symbols_CXX
24407 # The commands to list exported symbols.
24408 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24410 # Symbols that should not be listed in the preloaded symbols.
24411 exclude_expsyms=$lt_exclude_expsyms_CXX
24413 # Symbols that must always be exported.
24414 include_expsyms=$lt_include_expsyms_CXX
24416 # Commands necessary for linking programs (against libraries) with templates.
24417 prelink_cmds=$lt_prelink_cmds_CXX
24419 # Commands necessary for finishing linking programs.
24420 postlink_cmds=$lt_postlink_cmds_CXX
24422 # Specify filename containing input files.
24423 file_list_spec=$lt_file_list_spec_CXX
24425 # How to hardcode a shared library path into an executable.
24426 hardcode_action=$hardcode_action_CXX
24428 # The directories searched by this compiler when creating a shared library.
24429 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24431 # Dependencies to place before and after the objects being linked to
24432 # create a shared library.
24433 predep_objects=$lt_predep_objects_CXX
24434 postdep_objects=$lt_postdep_objects_CXX
24435 predeps=$lt_predeps_CXX
24436 postdeps=$lt_postdeps_CXX
24438 # The library search path used internally by the compiler when linking
24439 # a shared library.
24440 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24442 # ### END LIBTOOL TAG CONFIG: CXX
24453 ac_clean_files=$ac_clean_files_save
24455 test $ac_write_fail = 0 ||
24456 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24459 # configure is writing to config.log, and then calls config.status.
24460 # config.status does its own redirection, appending to config.log.
24461 # Unfortunately, on DOS this fails, as config.log is still kept open
24462 # by configure, so config.status won't be able to write to it; its
24463 # output is simply discarded. So we exec the FD to /dev/null,
24464 # effectively closing config.log, so it can be properly (re)opened and
24465 # appended to by config.status. When coming back to configure, we
24466 # need to make the FD available again.
24467 if test "$no_create" != yes; then
24469 ac_config_status_args=
24470 test "$silent" = yes &&
24471 ac_config_status_args="$ac_config_status_args --quiet"
24473 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24475 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24476 # would make configure fail if this is the last instruction.
24477 $ac_cs_success || as_fn_exit 1
24479 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24481 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24486 echo "C++ compiler version:"
24490 { $as_echo "$as_me:${as_lineno-$LINENO}:
24492 Autotools is no longer our supported build system for building the library
24493 for *nix distributions, please migrate to meson.
24498 Autotools is no longer our supported build system for building the library
24499 for *nix distributions, please migrate to meson.
24504 { $as_echo "$as_me:${as_lineno-$LINENO}:
24506 Build configuration:
24508 Unicode callbacks (you want at least one):
24513 Font callbacks (the more the merrier):
24514 FreeType: ${have_freetype}
24516 Tools used for command-line utilities:
24517 Cairo: ${have_cairo}
24518 Chafa: ${have_chafa}
24520 Additional shapers:
24521 Graphite2: ${have_graphite2}
24523 Platform shapers (not normally needed):
24524 CoreText: ${have_coretext}
24525 DirectWrite: ${have_directwrite}
24527 Uniscribe: ${have_uniscribe}
24530 Documentation: ${enable_gtk_doc}
24531 GObject bindings: ${have_gobject}
24532 Introspection: ${have_introspection}
24536 Build configuration:
24538 Unicode callbacks (you want at least one):
24543 Font callbacks (the more the merrier):
24544 FreeType: ${have_freetype}
24546 Tools used for command-line utilities:
24547 Cairo: ${have_cairo}
24548 Chafa: ${have_chafa}
24550 Additional shapers:
24551 Graphite2: ${have_graphite2}
24553 Platform shapers (not normally needed):
24554 CoreText: ${have_coretext}
24555 DirectWrite: ${have_directwrite}
24557 Uniscribe: ${have_uniscribe}
24560 Documentation: ${enable_gtk_doc}
24561 GObject bindings: ${have_gobject}
24562 Introspection: ${have_introspection}