2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for HarfBuzz 2.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='2.4.0'
594 PACKAGE_STRING='HarfBuzz 2.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
663 HAVE_ICU_BUILTIN_FALSE
664 HAVE_ICU_BUILTIN_TRUE
670 HAVE_FONTCONFIG_FALSE
682 HAVE_INTROSPECTION_FALSE
683 HAVE_INTROSPECTION_TRUE
684 INTROSPECTION_MAKEFILE
687 INTROSPECTION_TYPELIBDIR
689 INTROSPECTION_GENERATE
690 INTROSPECTION_COMPILER
691 INTROSPECTION_SCANNER
715 GTK_DOC_USE_REBASE_FALSE
716 GTK_DOC_USE_REBASE_TRUE
717 GTK_DOC_USE_LIBTOOL_FALSE
718 GTK_DOC_USE_LIBTOOL_TRUE
719 GTK_DOC_BUILD_PDF_FALSE
720 GTK_DOC_BUILD_PDF_TRUE
721 GTK_DOC_BUILD_HTML_FALSE
722 GTK_DOC_BUILD_HTML_TRUE
736 HB_LIBTOOL_VERSION_INFO
800 CODE_COVERAGE_LDFLAGS
802 CODE_COVERAGE_CXXFLAGS
804 CODE_COVERAGE_CPPFLAGS
808 CODE_COVERAGE_ENABLED
809 CODE_COVERAGE_ENABLED_FALSE
810 CODE_COVERAGE_ENABLED_TRUE
824 INSTALL_STRIP_PROGRAM
866 program_transform_name
880 enable_option_checking
884 enable_dependency_tracking
912 ac_precious_vars='build_alias
949 # Initialize some variables set by options.
951 ac_init_version=false
952 ac_unrecognized_opts=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
963 program_transform_name=s,x,x,
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1009 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1016 case $ac_dashdash$ac_option in
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1040 -datadir | --datadir | --datadi | --datad)
1042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043 datadir=$ac_optarg ;;
1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1052 -disable-* | --disable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error $? "invalid feature name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1061 "enable_$ac_useropt"
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1066 eval enable_$ac_useropt=no ;;
1068 -docdir | --docdir | --docdi | --doc | --do)
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
1078 -enable-* | --enable-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error $? "invalid feature name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1087 "enable_$ac_useropt"
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1092 eval enable_$ac_useropt=\$ac_optarg ;;
1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096 | --exec | --exe | --ex)
1097 ac_prev=exec_prefix ;;
1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100 | --exec=* | --exe=* | --ex=*)
1101 exec_prefix=$ac_optarg ;;
1103 -gas | --gas | --ga | --g)
1104 # Obsolete; use --with-gas.
1107 -help | --help | --hel | --he | -h)
1108 ac_init_help=long ;;
1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110 ac_init_help=recursive ;;
1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112 ac_init_help=short ;;
1114 -host | --host | --hos | --ho)
1115 ac_prev=host_alias ;;
1116 -host=* | --host=* | --hos=* | --ho=*)
1117 host_alias=$ac_optarg ;;
1119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123 htmldir=$ac_optarg ;;
1125 -includedir | --includedir | --includedi | --included | --include \
1126 | --includ | --inclu | --incl | --inc)
1127 ac_prev=includedir ;;
1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129 | --includ=* | --inclu=* | --incl=* | --inc=*)
1130 includedir=$ac_optarg ;;
1132 -infodir | --infodir | --infodi | --infod | --info | --inf)
1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135 infodir=$ac_optarg ;;
1137 -libdir | --libdir | --libdi | --libd)
1139 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140 libdir=$ac_optarg ;;
1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143 | --libexe | --libex | --libe)
1144 ac_prev=libexecdir ;;
1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146 | --libexe=* | --libex=* | --libe=*)
1147 libexecdir=$ac_optarg ;;
1149 -localedir | --localedir | --localedi | --localed | --locale)
1150 ac_prev=localedir ;;
1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152 localedir=$ac_optarg ;;
1154 -localstatedir | --localstatedir | --localstatedi | --localstated \
1155 | --localstate | --localstat | --localsta | --localst | --locals)
1156 ac_prev=localstatedir ;;
1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159 localstatedir=$ac_optarg ;;
1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164 mandir=$ac_optarg ;;
1166 -nfp | --nfp | --nf)
1167 # Obsolete; use --without-fp.
1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171 | --no-cr | --no-c | -n)
1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180 | --oldin | --oldi | --old | --ol | --o)
1181 ac_prev=oldincludedir ;;
1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185 oldincludedir=$ac_optarg ;;
1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190 prefix=$ac_optarg ;;
1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193 | --program-pre | --program-pr | --program-p)
1194 ac_prev=program_prefix ;;
1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197 program_prefix=$ac_optarg ;;
1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200 | --program-suf | --program-su | --program-s)
1201 ac_prev=program_suffix ;;
1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204 program_suffix=$ac_optarg ;;
1206 -program-transform-name | --program-transform-name \
1207 | --program-transform-nam | --program-transform-na \
1208 | --program-transform-n | --program-transform- \
1209 | --program-transform | --program-transfor \
1210 | --program-transfo | --program-transf \
1211 | --program-trans | --program-tran \
1212 | --progr-tra | --program-tr | --program-t)
1213 ac_prev=program_transform_name ;;
1214 -program-transform-name=* | --program-transform-name=* \
1215 | --program-transform-nam=* | --program-transform-na=* \
1216 | --program-transform-n=* | --program-transform-=* \
1217 | --program-transform=* | --program-transfor=* \
1218 | --program-transfo=* | --program-transf=* \
1219 | --program-trans=* | --program-tran=* \
1220 | --progr-tra=* | --program-tr=* | --program-t=*)
1221 program_transform_name=$ac_optarg ;;
1223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226 pdfdir=$ac_optarg ;;
1228 -psdir | --psdir | --psdi | --psd | --ps)
1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 sbindir=$ac_optarg ;;
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 sharedstatedir=$ac_optarg ;;
1254 -site | --site | --sit)
1256 -site=* | --site=* | --sit=*)
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262 srcdir=$ac_optarg ;;
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269 sysconfdir=$ac_optarg ;;
1271 -target | --target | --targe | --targ | --tar | --ta | --t)
1272 ac_prev=target_alias ;;
1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274 target_alias=$ac_optarg ;;
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
1283 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error $? "invalid package name: $ac_useropt"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1296 eval with_$ac_useropt=\$ac_optarg ;;
1298 -without-* | --without-*)
1299 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 as_fn_error $? "invalid package name: $ac_useropt"
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1312 eval with_$ac_useropt=no ;;
1315 # Obsolete; use --with-x.
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323 x_includes=$ac_optarg ;;
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330 x_libraries=$ac_optarg ;;
1332 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1333 Try \`$0 --help' for more information"
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 case $ac_envvar in #(
1340 '' | [0-9]* | *[!_$as_cr_alnum]* )
1341 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1343 eval $ac_envvar=\$ac_optarg
1344 export $ac_envvar ;;
1347 # FIXME: should be removed in autoconf 3.0.
1348 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1357 if test -n "$ac_prev"; then
1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 as_fn_error $? "missing argument to $ac_option"
1362 if test -n "$ac_unrecognized_opts"; then
1363 case $enable_option_checking in
1365 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1366 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370 # Check all directory arguments for consistency.
1371 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372 datadir sysconfdir sharedstatedir localstatedir includedir \
1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374 libdir localedir mandir
1376 eval ac_val=\$$ac_var
1377 # Remove trailing slashes.
1380 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381 eval $ac_var=\$ac_val;;
1383 # Be sure to have absolute directory names.
1385 [\\/$]* | ?:[\\/]* ) continue;;
1386 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1391 # There might be people who depend on the old broken behavior: `$host'
1392 # used to hold the argument of --host etc.
1393 # FIXME: To remove some day.
1396 target=$target_alias
1398 # FIXME: To remove some day.
1399 if test "x$host_alias" != x; then
1400 if test "x$build_alias" = x; then
1401 cross_compiling=maybe
1402 elif test "x$build_alias" != "x$host_alias"; then
1408 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410 test "$silent" = yes && exec 6>/dev/null
1413 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414 ac_ls_di=`ls -di .` &&
1415 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416 as_fn_error $? "working directory cannot be determined"
1417 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418 as_fn_error $? "pwd does not report name of working directory"
1421 # Find the source files, if location was not specified.
1422 if test -z "$srcdir"; then
1423 ac_srcdir_defaulted=yes
1424 # Try the directory containing this script, then the parent directory.
1425 ac_confdir=`$as_dirname -- "$as_myself" ||
1426 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427 X"$as_myself" : 'X\(//\)[^/]' \| \
1428 X"$as_myself" : 'X\(//\)$' \| \
1429 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430 $as_echo X"$as_myself" |
1431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1453 ac_srcdir_defaulted=no
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1457 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1459 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1463 # When building in place, set srcdir=.
1464 if test "$ac_abs_confdir" = "$ac_pwd"; then
1467 # Remove unnecessary trailing slashes from srcdir.
1468 # Double slashes in file names in object file debugging info
1469 # mess up M-x gdb in Emacs.
1471 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 for ac_var in $ac_precious_vars; do
1474 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_${ac_var}_value=\$${ac_var}
1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481 # Report the --help message.
1483 if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
1487 \`configure' configures HarfBuzz 2.4.0 to adapt to many kinds of systems.
1489 Usage: $0 [OPTION]... [VAR=VALUE]...
1491 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492 VAR=VALUE. See below for descriptions of some of the useful variables.
1494 Defaults for the options are specified in brackets.
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print \`checking ...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507 Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
1509 [$ac_default_prefix]
1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1513 By default, \`make install' will install all the files in
1514 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516 for instance \`--prefix=\$HOME'.
1518 For better control, use the options below.
1520 Fine tuning of the installation directories:
1521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --libdir=DIR object code libraries [EPREFIX/lib]
1528 --includedir=DIR C header files [PREFIX/include]
1529 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1532 --infodir=DIR info documentation [DATAROOTDIR/info]
1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1534 --mandir=DIR man documentation [DATAROOTDIR/man]
1535 --docdir=DIR documentation root [DATAROOTDIR/doc/harfbuzz]
1536 --htmldir=DIR html documentation [DOCDIR]
1537 --dvidir=DIR dvi documentation [DOCDIR]
1538 --pdfdir=DIR pdf documentation [DOCDIR]
1539 --psdir=DIR ps documentation [DOCDIR]
1545 --program-prefix=PREFIX prepend PREFIX to installed program names
1546 --program-suffix=SUFFIX append SUFFIX to installed program names
1547 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1550 --build=BUILD configure for building on BUILD [guessed]
1551 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1555 if test -n "$ac_init_help"; then
1556 case $ac_init_help in
1557 short | recursive ) echo "Configuration of HarfBuzz 2.4.0:";;
1562 --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1565 --enable-silent-rules less verbose build output (undo: "make V=1")
1566 --disable-silent-rules verbose build output (undo: "make V=0")
1567 --enable-code-coverage Whether to enable code coverage support
1568 --enable-dependency-tracking
1569 do not reject slow dependency extractors
1570 --disable-dependency-tracking
1571 speeds up one-time build
1572 --enable-static[=PKGS] build static libraries [default=no]
1573 --enable-shared[=PKGS] build shared libraries [default=yes]
1574 --enable-fast-install[=PKGS]
1575 optimize for fast installation [default=yes]
1576 --disable-libtool-lock avoid locking (might break parallel builds)
1577 --disable-largefile omit support for large files
1578 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1579 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1580 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1581 --enable-introspection=[no/auto/yes]
1582 Enable introspection for this build
1585 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1586 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1587 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1588 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1590 --with-aix-soname=aix|svr4|both
1591 shared library versioning (aka "SONAME") variant to
1592 provide on AIX, [default=aix].
1593 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1594 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1595 compiler's sysroot if not specified).
1596 --with-libstdc++=[yes/no]
1597 Allow linking with libstdc++ [default=no]
1598 --with-html-dir=PATH path to installed docs
1599 --with-glib=[yes/no/auto]
1600 Use glib [default=auto]
1601 --with-gobject=[yes/no/auto]
1602 Use gobject [default=no]
1603 --with-cairo=[yes/no/auto]
1604 Use cairo [default=auto]
1605 --with-fontconfig=[yes/no/auto]
1606 Use fontconfig [default=auto]
1607 --with-icu=[yes/no/builtin/auto]
1608 Use ICU [default=auto]
1609 --with-ucdn=[yes/no] Use builtin UCDN library [default=yes]
1610 --with-graphite2=[yes/no/auto]
1611 Use the graphite2 library [default=no]
1612 --with-freetype=[yes/no/auto]
1613 Use the FreeType library [default=auto]
1614 --with-uniscribe=[yes/no/auto]
1615 Use the Uniscribe library [default=no]
1616 --with-directwrite=[yes/no/auto]
1617 Use the DirectWrite library (experimental)
1619 --with-coretext=[yes/no/auto]
1620 Use CoreText [default=no]
1622 Some influential environment variables:
1623 CC C compiler command
1624 CFLAGS C compiler flags
1625 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1626 nonstandard directory <lib dir>
1627 LIBS libraries to pass to the linker, e.g. -l<library>
1628 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1629 you have headers in a nonstandard directory <include dir>
1631 User-defined run-time library search path.
1633 CXX C++ compiler command
1634 CXXFLAGS C++ compiler flags
1635 CXXCPP C++ preprocessor
1636 PKG_CONFIG path to pkg-config utility
1638 directories to add to pkg-config's search path
1640 path overriding pkg-config's built-in search path
1642 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1644 linker flags for GTKDOC_DEPS, overriding pkg-config
1645 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1646 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1648 C compiler flags for GOBJECT, overriding pkg-config
1650 linker flags for GOBJECT, overriding pkg-config
1652 C compiler flags for CAIRO, overriding pkg-config
1653 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1655 C compiler flags for CAIRO_FT, overriding pkg-config
1657 linker flags for CAIRO_FT, overriding pkg-config
1659 C compiler flags for FONTCONFIG, overriding pkg-config
1661 linker flags for FONTCONFIG, overriding pkg-config
1662 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1663 ICU_LIBS linker flags for ICU, overriding pkg-config
1665 C compiler flags for GRAPHITE2, overriding pkg-config
1667 linker flags for GRAPHITE2, overriding pkg-config
1669 C compiler flags for FREETYPE, overriding pkg-config
1671 linker flags for FREETYPE, overriding pkg-config
1673 Use these variables to override the choices made by `configure' or to help
1674 it to find libraries and programs with nonstandard names/locations.
1676 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
1677 HarfBuzz home page: <http://harfbuzz.org/>.
1682 if test "$ac_init_help" = "recursive"; then
1683 # If there are subdirs, report their specific --help.
1684 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1685 test -d "$ac_dir" ||
1686 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1691 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1693 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1694 # A ".." for each directory in $ac_dir_suffix.
1695 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1696 case $ac_top_builddir_sub in
1697 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1701 ac_abs_top_builddir=$ac_pwd
1702 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1703 # for backward compatibility:
1704 ac_top_builddir=$ac_top_build_prefix
1707 .) # We are building in place.
1709 ac_top_srcdir=$ac_top_builddir_sub
1710 ac_abs_top_srcdir=$ac_pwd ;;
1711 [\\/]* | ?:[\\/]* ) # Absolute name.
1712 ac_srcdir=$srcdir$ac_dir_suffix;
1713 ac_top_srcdir=$srcdir
1714 ac_abs_top_srcdir=$srcdir ;;
1716 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1717 ac_top_srcdir=$ac_top_build_prefix$srcdir
1718 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1720 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1722 cd "$ac_dir" || { ac_status=$?; continue; }
1723 # Check for guested configure.
1724 if test -f "$ac_srcdir/configure.gnu"; then
1726 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1727 elif test -f "$ac_srcdir/configure"; then
1729 $SHELL "$ac_srcdir/configure" --help=recursive
1731 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1733 cd "$ac_pwd" || { ac_status=$?; break; }
1737 test -n "$ac_init_help" && exit $ac_status
1738 if $ac_init_version; then
1740 HarfBuzz configure 2.4.0
1741 generated by GNU Autoconf 2.69
1743 Copyright (C) 2012 Free Software Foundation, Inc.
1744 This configure script is free software; the Free Software Foundation
1745 gives unlimited permission to copy, distribute and modify it.
1750 ## ------------------------ ##
1751 ## Autoconf initialization. ##
1752 ## ------------------------ ##
1754 # ac_fn_c_try_compile LINENO
1755 # --------------------------
1756 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_c_try_compile ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext
1761 if { { ac_try="$ac_compile"
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_compile") 2>conftest.err
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest.$ac_objext; then :
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1790 } # ac_fn_c_try_compile
1792 # ac_fn_c_try_link LINENO
1793 # -----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded.
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 test -x conftest$ac_exeext
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
1836 } # ac_fn_c_try_link
1838 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1839 # -------------------------------------------------------
1840 # Tests whether HEADER exists and can be compiled using the include files in
1841 # INCLUDES, setting the cache variable VAR accordingly.
1842 ac_fn_c_check_header_compile ()
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1855 if ac_fn_c_try_compile "$LINENO"; then :
1860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 } # ac_fn_c_check_header_compile
1869 # ac_fn_c_try_cpp LINENO
1870 # ----------------------
1871 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_cpp conftest.$ac_ext"
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1884 if test -s conftest.err; then
1885 grep -v '^ *+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } > conftest.i && {
1891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1906 # ac_fn_c_try_run LINENO
1907 # ----------------------
1908 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1909 # that executables *can* be run.
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 if { { ac_try="$ac_link"
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_link") 2>&5
1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1924 { { case "(($ac_try" in
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 $as_echo "$ac_try_echo"; } >&5
1930 (eval "$ac_try") 2>&5
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; }; }; then :
1936 $as_echo "$as_me: program exited with status $ac_status" >&5
1937 $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1940 ac_retval=$ac_status
1942 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 as_fn_set_status $ac_retval
1948 # ac_fn_c_check_func LINENO FUNC VAR
1949 # ----------------------------------
1950 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1951 ac_fn_c_check_func ()
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if eval \${$3+:} false; then :
1957 $as_echo_n "(cached) " >&6
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1961 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1963 #define $2 innocuous_$2
1965 /* System header to define __stub macros and hopefully few prototypes,
1966 which can conflict with char $2 (); below.
1967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1968 <limits.h> exists even on freestanding compilers. */
1971 # include <limits.h>
1973 # include <assert.h>
1978 /* Override any GCC internal prototype to avoid an error.
1979 Use char because int might match the return type of a GCC
1980 builtin and then its argument prototype would still apply. */
1985 /* The GNU C library defines this for functions which it implements
1986 to always fail with ENOSYS. Some functions are actually named
1987 something starting with __ and the normal name is an alias. */
1988 #if defined __stub_$2 || defined __stub___$2
2000 if ac_fn_c_try_link "$LINENO"; then :
2005 rm -f core conftest.err conftest.$ac_objext \
2006 conftest$ac_exeext conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 } # ac_fn_c_check_func
2015 # ac_fn_cxx_try_compile LINENO
2016 # ----------------------------
2017 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2018 ac_fn_cxx_try_compile ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 rm -f conftest.$ac_objext
2022 if { { ac_try="$ac_compile"
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_compile") 2>conftest.err
2031 if test -s conftest.err; then
2032 grep -v '^ *+' conftest.err >conftest.er1
2033 cat conftest.er1 >&5
2034 mv -f conftest.er1 conftest.err
2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037 test $ac_status = 0; } && {
2038 test -z "$ac_cxx_werror_flag" ||
2039 test ! -s conftest.err
2040 } && test -s conftest.$ac_objext; then :
2043 $as_echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049 as_fn_set_status $ac_retval
2051 } # ac_fn_cxx_try_compile
2053 # ac_fn_cxx_try_cpp LINENO
2054 # ------------------------
2055 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2056 ac_fn_cxx_try_cpp ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 if { { ac_try="$ac_cpp conftest.$ac_ext"
2061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062 *) ac_try_echo=$ac_try;;
2064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065 $as_echo "$ac_try_echo"; } >&5
2066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2068 if test -s conftest.err; then
2069 grep -v '^ *+' conftest.err >conftest.er1
2070 cat conftest.er1 >&5
2071 mv -f conftest.er1 conftest.err
2073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074 test $ac_status = 0; } > conftest.i && {
2075 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2076 test ! -s conftest.err
2080 $as_echo "$as_me: failed program was:" >&5
2081 sed 's/^/| /' conftest.$ac_ext >&5
2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 as_fn_set_status $ac_retval
2088 } # ac_fn_cxx_try_cpp
2090 # ac_fn_cxx_try_link LINENO
2091 # -------------------------
2092 # Try to link conftest.$ac_ext, and return whether this succeeded.
2093 ac_fn_cxx_try_link ()
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 rm -f conftest.$ac_objext conftest$ac_exeext
2097 if { { ac_try="$ac_link"
2099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100 *) ac_try_echo=$ac_try;;
2102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2103 $as_echo "$ac_try_echo"; } >&5
2104 (eval "$ac_link") 2>conftest.err
2106 if test -s conftest.err; then
2107 grep -v '^ *+' conftest.err >conftest.er1
2108 cat conftest.er1 >&5
2109 mv -f conftest.er1 conftest.err
2111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2112 test $ac_status = 0; } && {
2113 test -z "$ac_cxx_werror_flag" ||
2114 test ! -s conftest.err
2115 } && test -s conftest$ac_exeext && {
2116 test "$cross_compiling" = yes ||
2117 test -x conftest$ac_exeext
2121 $as_echo "$as_me: failed program was:" >&5
2122 sed 's/^/| /' conftest.$ac_ext >&5
2126 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2127 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2128 # interfere with the next link command; also delete a directory that is
2129 # left behind by Apple's compiler. We do this before executing the actions.
2130 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 as_fn_set_status $ac_retval
2134 } # ac_fn_cxx_try_link
2136 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2137 # ---------------------------------------------
2138 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2140 ac_fn_c_check_decl ()
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 as_decl_name=`echo $2|sed 's/ *(.*//'`
2144 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2146 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2147 if eval \${$3+:} false; then :
2148 $as_echo_n "(cached) " >&6
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2156 #ifndef $as_decl_name
2158 (void) $as_decl_use;
2160 (void) $as_decl_name;
2168 if ac_fn_c_try_compile "$LINENO"; then :
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180 } # ac_fn_c_check_decl
2182 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2183 # -------------------------------------------------------
2184 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2185 # the include files in INCLUDES and setting the cache variable VAR
2187 ac_fn_c_check_header_mongrel ()
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 if eval \${$3+:} false; then :
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if eval \${$3+:} false; then :
2194 $as_echo_n "(cached) " >&6
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198 $as_echo "$ac_res" >&6; }
2200 # Is the header compilable?
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2202 $as_echo_n "checking $2 usability... " >&6; }
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2208 if ac_fn_c_try_compile "$LINENO"; then :
2209 ac_header_compiler=yes
2211 ac_header_compiler=no
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2215 $as_echo "$ac_header_compiler" >&6; }
2217 # Is the header present?
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2219 $as_echo_n "checking $2 presence... " >&6; }
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2224 if ac_fn_c_try_cpp "$LINENO"; then :
2225 ac_header_preproc=yes
2227 ac_header_preproc=no
2229 rm -f conftest.err conftest.i conftest.$ac_ext
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2231 $as_echo "$ac_header_preproc" >&6; }
2233 # So? What about this header?
2234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2237 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2239 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2243 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2245 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2247 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2249 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2251 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2252 ( $as_echo "## -------------------------------------------------------------- ##
2253 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2254 ## -------------------------------------------------------------- ##"
2255 ) | sed "s/^/$as_me: WARNING: /" >&2
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if eval \${$3+:} false; then :
2261 $as_echo_n "(cached) " >&6
2263 eval "$3=\$ac_header_compiler"
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2267 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 } # ac_fn_c_check_header_mongrel
2273 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2274 # --------------------------------------------
2275 # Tries to find the compile-time value of EXPR in a program that includes
2276 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2278 ac_fn_c_compute_int ()
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 if test "$cross_compiling" = yes; then
2282 # Depending upon the size, compute the lo and hi bounds.
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2289 static int test_array [1 - 2 * !(($2) >= 0)];
2291 return test_array [0];
2297 if ac_fn_c_try_compile "$LINENO"; then :
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2306 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2308 return test_array [0];
2314 if ac_fn_c_try_compile "$LINENO"; then :
2315 ac_hi=$ac_mid; break
2317 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2318 if test $ac_lo -le $ac_mid; then
2322 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h. */
2333 static int test_array [1 - 2 * !(($2) < 0)];
2335 return test_array [0];
2341 if ac_fn_c_try_compile "$LINENO"; then :
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h. */
2350 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2352 return test_array [0];
2358 if ac_fn_c_try_compile "$LINENO"; then :
2359 ac_lo=$ac_mid; break
2361 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2362 if test $ac_mid -le $ac_hi; then
2366 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 # Binary search between lo and hi bounds.
2377 while test "x$ac_lo" != "x$ac_hi"; do
2378 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h. */
2385 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2387 return test_array [0];
2393 if ac_fn_c_try_compile "$LINENO"; then :
2396 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2408 static long int longval () { return $2; }
2409 static unsigned long int ulongval () { return $2; }
2416 FILE *f = fopen ("conftest.val", "w");
2421 long int i = longval ();
2424 fprintf (f, "%ld", i);
2428 unsigned long int i = ulongval ();
2431 fprintf (f, "%lu", i);
2433 /* Do not output a trailing newline, as this causes \r\n confusion
2434 on some platforms. */
2435 return ferror (f) || fclose (f) != 0;
2441 if ac_fn_c_try_run "$LINENO"; then :
2442 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2447 conftest.$ac_objext conftest.beam conftest.$ac_ext
2451 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2452 as_fn_set_status $ac_retval
2454 } # ac_fn_c_compute_int
2456 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2457 # ---------------------------------------------------------
2458 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2459 # the include files in INCLUDES and setting the cache variable VAR
2461 ac_fn_cxx_check_header_mongrel ()
2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464 if eval \${$3+:} false; then :
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2466 $as_echo_n "checking for $2... " >&6; }
2467 if eval \${$3+:} false; then :
2468 $as_echo_n "(cached) " >&6
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2474 # Is the header compilable?
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2476 $as_echo_n "checking $2 usability... " >&6; }
2477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h. */
2482 if ac_fn_cxx_try_compile "$LINENO"; then :
2483 ac_header_compiler=yes
2485 ac_header_compiler=no
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2489 $as_echo "$ac_header_compiler" >&6; }
2491 # Is the header present?
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2493 $as_echo_n "checking $2 presence... " >&6; }
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h. */
2498 if ac_fn_cxx_try_cpp "$LINENO"; then :
2499 ac_header_preproc=yes
2501 ac_header_preproc=no
2503 rm -f conftest.err conftest.i conftest.$ac_ext
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2505 $as_echo "$ac_header_preproc" >&6; }
2507 # So? What about this header?
2508 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2511 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2513 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2517 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2519 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2521 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2523 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2525 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2526 ( $as_echo "## -------------------------------------------------------------- ##
2527 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2528 ## -------------------------------------------------------------- ##"
2529 ) | sed "s/^/$as_me: WARNING: /" >&2
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2533 $as_echo_n "checking for $2... " >&6; }
2534 if eval \${$3+:} false; then :
2535 $as_echo_n "(cached) " >&6
2537 eval "$3=\$ac_header_compiler"
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2541 $as_echo "$ac_res" >&6; }
2543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2545 } # ac_fn_cxx_check_header_mongrel
2547 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2548 # -------------------------------------------
2549 # Tests whether TYPE exists after having included INCLUDES, setting cache
2550 # variable VAR accordingly.
2551 ac_fn_c_check_type ()
2553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2555 $as_echo_n "checking for $2... " >&6; }
2556 if eval \${$3+:} false; then :
2557 $as_echo_n "(cached) " >&6
2560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561 /* end confdefs.h. */
2572 if ac_fn_c_try_compile "$LINENO"; then :
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2585 if ac_fn_c_try_compile "$LINENO"; then :
2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2596 $as_echo "$ac_res" >&6; }
2597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2599 } # ac_fn_c_check_type
2600 cat >config.log <<_ACEOF
2601 This file contains any messages produced by compilers while
2602 running configure, to aid debugging if configure makes a mistake.
2604 It was created by HarfBuzz $as_me 2.4.0, which was
2605 generated by GNU Autoconf 2.69. Invocation command line was
2617 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2618 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2619 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2620 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2621 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2623 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2624 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2626 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2627 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2628 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2629 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2630 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2631 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2632 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir=.
2641 $as_echo "PATH: $as_dir"
2657 # Keep a trace of the command line.
2658 # Strip out --no-create and --no-recursion so they do not pile up.
2659 # Strip out --silent because we don't want to record it for future runs.
2660 # Also quote any args containing shell meta-characters.
2661 # Make two passes to allow for proper duplicate-argument suppression.
2665 ac_must_keep_next=false
2671 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2673 | -silent | --silent | --silen | --sile | --sil)
2676 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2679 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2681 as_fn_append ac_configure_args1 " '$ac_arg'"
2682 if test $ac_must_keep_next = true; then
2683 ac_must_keep_next=false # Got value, back to normal.
2686 *=* | --config-cache | -C | -disable-* | --disable-* \
2687 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2688 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2689 | -with-* | --with-* | -without-* | --without-* | --x)
2690 case "$ac_configure_args0 " in
2691 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2694 -* ) ac_must_keep_next=true ;;
2697 as_fn_append ac_configure_args " '$ac_arg'"
2702 { ac_configure_args0=; unset ac_configure_args0;}
2703 { ac_configure_args1=; unset ac_configure_args1;}
2705 # When interrupted or exit'd, cleanup temporary files, and complete
2706 # config.log. We remove comments because anyway the quotes in there
2707 # would cause problems or look ugly.
2708 # WARNING: Use '\'' to represent an apostrophe within the trap.
2709 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2710 trap 'exit_status=$?
2711 # Save into config.log some information that might help in debugging.
2715 $as_echo "## ---------------- ##
2716 ## Cache variables. ##
2717 ## ---------------- ##"
2719 # The following way of writing the cache mishandles newlines in values,
2721 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2722 eval ac_val=\$$ac_var
2726 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2727 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2730 _ | IFS | as_nl) ;; #(
2731 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2732 *) { eval $ac_var=; unset $ac_var;} ;;
2737 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2738 *${as_nl}ac_space=\ *)
2740 "s/'\''/'\''\\\\'\'''\''/g;
2741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2751 $as_echo "## ----------------- ##
2752 ## Output variables. ##
2753 ## ----------------- ##"
2755 for ac_var in $ac_subst_vars
2757 eval ac_val=\$$ac_var
2759 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2761 $as_echo "$ac_var='\''$ac_val'\''"
2765 if test -n "$ac_subst_files"; then
2766 $as_echo "## ------------------- ##
2767 ## File substitutions. ##
2768 ## ------------------- ##"
2770 for ac_var in $ac_subst_files
2772 eval ac_val=\$$ac_var
2774 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2776 $as_echo "$ac_var='\''$ac_val'\''"
2781 if test -s confdefs.h; then
2782 $as_echo "## ----------- ##
2789 test "$ac_signal" != 0 &&
2790 $as_echo "$as_me: caught signal $ac_signal"
2791 $as_echo "$as_me: exit $exit_status"
2793 rm -f core *.core core.conftest.* &&
2794 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2797 for ac_signal in 1 2 13 15; do
2798 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2803 rm -f -r conftest* confdefs.h
2805 $as_echo "/* confdefs.h */" > confdefs.h
2807 # Predefined preprocessor variables.
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE_NAME "$PACKAGE_NAME"
2813 cat >>confdefs.h <<_ACEOF
2814 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2817 cat >>confdefs.h <<_ACEOF
2818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2821 cat >>confdefs.h <<_ACEOF
2822 #define PACKAGE_STRING "$PACKAGE_STRING"
2825 cat >>confdefs.h <<_ACEOF
2826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_URL "$PACKAGE_URL"
2834 # Let the site file select an alternate cache file if it wants to.
2835 # Prefer an explicitly selected file to automatically selected ones.
2838 if test -n "$CONFIG_SITE"; then
2839 # We do not want a PATH search for config.site.
2840 case $CONFIG_SITE in #((
2841 -*) ac_site_file1=./$CONFIG_SITE;;
2842 */*) ac_site_file1=$CONFIG_SITE;;
2843 *) ac_site_file1=./$CONFIG_SITE;;
2845 elif test "x$prefix" != xNONE; then
2846 ac_site_file1=$prefix/share/config.site
2847 ac_site_file2=$prefix/etc/config.site
2849 ac_site_file1=$ac_default_prefix/share/config.site
2850 ac_site_file2=$ac_default_prefix/etc/config.site
2852 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2854 test "x$ac_site_file" = xNONE && continue
2855 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2857 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2858 sed 's/^/| /' "$ac_site_file" >&5
2860 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2862 as_fn_error $? "failed to load site script $ac_site_file
2863 See \`config.log' for more details" "$LINENO" 5; }
2867 if test -r "$cache_file"; then
2868 # Some versions of bash will fail to source /dev/null (special files
2869 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2870 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2872 $as_echo "$as_me: loading cache $cache_file" >&6;}
2874 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2875 *) . "./$cache_file";;
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2880 $as_echo "$as_me: creating cache $cache_file" >&6;}
2884 # Check that the precious variables saved in the cache have kept the same
2886 ac_cache_corrupted=false
2887 for ac_var in $ac_precious_vars; do
2888 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2889 eval ac_new_set=\$ac_env_${ac_var}_set
2890 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2891 eval ac_new_val=\$ac_env_${ac_var}_value
2892 case $ac_old_set,$ac_new_set in
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2895 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2896 ac_cache_corrupted=: ;;
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2899 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2900 ac_cache_corrupted=: ;;
2903 if test "x$ac_old_val" != "x$ac_new_val"; then
2904 # differences in whitespace do not lead to failure.
2905 ac_old_val_w=`echo x $ac_old_val`
2906 ac_new_val_w=`echo x $ac_new_val`
2907 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2909 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2910 ac_cache_corrupted=:
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2913 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2914 eval $ac_var=\$ac_old_val
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2917 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2919 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2922 # Pass precious variables to config.status.
2923 if test "$ac_new_set" = set; then
2925 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2926 *) ac_arg=$ac_var=$ac_new_val ;;
2928 case " $ac_configure_args " in
2929 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2930 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2934 if $ac_cache_corrupted; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2938 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2939 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2941 ## -------------------- ##
2942 ## Main body of script. ##
2943 ## -------------------- ##
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955 ac_config_headers="$ac_config_headers config.h"
2958 am__api_version='1.16'
2961 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2962 if test -f "$ac_dir/install-sh"; then
2964 ac_install_sh="$ac_aux_dir/install-sh -c"
2966 elif test -f "$ac_dir/install.sh"; then
2968 ac_install_sh="$ac_aux_dir/install.sh -c"
2970 elif test -f "$ac_dir/shtool"; then
2972 ac_install_sh="$ac_aux_dir/shtool install -c"
2976 if test -z "$ac_aux_dir"; then
2977 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2980 # These three variables are undocumented and unsupported,
2981 # and are intended to be withdrawn in a future Autoconf release.
2982 # They can cause serious problems if a builder's source tree is in a directory
2983 # whose full name contains unusual characters.
2984 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2985 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2986 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2989 # Find a good install program. We prefer a C program (faster),
2990 # so one script is as good as another. But avoid the broken or
2991 # incompatible versions:
2992 # SysV /etc/install, /usr/sbin/install
2993 # SunOS /usr/etc/install
2994 # IRIX /sbin/install
2996 # AmigaOS /C/install, which installs bootblocks on floppy discs
2997 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2998 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2999 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3000 # OS/2's system install, which has a completely different semantic
3001 # ./install, which can be erroneously created by make from ./install.sh.
3002 # Reject install programs that cannot install multiple files.
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3004 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3005 if test -z "$INSTALL"; then
3006 if ${ac_cv_path_install+:} false; then :
3007 $as_echo_n "(cached) " >&6
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 test -z "$as_dir" && as_dir=.
3014 # Account for people who put trailing slashes in PATH elements.
3015 case $as_dir/ in #((
3016 ./ | .// | /[cC]/* | \
3017 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3018 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3021 # OSF1 and SCO ODT 3.0 have their own names for install.
3022 # Don't use installbsd from OSF since it installs stuff as root
3024 for ac_prog in ginstall scoinst install; do
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3027 if test $ac_prog = install &&
3028 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3029 # AIX install. It has an incompatible calling convention.
3031 elif test $ac_prog = install &&
3032 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3033 # program-specific install script used by HP pwplus--don't use.
3036 rm -rf conftest.one conftest.two conftest.dir
3037 echo one > conftest.one
3038 echo two > conftest.two
3040 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3041 test -s conftest.one && test -s conftest.two &&
3042 test -s conftest.dir/conftest.one &&
3043 test -s conftest.dir/conftest.two
3045 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3058 rm -rf conftest.one conftest.two conftest.dir
3061 if test "${ac_cv_path_install+set}" = set; then
3062 INSTALL=$ac_cv_path_install
3064 # As a last resort, use the slow shell script. Don't cache a
3065 # value for INSTALL within a source directory, because that will
3066 # break other packages using the cache if that directory is
3067 # removed, or if the value is a relative name.
3068 INSTALL=$ac_install_sh
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3072 $as_echo "$INSTALL" >&6; }
3074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3075 # It thinks the first close brace ends the variable substitution.
3076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3080 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3083 $as_echo_n "checking whether build environment is sane... " >&6; }
3084 # Reject unsafe characters in $srcdir or the absolute working directory
3085 # name. Accept space and tab only in the latter.
3089 *[\\\"\#\$\&\'\`$am_lf]*)
3090 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3093 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3094 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3097 # Do 'set' in a subshell so we don't clobber the current shell's
3098 # arguments. Must try -L first in case configure is actually a
3099 # symlink; some systems play weird games with the mod time of symlinks
3100 # (eg FreeBSD returns the mod time of the symlink's containing
3104 for am_try in 1 2; do
3105 echo "timestamp, slept: $am_has_slept" > conftest.file
3106 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3107 if test "$*" = "X"; then
3109 set X `ls -t "$srcdir/configure" conftest.file`
3111 if test "$*" != "X $srcdir/configure conftest.file" \
3112 && test "$*" != "X conftest.file $srcdir/configure"; then
3114 # If neither matched, then we have a broken ls. This can happen
3115 # if, for instance, CONFIG_SHELL is bash and it inherits a
3116 # broken ls alias from the environment. This has actually
3117 # happened. Such a system could not be considered "sane".
3118 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3119 alias in your environment" "$LINENO" 5
3121 if test "$2" = conftest.file || test $am_try -eq 2; then
3128 test "$2" = conftest.file
3134 as_fn_error $? "newly created file is older than distributed files!
3135 Check your system clock" "$LINENO" 5
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138 $as_echo "yes" >&6; }
3139 # If we didn't sleep, we still need to ensure time stamps of config.status and
3140 # generated files are strictly newer.
3142 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3149 test "$program_prefix" != NONE &&
3150 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3151 # Use a double $ so make ignores it.
3152 test "$program_suffix" != NONE &&
3153 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3154 # Double any \ or $.
3155 # By default was `s,x,x', remove it if useless.
3156 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3157 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3159 # Expand $ac_aux_dir to an absolute path.
3160 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3162 if test x"${MISSING+set}" != xset; then
3165 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3167 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3170 # Use eval to expand $SHELL
3171 if eval "$MISSING --is-lightweight"; then
3172 am_missing_run="$MISSING "
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3176 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3179 if test x"${install_sh+set}" != xset; then
3182 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3184 install_sh="\${SHELL} $am_aux_dir/install-sh"
3188 # Installed binaries are usually stripped using 'strip' when the user
3189 # run "make install-strip". However 'strip' might not be the right
3190 # tool to use in cross-compilation environments, therefore Automake
3191 # will honor the 'STRIP' environment variable to overrule this program.
3192 if test "$cross_compiling" != no; then
3193 if test -n "$ac_tool_prefix"; then
3194 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3195 set dummy ${ac_tool_prefix}strip; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_STRIP+:} false; then :
3199 $as_echo_n "(cached) " >&6
3201 if test -n "$STRIP"; then
3202 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 STRIP=$ac_cv_prog_STRIP
3222 if test -n "$STRIP"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3224 $as_echo "$STRIP" >&6; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3232 if test -z "$ac_cv_prog_STRIP"; then
3234 # Extract the first word of "strip", so it can be a program name with args.
3235 set dummy strip; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3239 $as_echo_n "(cached) " >&6
3241 if test -n "$ac_ct_STRIP"; then
3242 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251 ac_cv_prog_ac_ct_STRIP="strip"
3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3262 if test -n "$ac_ct_STRIP"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3264 $as_echo "$ac_ct_STRIP" >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3270 if test "x$ac_ct_STRIP" = x; then
3273 case $cross_compiling:$ac_tool_warned in
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3277 ac_tool_warned=yes ;;
3282 STRIP="$ac_cv_prog_STRIP"
3286 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3289 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3290 if test -z "$MKDIR_P"; then
3291 if ${ac_cv_path_mkdir+:} false; then :
3292 $as_echo_n "(cached) " >&6
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3298 test -z "$as_dir" && as_dir=.
3299 for ac_prog in mkdir gmkdir; do
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3302 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3303 'mkdir (GNU coreutils) '* | \
3304 'mkdir (coreutils) '* | \
3305 'mkdir (fileutils) '4.1*)
3306 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3316 test -d ./--version && rmdir ./--version
3317 if test "${ac_cv_path_mkdir+set}" = set; then
3318 MKDIR_P="$ac_cv_path_mkdir -p"
3320 # As a last resort, use the slow shell script. Don't cache a
3321 # value for MKDIR_P within a source directory, because that will
3322 # break other packages using the cache if that directory is
3323 # removed, or if the value is a relative name.
3324 MKDIR_P="$ac_install_sh -d"
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3328 $as_echo "$MKDIR_P" >&6; }
3330 for ac_prog in gawk mawk nawk awk
3332 # Extract the first word of "$ac_prog", so it can be a program name with args.
3333 set dummy $ac_prog; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_AWK+:} false; then :
3337 $as_echo_n "(cached) " >&6
3339 if test -n "$AWK"; then
3340 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_prog_AWK="$ac_prog"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 if test -n "$AWK"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3362 $as_echo "$AWK" >&6; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3369 test -n "$AWK" && break
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3373 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3375 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3376 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3377 $as_echo_n "(cached) " >&6
3379 cat >conftest.make <<\_ACEOF
3382 @echo '@@@%%%=$(MAKE)=@@@%%%'
3384 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3385 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3387 eval ac_cv_prog_make_${ac_make}_set=yes;;
3389 eval ac_cv_prog_make_${ac_make}_set=no;;
3393 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3395 $as_echo "yes" >&6; }
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400 SET_MAKE="MAKE=${MAKE-make}"
3403 rm -rf .tst 2>/dev/null
3404 mkdir .tst 2>/dev/null
3405 if test -d .tst; then
3410 rmdir .tst 2>/dev/null
3412 # Check whether --enable-silent-rules was given.
3413 if test "${enable_silent_rules+set}" = set; then :
3414 enableval=$enable_silent_rules;
3417 case $enable_silent_rules in # (((
3418 yes) AM_DEFAULT_VERBOSITY=0;;
3419 no) AM_DEFAULT_VERBOSITY=1;;
3420 *) AM_DEFAULT_VERBOSITY=1;;
3422 am_make=${MAKE-make}
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3424 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3425 if ${am_cv_make_support_nested_variables+:} false; then :
3426 $as_echo_n "(cached) " >&6
3428 if $as_echo 'TRUE=$(BAR$(V))
3434 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3435 am_cv_make_support_nested_variables=yes
3437 am_cv_make_support_nested_variables=no
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3441 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3442 if test $am_cv_make_support_nested_variables = yes; then
3444 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3446 AM_V=$AM_DEFAULT_VERBOSITY
3447 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3451 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3452 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3453 # is not polluted with repeated "-I."
3454 am__isrc=' -I$(srcdir)'
3455 # test to see if srcdir already configured
3456 if test -f $srcdir/config.status; then
3457 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3461 # test whether we have cygpath
3462 if test -z "$CYGPATH_W"; then
3463 if (cygpath --version) >/dev/null 2>/dev/null; then
3464 CYGPATH_W='cygpath -w'
3471 # Define the identity of the package.
3476 # Some tools Automake needs.
3478 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3481 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3484 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3487 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3490 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3492 # For better backward compatibility. To be removed once Automake 1.9.x
3493 # dies out for good. For more background, see:
3494 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3495 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3496 mkdir_p='$(MKDIR_P)'
3498 # We need awk for the "check" target (and possibly the TAP driver). The
3499 # system "awk" is bad on some platforms.
3500 # Always define AMTAR for backward compatibility. Yes, it's still used
3501 # in the wild :-( We should find a proper way to deprecate it ...
3505 # We'll loop over all known methods to create a tar archive until one works.
3506 _am_tools='gnutar plaintar pax cpio none'
3508 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3509 # There is notably a 21 bits limit for the UID and the GID. In fact,
3510 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3512 am_max_uid=2097151 # 2^21 - 1
3513 am_max_gid=$am_max_uid
3514 # The $UID and $GID variables are not portable, so we need to resort
3515 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3516 # below are definitely unexpected, so allow the users to see them
3517 # (that is, avoid stderr redirection).
3518 am_uid=`id -u || echo unknown`
3519 am_gid=`id -g || echo unknown`
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3521 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3522 if test $am_uid -le $am_max_uid; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3524 $as_echo "yes" >&6; }
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3531 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3532 if test $am_gid -le $am_max_gid; then
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3534 $as_echo "yes" >&6; }
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 $as_echo "no" >&6; }
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3542 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3544 # Go ahead even if we have the value already cached. We do so because we
3545 # need to set the values for the 'am__tar' and 'am__untar' variables.
3546 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3548 for _am_tool in $_am_tools; do
3551 for _am_tar in tar gnutar gtar; do
3552 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3553 ($_am_tar --version) >&5 2>&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } && break
3558 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3559 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3560 am__untar="$_am_tar -xf -"
3563 # Must skip GNU tar: if it does not support --format= it doesn't create
3564 # ustar tarball either.
3565 (tar --version) >/dev/null 2>&1 && continue
3566 am__tar='tar chf - "$$tardir"'
3567 am__tar_='tar chf - "$tardir"'
3568 am__untar='tar xf -'
3571 am__tar='pax -L -x ustar -w "$$tardir"'
3572 am__tar_='pax -L -x ustar -w "$tardir"'
3576 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3577 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3578 am__untar='cpio -i -H ustar -d'
3587 # If the value was cached, stop now. We just wanted to have am__tar
3588 # and am__untar set.
3589 test -n "${am_cv_prog_tar_ustar}" && break
3591 # tar/untar a dummy directory, and stop if the command works.
3594 echo GrepMe > conftest.dir/file
3595 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3596 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }
3601 if test -s conftest.tar; then
3602 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3603 ($am__untar <conftest.tar) >&5 2>&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }
3607 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3608 (cat conftest.dir/file) >&5 2>&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }
3612 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3617 if ${am_cv_prog_tar_ustar+:} false; then :
3618 $as_echo_n "(cached) " >&6
3620 am_cv_prog_tar_ustar=$_am_tool
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3624 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3631 # POSIX will say in a future version that running "rm -f" with no argument
3632 # is OK; and we want to be able to make that assumption in our Makefile
3633 # recipes. So use an aggressive probe to check that the usage we want is
3634 # actually supported "in the wild" to an acceptable degree.
3635 # See automake bug#10828.
3636 # To make any issue more visible, cause the running configure to be aborted
3637 # by default if the 'rm' program in use doesn't match our expectations; the
3638 # user can still override this though.
3639 if rm -f && rm -fr && rm -rf; then : OK; else
3643 Your 'rm' program seems unable to run without file operands specified
3644 on the command line, even when the '-f' option is present. This is contrary
3645 to the behaviour of most rm programs out there, and not conforming with
3646 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3648 Please tell bug-automake@gnu.org about your system, including the value
3649 of your $PATH and any error possibly output before this message. This
3650 can help us improve future automake versions.
3653 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3654 echo 'Configuration will proceed anyway, since you have set the' >&2
3655 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3659 Aborting the configuration process, to ensure you take notice of the issue.
3661 You can download and install GNU coreutils to get an 'rm' implementation
3662 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3664 If you want to complete the configuration process using your problematic
3665 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3666 to "yes", and re-run configure.
3669 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3673 # Check whether --enable-silent-rules was given.
3674 if test "${enable_silent_rules+set}" = set; then :
3675 enableval=$enable_silent_rules;
3678 case $enable_silent_rules in # (((
3679 yes) AM_DEFAULT_VERBOSITY=0;;
3680 no) AM_DEFAULT_VERBOSITY=1;;
3681 *) AM_DEFAULT_VERBOSITY=0;;
3683 am_make=${MAKE-make}
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3685 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3686 if ${am_cv_make_support_nested_variables+:} false; then :
3687 $as_echo_n "(cached) " >&6
3689 if $as_echo 'TRUE=$(BAR$(V))
3695 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3696 am_cv_make_support_nested_variables=yes
3698 am_cv_make_support_nested_variables=no
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3702 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3703 if test $am_cv_make_support_nested_variables = yes; then
3705 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3707 AM_V=$AM_DEFAULT_VERBOSITY
3708 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3713 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3714 if ${ac_cv_path_SED+:} false; then :
3715 $as_echo_n "(cached) " >&6
3717 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3718 for ac_i in 1 2 3 4 5 6 7; do
3719 ac_script="$ac_script$as_nl$ac_script"
3721 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3722 { ac_script=; unset ac_script;}
3723 if test -z "$SED"; then
3724 ac_path_SED_found=false
3725 # Loop through the user's path and test for each of PROGNAME-LIST
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir=.
3731 for ac_prog in sed gsed; do
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3734 as_fn_executable_p "$ac_path_SED" || continue
3735 # Check for GNU ac_path_SED and select it if it is found.
3736 # Check for GNU $ac_path_SED
3737 case `"$ac_path_SED" --version 2>&1` in
3739 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3742 $as_echo_n 0123456789 >"conftest.in"
3745 cat "conftest.in" "conftest.in" >"conftest.tmp"
3746 mv "conftest.tmp" "conftest.in"
3747 cp "conftest.in" "conftest.nl"
3748 $as_echo '' >> "conftest.nl"
3749 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3750 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3751 as_fn_arith $ac_count + 1 && ac_count=$as_val
3752 if test $ac_count -gt ${ac_path_SED_max-0}; then
3753 # Best one so far, save it but keep looking for a better one
3754 ac_cv_path_SED="$ac_path_SED"
3755 ac_path_SED_max=$ac_count
3757 # 10*(2^10) chars as input seems more than enough
3758 test $ac_count -gt 10 && break
3760 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3763 $ac_path_SED_found && break 3
3768 if test -z "$ac_cv_path_SED"; then
3769 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3777 $as_echo "$ac_cv_path_SED" >&6; }
3778 SED="$ac_cv_path_SED"
3784 # allow to override gcov location
3786 # Check whether --with-gcov was given.
3787 if test "${with_gcov+set}" = set; then :
3788 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3790 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3795 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3796 # Check whether --enable-code-coverage was given.
3797 if test "${enable_code_coverage+set}" = set; then :
3798 enableval=$enable_code_coverage;
3800 enable_code_coverage=no
3804 if test x$enable_code_coverage = xyes; then
3805 CODE_COVERAGE_ENABLED_TRUE=
3806 CODE_COVERAGE_ENABLED_FALSE='#'
3808 CODE_COVERAGE_ENABLED_TRUE='#'
3809 CODE_COVERAGE_ENABLED_FALSE=
3812 CODE_COVERAGE_ENABLED=$enable_code_coverage
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3815 $as_echo "$enable_code_coverage" >&6; }
3817 if test "$enable_code_coverage" = "yes" ; then :
3820 if test -n "$ac_tool_prefix"; then
3821 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3822 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 $as_echo_n "checking for $ac_word... " >&6; }
3825 if ${ac_cv_prog_GCOV+:} false; then :
3826 $as_echo_n "(cached) " >&6
3828 if test -n "$GCOV"; then
3829 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 test -z "$as_dir" && as_dir=.
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 GCOV=$ac_cv_prog_GCOV
3849 if test -n "$GCOV"; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3851 $as_echo "$GCOV" >&6; }
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3859 if test -z "$ac_cv_prog_GCOV"; then
3861 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3862 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864 $as_echo_n "checking for $ac_word... " >&6; }
3865 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3866 $as_echo_n "(cached) " >&6
3868 if test -n "$ac_ct_GCOV"; then
3869 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 test -z "$as_dir" && as_dir=.
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3889 if test -n "$ac_ct_GCOV"; then
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3891 $as_echo "$ac_ct_GCOV" >&6; }
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894 $as_echo "no" >&6; }
3897 if test "x$ac_ct_GCOV" = x; then
3900 case $cross_compiling:$ac_tool_warned in
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3904 ac_tool_warned=yes ;;
3909 GCOV="$ac_cv_prog_GCOV"
3912 if test "X$GCOV" = "X:"; then :
3913 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3917 if test "$GCC" = "no" ; then :
3919 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3923 # Extract the first word of "lcov", so it can be a program name with args.
3924 set dummy lcov; ac_word=$2
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926 $as_echo_n "checking for $ac_word... " >&6; }
3927 if ${ac_cv_prog_LCOV+:} false; then :
3928 $as_echo_n "(cached) " >&6
3930 if test -n "$LCOV"; then
3931 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940 ac_cv_prog_LCOV="lcov"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 LCOV=$ac_cv_prog_LCOV
3951 if test -n "$LCOV"; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3953 $as_echo "$LCOV" >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 $as_echo "no" >&6; }
3960 # Extract the first word of "genhtml", so it can be a program name with args.
3961 set dummy genhtml; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if ${ac_cv_prog_GENHTML+:} false; then :
3965 $as_echo_n "(cached) " >&6
3967 if test -n "$GENHTML"; then
3968 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_GENHTML="genhtml"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 GENHTML=$ac_cv_prog_GENHTML
3988 if test -n "$GENHTML"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3990 $as_echo "$GENHTML" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3998 if test -z "$LCOV" ; then :
4000 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
4004 if test -z "$GENHTML" ; then :
4006 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
4010 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
4011 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4012 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4013 CODE_COVERAGE_LIBS="-lgcov"
4014 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
4022 CODE_COVERAGE_RULES_CHECK='
4023 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
4024 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
4026 CODE_COVERAGE_RULES_CAPTURE='
4027 $(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)
4028 $(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)
4029 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
4030 $(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)
4031 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
4033 CODE_COVERAGE_RULES_CLEAN='
4034 clean: code-coverage-clean
4035 distclean: code-coverage-clean
4036 code-coverage-clean:
4037 -$(LCOV) --directory $(top_builddir) -z
4038 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4039 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
4044 CODE_COVERAGE_RULES_CHECK='
4045 @echo "Need to reconfigure with --enable-code-coverage"
4047 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
4048 CODE_COVERAGE_RULES_CLEAN=''
4052 CODE_COVERAGE_RULES='
4056 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
4057 # Multiple directories may be specified, separated by whitespace.
4058 # (Default: $(top_builddir))
4059 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
4060 # by lcov for code coverage. (Default:
4061 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
4062 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
4063 # reports to be created. (Default:
4064 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
4065 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
4066 # set to 0 to disable it and leave empty to stay with the default.
4068 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
4069 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4070 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
4071 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4072 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
4073 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
4074 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4075 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
4076 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4077 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
4078 # lcov instance. (Default: empty)
4079 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
4080 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4081 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
4082 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4083 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
4084 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4085 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
4087 # The generated report will be titled using the $(PACKAGE_NAME) and
4088 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
4089 # use the git-version-gen script, available online.
4091 # Optional variables
4092 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
4093 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
4094 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
4095 CODE_COVERAGE_BRANCH_COVERAGE ?=
4096 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4097 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4098 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4099 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
4100 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4101 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4102 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
4103 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4104 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
4105 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4106 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4107 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4108 CODE_COVERAGE_IGNORE_PATTERN ?=
4111 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4113 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
4114 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
4115 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
4116 $(CODE_COVERAGE_OUTPUT_FILE);
4117 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
4118 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
4119 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
4120 $(CODE_COVERAGE_IGNORE_PATTERN);
4121 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
4122 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
4123 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
4124 code_coverage_quiet = $(code_coverage_quiet_$(V))
4125 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
4126 code_coverage_quiet_0 = --quiet
4128 # sanitizes the test-name: replaces with underscores: dashes and dots
4129 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
4131 # Use recursive makes in order to ignore errors during check
4132 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
4134 # Capture code coverage data
4135 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
4137 # Hook rule executed before code-coverage-capture, overridable by the user
4138 code-coverage-capture-hook:
4140 '"$CODE_COVERAGE_RULES_CLEAN"'
4142 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4143 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
4145 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
4152 # Initialize libtool
4153 DEPDIR="${am__leading_dot}deps"
4155 ac_config_commands="$ac_config_commands depfiles"
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4158 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4159 cat > confinc.mk << 'END'
4161 @echo this is the am__doit target >confinc.out
4166 # BSD make does it like this.
4167 echo '.include "confinc.mk" # ignored' > confmf.BSD
4168 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4169 echo 'include confinc.mk # ignored' > confmf.GNU
4171 for s in GNU BSD; do
4172 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4173 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }
4177 case $?:`cat confinc.out 2>/dev/null` in #(
4178 '0:this is the am__doit target') :
4181 am__include='.include' am__quote='"' ;; #(
4183 am__include='include' am__quote='' ;;
4188 if test "$am__include" != "#"; then
4189 _am_result="yes ($s style)"
4193 rm -f confinc.* confmf.*
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4195 $as_echo "${_am_result}" >&6; }
4197 # Check whether --enable-dependency-tracking was given.
4198 if test "${enable_dependency_tracking+set}" = set; then :
4199 enableval=$enable_dependency_tracking;
4202 if test "x$enable_dependency_tracking" != xno; then
4203 am_depcomp="$ac_aux_dir/depcomp"
4207 if test "x$enable_dependency_tracking" != xno; then
4217 ac_cpp='$CPP $CPPFLAGS'
4218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221 if test -n "$ac_tool_prefix"; then
4222 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4223 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if ${ac_cv_prog_CC+:} false; then :
4227 $as_echo_n "(cached) " >&6
4229 if test -n "$CC"; then
4230 ac_cv_prog_CC="$CC" # Let the user override the test.
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 if test -n "$CC"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4252 $as_echo "$CC" >&6; }
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4260 if test -z "$ac_cv_prog_CC"; then
4262 # Extract the first word of "gcc", so it can be a program name with args.
4263 set dummy gcc; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4267 $as_echo_n "(cached) " >&6
4269 if test -n "$ac_ct_CC"; then
4270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_ac_ct_CC="gcc"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4290 if test -n "$ac_ct_CC"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4292 $as_echo "$ac_ct_CC" >&6; }
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4298 if test "x$ac_ct_CC" = x; then
4301 case $cross_compiling:$ac_tool_warned in
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305 ac_tool_warned=yes ;;
4313 if test -z "$CC"; then
4314 if test -n "$ac_tool_prefix"; then
4315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}cc; ac_word=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if ${ac_cv_prog_CC+:} false; then :
4320 $as_echo_n "(cached) " >&6
4322 if test -n "$CC"; then
4323 ac_cv_prog_CC="$CC" # Let the user override the test.
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_CC="${ac_tool_prefix}cc"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 if test -n "$CC"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4345 $as_echo "$CC" >&6; }
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4354 if test -z "$CC"; then
4355 # Extract the first word of "cc", so it can be a program name with args.
4356 set dummy cc; ac_word=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if ${ac_cv_prog_CC+:} false; then :
4360 $as_echo_n "(cached) " >&6
4362 if test -n "$CC"; then
4363 ac_cv_prog_CC="$CC" # Let the user override the test.
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4373 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4374 ac_prog_rejected=yes
4378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 if test $ac_prog_rejected = yes; then
4386 # We found a bogon in the path, so make sure we never use it.
4387 set dummy $ac_cv_prog_CC
4389 if test $# != 0; then
4390 # We chose a different compiler from the bogus one.
4391 # However, it has the same basename, so the bogon will be chosen
4392 # first if we set CC to just the basename; use the full file name.
4394 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4400 if test -n "$CC"; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4402 $as_echo "$CC" >&6; }
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4410 if test -z "$CC"; then
4411 if test -n "$ac_tool_prefix"; then
4412 for ac_prog in cl.exe
4414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_CC+:} false; then :
4419 $as_echo_n "(cached) " >&6
4421 if test -n "$CC"; then
4422 ac_cv_prog_CC="$CC" # Let the user override the test.
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 if test -n "$CC"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4444 $as_echo "$CC" >&6; }
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4451 test -n "$CC" && break
4454 if test -z "$CC"; then
4456 for ac_prog in cl.exe
4458 # Extract the first word of "$ac_prog", so it can be a program name with args.
4459 set dummy $ac_prog; ac_word=$2
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4463 $as_echo_n "(cached) " >&6
4465 if test -n "$ac_ct_CC"; then
4466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4475 ac_cv_prog_ac_ct_CC="$ac_prog"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4486 if test -n "$ac_ct_CC"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4488 $as_echo "$ac_ct_CC" >&6; }
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4495 test -n "$ac_ct_CC" && break
4498 if test "x$ac_ct_CC" = x; then
4501 case $cross_compiling:$ac_tool_warned in
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4505 ac_tool_warned=yes ;;
4514 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4516 as_fn_error $? "no acceptable C compiler found in \$PATH
4517 See \`config.log' for more details" "$LINENO" 5; }
4519 # Provide some information about the compiler.
4520 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4523 for ac_option in --version -v -V -qversion; do
4524 { { ac_try="$ac_compiler $ac_option >&5"
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530 $as_echo "$ac_try_echo"; } >&5
4531 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4533 if test -s conftest.err; then
4535 ... rest of stderr output deleted ...
4536 10q' conftest.err >conftest.er1
4537 cat conftest.er1 >&5
4539 rm -f conftest.er1 conftest.err
4540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4541 test $ac_status = 0; }
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4555 ac_clean_files_save=$ac_clean_files
4556 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4557 # Try to create an executable without -o first, disregard a.out.
4558 # It will help us diagnose broken compilers, and finding out an intuition
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4561 $as_echo_n "checking whether the C compiler works... " >&6; }
4562 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4564 # The possible output files:
4565 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4568 for ac_file in $ac_files
4571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4572 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4577 if { { ac_try="$ac_link_default"
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4583 $as_echo "$ac_try_echo"; } >&5
4584 (eval "$ac_link_default") 2>&5
4586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4587 test $ac_status = 0; }; then :
4588 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4589 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4590 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4591 # so that the user can short-circuit this test for compilers unknown to
4593 for ac_file in $ac_files ''
4595 test -f "$ac_file" || continue
4597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4600 # We found the default executable, but exeext='' is most
4604 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4606 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4608 # We set ac_cv_exeext here because the later test for it is not
4609 # safe: cross compilers may not add the suffix if given an `-o'
4610 # argument, so we may need to know it at that point already.
4611 # Even if this section looks crufty: it has the advantage of
4618 test "$ac_cv_exeext" = no && ac_cv_exeext=
4623 if test -z "$ac_file"; then :
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4626 $as_echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4631 as_fn_error 77 "C compiler cannot create executables
4632 See \`config.log' for more details" "$LINENO" 5; }
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4635 $as_echo "yes" >&6; }
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4638 $as_echo_n "checking for C compiler default output file name... " >&6; }
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4640 $as_echo "$ac_file" >&6; }
4641 ac_exeext=$ac_cv_exeext
4643 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4644 ac_clean_files=$ac_clean_files_save
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4646 $as_echo_n "checking for suffix of executables... " >&6; }
4647 if { { ac_try="$ac_link"
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4653 $as_echo "$ac_try_echo"; } >&5
4654 (eval "$ac_link") 2>&5
4656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4657 test $ac_status = 0; }; then :
4658 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4659 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4660 # work properly (i.e., refer to `conftest.exe'), while it won't with
4662 for ac_file in conftest.exe conftest conftest.*; do
4663 test -f "$ac_file" || continue
4665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4666 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4674 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4675 See \`config.log' for more details" "$LINENO" 5; }
4677 rm -f conftest conftest$ac_cv_exeext
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4679 $as_echo "$ac_cv_exeext" >&6; }
4681 rm -f conftest.$ac_ext
4682 EXEEXT=$ac_cv_exeext
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4690 FILE *f = fopen ("conftest.out", "w");
4691 return ferror (f) || fclose (f) != 0;
4697 ac_clean_files="$ac_clean_files conftest.out"
4698 # Check that the compiler produces executables we can run. If not, either
4699 # the compiler is broken, or we cross compile.
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4701 $as_echo_n "checking whether we are cross compiling... " >&6; }
4702 if test "$cross_compiling" != yes; then
4703 { { ac_try="$ac_link"
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4709 $as_echo "$ac_try_echo"; } >&5
4710 (eval "$ac_link") 2>&5
4712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713 test $ac_status = 0; }
4714 if { ac_try='./conftest$ac_cv_exeext'
4715 { { case "(($ac_try" in
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4720 $as_echo "$ac_try_echo"; } >&5
4721 (eval "$ac_try") 2>&5
4723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4724 test $ac_status = 0; }; }; then
4727 if test "$cross_compiling" = maybe; then
4730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4732 as_fn_error $? "cannot run C compiled programs.
4733 If you meant to cross compile, use \`--host'.
4734 See \`config.log' for more details" "$LINENO" 5; }
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4739 $as_echo "$cross_compiling" >&6; }
4741 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4742 ac_clean_files=$ac_clean_files_save
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4744 $as_echo_n "checking for suffix of object files... " >&6; }
4745 if ${ac_cv_objext+:} false; then :
4746 $as_echo_n "(cached) " >&6
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4759 rm -f conftest.o conftest.obj
4760 if { { ac_try="$ac_compile"
4762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763 *) ac_try_echo=$ac_try;;
4765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4766 $as_echo "$ac_try_echo"; } >&5
4767 (eval "$ac_compile") 2>&5
4769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4770 test $ac_status = 0; }; then :
4771 for ac_file in conftest.o conftest.obj conftest.*; do
4772 test -f "$ac_file" || continue;
4774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4775 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4780 $as_echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4785 as_fn_error $? "cannot compute suffix of object files: cannot compile
4786 See \`config.log' for more details" "$LINENO" 5; }
4788 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4791 $as_echo "$ac_cv_objext" >&6; }
4792 OBJEXT=$ac_cv_objext
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4795 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4796 if ${ac_cv_c_compiler_gnu+:} false; then :
4797 $as_echo_n "(cached) " >&6
4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4813 if ac_fn_c_try_compile "$LINENO"; then :
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4823 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4824 if test $ac_compiler_gnu = yes; then
4829 ac_test_CFLAGS=${CFLAGS+set}
4830 ac_save_CFLAGS=$CFLAGS
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4832 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4833 if ${ac_cv_prog_cc_g+:} false; then :
4834 $as_echo_n "(cached) " >&6
4836 ac_save_c_werror_flag=$ac_c_werror_flag
4837 ac_c_werror_flag=yes
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4851 if ac_fn_c_try_compile "$LINENO"; then :
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4866 if ac_fn_c_try_compile "$LINENO"; then :
4869 ac_c_werror_flag=$ac_save_c_werror_flag
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4882 if ac_fn_c_try_compile "$LINENO"; then :
4885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890 ac_c_werror_flag=$ac_save_c_werror_flag
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4893 $as_echo "$ac_cv_prog_cc_g" >&6; }
4894 if test "$ac_test_CFLAGS" = set; then
4895 CFLAGS=$ac_save_CFLAGS
4896 elif test $ac_cv_prog_cc_g = yes; then
4897 if test "$GCC" = yes; then
4903 if test "$GCC" = yes; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4910 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4911 if ${ac_cv_prog_cc_c89+:} false; then :
4912 $as_echo_n "(cached) " >&6
4914 ac_cv_prog_cc_c89=no
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4921 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4922 struct buf { int x; };
4923 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4924 static char *e (p, i)
4930 static char *f (char * (*g) (char **, int), char **p, ...)
4935 s = g (p, va_arg (v,int));
4940 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4941 function prototypes and stuff, but not '\xHH' hex character constants.
4942 These don't provoke an error unfortunately, instead are silently treated
4943 as 'x'. The following induces an error, until -std is added to get
4944 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4945 array size at least. It's necessary to write '\x00'==0 to get something
4946 that's true only with -std. */
4947 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4949 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4950 inside strings and character constants. */
4952 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4954 int test (int i, double x);
4955 struct s1 {int (*f) (int a);};
4956 struct s2 {int (*f) (double a);};
4957 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4963 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4968 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4969 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4971 CC="$ac_save_CC $ac_arg"
4972 if ac_fn_c_try_compile "$LINENO"; then :
4973 ac_cv_prog_cc_c89=$ac_arg
4975 rm -f core conftest.err conftest.$ac_objext
4976 test "x$ac_cv_prog_cc_c89" != "xno" && break
4978 rm -f conftest.$ac_ext
4983 case "x$ac_cv_prog_cc_c89" in
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4986 $as_echo "none needed" >&6; } ;;
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4989 $as_echo "unsupported" >&6; } ;;
4991 CC="$CC $ac_cv_prog_cc_c89"
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4993 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4995 if test "x$ac_cv_prog_cc_c89" != xno; then :
5000 ac_cpp='$CPP $CPPFLAGS'
5001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5006 ac_cpp='$CPP $CPPFLAGS'
5007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5011 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5012 if ${am_cv_prog_cc_c_o+:} false; then :
5013 $as_echo_n "(cached) " >&6
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5026 # Make sure it works both with $CC and with simple cc.
5027 # Following AC_PROG_CC_C_O, we do the test twice because some
5028 # compilers refuse to overwrite an existing .o file with -o,
5029 # though they will create one.
5030 am_cv_prog_cc_c_o=yes
5032 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5033 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } \
5037 && test -f conftest2.$ac_objext; then
5040 am_cv_prog_cc_c_o=no
5044 rm -f core conftest*
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5048 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5049 if test "$am_cv_prog_cc_c_o" != yes; then
5050 # Losing compiler, so override with the script.
5051 # FIXME: It is wrong to rewrite CC.
5052 # But if we don't then we get into trouble of one sort or another.
5053 # A longer-term fix would be to have automake use am__CC in this case,
5054 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5055 CC="$am_aux_dir/compile $CC"
5058 ac_cpp='$CPP $CPPFLAGS'
5059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5064 depcc="$CC" am_compiler_list=
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5067 $as_echo_n "checking dependency style of $depcc... " >&6; }
5068 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5069 $as_echo_n "(cached) " >&6
5071 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5072 # We make a subdir and do the tests there. Otherwise we can end up
5073 # making bogus files that we don't know about and never remove. For
5074 # instance it was reported that on HP-UX the gcc test will end up
5075 # making a dummy file named 'D' -- because '-MD' means "put the output
5079 # Copy depcomp to subdir because otherwise we won't find it if we're
5080 # using a relative directory.
5081 cp "$am_depcomp" conftest.dir
5083 # We will build objects and dependencies in a subdirectory because
5084 # it helps to detect inapplicable dependency modes. For instance
5085 # both Tru64's cc and ICC support -MD to output dependencies as a
5086 # side effect of compilation, but ICC will put the dependencies in
5087 # the current directory while Tru64 will put them in the object
5091 am_cv_CC_dependencies_compiler_type=none
5092 if test "$am_compiler_list" = ""; then
5093 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5096 case " $depcc " in #(
5097 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5100 for depmode in $am_compiler_list; do
5101 # Setup a source with many dependencies, because some compilers
5102 # like to wrap large dependency lists on column 80 (with \), and
5103 # we should not choose a depcomp mode which is confused by this.
5105 # We need to recreate these files for each test, as the compiler may
5106 # overwrite some of them when testing with obscure command lines.
5107 # This happens at least with the AIX C compiler.
5109 for i in 1 2 3 4 5 6; do
5110 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5111 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5112 # Solaris 10 /bin/sh.
5113 echo '/* dummy */' > sub/conftst$i.h
5115 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5117 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5118 # mode. It turns out that the SunPro C++ compiler does not properly
5119 # handle '-M -o', and we need to detect this. Also, some Intel
5120 # versions had trouble with output in subdirs.
5121 am__obj=sub/conftest.${OBJEXT-o}
5122 am__minus_obj="-o $am__obj"
5125 # This depmode causes a compiler race in universal mode.
5126 test "$am__universal" = false || continue
5129 # After this tag, mechanisms are not by side-effect, so they'll
5130 # only be used when explicitly requested.
5131 if test "x$enable_dependency_tracking" = xyes; then
5137 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5138 # This compiler won't grok '-c -o', but also, the minuso test has
5139 # not run yet. These depmodes are late enough in the game, and
5140 # so weak that their functioning should not be impacted.
5141 am__obj=conftest.${OBJEXT-o}
5146 if depmode=$depmode \
5147 source=sub/conftest.c object=$am__obj \
5148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5149 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5150 >/dev/null 2>conftest.err &&
5151 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5152 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5153 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5154 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5155 # icc doesn't choke on unknown options, it will just issue warnings
5156 # or remarks (even with -Werror). So we grep stderr for any message
5157 # that says an option was ignored or not supported.
5158 # When given -MP, icc 7.0 and 7.1 complain thusly:
5159 # icc: Command line warning: ignoring option '-M'; no argument required
5160 # The diagnosis changed in icc 8.0:
5161 # icc: Command line remark: option '-MP' not supported
5162 if (grep 'ignoring option' conftest.err ||
5163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5164 am_cv_CC_dependencies_compiler_type=$depmode
5173 am_cv_CC_dependencies_compiler_type=none
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5178 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5179 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5182 test "x$enable_dependency_tracking" != xno \
5183 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5185 am__fastdepCC_FALSE='#'
5187 am__fastdepCC_TRUE='#'
5188 am__fastdepCC_FALSE=
5193 if test -n "$ac_tool_prefix"; then
5194 for ac_prog in ar lib "link -lib"
5196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if ${ac_cv_prog_AR+:} false; then :
5201 $as_echo_n "(cached) " >&6
5203 if test -n "$AR"; then
5204 ac_cv_prog_AR="$AR" # Let the user override the test.
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 if test -n "$AR"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5226 $as_echo "$AR" >&6; }
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5233 test -n "$AR" && break
5236 if test -z "$AR"; then
5238 for ac_prog in ar lib "link -lib"
5240 # Extract the first word of "$ac_prog", so it can be a program name with args.
5241 set dummy $ac_prog; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5245 $as_echo_n "(cached) " >&6
5247 if test -n "$ac_ct_AR"; then
5248 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257 ac_cv_prog_ac_ct_AR="$ac_prog"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5268 if test -n "$ac_ct_AR"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5270 $as_echo "$ac_ct_AR" >&6; }
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5277 test -n "$ac_ct_AR" && break
5280 if test "x$ac_ct_AR" = x; then
5283 case $cross_compiling:$ac_tool_warned in
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5287 ac_tool_warned=yes ;;
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5296 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5297 if ${am_cv_ar_interface+:} false; then :
5298 $as_echo_n "(cached) " >&6
5301 ac_cpp='$CPP $CPPFLAGS'
5302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5306 am_cv_ar_interface=ar
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 int some_variable = 0;
5311 if ac_fn_c_try_compile "$LINENO"; then :
5312 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5314 (eval $am_ar_try) 2>&5
5316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5317 test $ac_status = 0; }
5318 if test "$ac_status" -eq 0; then
5319 am_cv_ar_interface=ar
5321 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5323 (eval $am_ar_try) 2>&5
5325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5326 test $ac_status = 0; }
5327 if test "$ac_status" -eq 0; then
5328 am_cv_ar_interface=lib
5330 am_cv_ar_interface=unknown
5333 rm -f conftest.lib libconftest.a
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 ac_cpp='$CPP $CPPFLAGS'
5339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5345 $as_echo "$am_cv_ar_interface" >&6; }
5347 case $am_cv_ar_interface in
5351 # Microsoft lib, so override with the ar-lib wrapper script.
5352 # FIXME: It is wrong to rewrite AR.
5353 # But if we don't then we get into trouble of one sort or another.
5354 # A longer-term fix would be to have automake use am__AR in this case,
5355 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5357 AR="$am_aux_dir/ar-lib $AR"
5360 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5368 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5373 macro_version='2.4.6.42-b88ce'
5374 macro_revision='2.4.6.42'
5388 ltmain=$ac_aux_dir/ltmain.sh
5390 # Make sure we can run config.sub.
5391 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5392 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5395 $as_echo_n "checking build system type... " >&6; }
5396 if ${ac_cv_build+:} false; then :
5397 $as_echo_n "(cached) " >&6
5399 ac_build_alias=$build_alias
5400 test "x$ac_build_alias" = x &&
5401 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5402 test "x$ac_build_alias" = x &&
5403 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5404 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5405 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5409 $as_echo "$ac_cv_build" >&6; }
5410 case $ac_cv_build in
5412 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5415 ac_save_IFS=$IFS; IFS='-'
5421 # Remember, the first character of IFS is used to create $*,
5422 # except with old shells:
5425 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5429 $as_echo_n "checking host system type... " >&6; }
5430 if ${ac_cv_host+:} false; then :
5431 $as_echo_n "(cached) " >&6
5433 if test "x$host_alias" = x; then
5434 ac_cv_host=$ac_cv_build
5436 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5437 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5442 $as_echo "$ac_cv_host" >&6; }
5445 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5448 ac_save_IFS=$IFS; IFS='-'
5454 # Remember, the first character of IFS is used to create $*,
5455 # except with old shells:
5458 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5461 # Backslashify metacharacters that are still active within
5462 # double-quoted strings.
5463 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5465 # Same as above, but do not quote variable references.
5466 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5468 # Sed substitution to delay expansion of an escaped shell variable in a
5469 # double_quote_subst'ed string.
5470 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5472 # Sed substitution to delay expansion of an escaped single quote.
5473 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5475 # Sed substitution to avoid accidental globbing in evaled expressions
5476 no_glob_subst='s/\*/\\\*/g'
5478 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5479 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5480 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5483 $as_echo_n "checking how to print strings... " >&6; }
5484 # Test print first, because it will be a builtin if present.
5485 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5486 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5488 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5491 # Use this function as a fallback that always works.
5492 func_fallback_echo ()
5494 eval 'cat <<_LTECHO_EOF
5498 ECHO='func_fallback_echo'
5501 # func_echo_all arg...
5502 # Invoke $ECHO with all args, space-separated.
5509 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5510 $as_echo "printf" >&6; } ;;
5511 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5512 $as_echo "print -r" >&6; } ;;
5513 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5514 $as_echo "cat" >&6; } ;;
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5531 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5532 if ${ac_cv_path_SED+:} false; then :
5533 $as_echo_n "(cached) " >&6
5535 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5536 for ac_i in 1 2 3 4 5 6 7; do
5537 ac_script="$ac_script$as_nl$ac_script"
5539 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5540 { ac_script=; unset ac_script;}
5541 if test -z "$SED"; then
5542 ac_path_SED_found=false
5543 # Loop through the user's path and test for each of PROGNAME-LIST
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 test -z "$as_dir" && as_dir=.
5549 for ac_prog in sed gsed; do
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5552 as_fn_executable_p "$ac_path_SED" || continue
5553 # Check for GNU ac_path_SED and select it if it is found.
5554 # Check for GNU $ac_path_SED
5555 case `"$ac_path_SED" --version 2>&1` in
5557 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5560 $as_echo_n 0123456789 >"conftest.in"
5563 cat "conftest.in" "conftest.in" >"conftest.tmp"
5564 mv "conftest.tmp" "conftest.in"
5565 cp "conftest.in" "conftest.nl"
5566 $as_echo '' >> "conftest.nl"
5567 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5569 as_fn_arith $ac_count + 1 && ac_count=$as_val
5570 if test $ac_count -gt ${ac_path_SED_max-0}; then
5571 # Best one so far, save it but keep looking for a better one
5572 ac_cv_path_SED="$ac_path_SED"
5573 ac_path_SED_max=$ac_count
5575 # 10*(2^10) chars as input seems more than enough
5576 test $ac_count -gt 10 && break
5578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5581 $ac_path_SED_found && break 3
5586 if test -z "$ac_cv_path_SED"; then
5587 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5595 $as_echo "$ac_cv_path_SED" >&6; }
5596 SED="$ac_cv_path_SED"
5599 test -z "$SED" && SED=sed
5600 Xsed="$SED -e 1s/^X//"
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5613 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5614 if ${ac_cv_path_GREP+:} false; then :
5615 $as_echo_n "(cached) " >&6
5617 if test -z "$GREP"; then
5618 ac_path_GREP_found=false
5619 # Loop through the user's path and test for each of PROGNAME-LIST
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5624 test -z "$as_dir" && as_dir=.
5625 for ac_prog in grep ggrep; do
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5628 as_fn_executable_p "$ac_path_GREP" || continue
5629 # Check for GNU ac_path_GREP and select it if it is found.
5630 # Check for GNU $ac_path_GREP
5631 case `"$ac_path_GREP" --version 2>&1` in
5633 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5636 $as_echo_n 0123456789 >"conftest.in"
5639 cat "conftest.in" "conftest.in" >"conftest.tmp"
5640 mv "conftest.tmp" "conftest.in"
5641 cp "conftest.in" "conftest.nl"
5642 $as_echo 'GREP' >> "conftest.nl"
5643 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5645 as_fn_arith $ac_count + 1 && ac_count=$as_val
5646 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5647 # Best one so far, save it but keep looking for a better one
5648 ac_cv_path_GREP="$ac_path_GREP"
5649 ac_path_GREP_max=$ac_count
5651 # 10*(2^10) chars as input seems more than enough
5652 test $ac_count -gt 10 && break
5654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5657 $ac_path_GREP_found && break 3
5662 if test -z "$ac_cv_path_GREP"; then
5663 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5666 ac_cv_path_GREP=$GREP
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5671 $as_echo "$ac_cv_path_GREP" >&6; }
5672 GREP="$ac_cv_path_GREP"
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5676 $as_echo_n "checking for egrep... " >&6; }
5677 if ${ac_cv_path_EGREP+:} false; then :
5678 $as_echo_n "(cached) " >&6
5680 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5681 then ac_cv_path_EGREP="$GREP -E"
5683 if test -z "$EGREP"; then
5684 ac_path_EGREP_found=false
5685 # Loop through the user's path and test for each of PROGNAME-LIST
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5690 test -z "$as_dir" && as_dir=.
5691 for ac_prog in egrep; do
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5694 as_fn_executable_p "$ac_path_EGREP" || continue
5695 # Check for GNU ac_path_EGREP and select it if it is found.
5696 # Check for GNU $ac_path_EGREP
5697 case `"$ac_path_EGREP" --version 2>&1` in
5699 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5702 $as_echo_n 0123456789 >"conftest.in"
5705 cat "conftest.in" "conftest.in" >"conftest.tmp"
5706 mv "conftest.tmp" "conftest.in"
5707 cp "conftest.in" "conftest.nl"
5708 $as_echo 'EGREP' >> "conftest.nl"
5709 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5711 as_fn_arith $ac_count + 1 && ac_count=$as_val
5712 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5713 # Best one so far, save it but keep looking for a better one
5714 ac_cv_path_EGREP="$ac_path_EGREP"
5715 ac_path_EGREP_max=$ac_count
5717 # 10*(2^10) chars as input seems more than enough
5718 test $ac_count -gt 10 && break
5720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5723 $ac_path_EGREP_found && break 3
5728 if test -z "$ac_cv_path_EGREP"; then
5729 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5732 ac_cv_path_EGREP=$EGREP
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5738 $as_echo "$ac_cv_path_EGREP" >&6; }
5739 EGREP="$ac_cv_path_EGREP"
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5743 $as_echo_n "checking for fgrep... " >&6; }
5744 if ${ac_cv_path_FGREP+:} false; then :
5745 $as_echo_n "(cached) " >&6
5747 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5748 then ac_cv_path_FGREP="$GREP -F"
5750 if test -z "$FGREP"; then
5751 ac_path_FGREP_found=false
5752 # Loop through the user's path and test for each of PROGNAME-LIST
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5757 test -z "$as_dir" && as_dir=.
5758 for ac_prog in fgrep; do
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5761 as_fn_executable_p "$ac_path_FGREP" || continue
5762 # Check for GNU ac_path_FGREP and select it if it is found.
5763 # Check for GNU $ac_path_FGREP
5764 case `"$ac_path_FGREP" --version 2>&1` in
5766 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5769 $as_echo_n 0123456789 >"conftest.in"
5772 cat "conftest.in" "conftest.in" >"conftest.tmp"
5773 mv "conftest.tmp" "conftest.in"
5774 cp "conftest.in" "conftest.nl"
5775 $as_echo 'FGREP' >> "conftest.nl"
5776 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5778 as_fn_arith $ac_count + 1 && ac_count=$as_val
5779 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5780 # Best one so far, save it but keep looking for a better one
5781 ac_cv_path_FGREP="$ac_path_FGREP"
5782 ac_path_FGREP_max=$ac_count
5784 # 10*(2^10) chars as input seems more than enough
5785 test $ac_count -gt 10 && break
5787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5790 $ac_path_FGREP_found && break 3
5795 if test -z "$ac_cv_path_FGREP"; then
5796 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5799 ac_cv_path_FGREP=$FGREP
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5805 $as_echo "$ac_cv_path_FGREP" >&6; }
5806 FGREP="$ac_cv_path_FGREP"
5809 test -z "$GREP" && GREP=grep
5829 # Check whether --with-gnu-ld was given.
5830 if test "${with_gnu_ld+set}" = set; then :
5831 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5837 if test yes = "$GCC"; then
5838 # Check if gcc -print-prog-name=ld gives a path.
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5840 $as_echo_n "checking for ld used by $CC... " >&6; }
5843 # gcc leaves a trailing carriage return, which upsets mingw
5844 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5846 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5849 # Accept absolute paths.
5851 re_direlt='/[^/][^/]*/\.\./'
5852 # Canonicalize the pathname of ld
5853 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5854 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5855 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5857 test -z "$LD" && LD=$ac_prog
5860 # If it fails, then pretend we aren't using GCC.
5864 # If it is relative, then search for the first ld in PATH.
5868 elif test yes = "$with_gnu_ld"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5870 $as_echo_n "checking for GNU ld... " >&6; }
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5873 $as_echo_n "checking for non-GNU ld... " >&6; }
5875 if ${lt_cv_path_LD+:} false; then :
5876 $as_echo_n "(cached) " >&6
5878 if test -z "$LD"; then
5879 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5880 for ac_dir in $PATH; do
5882 test -z "$ac_dir" && ac_dir=.
5883 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5884 lt_cv_path_LD=$ac_dir/$ac_prog
5885 # Check to see if the program is GNU ld. I'd rather use --version,
5886 # but apparently some variants of GNU ld only accept -v.
5887 # Break only if it was the GNU/non-GNU ld that we prefer.
5888 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5889 *GNU* | *'with BFD'*)
5890 test no != "$with_gnu_ld" && break
5893 test yes != "$with_gnu_ld" && break
5900 lt_cv_path_LD=$LD # Let the user override the test with a path.
5905 if test -n "$LD"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5907 $as_echo "$LD" >&6; }
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5912 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5914 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5915 if ${lt_cv_prog_gnu_ld+:} false; then :
5916 $as_echo_n "(cached) " >&6
5918 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5919 case `$LD -v 2>&1 </dev/null` in
5920 *GNU* | *'with BFD'*)
5921 lt_cv_prog_gnu_ld=yes
5924 lt_cv_prog_gnu_ld=no
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5929 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5930 with_gnu_ld=$lt_cv_prog_gnu_ld
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5941 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5942 if ${lt_cv_path_NM+:} false; then :
5943 $as_echo_n "(cached) " >&6
5945 if test -n "$NM"; then
5946 # Let the user override the test.
5949 lt_nm_to_check=${ac_tool_prefix}nm
5950 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5951 lt_nm_to_check="$lt_nm_to_check nm"
5953 for lt_tmp_nm in $lt_nm_to_check; do
5954 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5955 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5957 test -z "$ac_dir" && ac_dir=.
5958 tmp_nm=$ac_dir/$lt_tmp_nm
5959 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5960 # Check to see if the nm accepts a BSD-compat flag.
5961 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5962 # nm: unknown option "B" ignored
5963 # Tru64's nm complains that /dev/null is an invalid object file
5964 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5966 mingw*) lt_bad_file=conftest.nm/nofile ;;
5967 *) lt_bad_file=/dev/null ;;
5969 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5970 *$lt_bad_file* | *'Invalid file or object type'*)
5971 lt_cv_path_NM="$tmp_nm -B"
5975 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5977 lt_cv_path_NM="$tmp_nm -p"
5981 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5982 continue # so that we can try to find one that supports BSD flags
5991 : ${lt_cv_path_NM=no}
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5995 $as_echo "$lt_cv_path_NM" >&6; }
5996 if test no != "$lt_cv_path_NM"; then
5999 # Didn't find any BSD compatible name lister, look for dumpbin.
6000 if test -n "$DUMPBIN"; then :
6001 # Let the user override the test.
6003 if test -n "$ac_tool_prefix"; then
6004 for ac_prog in dumpbin "link -dump"
6006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009 $as_echo_n "checking for $ac_word... " >&6; }
6010 if ${ac_cv_prog_DUMPBIN+:} false; then :
6011 $as_echo_n "(cached) " >&6
6013 if test -n "$DUMPBIN"; then
6014 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 DUMPBIN=$ac_cv_prog_DUMPBIN
6034 if test -n "$DUMPBIN"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6036 $as_echo "$DUMPBIN" >&6; }
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6043 test -n "$DUMPBIN" && break
6046 if test -z "$DUMPBIN"; then
6047 ac_ct_DUMPBIN=$DUMPBIN
6048 for ac_prog in dumpbin "link -dump"
6050 # Extract the first word of "$ac_prog", so it can be a program name with args.
6051 set dummy $ac_prog; ac_word=$2
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6055 $as_echo_n "(cached) " >&6
6057 if test -n "$ac_ct_DUMPBIN"; then
6058 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6078 if test -n "$ac_ct_DUMPBIN"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6080 $as_echo "$ac_ct_DUMPBIN" >&6; }
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6087 test -n "$ac_ct_DUMPBIN" && break
6090 if test "x$ac_ct_DUMPBIN" = x; then
6093 case $cross_compiling:$ac_tool_warned in
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097 ac_tool_warned=yes ;;
6099 DUMPBIN=$ac_ct_DUMPBIN
6103 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6105 DUMPBIN="$DUMPBIN -symbols -headers"
6113 if test : != "$DUMPBIN"; then
6117 test -z "$NM" && NM=nm
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6125 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6126 if ${lt_cv_nm_interface+:} false; then :
6127 $as_echo_n "(cached) " >&6
6129 lt_cv_nm_interface="BSD nm"
6130 echo "int some_variable = 0;" > conftest.$ac_ext
6131 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6132 (eval "$ac_compile" 2>conftest.err)
6133 cat conftest.err >&5
6134 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6135 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6136 cat conftest.err >&5
6137 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6138 cat conftest.out >&5
6139 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6140 lt_cv_nm_interface="MS dumpbin"
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6145 $as_echo "$lt_cv_nm_interface" >&6; }
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6148 $as_echo_n "checking whether ln -s works... " >&6; }
6150 if test "$LN_S" = "ln -s"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6152 $as_echo "yes" >&6; }
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6155 $as_echo "no, using $LN_S" >&6; }
6158 # find the maximum length of command line arguments
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6160 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6161 if ${lt_cv_sys_max_cmd_len+:} false; then :
6162 $as_echo_n "(cached) " >&6
6169 # On DJGPP, this test can blow up pretty badly due to problems in libc
6170 # (any single argument exceeding 2000 bytes causes a buffer overrun
6171 # during glob expansion). Even if it were fixed, the result of this
6172 # check would be larger than it should be.
6173 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6177 # Under GNU Hurd, this test is not required because there is
6178 # no limit to the length of command line arguments.
6179 # Libtool will interpret -1 as no limit whatsoever
6180 lt_cv_sys_max_cmd_len=-1;
6183 cygwin* | mingw* | cegcc*)
6184 # On Win9x/ME, this test blows up -- it succeeds, but takes
6185 # about 5 minutes as the teststring grows exponentially.
6186 # Worse, since 9x/ME are not pre-emptively multitasking,
6187 # you end up with a "frozen" computer, even though with patience
6188 # the test eventually succeeds (with a max line length of 256k).
6189 # Instead, let's just punt: use the minimum linelength reported by
6190 # all of the supported platforms: 8192 (on NT/2K/XP).
6191 lt_cv_sys_max_cmd_len=8192;
6195 # On MiNT this can take a long time and run out of memory.
6196 lt_cv_sys_max_cmd_len=8192;
6200 # On AmigaOS with pdksh, this test takes hours, literally.
6201 # So we just punt and use a minimum line length of 8192.
6202 lt_cv_sys_max_cmd_len=8192;
6205 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6206 # This has been around since 386BSD, at least. Likely further.
6207 if test -x /sbin/sysctl; then
6208 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6209 elif test -x /usr/sbin/sysctl; then
6210 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6212 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6214 # And add a safety zone
6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6220 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6221 lt_cv_sys_max_cmd_len=196608
6225 # The test takes a long time on OS/2.
6226 lt_cv_sys_max_cmd_len=8192
6230 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6231 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6232 # nice to cause kernel panics so lets avoid the loop below.
6233 # First set a reasonable default.
6234 lt_cv_sys_max_cmd_len=16384
6236 if test -x /sbin/sysconfig; then
6237 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6238 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6243 lt_cv_sys_max_cmd_len=102400
6245 sysv5* | sco5v6* | sysv4.2uw2*)
6246 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6247 if test -n "$kargmax"; then
6248 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6250 lt_cv_sys_max_cmd_len=32768
6254 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6255 if test -n "$lt_cv_sys_max_cmd_len" && \
6256 test undefined != "$lt_cv_sys_max_cmd_len"; then
6257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6258 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6260 # Make teststring a little bigger before we do anything with it.
6261 # a 1K string should be a reasonable start.
6262 for i in 1 2 3 4 5 6 7 8; do
6263 teststring=$teststring$teststring
6265 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6266 # If test is not a shell built-in, we'll probably end up computing a
6267 # maximum length that is only half of the actual maximum length, but
6269 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6270 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6271 test 17 != "$i" # 1/2 MB should be enough
6274 teststring=$teststring$teststring
6276 # Only check the string length outside the loop.
6277 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6279 # Add a significant safety factor because C++ compilers can tack on
6280 # massive amounts of additional arguments before passing them to the
6281 # linker. It appears as though 1/2 is a usable value.
6282 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6289 if test -n "$lt_cv_sys_max_cmd_len"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6291 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6294 $as_echo "none" >&6; }
6296 max_cmd_len=$lt_cv_sys_max_cmd_len
6307 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6317 # test EBCDIC or ASCII
6318 case `echo X|tr X '\101'` in
6319 A) # ASCII based system
6320 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6321 lt_SP2NL='tr \040 \012'
6322 lt_NL2SP='tr \015\012 \040\040'
6324 *) # EBCDIC based system
6325 lt_SP2NL='tr \100 \n'
6326 lt_NL2SP='tr \r\n \100\100'
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6339 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6340 if ${lt_cv_to_host_file_cmd+:} false; then :
6341 $as_echo_n "(cached) " >&6
6346 *-*-mingw* ) # actually msys
6347 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6350 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6352 * ) # otherwise, assume *nix
6353 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6359 *-*-mingw* ) # actually msys
6360 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6363 lt_cv_to_host_file_cmd=func_convert_file_noop
6365 * ) # otherwise, assume *nix
6366 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6370 * ) # unhandled hosts (and "normal" native builds)
6371 lt_cv_to_host_file_cmd=func_convert_file_noop
6377 to_host_file_cmd=$lt_cv_to_host_file_cmd
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6379 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6386 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6387 if ${lt_cv_to_tool_file_cmd+:} false; then :
6388 $as_echo_n "(cached) " >&6
6390 #assume ordinary cross tools, or native build.
6391 lt_cv_to_tool_file_cmd=func_convert_file_noop
6395 *-*-mingw* ) # actually msys
6396 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6404 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6406 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6413 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6414 if ${lt_cv_ld_reload_flag+:} false; then :
6415 $as_echo_n "(cached) " >&6
6417 lt_cv_ld_reload_flag='-r'
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6420 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6421 reload_flag=$lt_cv_ld_reload_flag
6422 case $reload_flag in
6424 *) reload_flag=" $reload_flag" ;;
6426 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6428 cygwin* | mingw* | pw32* | cegcc*)
6429 if test yes != "$GCC"; then
6434 if test yes = "$GCC"; then
6435 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6437 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6450 if test -n "$ac_tool_prefix"; then
6451 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6452 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454 $as_echo_n "checking for $ac_word... " >&6; }
6455 if ${ac_cv_prog_OBJDUMP+:} false; then :
6456 $as_echo_n "(cached) " >&6
6458 if test -n "$OBJDUMP"; then
6459 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6468 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 OBJDUMP=$ac_cv_prog_OBJDUMP
6479 if test -n "$OBJDUMP"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6481 $as_echo "$OBJDUMP" >&6; }
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6489 if test -z "$ac_cv_prog_OBJDUMP"; then
6490 ac_ct_OBJDUMP=$OBJDUMP
6491 # Extract the first word of "objdump", so it can be a program name with args.
6492 set dummy objdump; ac_word=$2
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494 $as_echo_n "checking for $ac_word... " >&6; }
6495 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6496 $as_echo_n "(cached) " >&6
6498 if test -n "$ac_ct_OBJDUMP"; then
6499 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6519 if test -n "$ac_ct_OBJDUMP"; then
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6521 $as_echo "$ac_ct_OBJDUMP" >&6; }
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524 $as_echo "no" >&6; }
6527 if test "x$ac_ct_OBJDUMP" = x; then
6530 case $cross_compiling:$ac_tool_warned in
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6534 ac_tool_warned=yes ;;
6536 OBJDUMP=$ac_ct_OBJDUMP
6539 OBJDUMP="$ac_cv_prog_OBJDUMP"
6542 test -z "$OBJDUMP" && OBJDUMP=objdump
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6553 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6554 if ${lt_cv_deplibs_check_method+:} false; then :
6555 $as_echo_n "(cached) " >&6
6557 lt_cv_file_magic_cmd='$MAGIC_CMD'
6558 lt_cv_file_magic_test_file=
6559 lt_cv_deplibs_check_method='unknown'
6560 # Need to set the preceding variable on all platforms that support
6561 # interlibrary dependencies.
6562 # 'none' -- dependencies not supported.
6563 # 'unknown' -- same as none, but documents that we really don't know.
6564 # 'pass_all' -- all dependencies passed with no checks.
6565 # 'test_compile' -- check by making test program.
6566 # 'file_magic [[regex]]' -- check by looking for files in library path
6567 # that responds to the $file_magic_cmd with a given extended regex.
6568 # If you have 'file' or equivalent on your system and you're not sure
6569 # whether 'pass_all' will *always* work, you probably want this one.
6573 lt_cv_deplibs_check_method=pass_all
6577 lt_cv_deplibs_check_method=pass_all
6581 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6582 lt_cv_file_magic_cmd='/usr/bin/file -L'
6583 lt_cv_file_magic_test_file=/shlib/libc.so
6587 # func_win32_libid is a shell function defined in ltmain.sh
6588 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6589 lt_cv_file_magic_cmd='func_win32_libid'
6593 # Base MSYS/MinGW do not provide the 'file' command needed by
6594 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6595 # unless we find 'file', for example because we are cross-compiling.
6596 if ( file / ) >/dev/null 2>&1; then
6597 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6598 lt_cv_file_magic_cmd='func_win32_libid'
6600 # Keep this pattern in sync with the one in func_win32_libid.
6601 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6602 lt_cv_file_magic_cmd='$OBJDUMP -f'
6607 # use the weaker test based on 'objdump'. See mingw*.
6608 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6609 lt_cv_file_magic_cmd='$OBJDUMP -f'
6612 darwin* | rhapsody*)
6613 lt_cv_deplibs_check_method=pass_all
6616 freebsd* | dragonfly*)
6617 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6620 # Not sure whether the presence of OpenBSD here was a mistake.
6621 # Let's accept both of them until this is cleared up.
6622 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6623 lt_cv_file_magic_cmd=/usr/bin/file
6624 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6628 lt_cv_deplibs_check_method=pass_all
6633 lt_cv_deplibs_check_method=pass_all
6636 hpux10.20* | hpux11*)
6637 lt_cv_file_magic_cmd=/usr/bin/file
6640 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6641 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6644 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]'
6645 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6648 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6649 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6655 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6659 irix5* | irix6* | nonstopux*)
6661 *-32|*"-32 ") libmagic=32-bit;;
6662 *-n32|*"-n32 ") libmagic=N32;;
6663 *-64|*"-64 ") libmagic=64-bit;;
6664 *) libmagic=never-match;;
6666 lt_cv_deplibs_check_method=pass_all
6669 # This must be glibc/ELF.
6670 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6671 lt_cv_deplibs_check_method=pass_all
6675 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6684 lt_cv_file_magic_cmd=/usr/bin/file
6685 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6689 lt_cv_deplibs_check_method=pass_all
6693 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6700 osf3* | osf4* | osf5*)
6701 lt_cv_deplibs_check_method=pass_all
6705 lt_cv_deplibs_check_method=pass_all
6709 lt_cv_deplibs_check_method=pass_all
6712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6713 lt_cv_deplibs_check_method=pass_all
6717 case $host_vendor in
6719 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]'
6720 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6723 lt_cv_deplibs_check_method=pass_all
6726 lt_cv_file_magic_cmd='/bin/file'
6727 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6730 lt_cv_file_magic_cmd='/bin/file'
6731 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6732 lt_cv_file_magic_test_file=/lib/libc.so
6735 lt_cv_deplibs_check_method=pass_all
6738 lt_cv_deplibs_check_method=pass_all
6744 lt_cv_deplibs_check_method=pass_all
6747 lt_cv_deplibs_check_method=pass_all
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6753 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6757 if test "$build" = "$host"; then
6760 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6763 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6769 file_magic_cmd=$lt_cv_file_magic_cmd
6770 deplibs_check_method=$lt_cv_deplibs_check_method
6771 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6794 if test -n "$ac_tool_prefix"; then
6795 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6796 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 $as_echo_n "checking for $ac_word... " >&6; }
6799 if ${ac_cv_prog_DLLTOOL+:} false; then :
6800 $as_echo_n "(cached) " >&6
6802 if test -n "$DLLTOOL"; then
6803 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6812 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 DLLTOOL=$ac_cv_prog_DLLTOOL
6823 if test -n "$DLLTOOL"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6825 $as_echo "$DLLTOOL" >&6; }
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6833 if test -z "$ac_cv_prog_DLLTOOL"; then
6834 ac_ct_DLLTOOL=$DLLTOOL
6835 # Extract the first word of "dlltool", so it can be a program name with args.
6836 set dummy dlltool; ac_word=$2
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6840 $as_echo_n "(cached) " >&6
6842 if test -n "$ac_ct_DLLTOOL"; then
6843 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6852 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6863 if test -n "$ac_ct_DLLTOOL"; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6865 $as_echo "$ac_ct_DLLTOOL" >&6; }
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6871 if test "x$ac_ct_DLLTOOL" = x; then
6874 case $cross_compiling:$ac_tool_warned in
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6878 ac_tool_warned=yes ;;
6880 DLLTOOL=$ac_ct_DLLTOOL
6883 DLLTOOL="$ac_cv_prog_DLLTOOL"
6886 test -z "$DLLTOOL" && DLLTOOL=dlltool
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6898 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6899 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6900 $as_echo_n "(cached) " >&6
6902 lt_cv_sharedlib_from_linklib_cmd='unknown'
6905 cygwin* | mingw* | pw32* | cegcc*)
6906 # two different shell functions defined in ltmain.sh;
6907 # decide which one to use based on capabilities of $DLLTOOL
6908 case `$DLLTOOL --help 2>&1` in
6909 *--identify-strict*)
6910 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6913 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6918 # fallback: assume linklib IS sharedlib
6919 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6925 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6926 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6927 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6935 if test -n "$ac_tool_prefix"; then
6938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if ${ac_cv_prog_AR+:} false; then :
6943 $as_echo_n "(cached) " >&6
6945 if test -n "$AR"; then
6946 ac_cv_prog_AR="$AR" # Let the user override the test.
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 if test -n "$AR"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6968 $as_echo "$AR" >&6; }
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6975 test -n "$AR" && break
6978 if test -z "$AR"; then
6982 # Extract the first word of "$ac_prog", so it can be a program name with args.
6983 set dummy $ac_prog; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6987 $as_echo_n "(cached) " >&6
6989 if test -n "$ac_ct_AR"; then
6990 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_ac_ct_AR="$ac_prog"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7010 if test -n "$ac_ct_AR"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7012 $as_echo "$ac_ct_AR" >&6; }
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7019 test -n "$ac_ct_AR" && break
7022 if test "x$ac_ct_AR" = x; then
7025 case $cross_compiling:$ac_tool_warned in
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7029 ac_tool_warned=yes ;;
7042 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7043 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7044 # higher priority because thats what people were doing historically (setting
7045 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7046 # variable obsoleted/removed.
7048 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7049 lt_ar_flags=$AR_FLAGS
7056 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7057 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7065 $as_echo_n "checking for archiver @FILE support... " >&6; }
7066 if ${lt_cv_ar_at_file+:} false; then :
7067 $as_echo_n "(cached) " >&6
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7081 if ac_fn_c_try_compile "$LINENO"; then :
7082 echo conftest.$ac_objext > conftest.lst
7083 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7085 (eval $lt_ar_try) 2>&5
7087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7088 test $ac_status = 0; }
7089 if test 0 -eq "$ac_status"; then
7090 # Ensure the archiver fails upon bogus file names.
7091 rm -f conftest.$ac_objext libconftest.a
7092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7093 (eval $lt_ar_try) 2>&5
7095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7096 test $ac_status = 0; }
7097 if test 0 -ne "$ac_status"; then
7101 rm -f conftest.* libconftest.a
7104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7108 $as_echo "$lt_cv_ar_at_file" >&6; }
7110 if test no = "$lt_cv_ar_at_file"; then
7113 archiver_list_spec=$lt_cv_ar_at_file
7122 if test -n "$ac_tool_prefix"; then
7123 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7124 set dummy ${ac_tool_prefix}strip; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if ${ac_cv_prog_STRIP+:} false; then :
7128 $as_echo_n "(cached) " >&6
7130 if test -n "$STRIP"; then
7131 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 STRIP=$ac_cv_prog_STRIP
7151 if test -n "$STRIP"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7153 $as_echo "$STRIP" >&6; }
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7161 if test -z "$ac_cv_prog_STRIP"; then
7163 # Extract the first word of "strip", so it can be a program name with args.
7164 set dummy strip; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7168 $as_echo_n "(cached) " >&6
7170 if test -n "$ac_ct_STRIP"; then
7171 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180 ac_cv_prog_ac_ct_STRIP="strip"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7191 if test -n "$ac_ct_STRIP"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7193 $as_echo "$ac_ct_STRIP" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7199 if test "x$ac_ct_STRIP" = x; then
7202 case $cross_compiling:$ac_tool_warned in
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7206 ac_tool_warned=yes ;;
7211 STRIP="$ac_cv_prog_STRIP"
7214 test -z "$STRIP" && STRIP=:
7221 if test -n "$ac_tool_prefix"; then
7222 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if ${ac_cv_prog_RANLIB+:} false; then :
7227 $as_echo_n "(cached) " >&6
7229 if test -n "$RANLIB"; then
7230 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 RANLIB=$ac_cv_prog_RANLIB
7250 if test -n "$RANLIB"; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7252 $as_echo "$RANLIB" >&6; }
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7260 if test -z "$ac_cv_prog_RANLIB"; then
7261 ac_ct_RANLIB=$RANLIB
7262 # Extract the first word of "ranlib", so it can be a program name with args.
7263 set dummy ranlib; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7267 $as_echo_n "(cached) " >&6
7269 if test -n "$ac_ct_RANLIB"; then
7270 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279 ac_cv_prog_ac_ct_RANLIB="ranlib"
7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7290 if test -n "$ac_ct_RANLIB"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7292 $as_echo "$ac_ct_RANLIB" >&6; }
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7298 if test "x$ac_ct_RANLIB" = x; then
7301 case $cross_compiling:$ac_tool_warned in
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7305 ac_tool_warned=yes ;;
7307 RANLIB=$ac_ct_RANLIB
7310 RANLIB="$ac_cv_prog_RANLIB"
7313 test -z "$RANLIB" && RANLIB=:
7320 # Determine commands to create old-style static archives.
7321 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7322 old_postinstall_cmds='chmod 644 $oldlib'
7323 old_postuninstall_cmds=
7325 if test -n "$RANLIB"; then
7328 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7331 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7334 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7339 lock_old_archive_extraction=yes ;;
7341 lock_old_archive_extraction=no ;;
7382 # If no C compiler was specified, use CC.
7385 # If no C compiler flags were specified, use CFLAGS.
7386 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7388 # Allow CC to be a program name with arguments.
7392 # Check for command to grab the raw symbol name followed by C symbol from nm.
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7394 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7395 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7396 $as_echo_n "(cached) " >&6
7399 # These are sane defaults that work on at least a few old systems.
7400 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7402 # Character class describing NM global symbol codes.
7403 symcode='[BCDEGRST]'
7405 # Regexp to match symbols that can be accessed directly from C.
7406 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7408 # Define system-specific variables.
7413 cygwin* | mingw* | pw32* | cegcc*)
7414 symcode='[ABCDGISTW]'
7417 if test ia64 = "$host_cpu"; then
7418 symcode='[ABCDEGRST]'
7422 symcode='[BCDEGRST]'
7425 symcode='[BCDEGQRST]'
7436 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7444 # If we're using GNU nm, then use its standard symbol codes.
7445 case `$NM -V 2>&1` in
7446 *GNU* | *'with BFD'*)
7447 symcode='[ABCDGIRSTW]' ;;
7450 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7451 # Gets list of data symbols to import.
7452 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7453 # Adjust the below global symbol transforms to fixup imported variables.
7454 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7455 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7456 lt_c_name_lib_hook="\
7457 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7458 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7460 # Disable hooks by default.
7461 lt_cv_sys_global_symbol_to_import=
7467 # Transform an extracted symbol line into a proper C declaration.
7468 # Some systems (esp. on ia64) link data and code symbols differently,
7469 # so use this general approach.
7470 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7472 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7473 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7475 # Transform an extracted symbol line into symbol name and symbol address
7476 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7478 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7479 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7481 # Transform an extracted symbol line into symbol name with lib prefix and
7483 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7484 $lt_c_name_lib_hook\
7485 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7486 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7487 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7489 # Handle CRLF in mingw tool chain
7493 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7497 # Try without a prefix underscore, then with it.
7498 for ac_symprfx in "" "_"; do
7500 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7501 symxfrm="\\1 $ac_symprfx\\2 \\2"
7503 # Write the raw and C identifiers.
7504 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7505 # Fake it for dumpbin and say T for any non-static function,
7506 # D for any global variable and I for any imported variable.
7507 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7508 # which start with @ or ?.
7509 lt_cv_sys_global_symbol_pipe="$AWK '"\
7510 " {last_section=section; section=\$ 3};"\
7511 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7512 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7513 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7514 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7515 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7516 " \$ 0!~/External *\|/{next};"\
7517 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7518 " {if(hide[section]) next};"\
7519 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7520 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7521 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7522 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7523 " ' prfx=^$ac_symprfx"
7525 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7527 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7529 # Check to see that the pipe works correctly.
7533 cat > conftest.$ac_ext <<_LT_EOF
7538 void nm_test_func(void);
7539 void nm_test_func(void){}
7543 int main(){nm_test_var='a';nm_test_func();return(0);}
7546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7547 (eval $ac_compile) 2>&5
7549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7550 test $ac_status = 0; }; then
7551 # Now try to grab the symbols.
7553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7554 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7557 test $ac_status = 0; } && test -s "$nlist"; then
7558 # Try sorting and uniquifying the output.
7559 if sort "$nlist" | uniq > "$nlist"T; then
7560 mv -f "$nlist"T "$nlist"
7565 # Make sure that we snagged all the symbols we need.
7566 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7567 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7568 cat <<_LT_EOF > conftest.$ac_ext
7569 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7570 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7571 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7572 relocations are performed -- see ld's documentation on pseudo-relocs. */
7573 # define LT_DLSYM_CONST
7574 #elif defined __osf__
7575 /* This system does not cope well with relocations in const data. */
7576 # define LT_DLSYM_CONST
7578 # define LT_DLSYM_CONST const
7586 # Now generate the symbol file.
7587 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7589 cat <<_LT_EOF >> conftest.$ac_ext
7591 /* The mapping between symbol names and symbols. */
7592 LT_DLSYM_CONST struct {
7596 lt__PROGRAM__LTX_preloaded_symbols[] =
7598 { "@PROGRAM@", (void *) 0 },
7600 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7601 cat <<\_LT_EOF >> conftest.$ac_ext
7605 /* This works around a problem in FreeBSD linker */
7606 #ifdef FREEBSD_WORKAROUND
7607 static const void *lt_preloaded_setup() {
7608 return lt__PROGRAM__LTX_preloaded_symbols;
7616 # Now try linking the two files.
7617 mv conftest.$ac_objext conftstm.$ac_objext
7618 lt_globsym_save_LIBS=$LIBS
7619 lt_globsym_save_CFLAGS=$CFLAGS
7620 LIBS=conftstm.$ac_objext
7621 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7623 (eval $ac_link) 2>&5
7625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7626 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7629 LIBS=$lt_globsym_save_LIBS
7630 CFLAGS=$lt_globsym_save_CFLAGS
7632 echo "cannot find nm_test_func in $nlist" >&5
7635 echo "cannot find nm_test_var in $nlist" >&5
7638 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7641 echo "$progname: failed program was:" >&5
7642 cat conftest.$ac_ext >&5
7644 rm -rf conftest* conftst*
7646 # Do not use the global_symbol_pipe unless it works.
7647 if test yes = "$pipe_works"; then
7650 lt_cv_sys_global_symbol_pipe=
7656 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7657 lt_cv_sys_global_symbol_to_cdecl=
7659 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7661 $as_echo "failed" >&6; }
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7664 $as_echo "ok" >&6; }
7667 # Response file support.
7668 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7669 nm_file_list_spec='@'
7670 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7671 nm_file_list_spec='@'
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7711 $as_echo_n "checking for sysroot... " >&6; }
7713 # Check whether --with-sysroot was given.
7714 if test "${with_sysroot+set}" = set; then :
7715 withval=$with_sysroot;
7722 case $with_sysroot in #(
7724 if test yes = "$GCC"; then
7725 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7729 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7735 $as_echo "$with_sysroot" >&6; }
7736 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7741 $as_echo "${lt_sysroot:-no}" >&6; }
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7748 $as_echo_n "checking for a working dd... " >&6; }
7749 if ${ac_cv_path_lt_DD+:} false; then :
7750 $as_echo_n "(cached) " >&6
7752 printf 0123456789abcdef0123456789abcdef >conftest.i
7753 cat conftest.i conftest.i >conftest2.i
7755 if test -z "$lt_DD"; then
7756 ac_path_lt_DD_found=false
7757 # Loop through the user's path and test for each of PROGNAME-LIST
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 test -z "$as_dir" && as_dir=.
7763 for ac_prog in dd; do
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7766 as_fn_executable_p "$ac_path_lt_DD" || continue
7767 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7768 cmp -s conftest.i conftest.out \
7769 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7771 $ac_path_lt_DD_found && break 3
7776 if test -z "$ac_cv_path_lt_DD"; then
7780 ac_cv_path_lt_DD=$lt_DD
7783 rm -f conftest.i conftest2.i conftest.out
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7786 $as_echo "$ac_cv_path_lt_DD" >&6; }
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7790 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7791 if ${lt_cv_truncate_bin+:} false; then :
7792 $as_echo_n "(cached) " >&6
7794 printf 0123456789abcdef0123456789abcdef >conftest.i
7795 cat conftest.i conftest.i >conftest2.i
7797 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7798 cmp -s conftest.i conftest.out \
7799 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7801 rm -f conftest.i conftest2.i conftest.out
7802 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7805 $as_echo "$lt_cv_truncate_bin" >&6; }
7813 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7816 for cc_temp in $*""; do
7818 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7819 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7824 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7827 # Check whether --enable-libtool-lock was given.
7828 if test "${enable_libtool_lock+set}" = set; then :
7829 enableval=$enable_libtool_lock;
7832 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7834 # Some flags need to be propagated to the compiler or linker for good
7838 # Find out what ABI is being produced by ac_compile, and set mode
7839 # options accordingly.
7840 echo 'int i;' > conftest.$ac_ext
7841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7842 (eval $ac_compile) 2>&5
7844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7845 test $ac_status = 0; }; then
7846 case `/usr/bin/file conftest.$ac_objext` in
7858 # Find out what ABI is being produced by ac_compile, and set linker
7859 # options accordingly.
7860 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7862 (eval $ac_compile) 2>&5
7864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7865 test $ac_status = 0; }; then
7866 if test yes = "$lt_cv_prog_gnu_ld"; then
7867 case `/usr/bin/file conftest.$ac_objext` in
7869 LD="${LD-ld} -melf32bsmip"
7872 LD="${LD-ld} -melf32bmipn32"
7875 LD="${LD-ld} -melf64bmip"
7879 case `/usr/bin/file conftest.$ac_objext` in
7896 # Find out what ABI is being produced by ac_compile, and set linker
7897 # options accordingly.
7898 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7900 (eval $ac_compile) 2>&5
7902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7903 test $ac_status = 0; }; then
7905 case `/usr/bin/file conftest.$ac_objext` in
7913 case `/usr/bin/file conftest.$ac_objext` in
7915 emul="${emul}btsmip"
7918 emul="${emul}ltsmip"
7921 case `/usr/bin/file conftest.$ac_objext` in
7926 LD="${LD-ld} -m $emul"
7931 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7932 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7933 # Find out what ABI is being produced by ac_compile, and set linker
7934 # options accordingly. Note that the listed cases only cover the
7935 # situations where additional linker options are needed (such as when
7936 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7937 # vice versa); the common cases where no linker options are needed do
7938 # not appear in the list.
7939 echo 'int i;' > conftest.$ac_ext
7940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7941 (eval $ac_compile) 2>&5
7943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7944 test $ac_status = 0; }; then
7945 case `/usr/bin/file conftest.o` in
7948 x86_64-*kfreebsd*-gnu)
7949 LD="${LD-ld} -m elf_i386_fbsd"
7952 case `/usr/bin/file conftest.o` in
7954 LD="${LD-ld} -m elf32_x86_64"
7957 LD="${LD-ld} -m elf_i386"
7961 powerpc64le-*linux*)
7962 LD="${LD-ld} -m elf32lppclinux"
7965 LD="${LD-ld} -m elf32ppclinux"
7968 LD="${LD-ld} -m elf_s390"
7971 LD="${LD-ld} -m elf32_sparc"
7977 x86_64-*kfreebsd*-gnu)
7978 LD="${LD-ld} -m elf_x86_64_fbsd"
7981 LD="${LD-ld} -m elf_x86_64"
7984 LD="${LD-ld} -m elf64lppc"
7987 LD="${LD-ld} -m elf64ppc"
7989 s390*-*linux*|s390*-*tpf*)
7990 LD="${LD-ld} -m elf64_s390"
7993 LD="${LD-ld} -m elf64_sparc"
8003 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8005 CFLAGS="$CFLAGS -belf"
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8007 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8008 if ${lt_cv_cc_needs_belf+:} false; then :
8009 $as_echo_n "(cached) " >&6
8012 ac_cpp='$CPP $CPPFLAGS'
8013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8028 if ac_fn_c_try_link "$LINENO"; then :
8029 lt_cv_cc_needs_belf=yes
8031 lt_cv_cc_needs_belf=no
8033 rm -f core conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8036 ac_cpp='$CPP $CPPFLAGS'
8037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8043 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8044 if test yes != "$lt_cv_cc_needs_belf"; then
8045 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8050 # Find out what ABI is being produced by ac_compile, and set linker
8051 # options accordingly.
8052 echo 'int i;' > conftest.$ac_ext
8053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8054 (eval $ac_compile) 2>&5
8056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8057 test $ac_status = 0; }; then
8058 case `/usr/bin/file conftest.o` in
8060 case $lt_cv_prog_gnu_ld in
8063 i?86-*-solaris*|x86_64-*-solaris*)
8064 LD="${LD-ld} -m elf_x86_64"
8067 LD="${LD-ld} -m elf64_sparc"
8070 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8071 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8076 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8088 need_locks=$enable_libtool_lock
8090 if test -n "$ac_tool_prefix"; then
8091 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8092 set dummy ${ac_tool_prefix}mt; ac_word=$2
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094 $as_echo_n "checking for $ac_word... " >&6; }
8095 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8096 $as_echo_n "(cached) " >&6
8098 if test -n "$MANIFEST_TOOL"; then
8099 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 test -z "$as_dir" && as_dir=.
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8108 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8119 if test -n "$MANIFEST_TOOL"; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8121 $as_echo "$MANIFEST_TOOL" >&6; }
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8129 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8130 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8131 # Extract the first word of "mt", so it can be a program name with args.
8132 set dummy mt; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8136 $as_echo_n "(cached) " >&6
8138 if test -n "$ac_ct_MANIFEST_TOOL"; then
8139 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8148 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8159 if test -n "$ac_ct_MANIFEST_TOOL"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8161 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8167 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8170 case $cross_compiling:$ac_tool_warned in
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8174 ac_tool_warned=yes ;;
8176 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8179 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8182 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8184 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8185 if ${lt_cv_path_mainfest_tool+:} false; then :
8186 $as_echo_n "(cached) " >&6
8188 lt_cv_path_mainfest_tool=no
8189 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8190 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8191 cat conftest.err >&5
8192 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8193 lt_cv_path_mainfest_tool=yes
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8198 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8199 if test yes != "$lt_cv_path_mainfest_tool"; then
8209 rhapsody* | darwin*)
8210 if test -n "$ac_tool_prefix"; then
8211 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8212 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8216 $as_echo_n "(cached) " >&6
8218 if test -n "$DSYMUTIL"; then
8219 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8228 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8238 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8239 if test -n "$DSYMUTIL"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8241 $as_echo "$DSYMUTIL" >&6; }
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8249 if test -z "$ac_cv_prog_DSYMUTIL"; then
8250 ac_ct_DSYMUTIL=$DSYMUTIL
8251 # Extract the first word of "dsymutil", so it can be a program name with args.
8252 set dummy dsymutil; ac_word=$2
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8254 $as_echo_n "checking for $ac_word... " >&6; }
8255 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8256 $as_echo_n "(cached) " >&6
8258 if test -n "$ac_ct_DSYMUTIL"; then
8259 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265 test -z "$as_dir" && as_dir=.
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8268 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8279 if test -n "$ac_ct_DSYMUTIL"; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8281 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8287 if test "x$ac_ct_DSYMUTIL" = x; then
8290 case $cross_compiling:$ac_tool_warned in
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8294 ac_tool_warned=yes ;;
8296 DSYMUTIL=$ac_ct_DSYMUTIL
8299 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8302 if test -n "$ac_tool_prefix"; then
8303 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8304 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306 $as_echo_n "checking for $ac_word... " >&6; }
8307 if ${ac_cv_prog_NMEDIT+:} false; then :
8308 $as_echo_n "(cached) " >&6
8310 if test -n "$NMEDIT"; then
8311 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 test -z "$as_dir" && as_dir=.
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8320 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 NMEDIT=$ac_cv_prog_NMEDIT
8331 if test -n "$NMEDIT"; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8333 $as_echo "$NMEDIT" >&6; }
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8341 if test -z "$ac_cv_prog_NMEDIT"; then
8342 ac_ct_NMEDIT=$NMEDIT
8343 # Extract the first word of "nmedit", so it can be a program name with args.
8344 set dummy nmedit; ac_word=$2
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 $as_echo_n "checking for $ac_word... " >&6; }
8347 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8348 $as_echo_n "(cached) " >&6
8350 if test -n "$ac_ct_NMEDIT"; then
8351 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357 test -z "$as_dir" && as_dir=.
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8360 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8371 if test -n "$ac_ct_NMEDIT"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8373 $as_echo "$ac_ct_NMEDIT" >&6; }
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8379 if test "x$ac_ct_NMEDIT" = x; then
8382 case $cross_compiling:$ac_tool_warned in
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8386 ac_tool_warned=yes ;;
8388 NMEDIT=$ac_ct_NMEDIT
8391 NMEDIT="$ac_cv_prog_NMEDIT"
8394 if test -n "$ac_tool_prefix"; then
8395 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8396 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 $as_echo_n "checking for $ac_word... " >&6; }
8399 if ${ac_cv_prog_LIPO+:} false; then :
8400 $as_echo_n "(cached) " >&6
8402 if test -n "$LIPO"; then
8403 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 test -z "$as_dir" && as_dir=.
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8412 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 LIPO=$ac_cv_prog_LIPO
8423 if test -n "$LIPO"; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8425 $as_echo "$LIPO" >&6; }
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8433 if test -z "$ac_cv_prog_LIPO"; then
8435 # Extract the first word of "lipo", so it can be a program name with args.
8436 set dummy lipo; ac_word=$2
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 $as_echo_n "checking for $ac_word... " >&6; }
8439 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8440 $as_echo_n "(cached) " >&6
8442 if test -n "$ac_ct_LIPO"; then
8443 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449 test -z "$as_dir" && as_dir=.
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8452 ac_cv_prog_ac_ct_LIPO="lipo"
8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8463 if test -n "$ac_ct_LIPO"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8465 $as_echo "$ac_ct_LIPO" >&6; }
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8471 if test "x$ac_ct_LIPO" = x; then
8474 case $cross_compiling:$ac_tool_warned in
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8478 ac_tool_warned=yes ;;
8483 LIPO="$ac_cv_prog_LIPO"
8486 if test -n "$ac_tool_prefix"; then
8487 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8488 set dummy ${ac_tool_prefix}otool; ac_word=$2
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if ${ac_cv_prog_OTOOL+:} false; then :
8492 $as_echo_n "(cached) " >&6
8494 if test -n "$OTOOL"; then
8495 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8504 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 OTOOL=$ac_cv_prog_OTOOL
8515 if test -n "$OTOOL"; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8517 $as_echo "$OTOOL" >&6; }
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8525 if test -z "$ac_cv_prog_OTOOL"; then
8527 # Extract the first word of "otool", so it can be a program name with args.
8528 set dummy otool; ac_word=$2
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530 $as_echo_n "checking for $ac_word... " >&6; }
8531 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8532 $as_echo_n "(cached) " >&6
8534 if test -n "$ac_ct_OTOOL"; then
8535 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8544 ac_cv_prog_ac_ct_OTOOL="otool"
8545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8555 if test -n "$ac_ct_OTOOL"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8557 $as_echo "$ac_ct_OTOOL" >&6; }
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8563 if test "x$ac_ct_OTOOL" = x; then
8566 case $cross_compiling:$ac_tool_warned in
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8570 ac_tool_warned=yes ;;
8575 OTOOL="$ac_cv_prog_OTOOL"
8578 if test -n "$ac_tool_prefix"; then
8579 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8580 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8582 $as_echo_n "checking for $ac_word... " >&6; }
8583 if ${ac_cv_prog_OTOOL64+:} false; then :
8584 $as_echo_n "(cached) " >&6
8586 if test -n "$OTOOL64"; then
8587 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593 test -z "$as_dir" && as_dir=.
8594 for ac_exec_ext in '' $ac_executable_extensions; do
8595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8596 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606 OTOOL64=$ac_cv_prog_OTOOL64
8607 if test -n "$OTOOL64"; then
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8609 $as_echo "$OTOOL64" >&6; }
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 $as_echo "no" >&6; }
8617 if test -z "$ac_cv_prog_OTOOL64"; then
8618 ac_ct_OTOOL64=$OTOOL64
8619 # Extract the first word of "otool64", so it can be a program name with args.
8620 set dummy otool64; ac_word=$2
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8622 $as_echo_n "checking for $ac_word... " >&6; }
8623 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8624 $as_echo_n "(cached) " >&6
8626 if test -n "$ac_ct_OTOOL64"; then
8627 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633 test -z "$as_dir" && as_dir=.
8634 for ac_exec_ext in '' $ac_executable_extensions; do
8635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8636 ac_cv_prog_ac_ct_OTOOL64="otool64"
8637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8646 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8647 if test -n "$ac_ct_OTOOL64"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8649 $as_echo "$ac_ct_OTOOL64" >&6; }
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 $as_echo "no" >&6; }
8655 if test "x$ac_ct_OTOOL64" = x; then
8658 case $cross_compiling:$ac_tool_warned in
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8662 ac_tool_warned=yes ;;
8664 OTOOL64=$ac_ct_OTOOL64
8667 OTOOL64="$ac_cv_prog_OTOOL64"
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8697 $as_echo_n "checking for -single_module linker flag... " >&6; }
8698 if ${lt_cv_apple_cc_single_mod+:} false; then :
8699 $as_echo_n "(cached) " >&6
8701 lt_cv_apple_cc_single_mod=no
8702 if test -z "$LT_MULTI_MODULE"; then
8703 # By default we will add the -single_module flag. You can override
8704 # by either setting the environment variable LT_MULTI_MODULE
8705 # non-empty at configure time, or by adding -multi_module to the
8707 rm -rf libconftest.dylib*
8708 echo "int foo(void){return 1;}" > conftest.c
8709 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8710 -dynamiclib -Wl,-single_module conftest.c" >&5
8711 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8712 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8714 # If there is a non-empty error log, and "single_module"
8715 # appears in it, assume the flag caused a linker warning
8716 if test -s conftest.err && $GREP single_module conftest.err; then
8717 cat conftest.err >&5
8718 # Otherwise, if the output was created with a 0 exit code from
8719 # the compiler, it worked.
8720 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8721 lt_cv_apple_cc_single_mod=yes
8723 cat conftest.err >&5
8725 rm -rf libconftest.dylib*
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8730 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8733 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8734 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8735 $as_echo_n "(cached) " >&6
8737 lt_cv_ld_exported_symbols_list=no
8738 save_LDFLAGS=$LDFLAGS
8739 echo "_main" > conftest.sym
8740 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8752 if ac_fn_c_try_link "$LINENO"; then :
8753 lt_cv_ld_exported_symbols_list=yes
8755 lt_cv_ld_exported_symbols_list=no
8757 rm -f core conftest.err conftest.$ac_objext \
8758 conftest$ac_exeext conftest.$ac_ext
8759 LDFLAGS=$save_LDFLAGS
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8763 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8766 $as_echo_n "checking for -force_load linker flag... " >&6; }
8767 if ${lt_cv_ld_force_load+:} false; then :
8768 $as_echo_n "(cached) " >&6
8770 lt_cv_ld_force_load=no
8771 cat > conftest.c << _LT_EOF
8772 int forced_loaded() { return 2;}
8774 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8775 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8776 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8777 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8778 echo "$RANLIB libconftest.a" >&5
8779 $RANLIB libconftest.a 2>&5
8780 cat > conftest.c << _LT_EOF
8781 int main() { return 0;}
8783 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8784 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8786 if test -s conftest.err && $GREP force_load conftest.err; then
8787 cat conftest.err >&5
8788 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8789 lt_cv_ld_force_load=yes
8791 cat conftest.err >&5
8793 rm -f conftest.err libconftest.a conftest conftest.c
8794 rm -rf conftest.dSYM
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8798 $as_echo "$lt_cv_ld_force_load" >&6; }
8800 rhapsody* | darwin1.[012])
8801 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8803 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8804 darwin*) # darwin 5.x on
8805 # if running on 10.5 or later, the deployment target defaults
8806 # to the OS version, if on x86, and 10.4, the deployment
8807 # target defaults to 10.4. Don't you love it?
8808 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8809 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8810 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8812 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8814 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8818 if test yes = "$lt_cv_apple_cc_single_mod"; then
8819 _lt_dar_single_mod='$single_module'
8821 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8822 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8824 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8826 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8827 _lt_dsymutil='~$DSYMUTIL $lib || :'
8834 # func_munge_path_list VARIABLE PATH
8835 # -----------------------------------
8836 # VARIABLE is name of variable containing _space_ separated list of
8837 # directories to be munged by the contents of PATH, which is string
8840 # string "DIR[ DIR]" will be prepended to VARIABLE
8842 # string "DIR[ DIR]" will be appended to VARIABLE
8843 # "DIRP[:DIRP]::[DIRA:]DIRA"
8844 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8845 # "DIRA[ DIRA]" will be appended to VARIABLE
8847 # VARIABLE will be replaced by "DIR[ DIR]"
8848 func_munge_path_list ()
8854 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8857 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8860 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8861 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8864 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8870 ac_cpp='$CPP $CPPFLAGS'
8871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8875 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8876 # On Suns, sometimes $CPP names a directory.
8877 if test -n "$CPP" && test -d "$CPP"; then
8880 if test -z "$CPP"; then
8881 if ${ac_cv_prog_CPP+:} false; then :
8882 $as_echo_n "(cached) " >&6
8884 # Double quotes because CPP needs to be expanded
8885 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8888 for ac_c_preproc_warn_flag in '' yes
8890 # Use a header file that comes with gcc, so configuring glibc
8891 # with a fresh cross-compiler works.
8892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8893 # <limits.h> exists even on freestanding compilers.
8894 # On the NeXT, cc -E runs the code through the compiler's parser,
8895 # not just through cpp. "Syntax error" is here to catch this case.
8896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897 /* end confdefs.h. */
8899 # include <limits.h>
8901 # include <assert.h>
8905 if ac_fn_c_try_cpp "$LINENO"; then :
8908 # Broken: fails on valid input.
8911 rm -f conftest.err conftest.i conftest.$ac_ext
8913 # OK, works on sane cases. Now check whether nonexistent headers
8914 # can be detected and how.
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8917 #include <ac_nonexistent.h>
8919 if ac_fn_c_try_cpp "$LINENO"; then :
8920 # Broken: success on invalid input.
8923 # Passes both tests.
8927 rm -f conftest.err conftest.i conftest.$ac_ext
8930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8931 rm -f conftest.i conftest.err conftest.$ac_ext
8932 if $ac_preproc_ok; then :
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8945 $as_echo "$CPP" >&6; }
8947 for ac_c_preproc_warn_flag in '' yes
8949 # Use a header file that comes with gcc, so configuring glibc
8950 # with a fresh cross-compiler works.
8951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8952 # <limits.h> exists even on freestanding compilers.
8953 # On the NeXT, cc -E runs the code through the compiler's parser,
8954 # not just through cpp. "Syntax error" is here to catch this case.
8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8958 # include <limits.h>
8960 # include <assert.h>
8964 if ac_fn_c_try_cpp "$LINENO"; then :
8967 # Broken: fails on valid input.
8970 rm -f conftest.err conftest.i conftest.$ac_ext
8972 # OK, works on sane cases. Now check whether nonexistent headers
8973 # can be detected and how.
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8976 #include <ac_nonexistent.h>
8978 if ac_fn_c_try_cpp "$LINENO"; then :
8979 # Broken: success on invalid input.
8982 # Passes both tests.
8986 rm -f conftest.err conftest.i conftest.$ac_ext
8989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8990 rm -f conftest.i conftest.err conftest.$ac_ext
8991 if $ac_preproc_ok; then :
8994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8996 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8997 See \`config.log' for more details" "$LINENO" 5; }
9001 ac_cpp='$CPP $CPPFLAGS'
9002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9008 $as_echo_n "checking for ANSI C header files... " >&6; }
9009 if ${ac_cv_header_stdc+:} false; then :
9010 $as_echo_n "(cached) " >&6
9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h. */
9027 if ac_fn_c_try_compile "$LINENO"; then :
9028 ac_cv_header_stdc=yes
9030 ac_cv_header_stdc=no
9032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034 if test $ac_cv_header_stdc = yes; then
9035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9042 $EGREP "memchr" >/dev/null 2>&1; then :
9045 ac_cv_header_stdc=no
9051 if test $ac_cv_header_stdc = yes; then
9052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9054 /* end confdefs.h. */
9058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9059 $EGREP "free" >/dev/null 2>&1; then :
9062 ac_cv_header_stdc=no
9068 if test $ac_cv_header_stdc = yes; then
9069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9070 if test "$cross_compiling" = yes; then :
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9077 #if ((' ' & 0x0FF) == 0x020)
9078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9081 # define ISLOWER(c) \
9082 (('a' <= (c) && (c) <= 'i') \
9083 || ('j' <= (c) && (c) <= 'r') \
9084 || ('s' <= (c) && (c) <= 'z'))
9085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9093 for (i = 0; i < 256; i++)
9094 if (XOR (islower (i), ISLOWER (i))
9095 || toupper (i) != TOUPPER (i))
9100 if ac_fn_c_try_run "$LINENO"; then :
9103 ac_cv_header_stdc=no
9105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9106 conftest.$ac_objext conftest.beam conftest.$ac_ext
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9112 $as_echo "$ac_cv_header_stdc" >&6; }
9113 if test $ac_cv_header_stdc = yes; then
9115 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9119 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9120 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9121 inttypes.h stdint.h unistd.h
9123 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9124 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9126 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9127 cat >>confdefs.h <<_ACEOF
9128 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9136 for ac_header in dlfcn.h
9138 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9140 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9141 cat >>confdefs.h <<_ACEOF
9142 #define HAVE_DLFCN_H 1
9154 # Check whether --enable-static was given.
9155 if test "${enable_static+set}" = set; then :
9156 enableval=$enable_static; p=${PACKAGE-default}
9158 yes) enable_static=yes ;;
9159 no) enable_static=no ;;
9162 # Look at the argument we got. We use all the common list separators.
9163 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9164 for pkg in $enableval; do
9166 if test "X$pkg" = "X$p"; then
9192 # Check whether --enable-shared was given.
9193 if test "${enable_shared+set}" = set; then :
9194 enableval=$enable_shared; p=${PACKAGE-default}
9196 yes) enable_shared=yes ;;
9197 no) enable_shared=no ;;
9200 # Look at the argument we got. We use all the common list separators.
9201 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9202 for pkg in $enableval; do
9204 if test "X$pkg" = "X$p"; then
9225 # Check whether --with-pic was given.
9226 if test "${with_pic+set}" = set; then :
9227 withval=$with_pic; lt_p=${PACKAGE-default}
9229 yes|no) pic_mode=$withval ;;
9232 # Look at the argument we got. We use all the common list separators.
9233 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9234 for lt_pkg in $withval; do
9236 if test "X$lt_pkg" = "X$lt_p"; then
9254 # Check whether --enable-fast-install was given.
9255 if test "${enable_fast_install+set}" = set; then :
9256 enableval=$enable_fast_install; p=${PACKAGE-default}
9258 yes) enable_fast_install=yes ;;
9259 no) enable_fast_install=no ;;
9261 enable_fast_install=no
9262 # Look at the argument we got. We use all the common list separators.
9263 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9264 for pkg in $enableval; do
9266 if test "X$pkg" = "X$p"; then
9267 enable_fast_install=yes
9274 enable_fast_install=yes
9284 shared_archive_member_spec=
9285 case $host,$enable_shared in
9286 power*-*-aix[5-9]*,yes)
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9288 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9290 # Check whether --with-aix-soname was given.
9291 if test "${with_aix_soname+set}" = set; then :
9292 withval=$with_aix_soname; case $withval in
9296 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9299 lt_cv_with_aix_soname=$with_aix_soname
9301 if ${lt_cv_with_aix_soname+:} false; then :
9302 $as_echo_n "(cached) " >&6
9304 lt_cv_with_aix_soname=aix
9307 with_aix_soname=$lt_cv_with_aix_soname
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9311 $as_echo "$with_aix_soname" >&6; }
9312 if test aix != "$with_aix_soname"; then
9313 # For the AIX way of multilib, we name the shared archive member
9314 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9315 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9316 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9317 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9318 if test 64 = "${OBJECT_MODE-32}"; then
9319 shared_archive_member_spec=shr_64
9321 shared_archive_member_spec=shr
9339 # This can be used to rebuild libtool when needed
9340 LIBTOOL_DEPS=$ltmain
9342 # Always use our own libtool.
9343 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9374 test -z "$LN_S" && LN_S="ln -s"
9389 if test -n "${ZSH_VERSION+set}"; then
9390 setopt NO_GLOB_SUBST
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9394 $as_echo_n "checking for objdir... " >&6; }
9395 if ${lt_cv_objdir+:} false; then :
9396 $as_echo_n "(cached) " >&6
9398 rm -f .libs 2>/dev/null
9399 mkdir .libs 2>/dev/null
9400 if test -d .libs; then
9403 # MS-DOS does not allow filenames that begin with a dot.
9406 rmdir .libs 2>/dev/null
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9409 $as_echo "$lt_cv_objdir" >&6; }
9410 objdir=$lt_cv_objdir
9416 cat >>confdefs.h <<_ACEOF
9417 #define LT_OBJDIR "$lt_cv_objdir/"
9425 # AIX sometimes has problems with the GCC collect2 program. For some
9426 # reason, if we set the COLLECT_NAMES environment variable, the problems
9427 # vanish in a puff of smoke.
9428 if test set != "${COLLECT_NAMES+set}"; then
9430 export COLLECT_NAMES
9437 can_build_shared=yes
9439 # All known linkers require a '.a' archive for static linking (except MSVC and
9440 # ICC, which need '.lib').
9443 with_gnu_ld=$lt_cv_prog_gnu_ld
9448 # Set sane defaults for various variables
9449 test -z "$CC" && CC=cc
9450 test -z "$LTCC" && LTCC=$CC
9451 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9452 test -z "$LD" && LD=ld
9453 test -z "$ac_objext" && ac_objext=o
9455 func_cc_basename $compiler
9456 cc_basename=$func_cc_basename_result
9459 # Only perform the check for file, if the check method requires it
9460 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9461 case $deplibs_check_method in
9463 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9465 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9466 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9467 $as_echo_n "(cached) " >&6
9471 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9474 lt_save_MAGIC_CMD=$MAGIC_CMD
9475 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9476 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9477 for ac_dir in $ac_dummy; do
9479 test -z "$ac_dir" && ac_dir=.
9480 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9481 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9482 if test -n "$file_magic_test_file"; then
9483 case $deplibs_check_method in
9485 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9486 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9487 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9488 $EGREP "$file_magic_regex" > /dev/null; then
9493 *** Warning: the command libtool uses to detect shared libraries,
9494 *** $file_magic_cmd, produces output that libtool cannot recognize.
9495 *** The result is that libtool may fail to recognize shared libraries
9496 *** as such. This will affect the creation of libtool libraries that
9497 *** depend on shared libraries, but programs linked with such libtool
9498 *** libraries will work regardless of this problem. Nevertheless, you
9499 *** may want to report the problem to your system manager and/or to
9500 *** bug-libtool@gnu.org
9510 MAGIC_CMD=$lt_save_MAGIC_CMD
9515 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9516 if test -n "$MAGIC_CMD"; then
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9518 $as_echo "$MAGIC_CMD" >&6; }
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 $as_echo "no" >&6; }
9528 if test -z "$lt_cv_path_MAGIC_CMD"; then
9529 if test -n "$ac_tool_prefix"; then
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9531 $as_echo_n "checking for file... " >&6; }
9532 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9533 $as_echo_n "(cached) " >&6
9537 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9540 lt_save_MAGIC_CMD=$MAGIC_CMD
9541 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9542 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9543 for ac_dir in $ac_dummy; do
9545 test -z "$ac_dir" && ac_dir=.
9546 if test -f "$ac_dir/file"; then
9547 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9548 if test -n "$file_magic_test_file"; then
9549 case $deplibs_check_method in
9551 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9552 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9553 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9554 $EGREP "$file_magic_regex" > /dev/null; then
9559 *** Warning: the command libtool uses to detect shared libraries,
9560 *** $file_magic_cmd, produces output that libtool cannot recognize.
9561 *** The result is that libtool may fail to recognize shared libraries
9562 *** as such. This will affect the creation of libtool libraries that
9563 *** depend on shared libraries, but programs linked with such libtool
9564 *** libraries will work regardless of this problem. Nevertheless, you
9565 *** may want to report the problem to your system manager and/or to
9566 *** bug-libtool@gnu.org
9576 MAGIC_CMD=$lt_save_MAGIC_CMD
9581 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9582 if test -n "$MAGIC_CMD"; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9584 $as_echo "$MAGIC_CMD" >&6; }
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587 $as_echo "no" >&6; }
9600 # Use C for the default configuration in the libtool script
9604 ac_cpp='$CPP $CPPFLAGS'
9605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9610 # Source file extension for C test sources.
9613 # Object file extension for compiled C test sources.
9617 # Code to be used in simple compile tests
9618 lt_simple_compile_test_code="int some_variable = 0;"
9620 # Code to be used in simple link tests
9621 lt_simple_link_test_code='int main(){return(0);}'
9629 # If no C compiler was specified, use CC.
9632 # If no C compiler flags were specified, use CFLAGS.
9633 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9635 # Allow CC to be a program name with arguments.
9638 # Save the default compiler, since it gets overwritten when the other
9639 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9640 compiler_DEFAULT=$CC
9642 # save warnings/boilerplate of simple test code
9643 ac_outfile=conftest.$ac_objext
9644 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9645 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9646 _lt_compiler_boilerplate=`cat conftest.err`
9649 ac_outfile=conftest.$ac_objext
9650 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9651 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9652 _lt_linker_boilerplate=`cat conftest.err`
9657 ## There is no encapsulation within the following macros, do not change
9658 ## the running order or otherwise move them around unless you know exactly
9659 ## what you are doing...
9660 if test -n "$compiler"; then
9662 lt_prog_compiler_no_builtin_flag=
9664 if test yes = "$GCC"; then
9665 case $cc_basename in
9667 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9669 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9673 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9674 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9675 $as_echo_n "(cached) " >&6
9677 lt_cv_prog_compiler_rtti_exceptions=no
9678 ac_outfile=conftest.$ac_objext
9679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9680 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9681 # Insert the option either (1) after the last *FLAGS variable, or
9682 # (2) before a word containing "conftest.", or (3) at the end.
9683 # Note that $ac_compile itself does not contain backslashes and begins
9684 # with a dollar sign (not a hyphen), so the echo should work correctly.
9685 # The option is referenced via a variable to avoid confusing sed.
9686 lt_compile=`echo "$ac_compile" | $SED \
9687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9689 -e 's:$: $lt_compiler_flag:'`
9690 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9691 (eval "$lt_compile" 2>conftest.err)
9693 cat conftest.err >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 if (exit $ac_status) && test -s "$ac_outfile"; then
9696 # The compiler can only warn and ignore the option if not recognized
9697 # So say no if there are warnings other than the usual output.
9698 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9700 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9701 lt_cv_prog_compiler_rtti_exceptions=yes
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9708 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9710 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9711 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9723 lt_prog_compiler_wl=
9724 lt_prog_compiler_pic=
9725 lt_prog_compiler_static=
9728 if test yes = "$GCC"; then
9729 lt_prog_compiler_wl='-Wl,'
9730 lt_prog_compiler_static='-static'
9734 # All AIX code is PIC.
9735 if test ia64 = "$host_cpu"; then
9736 # AIX 5 now supports IA64 processor
9737 lt_prog_compiler_static='-Bstatic'
9739 lt_prog_compiler_pic='-fPIC'
9745 # see comment about AmigaOS4 .so support
9746 lt_prog_compiler_pic='-fPIC'
9749 # FIXME: we need at least 68020 code to build shared libraries, but
9750 # adding the '-m68020' flag to GCC prevents building anything better,
9752 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9757 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9758 # PIC is the default for these OSes.
9761 mingw* | cygwin* | pw32* | os2* | cegcc*)
9762 # This hack is so that the source file can tell whether it is being
9763 # built for inclusion in a dll (and should export symbols for example).
9764 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9765 # (--disable-auto-import) libraries
9766 lt_prog_compiler_pic='-DDLL_EXPORT'
9769 lt_prog_compiler_static='$wl-static'
9774 darwin* | rhapsody*)
9775 # PIC is the default on this platform
9776 # Common symbols not allowed in MH_DYLIB files
9777 lt_prog_compiler_pic='-fno-common'
9781 # PIC is the default for Haiku.
9782 # The "-static" flag exists, but is broken.
9783 lt_prog_compiler_static=
9787 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9788 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9789 # sets the default TLS model and affects inlining.
9795 lt_prog_compiler_pic='-fPIC'
9801 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9802 # Instead, we relocate shared libraries at runtime.
9806 # Just because we use GCC doesn't mean we suddenly get shared libraries
9807 # on systems that don't support them.
9808 lt_prog_compiler_can_build_shared=no
9813 # QNX uses GNU C++, but need to define -shared option too, otherwise
9815 lt_prog_compiler_pic='-fPIC -shared'
9819 if test -d /usr/nec; then
9820 lt_prog_compiler_pic=-Kconform_pic
9825 lt_prog_compiler_pic='-fPIC'
9829 case $cc_basename in
9830 nvcc*) # Cuda Compiler Driver 2.2
9831 lt_prog_compiler_wl='-Xlinker '
9832 if test -n "$lt_prog_compiler_pic"; then
9833 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9838 # PORTME Check for flag to pass linker flags through the system compiler.
9841 lt_prog_compiler_wl='-Wl,'
9842 if test ia64 = "$host_cpu"; then
9843 # AIX 5 now supports IA64 processor
9844 lt_prog_compiler_static='-Bstatic'
9846 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9850 darwin* | rhapsody*)
9851 # PIC is the default on this platform
9852 # Common symbols not allowed in MH_DYLIB files
9853 lt_prog_compiler_pic='-fno-common'
9854 case $cc_basename in
9856 # NAG Fortran compiler
9857 lt_prog_compiler_wl='-Wl,-Wl,,'
9858 lt_prog_compiler_pic='-PIC'
9859 lt_prog_compiler_static='-Bstatic'
9864 mingw* | cygwin* | pw32* | os2* | cegcc*)
9865 # This hack is so that the source file can tell whether it is being
9866 # built for inclusion in a dll (and should export symbols for example).
9867 lt_prog_compiler_pic='-DDLL_EXPORT'
9870 lt_prog_compiler_static='$wl-static'
9875 hpux9* | hpux10* | hpux11*)
9876 lt_prog_compiler_wl='-Wl,'
9877 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9884 lt_prog_compiler_pic='+Z'
9887 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9888 lt_prog_compiler_static='$wl-a ${wl}archive'
9891 irix5* | irix6* | nonstopux*)
9892 lt_prog_compiler_wl='-Wl,'
9893 # PIC (with -KPIC) is the default.
9894 lt_prog_compiler_static='-non_shared'
9897 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9898 case $cc_basename in
9899 # old Intel for x86_64, which still supported -KPIC.
9901 lt_prog_compiler_wl='-Wl,'
9902 lt_prog_compiler_pic='-KPIC'
9903 lt_prog_compiler_static='-static'
9905 # icc used to be incompatible with GCC.
9906 # ICC 10 doesn't accept -KPIC any more.
9908 lt_prog_compiler_wl='-Wl,'
9909 lt_prog_compiler_pic='-fPIC'
9910 lt_prog_compiler_static='-static'
9912 # Lahey Fortran 8.1.
9914 lt_prog_compiler_wl='-Wl,'
9915 lt_prog_compiler_pic='--shared'
9916 lt_prog_compiler_static='--static'
9919 # NAG Fortran compiler
9920 lt_prog_compiler_wl='-Wl,-Wl,,'
9921 lt_prog_compiler_pic='-PIC'
9922 lt_prog_compiler_static='-Bstatic'
9925 # Fabrice Bellard et al's Tiny C Compiler
9926 lt_prog_compiler_wl='-Wl,'
9927 lt_prog_compiler_pic='-fPIC'
9928 lt_prog_compiler_static='-static'
9930 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9931 # Portland Group compilers (*not* the Pentium gcc compiler,
9932 # which looks to be a dead project)
9933 lt_prog_compiler_wl='-Wl,'
9934 lt_prog_compiler_pic='-fpic'
9935 lt_prog_compiler_static='-Bstatic'
9938 lt_prog_compiler_wl='-Wl,'
9939 # All Alpha code is PIC.
9940 lt_prog_compiler_static='-non_shared'
9942 xl* | bgxl* | bgf* | mpixl*)
9943 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9944 lt_prog_compiler_wl='-Wl,'
9945 lt_prog_compiler_pic='-qpic'
9946 lt_prog_compiler_static='-qstaticlink'
9949 case `$CC -V 2>&1 | sed 5q` in
9950 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9951 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9952 lt_prog_compiler_pic='-KPIC'
9953 lt_prog_compiler_static='-Bstatic'
9954 lt_prog_compiler_wl=''
9956 *Sun\ F* | *Sun*Fortran*)
9957 lt_prog_compiler_pic='-KPIC'
9958 lt_prog_compiler_static='-Bstatic'
9959 lt_prog_compiler_wl='-Qoption ld '
9963 lt_prog_compiler_pic='-KPIC'
9964 lt_prog_compiler_static='-Bstatic'
9965 lt_prog_compiler_wl='-Wl,'
9967 *Intel*\ [CF]*Compiler*)
9968 lt_prog_compiler_wl='-Wl,'
9969 lt_prog_compiler_pic='-fPIC'
9970 lt_prog_compiler_static='-static'
9973 lt_prog_compiler_wl='-Wl,'
9974 lt_prog_compiler_pic='-fpic'
9975 lt_prog_compiler_static='-Bstatic'
9983 lt_prog_compiler_pic='-KPIC'
9984 lt_prog_compiler_static='-Bstatic'
9988 # QNX uses GNU C++, but need to define -shared option too, otherwise
9990 lt_prog_compiler_pic='-fPIC -shared'
9993 osf3* | osf4* | osf5*)
9994 lt_prog_compiler_wl='-Wl,'
9995 # All OSF/1 code is PIC.
9996 lt_prog_compiler_static='-non_shared'
10000 lt_prog_compiler_static='-non_shared'
10004 lt_prog_compiler_pic='-KPIC'
10005 lt_prog_compiler_static='-Bstatic'
10006 case $cc_basename in
10007 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10008 lt_prog_compiler_wl='-Qoption ld ';;
10010 lt_prog_compiler_wl='-Wl,';;
10015 lt_prog_compiler_wl='-Qoption ld '
10016 lt_prog_compiler_pic='-PIC'
10017 lt_prog_compiler_static='-Bstatic'
10020 sysv4 | sysv4.2uw2* | sysv4.3*)
10021 lt_prog_compiler_wl='-Wl,'
10022 lt_prog_compiler_pic='-KPIC'
10023 lt_prog_compiler_static='-Bstatic'
10027 if test -d /usr/nec; then
10028 lt_prog_compiler_pic='-Kconform_pic'
10029 lt_prog_compiler_static='-Bstatic'
10033 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10034 lt_prog_compiler_wl='-Wl,'
10035 lt_prog_compiler_pic='-KPIC'
10036 lt_prog_compiler_static='-Bstatic'
10040 lt_prog_compiler_wl='-Wl,'
10041 lt_prog_compiler_can_build_shared=no
10045 lt_prog_compiler_pic='-pic'
10046 lt_prog_compiler_static='-Bstatic'
10050 lt_prog_compiler_can_build_shared=no
10056 # For platforms that do not support PIC, -DPIC is meaningless:
10058 lt_prog_compiler_pic=
10061 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10066 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10067 if ${lt_cv_prog_compiler_pic+:} false; then :
10068 $as_echo_n "(cached) " >&6
10070 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10073 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10074 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10077 # Check to make sure the PIC flag actually works.
10079 if test -n "$lt_prog_compiler_pic"; then
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10081 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10082 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10083 $as_echo_n "(cached) " >&6
10085 lt_cv_prog_compiler_pic_works=no
10086 ac_outfile=conftest.$ac_objext
10087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10088 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10089 # Insert the option either (1) after the last *FLAGS variable, or
10090 # (2) before a word containing "conftest.", or (3) at the end.
10091 # Note that $ac_compile itself does not contain backslashes and begins
10092 # with a dollar sign (not a hyphen), so the echo should work correctly.
10093 # The option is referenced via a variable to avoid confusing sed.
10094 lt_compile=`echo "$ac_compile" | $SED \
10095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10097 -e 's:$: $lt_compiler_flag:'`
10098 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10099 (eval "$lt_compile" 2>conftest.err)
10101 cat conftest.err >&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 if (exit $ac_status) && test -s "$ac_outfile"; then
10104 # The compiler can only warn and ignore the option if not recognized
10105 # So say no if there are warnings other than the usual output.
10106 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10108 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10109 lt_cv_prog_compiler_pic_works=yes
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10116 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10118 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10119 case $lt_prog_compiler_pic in
10121 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10124 lt_prog_compiler_pic=
10125 lt_prog_compiler_can_build_shared=no
10141 # Check to make sure the static flag actually works.
10143 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10145 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10146 if ${lt_cv_prog_compiler_static_works+:} false; then :
10147 $as_echo_n "(cached) " >&6
10149 lt_cv_prog_compiler_static_works=no
10150 save_LDFLAGS=$LDFLAGS
10151 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10152 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10153 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10154 # The linker can only warn and ignore the option if not recognized
10155 # So say no if there are warnings
10156 if test -s conftest.err; then
10157 # Append any errors to the config.log.
10158 cat conftest.err 1>&5
10159 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10161 if diff conftest.exp conftest.er2 >/dev/null; then
10162 lt_cv_prog_compiler_static_works=yes
10165 lt_cv_prog_compiler_static_works=yes
10169 LDFLAGS=$save_LDFLAGS
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10173 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10175 if test yes = "$lt_cv_prog_compiler_static_works"; then
10178 lt_prog_compiler_static=
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10188 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10189 if ${lt_cv_prog_compiler_c_o+:} false; then :
10190 $as_echo_n "(cached) " >&6
10192 lt_cv_prog_compiler_c_o=no
10193 $RM -r conftest 2>/dev/null
10197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10199 lt_compiler_flag="-o out/conftest2.$ac_objext"
10200 # Insert the option either (1) after the last *FLAGS variable, or
10201 # (2) before a word containing "conftest.", or (3) at the end.
10202 # Note that $ac_compile itself does not contain backslashes and begins
10203 # with a dollar sign (not a hyphen), so the echo should work correctly.
10204 lt_compile=`echo "$ac_compile" | $SED \
10205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10207 -e 's:$: $lt_compiler_flag:'`
10208 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10209 (eval "$lt_compile" 2>out/conftest.err)
10211 cat out/conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10215 # The compiler can only warn and ignore the option if not recognized
10216 # So say no if there are warnings
10217 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10218 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10219 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10220 lt_cv_prog_compiler_c_o=yes
10225 # SGI C++ compiler will create directory out/ii_files/ for
10226 # template instantiation
10227 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10228 $RM out/* && rmdir out
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10235 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10243 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10244 if ${lt_cv_prog_compiler_c_o+:} false; then :
10245 $as_echo_n "(cached) " >&6
10247 lt_cv_prog_compiler_c_o=no
10248 $RM -r conftest 2>/dev/null
10252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10254 lt_compiler_flag="-o out/conftest2.$ac_objext"
10255 # Insert the option either (1) after the last *FLAGS variable, or
10256 # (2) before a word containing "conftest.", or (3) at the end.
10257 # Note that $ac_compile itself does not contain backslashes and begins
10258 # with a dollar sign (not a hyphen), so the echo should work correctly.
10259 lt_compile=`echo "$ac_compile" | $SED \
10260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10262 -e 's:$: $lt_compiler_flag:'`
10263 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10264 (eval "$lt_compile" 2>out/conftest.err)
10266 cat out/conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10270 # The compiler can only warn and ignore the option if not recognized
10271 # So say no if there are warnings
10272 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10273 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10274 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10275 lt_cv_prog_compiler_c_o=yes
10280 # SGI C++ compiler will create directory out/ii_files/ for
10281 # template instantiation
10282 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10283 $RM out/* && rmdir out
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10290 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10295 hard_links=nottested
10296 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10297 # do not overwrite the value of need_locks provided by the user
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10299 $as_echo_n "checking if we can lock with hard links... " >&6; }
10302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10304 ln conftest.a conftest.b 2>&5 || hard_links=no
10305 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10307 $as_echo "$hard_links" >&6; }
10308 if test no = "$hard_links"; then
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10310 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10323 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10326 allow_undefined_flag=
10327 always_export_symbols=no
10329 archive_expsym_cmds=
10330 compiler_needs_object=no
10331 enable_shared_with_static_runtimes=no
10332 export_dynamic_flag_spec=
10333 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10334 hardcode_automatic=no
10336 hardcode_direct_absolute=no
10337 hardcode_libdir_flag_spec=
10338 hardcode_libdir_separator=
10339 hardcode_minus_L=no
10340 hardcode_shlibpath_var=unsupported
10342 link_all_deplibs=unknown
10344 module_expsym_cmds=
10345 old_archive_from_new_cmds=
10346 old_archive_from_expsyms_cmds=
10347 thread_safe_flag_spec=
10348 whole_archive_flag_spec=
10349 # include_expsyms should be a list of space-separated symbols to be *always*
10350 # included in the symbol list
10352 # exclude_expsyms can be an extended regexp of symbols to exclude
10353 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10354 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10355 # as well as any symbol that contains 'd'.
10356 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10357 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10358 # platforms (ab)use it in PIC code, but their linkers get confused if
10359 # the symbol is explicitly referenced. Since portable code cannot
10360 # rely on this symbol name, it's probably fine to never include it in
10361 # preloaded symbol tables.
10362 # Exclude shared library initialization/finalization symbols.
10363 extract_expsyms_cmds=
10366 cygwin* | mingw* | pw32* | cegcc*)
10367 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10368 # When not using gcc, we currently assume that we are using
10369 # Microsoft Visual C++ or Intel C++ Compiler.
10370 if test yes != "$GCC"; then
10375 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10378 openbsd* | bitrig*)
10385 # On some targets, GNU ld is compatible enough with the native linker
10386 # that we're better off using the native interface for both.
10387 lt_use_gnu_ld_interface=no
10388 if test yes = "$with_gnu_ld"; then
10391 # The AIX port of GNU ld has always aspired to compatibility
10392 # with the native linker. However, as the warning in the GNU ld
10393 # block says, versions before 2.19.5* couldn't really create working
10394 # shared libraries, regardless of the interface used.
10395 case `$LD -v 2>&1` in
10396 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10397 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10398 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10400 lt_use_gnu_ld_interface=yes
10405 lt_use_gnu_ld_interface=yes
10410 if test yes = "$lt_use_gnu_ld_interface"; then
10411 # If archive_cmds runs LD, not CC, wlarc should be empty
10414 # Set some defaults for GNU ld with shared library support. These
10415 # are reset later if shared libraries are not supported. Putting them
10416 # here allows them to be overridden if necessary.
10417 runpath_var=LD_RUN_PATH
10418 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10419 export_dynamic_flag_spec='$wl--export-dynamic'
10420 # ancient GNU ld didn't support --whole-archive et. al.
10421 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10422 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10424 whole_archive_flag_spec=
10426 supports_anon_versioning=no
10427 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10428 *GNU\ gold*) supports_anon_versioning=yes ;;
10429 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10430 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10431 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10432 *\ 2.11.*) ;; # other 2.11 versions
10433 *) supports_anon_versioning=yes ;;
10436 # See if GNU ld supports shared libraries.
10439 # On AIX/PPC, the GNU linker is very broken
10440 if test ia64 != "$host_cpu"; then
10444 *** Warning: the GNU linker, at least up to release 2.19, is reported
10445 *** to be unable to reliably create shared libraries on AIX.
10446 *** Therefore, libtool is disabling shared libraries support. If you
10447 *** really care for shared libraries, you may want to install binutils
10448 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10449 *** You will then need to restart the configuration process.
10458 # see comment about AmigaOS4 .so support
10459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10460 archive_expsym_cmds=''
10463 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)'
10464 hardcode_libdir_flag_spec='-L$libdir'
10465 hardcode_minus_L=yes
10471 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10472 allow_undefined_flag=unsupported
10473 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10474 # support --undefined. This deserves some investigation. FIXME
10475 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10481 cygwin* | mingw* | pw32* | cegcc*)
10482 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10483 # as there is no search path for DLLs.
10484 hardcode_libdir_flag_spec='-L$libdir'
10485 export_dynamic_flag_spec='$wl--export-all-symbols'
10486 allow_undefined_flag=unsupported
10487 always_export_symbols=no
10488 enable_shared_with_static_runtimes=yes
10489 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'
10490 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10492 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10494 # If the export-symbols file already is a .def file, use it as
10495 # is; otherwise, prepend EXPORTS...
10496 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10497 cp $export_symbols $output_objdir/$soname.def;
10499 echo EXPORTS > $output_objdir/$soname.def;
10500 cat $export_symbols >> $output_objdir/$soname.def;
10502 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10510 link_all_deplibs=yes
10514 hardcode_libdir_flag_spec='-L$libdir'
10515 hardcode_minus_L=yes
10516 allow_undefined_flag=unsupported
10518 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10519 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10520 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10521 $ECHO EXPORTS >> $output_objdir/$libname.def~
10522 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10523 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10524 emximp -o $lib $output_objdir/$libname.def'
10525 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10526 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10527 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10528 $ECHO EXPORTS >> $output_objdir/$libname.def~
10529 prefix_cmds="$SED"~
10530 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10531 prefix_cmds="$prefix_cmds -e 1d";
10533 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10534 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10535 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10536 emximp -o $lib $output_objdir/$libname.def'
10537 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10538 enable_shared_with_static_runtimes=yes
10544 hardcode_shlibpath_var=no
10545 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10546 export_dynamic_flag_spec='$wl-E'
10547 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10548 # Instead, shared libraries are loaded at an image base (0x10000000 by
10549 # default) and relocated if they conflict, which is a slow very memory
10550 # consuming and fragmenting process. To avoid this, we pick a random,
10551 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10552 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10553 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10554 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'
10557 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10559 if test linux-dietlibc = "$host_os"; then
10560 case $cc_basename in
10561 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10564 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10565 && test no = "$tmp_diet"
10567 tmp_addflag=' $pic_flag'
10568 tmp_sharedflag='-shared'
10569 case $cc_basename,$host_cpu in
10570 pgcc*) # Portland Group C compiler
10571 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'
10572 tmp_addflag=' $pic_flag'
10574 pgf77* | pgf90* | pgf95* | pgfortran*)
10575 # Portland Group f77 and f90 compilers
10576 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'
10577 tmp_addflag=' $pic_flag -Mnomain' ;;
10578 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10579 tmp_addflag=' -i_dynamic' ;;
10580 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10581 tmp_addflag=' -i_dynamic -nofor_main' ;;
10582 ifc* | ifort*) # Intel Fortran compiler
10583 tmp_addflag=' -nofor_main' ;;
10584 lf95*) # Lahey Fortran 8.1
10585 whole_archive_flag_spec=
10586 tmp_sharedflag='--shared' ;;
10587 nagfor*) # NAGFOR 5.3
10588 tmp_sharedflag='-Wl,-shared' ;;
10589 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10590 tmp_sharedflag='-qmkshrobj'
10592 nvcc*) # Cuda Compiler Driver 2.2
10593 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'
10594 compiler_needs_object=yes
10597 case `$CC -V 2>&1 | sed 5q` in
10598 *Sun\ C*) # Sun C 5.9
10599 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'
10600 compiler_needs_object=yes
10601 tmp_sharedflag='-G' ;;
10602 *Sun\ F*) # Sun Fortran 8.3
10603 tmp_sharedflag='-G' ;;
10605 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10607 if test yes = "$supports_anon_versioning"; then
10608 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10609 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10610 echo "local: *; };" >> $output_objdir/$libname.ver~
10611 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10614 case $cc_basename in
10616 export_dynamic_flag_spec='-rdynamic'
10618 xlf* | bgf* | bgxlf* | mpixlf*)
10619 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10620 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10621 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10622 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10623 if test yes = "$supports_anon_versioning"; then
10624 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10626 echo "local: *; };" >> $output_objdir/$libname.ver~
10627 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10637 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10638 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10641 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10642 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10647 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10651 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10652 *** create shared libraries on Solaris systems. Therefore, libtool
10653 *** is disabling shared libraries support. We urge you to upgrade GNU
10654 *** binutils to release 2.9.1 or newer. Another option is to modify
10655 *** your PATH or compiler configuration so that the native linker is
10656 *** used, and then restart.
10659 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10660 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10661 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10668 case `$LD -v 2>&1` in
10669 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10673 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10674 *** reliably create shared libraries on SCO systems. Therefore, libtool
10675 *** is disabling shared libraries support. We urge you to upgrade GNU
10676 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10677 *** your PATH or compiler configuration so that the native linker is
10678 *** used, and then restart.
10683 # For security reasons, it is highly recommended that you always
10684 # use absolute paths for naming shared libraries, and exclude the
10685 # DT_RUNPATH tag from executables and libraries. But doing so
10686 # requires that you compile everything twice, which is a pain.
10687 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10688 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10690 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10699 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10701 hardcode_direct=yes
10702 hardcode_shlibpath_var=no
10706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10707 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10708 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10715 if test no = "$ld_shlibs"; then
10717 hardcode_libdir_flag_spec=
10718 export_dynamic_flag_spec=
10719 whole_archive_flag_spec=
10722 # PORTME fill in a description of your system's linker (not GNU ld)
10725 allow_undefined_flag=unsupported
10726 always_export_symbols=yes
10727 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'
10728 # Note: this linker hardcodes the directories in LIBPATH if there
10729 # are no directories specified by -L.
10730 hardcode_minus_L=yes
10731 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10732 # Neither direct hardcoding nor static linking is supported with a
10734 hardcode_direct=unsupported
10739 if test ia64 = "$host_cpu"; then
10740 # On IA64, the linker does run time linking by default, so we don't
10741 # have to do anything special.
10742 aix_use_runtimelinking=no
10743 exp_sym_flag='-Bexport'
10746 # If we're using GNU nm, then we don't want the "-C" option.
10747 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10748 # Without the "-l" option, or with the "-B" option, AIX nm treats
10749 # weak defined symbols like other global defined symbols, whereas
10750 # GNU nm marks them as "W".
10751 # While the 'weak' keyword is ignored in the Export File, we need
10752 # it in the Import File for the 'aix-soname' feature, so we have
10753 # to replace the "-B" option with "-P" for AIX nm.
10754 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10755 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'
10757 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 == "L") || (\$ 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'
10759 aix_use_runtimelinking=no
10761 # Test if we are trying to use run time linking or normal
10762 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10763 # have runtime linking enabled, and use it for executables.
10764 # For shared libraries, we enable/disable runtime linking
10765 # depending on the kind of the shared library created -
10766 # when "with_aix_soname,aix_use_runtimelinking" is:
10767 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10768 # "aix,yes" lib.so shared, rtl:yes, for executables
10769 # lib.a static archive
10770 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10771 # lib.a(lib.so.V) shared, rtl:no, for executables
10772 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10773 # lib.a(lib.so.V) shared, rtl:no
10774 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10775 # lib.a static archive
10776 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10777 for ld_flag in $LDFLAGS; do
10778 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10779 aix_use_runtimelinking=yes
10783 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10784 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10785 # so we don't have lib.a shared libs to link our executables.
10786 # We have to force runtime linking in this case.
10787 aix_use_runtimelinking=yes
10788 LDFLAGS="$LDFLAGS -Wl,-brtl"
10793 exp_sym_flag='-bexport'
10794 no_entry_flag='-bnoentry'
10797 # When large executables or shared objects are built, AIX ld can
10798 # have problems creating the table of contents. If linking a library
10799 # or program results in "error TOC overflow" add -mminimal-toc to
10800 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10801 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10804 hardcode_direct=yes
10805 hardcode_direct_absolute=yes
10806 hardcode_libdir_separator=':'
10807 link_all_deplibs=yes
10808 file_list_spec='$wl-f,'
10809 case $with_aix_soname,$aix_use_runtimelinking in
10810 aix,*) ;; # traditional, no import file
10811 svr4,* | *,yes) # use import file
10812 # The Import File defines what to hardcode.
10814 hardcode_direct_absolute=no
10818 if test yes = "$GCC"; then
10819 case $host_os in aix4.[012]|aix4.[012].*)
10820 # We only want to do this on AIX 4.2 and lower, the check
10821 # below for broken collect2 doesn't work under 4.3+
10822 collect2name=`$CC -print-prog-name=collect2`
10823 if test -f "$collect2name" &&
10824 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10826 # We have reworked collect2
10829 # We have old collect2
10830 hardcode_direct=unsupported
10831 # It fails to find uninstalled libraries when the uninstalled
10832 # path is not listed in the libpath. Setting hardcode_minus_L
10833 # to unsupported forces relinking
10834 hardcode_minus_L=yes
10835 hardcode_libdir_flag_spec='-L$libdir'
10836 hardcode_libdir_separator=
10840 shared_flag='-shared'
10841 if test yes = "$aix_use_runtimelinking"; then
10842 shared_flag="$shared_flag "'$wl-G'
10844 # Need to ensure runtime linking is disabled for the traditional
10845 # shared library, or the linker may eventually find shared libraries
10846 # /with/ Import File - we do not want to mix them.
10847 shared_flag_aix='-shared'
10848 shared_flag_svr4='-shared $wl-G'
10851 if test ia64 = "$host_cpu"; then
10852 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10853 # chokes on -Wl,-G. The following line is correct:
10856 if test yes = "$aix_use_runtimelinking"; then
10857 shared_flag='$wl-G'
10859 shared_flag='$wl-bM:SRE'
10861 shared_flag_aix='$wl-bM:SRE'
10862 shared_flag_svr4='$wl-G'
10866 export_dynamic_flag_spec='$wl-bexpall'
10867 # It seems that -bexpall does not export symbols beginning with
10868 # underscore (_), so it is better to generate a list of symbols to export.
10869 always_export_symbols=yes
10870 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10871 # Warning - without using the other runtime loading flags (-brtl),
10872 # -berok will link without error, but may produce a broken library.
10873 allow_undefined_flag='-berok'
10874 # Determine the default libpath from the value encoded in an
10875 # empty executable.
10876 if test set = "${lt_cv_aix_libpath+set}"; then
10877 aix_libpath=$lt_cv_aix_libpath
10879 if ${lt_cv_aix_libpath_+:} false; then :
10880 $as_echo_n "(cached) " >&6
10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h. */
10893 if ac_fn_c_try_link "$LINENO"; then :
10895 lt_aix_libpath_sed='
10896 /Import File Strings/,/^$/ {
10898 s/^0 *\([^ ]*\) *$/\1/
10902 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10903 # Check for a 64-bit object if we didn't find anything.
10904 if test -z "$lt_cv_aix_libpath_"; then
10905 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10908 rm -f core conftest.err conftest.$ac_objext \
10909 conftest$ac_exeext conftest.$ac_ext
10910 if test -z "$lt_cv_aix_libpath_"; then
10911 lt_cv_aix_libpath_=/usr/lib:/lib
10916 aix_libpath=$lt_cv_aix_libpath_
10919 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10920 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
10922 if test ia64 = "$host_cpu"; then
10923 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10924 allow_undefined_flag="-z nodefs"
10925 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"
10927 # Determine the default libpath from the value encoded in an
10928 # empty executable.
10929 if test set = "${lt_cv_aix_libpath+set}"; then
10930 aix_libpath=$lt_cv_aix_libpath
10932 if ${lt_cv_aix_libpath_+:} false; then :
10933 $as_echo_n "(cached) " >&6
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10946 if ac_fn_c_try_link "$LINENO"; then :
10948 lt_aix_libpath_sed='
10949 /Import File Strings/,/^$/ {
10951 s/^0 *\([^ ]*\) *$/\1/
10955 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10956 # Check for a 64-bit object if we didn't find anything.
10957 if test -z "$lt_cv_aix_libpath_"; then
10958 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10961 rm -f core conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10963 if test -z "$lt_cv_aix_libpath_"; then
10964 lt_cv_aix_libpath_=/usr/lib:/lib
10969 aix_libpath=$lt_cv_aix_libpath_
10972 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10973 # Warning - without using the other run time loading flags,
10974 # -berok will link without error, but may produce a broken library.
10975 no_undefined_flag=' $wl-bernotok'
10976 allow_undefined_flag=' $wl-berok'
10977 if test yes = "$with_gnu_ld"; then
10978 # We only use this code for GNU lds that support --whole-archive.
10979 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10981 # Exported symbols can be pulled into shared objects from archives
10982 whole_archive_flag_spec='$convenience'
10984 archive_cmds_need_lc=yes
10985 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10986 # -brtl affects multiple linker settings, -berok does not and is overridden later
10987 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10988 if test svr4 != "$with_aix_soname"; then
10989 # This is similar to how AIX traditionally builds its shared libraries.
10990 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'
10992 if test aix != "$with_aix_soname"; then
10993 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'
10995 # used by -dlpreopen to get the symbols
10996 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10998 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11006 # see comment about AmigaOS4 .so support
11007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11008 archive_expsym_cmds=''
11011 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)'
11012 hardcode_libdir_flag_spec='-L$libdir'
11013 hardcode_minus_L=yes
11019 export_dynamic_flag_spec=-rdynamic
11022 cygwin* | mingw* | pw32* | cegcc*)
11023 # When not using gcc, we currently assume that we are using
11024 # Microsoft Visual C++ or Intel C++ Compiler.
11025 # hardcode_libdir_flag_spec is actually meaningless, as there is
11026 # no search path for DLLs.
11027 case $cc_basename in
11029 # Native MSVC or ICC
11030 hardcode_libdir_flag_spec=' '
11031 allow_undefined_flag=unsupported
11032 always_export_symbols=yes
11034 # Tell ltmain to make .lib files, not .a files.
11036 # Tell ltmain to make .dll files, not .so files.
11038 # FIXME: Setting linknames here is a bad hack.
11039 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11040 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11041 cp "$export_symbols" "$output_objdir/$soname.def";
11042 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11044 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11046 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11048 # The linker will not automatically build a static lib if we build a DLL.
11049 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11050 enable_shared_with_static_runtimes=yes
11051 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11052 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11054 old_postinstall_cmds='chmod 644 $oldlib'
11055 postlink_cmds='lt_outputfile="@OUTPUT@"~
11056 lt_tool_outputfile="@TOOL_OUTPUT@"~
11057 case $lt_outputfile in
11060 lt_outputfile=$lt_outputfile.exe
11061 lt_tool_outputfile=$lt_tool_outputfile.exe
11064 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11065 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11066 $RM "$lt_outputfile.manifest";
11070 # Assume MSVC and ICC wrapper
11071 hardcode_libdir_flag_spec=' '
11072 allow_undefined_flag=unsupported
11073 # Tell ltmain to make .lib files, not .a files.
11075 # Tell ltmain to make .dll files, not .so files.
11077 # FIXME: Setting linknames here is a bad hack.
11078 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11079 # The linker will automatically build a .lib file if we build a DLL.
11080 old_archive_from_new_cmds='true'
11081 # FIXME: Should let the user specify the lib program.
11082 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11083 enable_shared_with_static_runtimes=yes
11088 darwin* | rhapsody*)
11091 archive_cmds_need_lc=no
11093 hardcode_automatic=yes
11094 hardcode_shlibpath_var=unsupported
11095 if test yes = "$lt_cv_ld_force_load"; then
11096 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\"`'
11099 whole_archive_flag_spec=''
11101 link_all_deplibs=yes
11102 allow_undefined_flag=$_lt_dar_allow_undefined
11103 case $cc_basename in
11104 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11105 *) _lt_dar_can_shared=$GCC ;;
11107 if test yes = "$_lt_dar_can_shared"; then
11108 output_verbose_link_cmd=func_echo_all
11109 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11110 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11111 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"
11112 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"
11121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11122 hardcode_libdir_flag_spec='-L$libdir'
11123 hardcode_shlibpath_var=no
11126 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11127 # support. Future versions do this automatically, but an explicit c++rt0.o
11128 # does not break anything, and helps significantly (at the cost of a little
11131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11132 hardcode_libdir_flag_spec='-R$libdir'
11133 hardcode_direct=yes
11134 hardcode_shlibpath_var=no
11137 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11140 hardcode_direct=yes
11141 hardcode_minus_L=yes
11142 hardcode_shlibpath_var=no
11145 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11146 freebsd* | dragonfly*)
11147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11148 hardcode_libdir_flag_spec='-R$libdir'
11149 hardcode_direct=yes
11150 hardcode_shlibpath_var=no
11154 if test yes = "$GCC"; then
11155 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'
11157 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'
11159 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11160 hardcode_libdir_separator=:
11161 hardcode_direct=yes
11163 # hardcode_minus_L: Not really in the search PATH,
11164 # but as the default location of the library.
11165 hardcode_minus_L=yes
11166 export_dynamic_flag_spec='$wl-E'
11170 if test yes,no = "$GCC,$with_gnu_ld"; then
11171 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11173 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11175 if test no = "$with_gnu_ld"; then
11176 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11177 hardcode_libdir_separator=:
11178 hardcode_direct=yes
11179 hardcode_direct_absolute=yes
11180 export_dynamic_flag_spec='$wl-E'
11181 # hardcode_minus_L: Not really in the search PATH,
11182 # but as the default location of the library.
11183 hardcode_minus_L=yes
11188 if test yes,no = "$GCC,$with_gnu_ld"; then
11191 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11194 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11197 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11203 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11206 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11210 # Older versions of the 11.00 compiler do not understand -b yet
11211 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11213 $as_echo_n "checking if $CC understands -b... " >&6; }
11214 if ${lt_cv_prog_compiler__b+:} false; then :
11215 $as_echo_n "(cached) " >&6
11217 lt_cv_prog_compiler__b=no
11218 save_LDFLAGS=$LDFLAGS
11219 LDFLAGS="$LDFLAGS -b"
11220 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11221 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11222 # The linker can only warn and ignore the option if not recognized
11223 # So say no if there are warnings
11224 if test -s conftest.err; then
11225 # Append any errors to the config.log.
11226 cat conftest.err 1>&5
11227 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11229 if diff conftest.exp conftest.er2 >/dev/null; then
11230 lt_cv_prog_compiler__b=yes
11233 lt_cv_prog_compiler__b=yes
11237 LDFLAGS=$save_LDFLAGS
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11241 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11243 if test yes = "$lt_cv_prog_compiler__b"; then
11244 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11246 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11252 if test no = "$with_gnu_ld"; then
11253 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11254 hardcode_libdir_separator=:
11259 hardcode_shlibpath_var=no
11262 hardcode_direct=yes
11263 hardcode_direct_absolute=yes
11264 export_dynamic_flag_spec='$wl-E'
11266 # hardcode_minus_L: Not really in the search PATH,
11267 # but as the default location of the library.
11268 hardcode_minus_L=yes
11274 irix5* | irix6* | nonstopux*)
11275 if test yes = "$GCC"; then
11276 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'
11277 # Try to use the -exported_symbol ld option, if it does not
11278 # work, assume that -exports_file does not work either and
11279 # implicitly export all symbols.
11280 # This should be the same for all languages, so no per-tag cache variable.
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11282 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11283 if ${lt_cv_irix_exported_symbol+:} false; then :
11284 $as_echo_n "(cached) " >&6
11286 save_LDFLAGS=$LDFLAGS
11287 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289 /* end confdefs.h. */
11290 int foo (void) { return 0; }
11292 if ac_fn_c_try_link "$LINENO"; then :
11293 lt_cv_irix_exported_symbol=yes
11295 lt_cv_irix_exported_symbol=no
11297 rm -f core conftest.err conftest.$ac_objext \
11298 conftest$ac_exeext conftest.$ac_ext
11299 LDFLAGS=$save_LDFLAGS
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11302 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11303 if test yes = "$lt_cv_irix_exported_symbol"; then
11304 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'
11307 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'
11308 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'
11310 archive_cmds_need_lc='no'
11311 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11312 hardcode_libdir_separator=:
11314 link_all_deplibs=yes
11318 case $cc_basename in
11320 # Fabrice Bellard et al's Tiny C Compiler
11322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11328 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11331 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11333 hardcode_libdir_flag_spec='-R$libdir'
11334 hardcode_direct=yes
11335 hardcode_shlibpath_var=no
11339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11340 hardcode_direct=yes
11341 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11342 hardcode_libdir_separator=:
11343 hardcode_shlibpath_var=no
11349 openbsd* | bitrig*)
11350 if test -f /usr/libexec/ld.so; then
11351 hardcode_direct=yes
11352 hardcode_shlibpath_var=no
11353 hardcode_direct_absolute=yes
11354 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11355 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11356 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11357 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11358 export_dynamic_flag_spec='$wl-E'
11360 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11361 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11369 hardcode_libdir_flag_spec='-L$libdir'
11370 hardcode_minus_L=yes
11371 allow_undefined_flag=unsupported
11373 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11374 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11375 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11376 $ECHO EXPORTS >> $output_objdir/$libname.def~
11377 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11378 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11379 emximp -o $lib $output_objdir/$libname.def'
11380 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11381 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11382 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11383 $ECHO EXPORTS >> $output_objdir/$libname.def~
11384 prefix_cmds="$SED"~
11385 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11386 prefix_cmds="$prefix_cmds -e 1d";
11388 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11389 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11390 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11391 emximp -o $lib $output_objdir/$libname.def'
11392 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11393 enable_shared_with_static_runtimes=yes
11398 if test yes = "$GCC"; then
11399 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11400 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'
11402 allow_undefined_flag=' -expect_unresolved \*'
11403 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'
11405 archive_cmds_need_lc='no'
11406 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11407 hardcode_libdir_separator=:
11410 osf4* | osf5*) # as osf3* with the addition of -msym flag
11411 if test yes = "$GCC"; then
11412 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11413 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'
11414 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11416 allow_undefined_flag=' -expect_unresolved \*'
11417 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'
11418 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~
11419 $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'
11421 # Both c and cxx compiler support -rpath directly
11422 hardcode_libdir_flag_spec='-rpath $libdir'
11424 archive_cmds_need_lc='no'
11425 hardcode_libdir_separator=:
11429 no_undefined_flag=' -z defs'
11430 if test yes = "$GCC"; then
11432 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11433 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11434 $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'
11436 case `$CC -V 2>&1` in
11439 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11440 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11441 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11445 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11446 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11447 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11451 hardcode_libdir_flag_spec='-R$libdir'
11452 hardcode_shlibpath_var=no
11454 solaris2.[0-5] | solaris2.[0-5].*) ;;
11456 # The compiler driver will combine and reorder linker options,
11457 # but understands '-z linker_flag'. GCC discards it without '$wl',
11458 # but is careful enough not to reorder.
11459 # Supported since Solaris 2.6 (maybe 2.5.1?)
11460 if test yes = "$GCC"; then
11461 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11463 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11467 link_all_deplibs=yes
11471 if test sequent = "$host_vendor"; then
11472 # Use $CC to link under sequent, because it throws in some extra .o
11473 # files that make .init and .fini sections work.
11474 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11476 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11478 hardcode_libdir_flag_spec='-L$libdir'
11479 hardcode_direct=yes
11480 hardcode_minus_L=yes
11481 hardcode_shlibpath_var=no
11485 case $host_vendor in
11487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11488 hardcode_direct=yes # is this really true???
11491 ## LD is ld it makes a PLAMLIB
11492 ## CC just makes a GrossModule.
11493 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11494 reload_cmds='$CC -r -o $output$reload_objs'
11498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11499 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11502 runpath_var='LD_RUN_PATH'
11503 hardcode_shlibpath_var=no
11507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11508 hardcode_shlibpath_var=no
11509 export_dynamic_flag_spec='-Bexport'
11513 if test -d /usr/nec; then
11514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11515 hardcode_shlibpath_var=no
11516 runpath_var=LD_RUN_PATH
11517 hardcode_runpath_var=yes
11522 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11523 no_undefined_flag='$wl-z,text'
11524 archive_cmds_need_lc=no
11525 hardcode_shlibpath_var=no
11526 runpath_var='LD_RUN_PATH'
11528 if test yes = "$GCC"; then
11529 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11530 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11532 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11533 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11537 sysv5* | sco3.2v5* | sco5v6*)
11538 # Note: We CANNOT use -z defs as we might desire, because we do not
11539 # link with -lc, and that would cause any symbols used from libc to
11540 # always be unresolved, which means just about no library would
11541 # ever link correctly. If we're not using GNU ld we use -z text
11542 # though, which does catch some bad symbols but isn't as heavy-handed
11544 no_undefined_flag='$wl-z,text'
11545 allow_undefined_flag='$wl-z,nodefs'
11546 archive_cmds_need_lc=no
11547 hardcode_shlibpath_var=no
11548 hardcode_libdir_flag_spec='$wl-R,$libdir'
11549 hardcode_libdir_separator=':'
11550 link_all_deplibs=yes
11551 export_dynamic_flag_spec='$wl-Bexport'
11552 runpath_var='LD_RUN_PATH'
11554 if test yes = "$GCC"; then
11555 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11556 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11558 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11559 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11565 hardcode_libdir_flag_spec='-L$libdir'
11566 hardcode_shlibpath_var=no
11574 if test sni = "$host_vendor"; then
11576 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11577 export_dynamic_flag_spec='$wl-Blargedynsym'
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11584 $as_echo "$ld_shlibs" >&6; }
11585 test no = "$ld_shlibs" && can_build_shared=no
11587 with_gnu_ld=$with_gnu_ld
11604 # Do we need to explicitly link libc?
11606 case "x$archive_cmds_need_lc" in
11608 # Assume -lc should be added
11609 archive_cmds_need_lc=yes
11611 if test yes,yes = "$GCC,$enable_shared"; then
11612 case $archive_cmds in
11614 # FIXME: we may have to deal with multi-command sequences.
11617 # Test whether the compiler implicitly links with -lc since on some
11618 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11619 # to ld, don't add -lc before -lgcc.
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11621 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11622 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11623 $as_echo_n "(cached) " >&6
11626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11629 (eval $ac_compile) 2>&5
11631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11632 test $ac_status = 0; } 2>conftest.err; then
11635 libobjs=conftest.$ac_objext
11637 wl=$lt_prog_compiler_wl
11638 pic_flag=$lt_prog_compiler_pic
11644 lt_save_allow_undefined_flag=$allow_undefined_flag
11645 allow_undefined_flag=
11646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11647 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11650 test $ac_status = 0; }
11652 lt_cv_archive_cmds_need_lc=no
11654 lt_cv_archive_cmds_need_lc=yes
11656 allow_undefined_flag=$lt_save_allow_undefined_flag
11658 cat conftest.err 1>&5
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11664 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11665 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11824 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11826 if test yes = "$GCC"; then
11828 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11829 *) lt_awk_arg='/^libraries:/' ;;
11832 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11833 *) lt_sed_strip_eq='s|=/|/|g' ;;
11835 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11836 case $lt_search_path_spec in
11838 # if the path contains ";" then we assume it to be the separator
11839 # otherwise default to the standard path separator (i.e. ":") - it is
11840 # assumed that no part of a normal pathname contains ";" but that should
11841 # okay in the real world where ";" in dirpaths is itself problematic.
11842 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11845 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11848 # Ok, now we have the path, separated by spaces, we can step through it
11849 # and add multilib dir if necessary...
11850 lt_tmp_lt_search_path_spec=
11851 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11852 # ...but if some path component already ends with the multilib dir we assume
11853 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11854 case "$lt_multi_os_dir; $lt_search_path_spec " in
11855 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11859 for lt_sys_path in $lt_search_path_spec; do
11860 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11861 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11862 elif test -n "$lt_multi_os_dir"; then
11863 test -d "$lt_sys_path" && \
11864 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11867 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11868 BEGIN {RS = " "; FS = "/|\n";} {
11871 for (lt_i = NF; lt_i > 0; lt_i--) {
11872 if ($lt_i != "" && $lt_i != ".") {
11873 if ($lt_i == "..") {
11876 if (lt_count == 0) {
11877 lt_foo = "/" $lt_i lt_foo;
11884 if (lt_foo != "") { lt_freq[lt_foo]++; }
11885 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11887 # AWK program above erroneously prepends '/' to C:/dos/paths
11890 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11891 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11893 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11895 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11897 library_names_spec=
11898 libname_spec='lib$name'
11902 postuninstall_cmds=
11906 shlibpath_overrides_runpath=unknown
11908 dynamic_linker="$host_os ld.so"
11909 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11910 need_lib_prefix=unknown
11911 hardcode_into_libs=no
11913 # when you set need_version to no, make sure it does not cause -set_version
11914 # flags to be left without arguments
11915 need_version=unknown
11921 version_type=linux # correct to gnu/linux during the next big refactor
11922 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11923 shlibpath_var=LIBPATH
11925 # AIX 3 has no versioning support, so we append a major version to the name.
11926 soname_spec='$libname$release$shared_ext$major'
11930 version_type=linux # correct to gnu/linux during the next big refactor
11933 hardcode_into_libs=yes
11934 if test ia64 = "$host_cpu"; then
11935 # AIX 5 supports IA64
11936 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11937 shlibpath_var=LD_LIBRARY_PATH
11939 # With GCC up to 2.95.x, collect2 would create an import file
11940 # for dependence libraries. The import file would start with
11941 # the line '#! .'. This would cause the generated library to
11942 # depend on '.', always an invalid library. This was fixed in
11943 # development snapshots of GCC prior to 3.0.
11945 aix4 | aix4.[01] | aix4.[01].*)
11946 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11948 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11951 can_build_shared=no
11955 # Using Import Files as archive members, it is possible to support
11956 # filename-based versioning of shared library archives on AIX. While
11957 # this would work for both with and without runtime linking, it will
11958 # prevent static linking of such archives. So we do filename-based
11959 # shared library versioning with .so extension only, which is used
11960 # when both runtime linking and shared linking is enabled.
11961 # Unfortunately, runtime linking may impact performance, so we do
11962 # not want this to be the default eventually. Also, we use the
11963 # versioned .so libs for executables only if there is the -brtl
11964 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11965 # To allow for filename-based versioning support, we need to create
11966 # libNAME.so.V as an archive file, containing:
11967 # *) an Import File, referring to the versioned filename of the
11968 # archive as well as the shared archive member, telling the
11969 # bitwidth (32 or 64) of that shared object, and providing the
11970 # list of exported symbols of that shared object, eventually
11971 # decorated with the 'weak' keyword
11972 # *) the shared object with the F_LOADONLY flag set, to really avoid
11973 # it being seen by the linker.
11974 # At run time we better use the real file rather than another symlink,
11975 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11977 case $with_aix_soname,$aix_use_runtimelinking in
11978 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11979 # soname into executable. Probably we can add versioning support to
11980 # collect2, so additional links can be useful in future.
11981 aix,yes) # traditional libtool
11982 dynamic_linker='AIX unversionable lib.so'
11983 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11984 # instead of lib<name>.a to let people know that these are not
11985 # typical AIX shared libraries.
11986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11988 aix,no) # traditional AIX only
11989 dynamic_linker='AIX lib.a(lib.so.V)'
11990 # We preserve .a as extension for shared libraries through AIX4.2
11991 # and later when we are not doing run time linking.
11992 library_names_spec='$libname$release.a $libname.a'
11993 soname_spec='$libname$release$shared_ext$major'
11995 svr4,*) # full svr4 only
11996 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11997 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11998 # We do not specify a path in Import Files, so LIBPATH fires.
11999 shlibpath_overrides_runpath=yes
12001 *,yes) # both, prefer svr4
12002 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12003 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12004 # unpreferred sharedlib libNAME.a needs extra handling
12005 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"'
12006 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"'
12007 # We do not specify a path in Import Files, so LIBPATH fires.
12008 shlibpath_overrides_runpath=yes
12010 *,no) # both, prefer aix
12011 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12012 library_names_spec='$libname$release.a $libname.a'
12013 soname_spec='$libname$release$shared_ext$major'
12014 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12015 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)'
12016 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"'
12019 shlibpath_var=LIBPATH
12026 # Since July 2007 AmigaOS4 officially supports .so libraries.
12027 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12031 library_names_spec='$libname.ixlibrary $libname.a'
12032 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12033 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'
12039 library_names_spec='$libname$shared_ext'
12040 dynamic_linker="$host_os ld.so"
12041 shlibpath_var=LIBRARY_PATH
12045 version_type=linux # correct to gnu/linux during the next big refactor
12047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12048 soname_spec='$libname$release$shared_ext$major'
12049 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12050 shlibpath_var=LD_LIBRARY_PATH
12051 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12052 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12053 # the default ld.so.conf also contains /usr/contrib/lib and
12054 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12055 # libtool to hard-code these into programs
12058 cygwin* | mingw* | pw32* | cegcc*)
12059 version_type=windows
12064 case $GCC,$cc_basename in
12067 library_names_spec='$libname.dll.a'
12068 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12069 postinstall_cmds='base_file=`basename \$file`~
12070 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12071 dldir=$destdir/`dirname \$dlpath`~
12072 test -d \$dldir || mkdir -p \$dldir~
12073 $install_prog $dir/$dlname \$dldir/$dlname~
12074 chmod a+x \$dldir/$dlname~
12075 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12076 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12078 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12079 dlpath=$dir/\$dldll~
12081 shlibpath_overrides_runpath=yes
12085 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12086 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12088 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12091 # MinGW DLLs use traditional 'lib' prefix
12092 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12095 # pw32 DLLs use 'pw' prefix rather than 'lib'
12096 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12099 dynamic_linker='Win32 ld.exe'
12103 # Native MSVC or ICC
12104 libname_spec='$name'
12105 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12106 library_names_spec='$libname.dll.lib'
12110 sys_lib_search_path_spec=
12113 for lt_path in $LIB
12116 # Let DOS variable expansion print the short 8.3 style file name.
12117 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12118 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12121 # Convert to MSYS style.
12122 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12125 # Convert to unix form, then to dos form, then back to unix form
12126 # but this time dos style (no spaces!) so that the unix form looks
12127 # like /cygdrive/c/PROGRA~1:/cygdr...
12128 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12129 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12130 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12133 sys_lib_search_path_spec=$LIB
12134 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12135 # It is most probably a Windows format PATH.
12136 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12138 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12140 # FIXME: find the short name or the path components, as spaces are
12141 # common. (e.g. "Program Files" -> "PROGRA~1")
12145 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12146 postinstall_cmds='base_file=`basename \$file`~
12147 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12148 dldir=$destdir/`dirname \$dlpath`~
12149 test -d \$dldir || mkdir -p \$dldir~
12150 $install_prog $dir/$dlname \$dldir/$dlname'
12151 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12152 dlpath=$dir/\$dldll~
12154 shlibpath_overrides_runpath=yes
12155 dynamic_linker='Win32 link.exe'
12159 # Assume MSVC and ICC wrapper
12160 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12161 dynamic_linker='Win32 ld.exe'
12164 # FIXME: first we should search . and the directory the executable is in
12168 darwin* | rhapsody*)
12169 dynamic_linker="$host_os dyld"
12170 version_type=darwin
12173 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12174 soname_spec='$libname$release$major$shared_ext'
12175 shlibpath_overrides_runpath=yes
12176 shlibpath_var=DYLD_LIBRARY_PATH
12177 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12179 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12180 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12184 version_type=linux # correct to gnu/linux during the next big refactor
12187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12188 soname_spec='$libname$release$shared_ext$major'
12189 shlibpath_var=LD_LIBRARY_PATH
12192 freebsd* | dragonfly*)
12193 # DragonFly does not have aout. When/if they implement a new
12194 # versioning mechanism, adjust this.
12195 if test -x /usr/bin/objformat; then
12196 objformat=`/usr/bin/objformat`
12199 freebsd[23].*) objformat=aout ;;
12200 *) objformat=elf ;;
12203 version_type=freebsd-$objformat
12204 case $version_type in
12206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12207 soname_spec='$libname$release$shared_ext$major'
12212 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12216 shlibpath_var=LD_LIBRARY_PATH
12219 shlibpath_overrides_runpath=yes
12221 freebsd3.[01]* | freebsdelf3.[01]*)
12222 shlibpath_overrides_runpath=yes
12223 hardcode_into_libs=yes
12225 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12226 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12227 shlibpath_overrides_runpath=no
12228 hardcode_into_libs=yes
12230 *) # from 4.6 on, and DragonFly
12231 shlibpath_overrides_runpath=yes
12232 hardcode_into_libs=yes
12238 version_type=linux # correct to gnu/linux during the next big refactor
12241 dynamic_linker="$host_os runtime_loader"
12242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12243 soname_spec='$libname$release$shared_ext$major'
12244 shlibpath_var=LIBRARY_PATH
12245 shlibpath_overrides_runpath=no
12246 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12247 hardcode_into_libs=yes
12250 hpux9* | hpux10* | hpux11*)
12251 # Give a soname corresponding to the major version so that dld.sl refuses to
12252 # link against other versions.
12259 hardcode_into_libs=yes
12260 dynamic_linker="$host_os dld.so"
12261 shlibpath_var=LD_LIBRARY_PATH
12262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12264 soname_spec='$libname$release$shared_ext$major'
12265 if test 32 = "$HPUX_IA64_MODE"; then
12266 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12267 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12269 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12270 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12275 hardcode_into_libs=yes
12276 dynamic_linker="$host_os dld.sl"
12277 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12280 soname_spec='$libname$release$shared_ext$major'
12281 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12286 dynamic_linker="$host_os dld.sl"
12287 shlibpath_var=SHLIB_PATH
12288 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12290 soname_spec='$libname$release$shared_ext$major'
12293 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12294 postinstall_cmds='chmod 555 $lib'
12295 # or fails outright, so override atomically:
12296 install_override_mode=555
12300 version_type=linux # correct to gnu/linux during the next big refactor
12303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12304 soname_spec='$libname$release$shared_ext$major'
12305 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12306 shlibpath_var=LD_LIBRARY_PATH
12307 shlibpath_overrides_runpath=no
12308 hardcode_into_libs=yes
12311 irix5* | irix6* | nonstopux*)
12313 nonstopux*) version_type=nonstopux ;;
12315 if test yes = "$lt_cv_prog_gnu_ld"; then
12316 version_type=linux # correct to gnu/linux during the next big refactor
12323 soname_spec='$libname$release$shared_ext$major'
12324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12326 irix5* | nonstopux*)
12327 libsuff= shlibsuff=
12330 case $LD in # libtool.m4 will add one of these switches to LD
12331 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12332 libsuff= shlibsuff= libmagic=32-bit;;
12333 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12334 libsuff=32 shlibsuff=N32 libmagic=N32;;
12335 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12336 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12337 *) libsuff= shlibsuff= libmagic=never-match;;
12341 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12342 shlibpath_overrides_runpath=no
12343 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12344 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12345 hardcode_into_libs=yes
12348 # No shared lib support for Linux oldld, aout, or coff.
12349 linux*oldld* | linux*aout* | linux*coff*)
12354 version_type=none # Android doesn't support versioned libraries.
12357 library_names_spec='$libname$release$shared_ext'
12358 soname_spec='$libname$release$shared_ext'
12360 shlibpath_var=LD_LIBRARY_PATH
12361 shlibpath_overrides_runpath=yes
12363 # This implies no fast_install, which is unacceptable.
12364 # Some rework will be needed to allow for fast_install
12365 # before this can be enabled.
12366 hardcode_into_libs=yes
12368 dynamic_linker='Android linker'
12369 # Don't embed -rpath directories since the linker doesn't support them.
12370 hardcode_libdir_flag_spec='-L$libdir'
12373 # This must be glibc/ELF.
12374 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12375 version_type=linux # correct to gnu/linux during the next big refactor
12378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12379 soname_spec='$libname$release$shared_ext$major'
12380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12381 shlibpath_var=LD_LIBRARY_PATH
12382 shlibpath_overrides_runpath=no
12384 # Some binutils ld are patched to set DT_RUNPATH
12385 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12386 $as_echo_n "(cached) " >&6
12388 lt_cv_shlibpath_overrides_runpath=no
12389 save_LDFLAGS=$LDFLAGS
12390 save_libdir=$libdir
12391 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12392 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12404 if ac_fn_c_try_link "$LINENO"; then :
12405 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12406 lt_cv_shlibpath_overrides_runpath=yes
12409 rm -f core conftest.err conftest.$ac_objext \
12410 conftest$ac_exeext conftest.$ac_ext
12411 LDFLAGS=$save_LDFLAGS
12412 libdir=$save_libdir
12416 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12418 # This implies no fast_install, which is unacceptable.
12419 # Some rework will be needed to allow for fast_install
12420 # before this can be enabled.
12421 hardcode_into_libs=yes
12423 # Ideally, we could use ldconfig to report *all* directores which are
12424 # searched for libraries, however this is still not possible. Aside from not
12425 # being certain /sbin/ldconfig is available, command
12426 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12427 # even though it is searched at run-time. Try to do the best guess by
12428 # appending ld.so.conf contents (and includes) to the search path.
12429 if test -f /etc/ld.so.conf; then
12430 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' ' '`
12431 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12434 # We used to test for /lib/ld.so.1 and disable shared libraries on
12435 # powerpc, because MkLinux only supported shared libraries with the
12436 # GNU dynamic linker. Since this was broken with cross compilers,
12437 # most powerpc-linux boxes support dynamic linking these days and
12438 # people can always --disable-shared, the test was removed, and we
12439 # assume the GNU/Linux dynamic linker is in use.
12440 dynamic_linker='GNU/Linux ld.so'
12447 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12448 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12450 dynamic_linker='NetBSD (a.out) ld.so'
12452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12453 soname_spec='$libname$release$shared_ext$major'
12454 dynamic_linker='NetBSD ld.elf_so'
12456 shlibpath_var=LD_LIBRARY_PATH
12457 shlibpath_overrides_runpath=yes
12458 hardcode_into_libs=yes
12462 version_type=linux # correct to gnu/linux during the next big refactor
12463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12464 shlibpath_var=LD_LIBRARY_PATH
12465 shlibpath_overrides_runpath=yes
12472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12473 soname_spec='$libname$release$shared_ext$major'
12474 shlibpath_var=LD_LIBRARY_PATH
12475 shlibpath_overrides_runpath=no
12476 hardcode_into_libs=yes
12477 dynamic_linker='ldqnx.so'
12480 openbsd* | bitrig*)
12482 sys_lib_dlsearch_path_spec=/usr/lib
12484 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12489 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12491 shlibpath_var=LD_LIBRARY_PATH
12492 shlibpath_overrides_runpath=yes
12496 libname_spec='$name'
12497 version_type=windows
12501 # OS/2 can only load a DLL with a base name of 8 characters or less.
12502 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12503 v=$($ECHO $release$versuffix | tr -d .-);
12504 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12505 $ECHO $n$v`$shared_ext'
12506 library_names_spec='${libname}_dll.$libext'
12507 dynamic_linker='OS/2 ld.exe'
12508 shlibpath_var=BEGINLIBPATH
12509 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12511 postinstall_cmds='base_file=`basename \$file`~
12512 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12513 dldir=$destdir/`dirname \$dlpath`~
12514 test -d \$dldir || mkdir -p \$dldir~
12515 $install_prog $dir/$dlname \$dldir/$dlname~
12516 chmod a+x \$dldir/$dlname~
12517 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12518 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12520 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12521 dlpath=$dir/\$dldll~
12525 osf3* | osf4* | osf5*)
12529 soname_spec='$libname$release$shared_ext$major'
12530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12531 shlibpath_var=LD_LIBRARY_PATH
12532 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12541 version_type=linux # correct to gnu/linux during the next big refactor
12544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12545 soname_spec='$libname$release$shared_ext$major'
12546 shlibpath_var=LD_LIBRARY_PATH
12547 shlibpath_overrides_runpath=yes
12548 hardcode_into_libs=yes
12549 # ldd complains unless libraries are executable
12550 postinstall_cmds='chmod +x $lib'
12555 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12556 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12557 shlibpath_var=LD_LIBRARY_PATH
12558 shlibpath_overrides_runpath=yes
12559 if test yes = "$with_gnu_ld"; then
12566 version_type=linux # correct to gnu/linux during the next big refactor
12567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12568 soname_spec='$libname$release$shared_ext$major'
12569 shlibpath_var=LD_LIBRARY_PATH
12570 case $host_vendor in
12572 shlibpath_overrides_runpath=no
12574 runpath_var=LD_RUN_PATH
12582 shlibpath_overrides_runpath=no
12583 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12589 if test -d /usr/nec; then
12590 version_type=linux # correct to gnu/linux during the next big refactor
12591 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12592 soname_spec='$libname$shared_ext.$major'
12593 shlibpath_var=LD_LIBRARY_PATH
12597 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12602 soname_spec='$libname$release$shared_ext$major'
12603 shlibpath_var=LD_LIBRARY_PATH
12604 shlibpath_overrides_runpath=yes
12605 hardcode_into_libs=yes
12606 if test yes = "$with_gnu_ld"; then
12607 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12609 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12612 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12616 sys_lib_dlsearch_path_spec='/usr/lib'
12620 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12621 version_type=linux # correct to gnu/linux during the next big refactor
12624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12625 shlibpath_var=LD_LIBRARY_PATH
12626 shlibpath_overrides_runpath=no
12627 hardcode_into_libs=yes
12631 version_type=linux # correct to gnu/linux during the next big refactor
12632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12633 soname_spec='$libname$release$shared_ext$major'
12634 shlibpath_var=LD_LIBRARY_PATH
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12642 $as_echo "$dynamic_linker" >&6; }
12643 test no = "$dynamic_linker" && can_build_shared=no
12645 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12646 if test yes = "$GCC"; then
12647 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12650 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12651 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12654 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12655 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12658 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12659 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12661 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12662 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12664 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12665 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12764 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12766 if test -n "$hardcode_libdir_flag_spec" ||
12767 test -n "$runpath_var" ||
12768 test yes = "$hardcode_automatic"; then
12770 # We can hardcode non-existent directories.
12771 if test no != "$hardcode_direct" &&
12772 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12773 # have to relink, otherwise we might link with an installed library
12774 # when we should be linking with a yet-to-be-installed one
12775 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12776 test no != "$hardcode_minus_L"; then
12777 # Linking always hardcodes the temporary library directory.
12778 hardcode_action=relink
12780 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12781 hardcode_action=immediate
12784 # We cannot hardcode anything, or else we can only hardcode existing
12786 hardcode_action=unsupported
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12789 $as_echo "$hardcode_action" >&6; }
12791 if test relink = "$hardcode_action" ||
12792 test yes = "$inherit_rpath"; then
12793 # Fast installation is not supported
12794 enable_fast_install=no
12795 elif test yes = "$shlibpath_overrides_runpath" ||
12796 test no = "$enable_shared"; then
12797 # Fast installation is not necessary
12798 enable_fast_install=needless
12806 if test yes != "$enable_dlopen"; then
12807 enable_dlopen=unknown
12808 enable_dlopen_self=unknown
12809 enable_dlopen_self_static=unknown
12816 lt_cv_dlopen=load_add_on
12818 lt_cv_dlopen_self=yes
12821 mingw* | pw32* | cegcc*)
12822 lt_cv_dlopen=LoadLibrary
12827 lt_cv_dlopen=dlopen
12832 # if libdl is installed we need to link against it
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12834 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12835 if ${ac_cv_lib_dl_dlopen+:} false; then :
12836 $as_echo_n "(cached) " >&6
12838 ac_check_lib_save_LIBS=$LIBS
12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841 /* end confdefs.h. */
12843 /* Override any GCC internal prototype to avoid an error.
12844 Use char because int might match the return type of a GCC
12845 builtin and then its argument prototype would still apply. */
12858 if ac_fn_c_try_link "$LINENO"; then :
12859 ac_cv_lib_dl_dlopen=yes
12861 ac_cv_lib_dl_dlopen=no
12863 rm -f core conftest.err conftest.$ac_objext \
12864 conftest$ac_exeext conftest.$ac_ext
12865 LIBS=$ac_check_lib_save_LIBS
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12868 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12869 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12870 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12875 lt_cv_dlopen_self=yes
12882 # Don't try to run any link tests for TPF. We know it's impossible
12883 # because TPF is a cross-compiler, and we know how we open DSOs.
12884 lt_cv_dlopen=dlopen
12886 lt_cv_dlopen_self=no
12890 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12891 if test "x$ac_cv_func_shl_load" = xyes; then :
12892 lt_cv_dlopen=shl_load
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12895 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12896 if ${ac_cv_lib_dld_shl_load+:} false; then :
12897 $as_echo_n "(cached) " >&6
12899 ac_check_lib_save_LIBS=$LIBS
12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12904 /* Override any GCC internal prototype to avoid an error.
12905 Use char because int might match the return type of a GCC
12906 builtin and then its argument prototype would still apply. */
12914 return shl_load ();
12919 if ac_fn_c_try_link "$LINENO"; then :
12920 ac_cv_lib_dld_shl_load=yes
12922 ac_cv_lib_dld_shl_load=no
12924 rm -f core conftest.err conftest.$ac_objext \
12925 conftest$ac_exeext conftest.$ac_ext
12926 LIBS=$ac_check_lib_save_LIBS
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12929 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12930 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12931 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12933 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12934 if test "x$ac_cv_func_dlopen" = xyes; then :
12935 lt_cv_dlopen=dlopen
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12938 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12939 if ${ac_cv_lib_dl_dlopen+:} false; then :
12940 $as_echo_n "(cached) " >&6
12942 ac_check_lib_save_LIBS=$LIBS
12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12947 /* Override any GCC internal prototype to avoid an error.
12948 Use char because int might match the return type of a GCC
12949 builtin and then its argument prototype would still apply. */
12962 if ac_fn_c_try_link "$LINENO"; then :
12963 ac_cv_lib_dl_dlopen=yes
12965 ac_cv_lib_dl_dlopen=no
12967 rm -f core conftest.err conftest.$ac_objext \
12968 conftest$ac_exeext conftest.$ac_ext
12969 LIBS=$ac_check_lib_save_LIBS
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12972 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12973 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12974 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12977 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12978 if ${ac_cv_lib_svld_dlopen+:} false; then :
12979 $as_echo_n "(cached) " >&6
12981 ac_check_lib_save_LIBS=$LIBS
12982 LIBS="-lsvld $LIBS"
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12986 /* Override any GCC internal prototype to avoid an error.
12987 Use char because int might match the return type of a GCC
12988 builtin and then its argument prototype would still apply. */
13001 if ac_fn_c_try_link "$LINENO"; then :
13002 ac_cv_lib_svld_dlopen=yes
13004 ac_cv_lib_svld_dlopen=no
13006 rm -f core conftest.err conftest.$ac_objext \
13007 conftest$ac_exeext conftest.$ac_ext
13008 LIBS=$ac_check_lib_save_LIBS
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13011 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13012 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13013 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13016 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13017 if ${ac_cv_lib_dld_dld_link+:} false; then :
13018 $as_echo_n "(cached) " >&6
13020 ac_check_lib_save_LIBS=$LIBS
13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h. */
13025 /* Override any GCC internal prototype to avoid an error.
13026 Use char because int might match the return type of a GCC
13027 builtin and then its argument prototype would still apply. */
13035 return dld_link ();
13040 if ac_fn_c_try_link "$LINENO"; then :
13041 ac_cv_lib_dld_dld_link=yes
13043 ac_cv_lib_dld_dld_link=no
13045 rm -f core conftest.err conftest.$ac_objext \
13046 conftest$ac_exeext conftest.$ac_ext
13047 LIBS=$ac_check_lib_save_LIBS
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13050 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13051 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13052 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13073 if test no = "$lt_cv_dlopen"; then
13079 case $lt_cv_dlopen in
13081 save_CPPFLAGS=$CPPFLAGS
13082 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13084 save_LDFLAGS=$LDFLAGS
13085 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13088 LIBS="$lt_cv_dlopen_libs $LIBS"
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13091 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13092 if ${lt_cv_dlopen_self+:} false; then :
13093 $as_echo_n "(cached) " >&6
13095 if test yes = "$cross_compiling"; then :
13096 lt_cv_dlopen_self=cross
13098 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13099 lt_status=$lt_dlunknown
13100 cat > conftest.$ac_ext <<_LT_EOF
13101 #line $LINENO "configure"
13102 #include "confdefs.h"
13111 # define LT_DLGLOBAL RTLD_GLOBAL
13114 # define LT_DLGLOBAL DL_GLOBAL
13116 # define LT_DLGLOBAL 0
13120 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13121 find out it does not work in some platform. */
13122 #ifndef LT_DLLAZY_OR_NOW
13124 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13127 # define LT_DLLAZY_OR_NOW DL_LAZY
13130 # define LT_DLLAZY_OR_NOW RTLD_NOW
13133 # define LT_DLLAZY_OR_NOW DL_NOW
13135 # define LT_DLLAZY_OR_NOW 0
13142 /* When -fvisibility=hidden is used, assume the code has been annotated
13143 correspondingly for the symbols needed. */
13144 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13145 int fnord () __attribute__((visibility("default")));
13148 int fnord () { return 42; }
13151 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13152 int status = $lt_dlunknown;
13156 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13159 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13160 else puts (dlerror ());
13162 /* dlclose (self); */
13170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13171 (eval $ac_link) 2>&5
13173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13174 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13175 (./conftest; exit; ) >&5 2>/dev/null
13177 case x$lt_status in
13178 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13179 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13180 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13183 # compilation failed
13184 lt_cv_dlopen_self=no
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13192 $as_echo "$lt_cv_dlopen_self" >&6; }
13194 if test yes = "$lt_cv_dlopen_self"; then
13195 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13197 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13198 if ${lt_cv_dlopen_self_static+:} false; then :
13199 $as_echo_n "(cached) " >&6
13201 if test yes = "$cross_compiling"; then :
13202 lt_cv_dlopen_self_static=cross
13204 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13205 lt_status=$lt_dlunknown
13206 cat > conftest.$ac_ext <<_LT_EOF
13207 #line $LINENO "configure"
13208 #include "confdefs.h"
13217 # define LT_DLGLOBAL RTLD_GLOBAL
13220 # define LT_DLGLOBAL DL_GLOBAL
13222 # define LT_DLGLOBAL 0
13226 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13227 find out it does not work in some platform. */
13228 #ifndef LT_DLLAZY_OR_NOW
13230 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13233 # define LT_DLLAZY_OR_NOW DL_LAZY
13236 # define LT_DLLAZY_OR_NOW RTLD_NOW
13239 # define LT_DLLAZY_OR_NOW DL_NOW
13241 # define LT_DLLAZY_OR_NOW 0
13248 /* When -fvisibility=hidden is used, assume the code has been annotated
13249 correspondingly for the symbols needed. */
13250 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13251 int fnord () __attribute__((visibility("default")));
13254 int fnord () { return 42; }
13257 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13258 int status = $lt_dlunknown;
13262 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13265 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13266 else puts (dlerror ());
13268 /* dlclose (self); */
13276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13277 (eval $ac_link) 2>&5
13279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13280 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13281 (./conftest; exit; ) >&5 2>/dev/null
13283 case x$lt_status in
13284 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13285 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13286 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13289 # compilation failed
13290 lt_cv_dlopen_self_static=no
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13298 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13301 CPPFLAGS=$save_CPPFLAGS
13302 LDFLAGS=$save_LDFLAGS
13307 case $lt_cv_dlopen_self in
13308 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13309 *) enable_dlopen_self=unknown ;;
13312 case $lt_cv_dlopen_self_static in
13313 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13314 *) enable_dlopen_self_static=unknown ;;
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13337 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13338 if test -z "$STRIP"; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13340 $as_echo "no" >&6; }
13342 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13343 old_striplib="$STRIP --strip-debug"
13344 striplib="$STRIP --strip-unneeded"
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13346 $as_echo "yes" >&6; }
13350 # FIXME - insert some real tests, host_os isn't really good enough
13351 striplib="$STRIP -x"
13352 old_striplib="$STRIP -S"
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13354 $as_echo "yes" >&6; }
13357 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13358 old_striplib="$STRIP --strip-debug"
13359 striplib="$STRIP --strip-unneeded"
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13361 $as_echo "yes" >&6; }
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364 $as_echo "no" >&6; }
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369 $as_echo "no" >&6; }
13386 # Report what library types will actually be built
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13388 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13390 $as_echo "$can_build_shared" >&6; }
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13393 $as_echo_n "checking whether to build shared libraries... " >&6; }
13394 test no = "$can_build_shared" && enable_shared=no
13396 # On AIX, shared libraries and static libraries use the same namespace, and
13397 # are all built from PIC.
13400 test yes = "$enable_shared" && enable_static=no
13401 if test -n "$RANLIB"; then
13402 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13403 postinstall_cmds='$RANLIB $lib'
13408 if test ia64 != "$host_cpu"; then
13409 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13410 yes,aix,yes) ;; # shared object as lib.so file only
13411 yes,svr4,*) ;; # shared object as lib.so archive member only
13412 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13418 $as_echo "$enable_shared" >&6; }
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13421 $as_echo_n "checking whether to build static libraries... " >&6; }
13422 # Make sure either enable_shared or enable_static is yes.
13423 test yes = "$enable_shared" || enable_static=yes
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13425 $as_echo "$enable_static" >&6; }
13432 ac_cpp='$CPP $CPPFLAGS'
13433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13453 ac_config_commands="$ac_config_commands libtool"
13458 # Only expand once:
13462 # Check for programs
13464 ac_cpp='$CPP $CPPFLAGS'
13465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13468 if test -n "$ac_tool_prefix"; then
13469 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13470 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13472 $as_echo_n "checking for $ac_word... " >&6; }
13473 if ${ac_cv_prog_CC+:} false; then :
13474 $as_echo_n "(cached) " >&6
13476 if test -n "$CC"; then
13477 ac_cv_prog_CC="$CC" # Let the user override the test.
13479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13480 for as_dir in $PATH
13483 test -z "$as_dir" && as_dir=.
13484 for ac_exec_ext in '' $ac_executable_extensions; do
13485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13486 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13497 if test -n "$CC"; then
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13499 $as_echo "$CC" >&6; }
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13502 $as_echo "no" >&6; }
13507 if test -z "$ac_cv_prog_CC"; then
13509 # Extract the first word of "gcc", so it can be a program name with args.
13510 set dummy gcc; ac_word=$2
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13512 $as_echo_n "checking for $ac_word... " >&6; }
13513 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13514 $as_echo_n "(cached) " >&6
13516 if test -n "$ac_ct_CC"; then
13517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13520 for as_dir in $PATH
13523 test -z "$as_dir" && as_dir=.
13524 for ac_exec_ext in '' $ac_executable_extensions; do
13525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13526 ac_cv_prog_ac_ct_CC="gcc"
13527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13537 if test -n "$ac_ct_CC"; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13539 $as_echo "$ac_ct_CC" >&6; }
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13542 $as_echo "no" >&6; }
13545 if test "x$ac_ct_CC" = x; then
13548 case $cross_compiling:$ac_tool_warned in
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13552 ac_tool_warned=yes ;;
13557 CC="$ac_cv_prog_CC"
13560 if test -z "$CC"; then
13561 if test -n "$ac_tool_prefix"; then
13562 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13563 set dummy ${ac_tool_prefix}cc; ac_word=$2
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13565 $as_echo_n "checking for $ac_word... " >&6; }
13566 if ${ac_cv_prog_CC+:} false; then :
13567 $as_echo_n "(cached) " >&6
13569 if test -n "$CC"; then
13570 ac_cv_prog_CC="$CC" # Let the user override the test.
13572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13573 for as_dir in $PATH
13576 test -z "$as_dir" && as_dir=.
13577 for ac_exec_ext in '' $ac_executable_extensions; do
13578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13579 ac_cv_prog_CC="${ac_tool_prefix}cc"
13580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13590 if test -n "$CC"; then
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13592 $as_echo "$CC" >&6; }
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595 $as_echo "no" >&6; }
13601 if test -z "$CC"; then
13602 # Extract the first word of "cc", so it can be a program name with args.
13603 set dummy cc; ac_word=$2
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13605 $as_echo_n "checking for $ac_word... " >&6; }
13606 if ${ac_cv_prog_CC+:} false; then :
13607 $as_echo_n "(cached) " >&6
13609 if test -n "$CC"; then
13610 ac_cv_prog_CC="$CC" # Let the user override the test.
13612 ac_prog_rejected=no
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $PATH
13617 test -z "$as_dir" && as_dir=.
13618 for ac_exec_ext in '' $ac_executable_extensions; do
13619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13621 ac_prog_rejected=yes
13625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13632 if test $ac_prog_rejected = yes; then
13633 # We found a bogon in the path, so make sure we never use it.
13634 set dummy $ac_cv_prog_CC
13636 if test $# != 0; then
13637 # We chose a different compiler from the bogus one.
13638 # However, it has the same basename, so the bogon will be chosen
13639 # first if we set CC to just the basename; use the full file name.
13641 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
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; }
13657 if test -z "$CC"; then
13658 if test -n "$ac_tool_prefix"; then
13659 for ac_prog in cl.exe
13661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13664 $as_echo_n "checking for $ac_word... " >&6; }
13665 if ${ac_cv_prog_CC+:} false; then :
13666 $as_echo_n "(cached) " >&6
13668 if test -n "$CC"; then
13669 ac_cv_prog_CC="$CC" # Let the user override the test.
13671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13672 for as_dir in $PATH
13675 test -z "$as_dir" && as_dir=.
13676 for ac_exec_ext in '' $ac_executable_extensions; do
13677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13678 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13689 if test -n "$CC"; then
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13691 $as_echo "$CC" >&6; }
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13694 $as_echo "no" >&6; }
13698 test -n "$CC" && break
13701 if test -z "$CC"; then
13703 for ac_prog in cl.exe
13705 # Extract the first word of "$ac_prog", so it can be a program name with args.
13706 set dummy $ac_prog; ac_word=$2
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13708 $as_echo_n "checking for $ac_word... " >&6; }
13709 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13710 $as_echo_n "(cached) " >&6
13712 if test -n "$ac_ct_CC"; then
13713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716 for as_dir in $PATH
13719 test -z "$as_dir" && as_dir=.
13720 for ac_exec_ext in '' $ac_executable_extensions; do
13721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13722 ac_cv_prog_ac_ct_CC="$ac_prog"
13723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13733 if test -n "$ac_ct_CC"; then
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13735 $as_echo "$ac_ct_CC" >&6; }
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13738 $as_echo "no" >&6; }
13742 test -n "$ac_ct_CC" && break
13745 if test "x$ac_ct_CC" = x; then
13748 case $cross_compiling:$ac_tool_warned in
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13752 ac_tool_warned=yes ;;
13761 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13763 as_fn_error $? "no acceptable C compiler found in \$PATH
13764 See \`config.log' for more details" "$LINENO" 5; }
13766 # Provide some information about the compiler.
13767 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13770 for ac_option in --version -v -V -qversion; do
13771 { { ac_try="$ac_compiler $ac_option >&5"
13772 case "(($ac_try" in
13773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13774 *) ac_try_echo=$ac_try;;
13776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13777 $as_echo "$ac_try_echo"; } >&5
13778 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13780 if test -s conftest.err; then
13782 ... rest of stderr output deleted ...
13783 10q' conftest.err >conftest.er1
13784 cat conftest.er1 >&5
13786 rm -f conftest.er1 conftest.err
13787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13788 test $ac_status = 0; }
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13792 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13793 if ${ac_cv_c_compiler_gnu+:} false; then :
13794 $as_echo_n "(cached) " >&6
13796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h. */
13810 if ac_fn_c_try_compile "$LINENO"; then :
13811 ac_compiler_gnu=yes
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13820 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13821 if test $ac_compiler_gnu = yes; then
13826 ac_test_CFLAGS=${CFLAGS+set}
13827 ac_save_CFLAGS=$CFLAGS
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13829 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13830 if ${ac_cv_prog_cc_g+:} false; then :
13831 $as_echo_n "(cached) " >&6
13833 ac_save_c_werror_flag=$ac_c_werror_flag
13834 ac_c_werror_flag=yes
13837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13838 /* end confdefs.h. */
13848 if ac_fn_c_try_compile "$LINENO"; then :
13849 ac_cv_prog_cc_g=yes
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13863 if ac_fn_c_try_compile "$LINENO"; then :
13866 ac_c_werror_flag=$ac_save_c_werror_flag
13868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869 /* end confdefs.h. */
13879 if ac_fn_c_try_compile "$LINENO"; then :
13880 ac_cv_prog_cc_g=yes
13882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13887 ac_c_werror_flag=$ac_save_c_werror_flag
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13890 $as_echo "$ac_cv_prog_cc_g" >&6; }
13891 if test "$ac_test_CFLAGS" = set; then
13892 CFLAGS=$ac_save_CFLAGS
13893 elif test $ac_cv_prog_cc_g = yes; then
13894 if test "$GCC" = yes; then
13900 if test "$GCC" = yes; then
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13907 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13908 if ${ac_cv_prog_cc_c89+:} false; then :
13909 $as_echo_n "(cached) " >&6
13911 ac_cv_prog_cc_c89=no
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h. */
13915 #include <stdarg.h>
13918 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13919 struct buf { int x; };
13920 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13921 static char *e (p, i)
13927 static char *f (char * (*g) (char **, int), char **p, ...)
13932 s = g (p, va_arg (v,int));
13937 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13938 function prototypes and stuff, but not '\xHH' hex character constants.
13939 These don't provoke an error unfortunately, instead are silently treated
13940 as 'x'. The following induces an error, until -std is added to get
13941 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13942 array size at least. It's necessary to write '\x00'==0 to get something
13943 that's true only with -std. */
13944 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13946 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13947 inside strings and character constants. */
13949 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13951 int test (int i, double x);
13952 struct s1 {int (*f) (int a);};
13953 struct s2 {int (*f) (double a);};
13954 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13960 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13965 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13966 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13968 CC="$ac_save_CC $ac_arg"
13969 if ac_fn_c_try_compile "$LINENO"; then :
13970 ac_cv_prog_cc_c89=$ac_arg
13972 rm -f core conftest.err conftest.$ac_objext
13973 test "x$ac_cv_prog_cc_c89" != "xno" && break
13975 rm -f conftest.$ac_ext
13980 case "x$ac_cv_prog_cc_c89" in
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13983 $as_echo "none needed" >&6; } ;;
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13986 $as_echo "unsupported" >&6; } ;;
13988 CC="$CC $ac_cv_prog_cc_c89"
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13990 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13992 if test "x$ac_cv_prog_cc_c89" != xno; then :
13997 ac_cpp='$CPP $CPPFLAGS'
13998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14003 ac_cpp='$CPP $CPPFLAGS'
14004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14008 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
14009 if ${am_cv_prog_cc_c_o+:} false; then :
14010 $as_echo_n "(cached) " >&6
14012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h. */
14023 # Make sure it works both with $CC and with simple cc.
14024 # Following AC_PROG_CC_C_O, we do the test twice because some
14025 # compilers refuse to overwrite an existing .o file with -o,
14026 # though they will create one.
14027 am_cv_prog_cc_c_o=yes
14028 for am_i in 1 2; do
14029 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14030 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } \
14034 && test -f conftest2.$ac_objext; then
14037 am_cv_prog_cc_c_o=no
14041 rm -f core conftest*
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14045 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14046 if test "$am_cv_prog_cc_c_o" != yes; then
14047 # Losing compiler, so override with the script.
14048 # FIXME: It is wrong to rewrite CC.
14049 # But if we don't then we get into trouble of one sort or another.
14050 # A longer-term fix would be to have automake use am__CC in this case,
14051 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14052 CC="$am_aux_dir/compile $CC"
14055 ac_cpp='$CPP $CPPFLAGS'
14056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14061 depcc="$CC" am_compiler_list=
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14064 $as_echo_n "checking dependency style of $depcc... " >&6; }
14065 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14066 $as_echo_n "(cached) " >&6
14068 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14069 # We make a subdir and do the tests there. Otherwise we can end up
14070 # making bogus files that we don't know about and never remove. For
14071 # instance it was reported that on HP-UX the gcc test will end up
14072 # making a dummy file named 'D' -- because '-MD' means "put the output
14074 rm -rf conftest.dir
14076 # Copy depcomp to subdir because otherwise we won't find it if we're
14077 # using a relative directory.
14078 cp "$am_depcomp" conftest.dir
14080 # We will build objects and dependencies in a subdirectory because
14081 # it helps to detect inapplicable dependency modes. For instance
14082 # both Tru64's cc and ICC support -MD to output dependencies as a
14083 # side effect of compilation, but ICC will put the dependencies in
14084 # the current directory while Tru64 will put them in the object
14088 am_cv_CC_dependencies_compiler_type=none
14089 if test "$am_compiler_list" = ""; then
14090 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14092 am__universal=false
14093 case " $depcc " in #(
14094 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14097 for depmode in $am_compiler_list; do
14098 # Setup a source with many dependencies, because some compilers
14099 # like to wrap large dependency lists on column 80 (with \), and
14100 # we should not choose a depcomp mode which is confused by this.
14102 # We need to recreate these files for each test, as the compiler may
14103 # overwrite some of them when testing with obscure command lines.
14104 # This happens at least with the AIX C compiler.
14106 for i in 1 2 3 4 5 6; do
14107 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14108 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14109 # Solaris 10 /bin/sh.
14110 echo '/* dummy */' > sub/conftst$i.h
14112 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14114 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14115 # mode. It turns out that the SunPro C++ compiler does not properly
14116 # handle '-M -o', and we need to detect this. Also, some Intel
14117 # versions had trouble with output in subdirs.
14118 am__obj=sub/conftest.${OBJEXT-o}
14119 am__minus_obj="-o $am__obj"
14122 # This depmode causes a compiler race in universal mode.
14123 test "$am__universal" = false || continue
14126 # After this tag, mechanisms are not by side-effect, so they'll
14127 # only be used when explicitly requested.
14128 if test "x$enable_dependency_tracking" = xyes; then
14134 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14135 # This compiler won't grok '-c -o', but also, the minuso test has
14136 # not run yet. These depmodes are late enough in the game, and
14137 # so weak that their functioning should not be impacted.
14138 am__obj=conftest.${OBJEXT-o}
14143 if depmode=$depmode \
14144 source=sub/conftest.c object=$am__obj \
14145 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14146 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14147 >/dev/null 2>conftest.err &&
14148 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14149 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14150 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14151 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14152 # icc doesn't choke on unknown options, it will just issue warnings
14153 # or remarks (even with -Werror). So we grep stderr for any message
14154 # that says an option was ignored or not supported.
14155 # When given -MP, icc 7.0 and 7.1 complain thusly:
14156 # icc: Command line warning: ignoring option '-M'; no argument required
14157 # The diagnosis changed in icc 8.0:
14158 # icc: Command line remark: option '-MP' not supported
14159 if (grep 'ignoring option' conftest.err ||
14160 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14161 am_cv_CC_dependencies_compiler_type=$depmode
14168 rm -rf conftest.dir
14170 am_cv_CC_dependencies_compiler_type=none
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14175 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14176 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14179 test "x$enable_dependency_tracking" != xno \
14180 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14181 am__fastdepCC_TRUE=
14182 am__fastdepCC_FALSE='#'
14184 am__fastdepCC_TRUE='#'
14185 am__fastdepCC_FALSE=
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14190 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14191 if ${ac_cv_prog_cc_c99+:} false; then :
14192 $as_echo_n "(cached) " >&6
14194 ac_cv_prog_cc_c99=no
14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197 /* end confdefs.h. */
14198 #include <stdarg.h>
14199 #include <stdbool.h>
14200 #include <stdlib.h>
14204 // Check varargs macros. These examples are taken from C99 6.10.3.5.
14205 #define debug(...) fprintf (stderr, __VA_ARGS__)
14206 #define showlist(...) puts (#__VA_ARGS__)
14207 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14209 test_varargs_macros (void)
14214 debug ("X = %d\n", x);
14215 showlist (The first, second, and third items.);
14216 report (x>y, "x is %d but y is %d", x, y);
14219 // Check long long types.
14220 #define BIG64 18446744073709551615ull
14221 #define BIG32 4294967295ul
14222 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14224 your preprocessor is broken;
14228 your preprocessor is broken;
14230 static long long int bignum = -9223372036854775807LL;
14231 static unsigned long long int ubignum = BIG64;
14233 struct incomplete_array
14239 struct named_init {
14241 const wchar_t *name;
14245 typedef const char *ccp;
14248 test_restrict (ccp restrict text)
14250 // See if C++-style comments work.
14251 // Iterate through items via the restricted pointer.
14252 // Also check for declarations in for loops.
14253 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14258 // Check varargs and va_copy.
14260 test_varargs (const char *format, ...)
14263 va_start (args, format);
14265 va_copy (args_copy, args);
14275 case 's': // string
14276 str = va_arg (args_copy, const char *);
14279 number = va_arg (args_copy, int);
14282 fnumber = va_arg (args_copy, double);
14288 va_end (args_copy);
14297 _Bool success = false;
14300 if (test_restrict ("String literal") == 0)
14302 char *restrict newvar = "Another string";
14305 test_varargs ("s, d' f .", "string", 65, 34.234);
14306 test_varargs_macros ();
14308 // Check flexible array members.
14309 struct incomplete_array *ia =
14310 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14312 for (int i = 0; i < ia->datasize; ++i)
14313 ia->data[i] = i * 1.234;
14315 // Check named initializers.
14316 struct named_init ni = {
14318 .name = L"Test wide string",
14319 .average = 543.34343,
14324 int dynamic_array[ni.number];
14325 dynamic_array[ni.number - 1] = 543;
14327 // work around unused variable warnings
14328 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14329 || dynamic_array[ni.number - 1] != 543);
14335 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14337 CC="$ac_save_CC $ac_arg"
14338 if ac_fn_c_try_compile "$LINENO"; then :
14339 ac_cv_prog_cc_c99=$ac_arg
14341 rm -f core conftest.err conftest.$ac_objext
14342 test "x$ac_cv_prog_cc_c99" != "xno" && break
14344 rm -f conftest.$ac_ext
14349 case "x$ac_cv_prog_cc_c99" in
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14352 $as_echo "none needed" >&6; } ;;
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14355 $as_echo "unsupported" >&6; } ;;
14357 CC="$CC $ac_cv_prog_cc_c99"
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14359 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14361 if test "x$ac_cv_prog_cc_c99" != xno; then :
14368 ac_cpp='$CXXCPP $CPPFLAGS'
14369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14372 if test -z "$CXX"; then
14373 if test -n "$CCC"; then
14376 if test -n "$ac_tool_prefix"; then
14377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14382 $as_echo_n "checking for $ac_word... " >&6; }
14383 if ${ac_cv_prog_CXX+:} false; then :
14384 $as_echo_n "(cached) " >&6
14386 if test -n "$CXX"; then
14387 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14390 for as_dir in $PATH
14393 test -z "$as_dir" && as_dir=.
14394 for ac_exec_ext in '' $ac_executable_extensions; do
14395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14396 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14406 CXX=$ac_cv_prog_CXX
14407 if test -n "$CXX"; then
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14409 $as_echo "$CXX" >&6; }
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14412 $as_echo "no" >&6; }
14416 test -n "$CXX" && break
14419 if test -z "$CXX"; then
14421 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14423 # Extract the first word of "$ac_prog", so it can be a program name with args.
14424 set dummy $ac_prog; ac_word=$2
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14426 $as_echo_n "checking for $ac_word... " >&6; }
14427 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14428 $as_echo_n "(cached) " >&6
14430 if test -n "$ac_ct_CXX"; then
14431 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14434 for as_dir in $PATH
14437 test -z "$as_dir" && as_dir=.
14438 for ac_exec_ext in '' $ac_executable_extensions; do
14439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14440 ac_cv_prog_ac_ct_CXX="$ac_prog"
14441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14450 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14451 if test -n "$ac_ct_CXX"; then
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14453 $as_echo "$ac_ct_CXX" >&6; }
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14456 $as_echo "no" >&6; }
14460 test -n "$ac_ct_CXX" && break
14463 if test "x$ac_ct_CXX" = x; then
14466 case $cross_compiling:$ac_tool_warned in
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14470 ac_tool_warned=yes ;;
14478 # Provide some information about the compiler.
14479 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14482 for ac_option in --version -v -V -qversion; do
14483 { { ac_try="$ac_compiler $ac_option >&5"
14484 case "(($ac_try" in
14485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486 *) ac_try_echo=$ac_try;;
14488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14489 $as_echo "$ac_try_echo"; } >&5
14490 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14492 if test -s conftest.err; then
14494 ... rest of stderr output deleted ...
14495 10q' conftest.err >conftest.er1
14496 cat conftest.er1 >&5
14498 rm -f conftest.er1 conftest.err
14499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14500 test $ac_status = 0; }
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14504 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14505 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14506 $as_echo_n "(cached) " >&6
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14522 if ac_fn_cxx_try_compile "$LINENO"; then :
14523 ac_compiler_gnu=yes
14527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14528 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14532 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14533 if test $ac_compiler_gnu = yes; then
14538 ac_test_CXXFLAGS=${CXXFLAGS+set}
14539 ac_save_CXXFLAGS=$CXXFLAGS
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14541 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14542 if ${ac_cv_prog_cxx_g+:} false; then :
14543 $as_echo_n "(cached) " >&6
14545 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14546 ac_cxx_werror_flag=yes
14547 ac_cv_prog_cxx_g=no
14549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14560 if ac_fn_cxx_try_compile "$LINENO"; then :
14561 ac_cv_prog_cxx_g=yes
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14575 if ac_fn_cxx_try_compile "$LINENO"; then :
14578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14591 if ac_fn_cxx_try_compile "$LINENO"; then :
14592 ac_cv_prog_cxx_g=yes
14594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14602 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14603 if test "$ac_test_CXXFLAGS" = set; then
14604 CXXFLAGS=$ac_save_CXXFLAGS
14605 elif test $ac_cv_prog_cxx_g = yes; then
14606 if test "$GXX" = yes; then
14612 if test "$GXX" = yes; then
14619 ac_cpp='$CPP $CPPFLAGS'
14620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14624 depcc="$CXX" am_compiler_list=
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14627 $as_echo_n "checking dependency style of $depcc... " >&6; }
14628 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14629 $as_echo_n "(cached) " >&6
14631 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14632 # We make a subdir and do the tests there. Otherwise we can end up
14633 # making bogus files that we don't know about and never remove. For
14634 # instance it was reported that on HP-UX the gcc test will end up
14635 # making a dummy file named 'D' -- because '-MD' means "put the output
14637 rm -rf conftest.dir
14639 # Copy depcomp to subdir because otherwise we won't find it if we're
14640 # using a relative directory.
14641 cp "$am_depcomp" conftest.dir
14643 # We will build objects and dependencies in a subdirectory because
14644 # it helps to detect inapplicable dependency modes. For instance
14645 # both Tru64's cc and ICC support -MD to output dependencies as a
14646 # side effect of compilation, but ICC will put the dependencies in
14647 # the current directory while Tru64 will put them in the object
14651 am_cv_CXX_dependencies_compiler_type=none
14652 if test "$am_compiler_list" = ""; then
14653 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14655 am__universal=false
14656 case " $depcc " in #(
14657 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14660 for depmode in $am_compiler_list; do
14661 # Setup a source with many dependencies, because some compilers
14662 # like to wrap large dependency lists on column 80 (with \), and
14663 # we should not choose a depcomp mode which is confused by this.
14665 # We need to recreate these files for each test, as the compiler may
14666 # overwrite some of them when testing with obscure command lines.
14667 # This happens at least with the AIX C compiler.
14669 for i in 1 2 3 4 5 6; do
14670 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14671 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14672 # Solaris 10 /bin/sh.
14673 echo '/* dummy */' > sub/conftst$i.h
14675 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14677 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14678 # mode. It turns out that the SunPro C++ compiler does not properly
14679 # handle '-M -o', and we need to detect this. Also, some Intel
14680 # versions had trouble with output in subdirs.
14681 am__obj=sub/conftest.${OBJEXT-o}
14682 am__minus_obj="-o $am__obj"
14685 # This depmode causes a compiler race in universal mode.
14686 test "$am__universal" = false || continue
14689 # After this tag, mechanisms are not by side-effect, so they'll
14690 # only be used when explicitly requested.
14691 if test "x$enable_dependency_tracking" = xyes; then
14697 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14698 # This compiler won't grok '-c -o', but also, the minuso test has
14699 # not run yet. These depmodes are late enough in the game, and
14700 # so weak that their functioning should not be impacted.
14701 am__obj=conftest.${OBJEXT-o}
14706 if depmode=$depmode \
14707 source=sub/conftest.c object=$am__obj \
14708 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14709 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14710 >/dev/null 2>conftest.err &&
14711 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14712 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14713 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14714 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14715 # icc doesn't choke on unknown options, it will just issue warnings
14716 # or remarks (even with -Werror). So we grep stderr for any message
14717 # that says an option was ignored or not supported.
14718 # When given -MP, icc 7.0 and 7.1 complain thusly:
14719 # icc: Command line warning: ignoring option '-M'; no argument required
14720 # The diagnosis changed in icc 8.0:
14721 # icc: Command line remark: option '-MP' not supported
14722 if (grep 'ignoring option' conftest.err ||
14723 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14724 am_cv_CXX_dependencies_compiler_type=$depmode
14731 rm -rf conftest.dir
14733 am_cv_CXX_dependencies_compiler_type=none
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14738 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14739 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14742 test "x$enable_dependency_tracking" != xno \
14743 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14744 am__fastdepCXX_TRUE=
14745 am__fastdepCXX_FALSE='#'
14747 am__fastdepCXX_TRUE='#'
14748 am__fastdepCXX_FALSE=
14754 func_stripname_cnf ()
14757 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14758 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14760 } # func_stripname_cnf
14762 if test -n "$CXX" && ( test no != "$CXX" &&
14763 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14764 (test g++ != "$CXX"))); then
14766 ac_cpp='$CXXCPP $CPPFLAGS'
14767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14771 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14772 if test -z "$CXXCPP"; then
14773 if ${ac_cv_prog_CXXCPP+:} false; then :
14774 $as_echo_n "(cached) " >&6
14776 # Double quotes because CXXCPP needs to be expanded
14777 for CXXCPP in "$CXX -E" "/lib/cpp"
14779 ac_preproc_ok=false
14780 for ac_cxx_preproc_warn_flag in '' yes
14782 # Use a header file that comes with gcc, so configuring glibc
14783 # with a fresh cross-compiler works.
14784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14785 # <limits.h> exists even on freestanding compilers.
14786 # On the NeXT, cc -E runs the code through the compiler's parser,
14787 # not just through cpp. "Syntax error" is here to catch this case.
14788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h. */
14791 # include <limits.h>
14793 # include <assert.h>
14797 if ac_fn_cxx_try_cpp "$LINENO"; then :
14800 # Broken: fails on valid input.
14803 rm -f conftest.err conftest.i conftest.$ac_ext
14805 # OK, works on sane cases. Now check whether nonexistent headers
14806 # can be detected and how.
14807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808 /* end confdefs.h. */
14809 #include <ac_nonexistent.h>
14811 if ac_fn_cxx_try_cpp "$LINENO"; then :
14812 # Broken: success on invalid input.
14815 # Passes both tests.
14819 rm -f conftest.err conftest.i conftest.$ac_ext
14822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14823 rm -f conftest.i conftest.err conftest.$ac_ext
14824 if $ac_preproc_ok; then :
14829 ac_cv_prog_CXXCPP=$CXXCPP
14832 CXXCPP=$ac_cv_prog_CXXCPP
14834 ac_cv_prog_CXXCPP=$CXXCPP
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14837 $as_echo "$CXXCPP" >&6; }
14838 ac_preproc_ok=false
14839 for ac_cxx_preproc_warn_flag in '' yes
14841 # Use a header file that comes with gcc, so configuring glibc
14842 # with a fresh cross-compiler works.
14843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14844 # <limits.h> exists even on freestanding compilers.
14845 # On the NeXT, cc -E runs the code through the compiler's parser,
14846 # not just through cpp. "Syntax error" is here to catch this case.
14847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h. */
14850 # include <limits.h>
14852 # include <assert.h>
14856 if ac_fn_cxx_try_cpp "$LINENO"; then :
14859 # Broken: fails on valid input.
14862 rm -f conftest.err conftest.i conftest.$ac_ext
14864 # OK, works on sane cases. Now check whether nonexistent headers
14865 # can be detected and how.
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14868 #include <ac_nonexistent.h>
14870 if ac_fn_cxx_try_cpp "$LINENO"; then :
14871 # Broken: success on invalid input.
14874 # Passes both tests.
14878 rm -f conftest.err conftest.i conftest.$ac_ext
14881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14882 rm -f conftest.i conftest.err conftest.$ac_ext
14883 if $ac_preproc_ok; then :
14886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14888 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14889 See \`config.log' for more details" "$LINENO" 5; }
14893 ac_cpp='$CPP $CPPFLAGS'
14894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14899 _lt_caught_CXX_error=yes
14903 ac_cpp='$CXXCPP $CPPFLAGS'
14904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14908 archive_cmds_need_lc_CXX=no
14909 allow_undefined_flag_CXX=
14910 always_export_symbols_CXX=no
14911 archive_expsym_cmds_CXX=
14912 compiler_needs_object_CXX=no
14913 export_dynamic_flag_spec_CXX=
14914 hardcode_direct_CXX=no
14915 hardcode_direct_absolute_CXX=no
14916 hardcode_libdir_flag_spec_CXX=
14917 hardcode_libdir_separator_CXX=
14918 hardcode_minus_L_CXX=no
14919 hardcode_shlibpath_var_CXX=unsupported
14920 hardcode_automatic_CXX=no
14921 inherit_rpath_CXX=no
14923 module_expsym_cmds_CXX=
14924 link_all_deplibs_CXX=unknown
14925 old_archive_cmds_CXX=$old_archive_cmds
14926 reload_flag_CXX=$reload_flag
14927 reload_cmds_CXX=$reload_cmds
14928 no_undefined_flag_CXX=
14929 whole_archive_flag_spec_CXX=
14930 enable_shared_with_static_runtimes_CXX=no
14932 # Source file extension for C++ test sources.
14935 # Object file extension for compiled C++ test sources.
14939 # No sense in running all these tests if we already determined that
14940 # the CXX compiler isn't working. Some variables (like enable_shared)
14941 # are currently assumed to apply to all compilers on this platform,
14942 # and will be corrupted by setting them based on a non-working compiler.
14943 if test yes != "$_lt_caught_CXX_error"; then
14944 # Code to be used in simple compile tests
14945 lt_simple_compile_test_code="int some_variable = 0;"
14947 # Code to be used in simple link tests
14948 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14950 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14957 # If no C compiler was specified, use CC.
14960 # If no C compiler flags were specified, use CFLAGS.
14961 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14963 # Allow CC to be a program name with arguments.
14967 # save warnings/boilerplate of simple test code
14968 ac_outfile=conftest.$ac_objext
14969 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14970 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14971 _lt_compiler_boilerplate=`cat conftest.err`
14974 ac_outfile=conftest.$ac_objext
14975 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14976 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14977 _lt_linker_boilerplate=`cat conftest.err`
14981 # Allow CC to be a program name with arguments.
14983 lt_save_CFLAGS=$CFLAGS
14987 lt_save_with_gnu_ld=$with_gnu_ld
14988 lt_save_path_LD=$lt_cv_path_LD
14989 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14990 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14992 $as_unset lt_cv_prog_gnu_ld
14994 if test -n "${lt_cv_path_LDCXX+set}"; then
14995 lt_cv_path_LD=$lt_cv_path_LDCXX
14997 $as_unset lt_cv_path_LD
14999 test -z "${LDCXX+set}" || LD=$LDCXX
15004 func_cc_basename $compiler
15005 cc_basename=$func_cc_basename_result
15008 if test -n "$compiler"; then
15009 # We don't want -fno-exception when compiling C++ code, so set the
15010 # no_builtin_flag separately
15011 if test yes = "$GXX"; then
15012 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15014 lt_prog_compiler_no_builtin_flag_CXX=
15017 if test yes = "$GXX"; then
15018 # Set up default GNU C++ configuration
15022 # Check whether --with-gnu-ld was given.
15023 if test "${with_gnu_ld+set}" = set; then :
15024 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15030 if test yes = "$GCC"; then
15031 # Check if gcc -print-prog-name=ld gives a path.
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15033 $as_echo_n "checking for ld used by $CC... " >&6; }
15036 # gcc leaves a trailing carriage return, which upsets mingw
15037 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15039 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15042 # Accept absolute paths.
15044 re_direlt='/[^/][^/]*/\.\./'
15045 # Canonicalize the pathname of ld
15046 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15047 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15048 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15050 test -z "$LD" && LD=$ac_prog
15053 # If it fails, then pretend we aren't using GCC.
15057 # If it is relative, then search for the first ld in PATH.
15058 with_gnu_ld=unknown
15061 elif test yes = "$with_gnu_ld"; then
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15063 $as_echo_n "checking for GNU ld... " >&6; }
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15066 $as_echo_n "checking for non-GNU ld... " >&6; }
15068 if ${lt_cv_path_LD+:} false; then :
15069 $as_echo_n "(cached) " >&6
15071 if test -z "$LD"; then
15072 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15073 for ac_dir in $PATH; do
15075 test -z "$ac_dir" && ac_dir=.
15076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15077 lt_cv_path_LD=$ac_dir/$ac_prog
15078 # Check to see if the program is GNU ld. I'd rather use --version,
15079 # but apparently some variants of GNU ld only accept -v.
15080 # Break only if it was the GNU/non-GNU ld that we prefer.
15081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15082 *GNU* | *'with BFD'*)
15083 test no != "$with_gnu_ld" && break
15086 test yes != "$with_gnu_ld" && break
15093 lt_cv_path_LD=$LD # Let the user override the test with a path.
15098 if test -n "$LD"; then
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15100 $as_echo "$LD" >&6; }
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15103 $as_echo "no" >&6; }
15105 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15107 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15108 if ${lt_cv_prog_gnu_ld+:} false; then :
15109 $as_echo_n "(cached) " >&6
15111 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15112 case `$LD -v 2>&1 </dev/null` in
15113 *GNU* | *'with BFD'*)
15114 lt_cv_prog_gnu_ld=yes
15117 lt_cv_prog_gnu_ld=no
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15122 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15123 with_gnu_ld=$lt_cv_prog_gnu_ld
15131 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15132 # archiving commands below assume that GNU ld is being used.
15133 if test yes = "$with_gnu_ld"; then
15134 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15135 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'
15137 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15138 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15140 # If archive_cmds runs LD, not CC, wlarc should be empty
15141 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15142 # investigate it a little bit more. (MM)
15145 # ancient GNU ld didn't support --whole-archive et. al.
15146 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15147 $GREP 'no-whole-archive' > /dev/null; then
15148 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15150 whole_archive_flag_spec_CXX=
15156 # A generic and very simple default shared library creation
15157 # command for GNU C++ for the case where it uses the native
15158 # linker, instead of GNU ld. If possible, this setting should
15159 # overridden to take advantage of the native linker features on
15160 # the platform it is being used on.
15161 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15164 # Commands to make compiler produce verbose output that lists
15165 # what "hidden" libraries, object files and flags are used when
15166 # linking a shared library.
15167 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15175 # PORTME: fill in a description of your system's C++ link characteristics
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15177 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15181 # FIXME: insert proper C++ library support
15185 if test ia64 = "$host_cpu"; then
15186 # On IA64, the linker does run time linking by default, so we don't
15187 # have to do anything special.
15188 aix_use_runtimelinking=no
15189 exp_sym_flag='-Bexport'
15192 aix_use_runtimelinking=no
15194 # Test if we are trying to use run time linking or normal
15195 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15196 # have runtime linking enabled, and use it for executables.
15197 # For shared libraries, we enable/disable runtime linking
15198 # depending on the kind of the shared library created -
15199 # when "with_aix_soname,aix_use_runtimelinking" is:
15200 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15201 # "aix,yes" lib.so shared, rtl:yes, for executables
15202 # lib.a static archive
15203 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15204 # lib.a(lib.so.V) shared, rtl:no, for executables
15205 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15206 # lib.a(lib.so.V) shared, rtl:no
15207 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15208 # lib.a static archive
15209 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15210 for ld_flag in $LDFLAGS; do
15213 aix_use_runtimelinking=yes
15218 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15219 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15220 # so we don't have lib.a shared libs to link our executables.
15221 # We have to force runtime linking in this case.
15222 aix_use_runtimelinking=yes
15223 LDFLAGS="$LDFLAGS -Wl,-brtl"
15228 exp_sym_flag='-bexport'
15229 no_entry_flag='-bnoentry'
15232 # When large executables or shared objects are built, AIX ld can
15233 # have problems creating the table of contents. If linking a library
15234 # or program results in "error TOC overflow" add -mminimal-toc to
15235 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15236 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15238 archive_cmds_CXX=''
15239 hardcode_direct_CXX=yes
15240 hardcode_direct_absolute_CXX=yes
15241 hardcode_libdir_separator_CXX=':'
15242 link_all_deplibs_CXX=yes
15243 file_list_spec_CXX='$wl-f,'
15244 case $with_aix_soname,$aix_use_runtimelinking in
15245 aix,*) ;; # no import file
15246 svr4,* | *,yes) # use import file
15247 # The Import File defines what to hardcode.
15248 hardcode_direct_CXX=no
15249 hardcode_direct_absolute_CXX=no
15253 if test yes = "$GXX"; then
15254 case $host_os in aix4.[012]|aix4.[012].*)
15255 # We only want to do this on AIX 4.2 and lower, the check
15256 # below for broken collect2 doesn't work under 4.3+
15257 collect2name=`$CC -print-prog-name=collect2`
15258 if test -f "$collect2name" &&
15259 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15261 # We have reworked collect2
15264 # We have old collect2
15265 hardcode_direct_CXX=unsupported
15266 # It fails to find uninstalled libraries when the uninstalled
15267 # path is not listed in the libpath. Setting hardcode_minus_L
15268 # to unsupported forces relinking
15269 hardcode_minus_L_CXX=yes
15270 hardcode_libdir_flag_spec_CXX='-L$libdir'
15271 hardcode_libdir_separator_CXX=
15274 shared_flag='-shared'
15275 if test yes = "$aix_use_runtimelinking"; then
15276 shared_flag=$shared_flag' $wl-G'
15278 # Need to ensure runtime linking is disabled for the traditional
15279 # shared library, or the linker may eventually find shared libraries
15280 # /with/ Import File - we do not want to mix them.
15281 shared_flag_aix='-shared'
15282 shared_flag_svr4='-shared $wl-G'
15285 if test ia64 = "$host_cpu"; then
15286 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15287 # chokes on -Wl,-G. The following line is correct:
15290 if test yes = "$aix_use_runtimelinking"; then
15291 shared_flag='$wl-G'
15293 shared_flag='$wl-bM:SRE'
15295 shared_flag_aix='$wl-bM:SRE'
15296 shared_flag_svr4='$wl-G'
15300 export_dynamic_flag_spec_CXX='$wl-bexpall'
15301 # It seems that -bexpall does not export symbols beginning with
15302 # underscore (_), so it is better to generate a list of symbols to
15304 always_export_symbols_CXX=yes
15305 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15306 # Warning - without using the other runtime loading flags (-brtl),
15307 # -berok will link without error, but may produce a broken library.
15308 # The "-G" linker flag allows undefined symbols.
15309 no_undefined_flag_CXX='-bernotok'
15310 # Determine the default libpath from the value encoded in an empty
15312 if test set = "${lt_cv_aix_libpath+set}"; then
15313 aix_libpath=$lt_cv_aix_libpath
15315 if ${lt_cv_aix_libpath__CXX+:} false; then :
15316 $as_echo_n "(cached) " >&6
15318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15319 /* end confdefs.h. */
15329 if ac_fn_cxx_try_link "$LINENO"; then :
15331 lt_aix_libpath_sed='
15332 /Import File Strings/,/^$/ {
15334 s/^0 *\([^ ]*\) *$/\1/
15338 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15339 # Check for a 64-bit object if we didn't find anything.
15340 if test -z "$lt_cv_aix_libpath__CXX"; then
15341 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15344 rm -f core conftest.err conftest.$ac_objext \
15345 conftest$ac_exeext conftest.$ac_ext
15346 if test -z "$lt_cv_aix_libpath__CXX"; then
15347 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15352 aix_libpath=$lt_cv_aix_libpath__CXX
15355 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15357 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
15359 if test ia64 = "$host_cpu"; then
15360 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15361 allow_undefined_flag_CXX="-z nodefs"
15362 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"
15364 # Determine the default libpath from the value encoded in an
15365 # empty executable.
15366 if test set = "${lt_cv_aix_libpath+set}"; then
15367 aix_libpath=$lt_cv_aix_libpath
15369 if ${lt_cv_aix_libpath__CXX+:} false; then :
15370 $as_echo_n "(cached) " >&6
15372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373 /* end confdefs.h. */
15383 if ac_fn_cxx_try_link "$LINENO"; then :
15385 lt_aix_libpath_sed='
15386 /Import File Strings/,/^$/ {
15388 s/^0 *\([^ ]*\) *$/\1/
15392 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15393 # Check for a 64-bit object if we didn't find anything.
15394 if test -z "$lt_cv_aix_libpath__CXX"; then
15395 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15398 rm -f core conftest.err conftest.$ac_objext \
15399 conftest$ac_exeext conftest.$ac_ext
15400 if test -z "$lt_cv_aix_libpath__CXX"; then
15401 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15406 aix_libpath=$lt_cv_aix_libpath__CXX
15409 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15410 # Warning - without using the other run time loading flags,
15411 # -berok will link without error, but may produce a broken library.
15412 no_undefined_flag_CXX=' $wl-bernotok'
15413 allow_undefined_flag_CXX=' $wl-berok'
15414 if test yes = "$with_gnu_ld"; then
15415 # We only use this code for GNU lds that support --whole-archive.
15416 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15418 # Exported symbols can be pulled into shared objects from archives
15419 whole_archive_flag_spec_CXX='$convenience'
15421 archive_cmds_need_lc_CXX=yes
15422 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15423 # -brtl affects multiple linker settings, -berok does not and is overridden later
15424 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15425 if test svr4 != "$with_aix_soname"; then
15426 # This is similar to how AIX traditionally builds its shared
15427 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15428 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'
15430 if test aix != "$with_aix_soname"; then
15431 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'
15433 # used by -dlpreopen to get the symbols
15434 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15436 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15442 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15443 allow_undefined_flag_CXX=unsupported
15444 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15445 # support --undefined. This deserves some investigation. FIXME
15446 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15453 case $cc_basename in
15455 # FIXME: insert proper C++ library support
15461 cygwin* | mingw* | pw32* | cegcc*)
15462 case $GXX,$cc_basename in
15463 ,cl* | no,cl* | ,icl* | no,icl*)
15464 # Native MSVC or ICC
15465 # hardcode_libdir_flag_spec is actually meaningless, as there is
15466 # no search path for DLLs.
15467 hardcode_libdir_flag_spec_CXX=' '
15468 allow_undefined_flag_CXX=unsupported
15469 always_export_symbols_CXX=yes
15470 file_list_spec_CXX='@'
15471 # Tell ltmain to make .lib files, not .a files.
15473 # Tell ltmain to make .dll files, not .so files.
15475 # FIXME: Setting linknames here is a bad hack.
15476 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
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";
15479 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15481 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15483 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15485 # The linker will not automatically build a static lib if we build a DLL.
15486 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15487 enable_shared_with_static_runtimes_CXX=yes
15489 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15490 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15491 lt_tool_outputfile="@TOOL_OUTPUT@"~
15492 case $lt_outputfile in
15495 lt_outputfile=$lt_outputfile.exe
15496 lt_tool_outputfile=$lt_tool_outputfile.exe
15499 func_to_tool_file "$lt_outputfile"~
15500 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15501 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15502 $RM "$lt_outputfile.manifest";
15507 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15508 # as there is no search path for DLLs.
15509 hardcode_libdir_flag_spec_CXX='-L$libdir'
15510 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15511 allow_undefined_flag_CXX=unsupported
15512 always_export_symbols_CXX=no
15513 enable_shared_with_static_runtimes_CXX=yes
15515 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15516 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'
15517 # If the export-symbols file already is a .def file, use it as
15518 # is; otherwise, prepend EXPORTS...
15519 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15520 cp $export_symbols $output_objdir/$soname.def;
15522 echo EXPORTS > $output_objdir/$soname.def;
15523 cat $export_symbols >> $output_objdir/$soname.def;
15525 $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'
15532 darwin* | rhapsody*)
15535 archive_cmds_need_lc_CXX=no
15536 hardcode_direct_CXX=no
15537 hardcode_automatic_CXX=yes
15538 hardcode_shlibpath_var_CXX=unsupported
15539 if test yes = "$lt_cv_ld_force_load"; then
15540 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\"`'
15543 whole_archive_flag_spec_CXX=''
15545 link_all_deplibs_CXX=yes
15546 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15547 case $cc_basename in
15548 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15549 *) _lt_dar_can_shared=$GCC ;;
15551 if test yes = "$_lt_dar_can_shared"; then
15552 output_verbose_link_cmd=func_echo_all
15553 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"
15554 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15555 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"
15556 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"
15557 if test yes != "$lt_cv_apple_cc_single_mod"; then
15558 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"
15559 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"
15569 hardcode_libdir_flag_spec_CXX='-L$libdir'
15570 hardcode_minus_L_CXX=yes
15571 allow_undefined_flag_CXX=unsupported
15573 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15574 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15575 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15576 $ECHO EXPORTS >> $output_objdir/$libname.def~
15577 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15578 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15579 emximp -o $lib $output_objdir/$libname.def'
15580 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15581 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15582 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15583 $ECHO EXPORTS >> $output_objdir/$libname.def~
15584 prefix_cmds="$SED"~
15585 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15586 prefix_cmds="$prefix_cmds -e 1d";
15588 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15589 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15590 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15591 emximp -o $lib $output_objdir/$libname.def'
15592 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15593 enable_shared_with_static_runtimes_CXX=yes
15594 file_list_spec_CXX='@'
15598 case $cc_basename in
15600 # FIXME: insert proper C++ library support
15604 # Green Hills C++ Compiler
15605 # FIXME: insert proper C++ library support
15609 # FIXME: insert proper C++ library support
15616 # C++ shared libraries reported to be fairly broken before
15622 archive_cmds_need_lc_CXX=no
15625 freebsd* | dragonfly*)
15626 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15632 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15633 link_all_deplibs_CXX=yes
15637 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15638 hardcode_libdir_separator_CXX=:
15639 export_dynamic_flag_spec_CXX='$wl-E'
15640 hardcode_direct_CXX=yes
15641 hardcode_minus_L_CXX=yes # Not in the search PATH,
15642 # but as the default
15643 # location of the library.
15645 case $cc_basename in
15647 # FIXME: insert proper C++ library support
15651 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'
15652 # Commands to make compiler produce verbose output that lists
15653 # what "hidden" libraries, object files and flags are used when
15654 # linking a shared library.
15656 # There doesn't appear to be a way to prevent this compiler from
15657 # explicitly linking system object files so we need to strip them
15658 # from the output so that they don't get included in the library
15660 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"'
15663 if test yes = "$GXX"; then
15664 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'
15666 # FIXME: insert proper C++ library support
15674 if test no = "$with_gnu_ld"; then
15675 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15676 hardcode_libdir_separator_CXX=:
15682 export_dynamic_flag_spec_CXX='$wl-E'
15688 hardcode_direct_CXX=no
15689 hardcode_shlibpath_var_CXX=no
15692 hardcode_direct_CXX=yes
15693 hardcode_direct_absolute_CXX=yes
15694 hardcode_minus_L_CXX=yes # Not in the search PATH,
15695 # but as the default
15696 # location of the library.
15700 case $cc_basename in
15702 # FIXME: insert proper C++ library support
15708 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15711 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15714 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15717 # Commands to make compiler produce verbose output that lists
15718 # what "hidden" libraries, object files and flags are used when
15719 # linking a shared library.
15721 # There doesn't appear to be a way to prevent this compiler from
15722 # explicitly linking system object files so we need to strip them
15723 # from the output so that they don't get included in the library
15725 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"'
15728 if test yes = "$GXX"; then
15729 if test no = "$with_gnu_ld"; then
15732 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15735 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15738 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'
15743 # FIXME: insert proper C++ library support
15751 hardcode_direct_CXX=no
15752 hardcode_shlibpath_var_CXX=no
15753 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15754 export_dynamic_flag_spec_CXX='$wl-E'
15755 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15756 # Instead, shared libraries are loaded at an image base (0x10000000 by
15757 # default) and relocated if they conflict, which is a slow very memory
15758 # consuming and fragmenting process. To avoid this, we pick a random,
15759 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15760 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15761 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'
15762 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'
15765 case $cc_basename in
15768 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'
15770 # Archives containing C++ object files must be created using
15771 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15772 # necessary to make sure instantiated templates are included
15774 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15777 if test yes = "$GXX"; then
15778 if test no = "$with_gnu_ld"; then
15779 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'
15781 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'
15784 link_all_deplibs_CXX=yes
15787 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15788 hardcode_libdir_separator_CXX=:
15789 inherit_rpath_CXX=yes
15792 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15793 case $cc_basename in
15795 # Kuck and Associates, Inc. (KAI) C++ Compiler
15797 # KCC will only create a shared library if the output file
15798 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15799 # to its proper name (with version) after linking.
15800 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'
15801 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'
15802 # Commands to make compiler produce verbose output that lists
15803 # what "hidden" libraries, object files and flags are used when
15804 # linking a shared library.
15806 # There doesn't appear to be a way to prevent this compiler from
15807 # explicitly linking system object files so we need to strip them
15808 # from the output so that they don't get included in the library
15810 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"'
15812 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15813 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15815 # Archives containing C++ object files must be created using
15816 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15817 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15822 # version 8.0 and above of icpc choke on multiply defined symbols
15823 # if we add $predep_objects and $postdep_objects, however 7.1 and
15824 # earlier do not add the objects themselves.
15825 case `$CC -V 2>&1` in
15827 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15828 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'
15830 *) # Version 8.0 or newer
15833 ia64*) tmp_idyn=' -i_dynamic';;
15835 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15836 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'
15839 archive_cmds_need_lc_CXX=no
15840 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15841 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15842 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15845 # Portland Group C++ compiler
15847 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15848 prelink_cmds_CXX='tpldir=Template.dir~
15850 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15851 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15852 old_archive_cmds_CXX='tpldir=Template.dir~
15854 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15855 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15857 archive_cmds_CXX='tpldir=Template.dir~
15859 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15860 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15861 archive_expsym_cmds_CXX='tpldir=Template.dir~
15863 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15864 $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'
15866 *) # Version 6 and above use weak symbols
15867 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15868 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'
15872 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15873 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15874 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'
15878 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15879 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'
15881 runpath_var=LD_RUN_PATH
15882 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15883 hardcode_libdir_separator_CXX=:
15885 # Commands to make compiler produce verbose output that lists
15886 # what "hidden" libraries, object files and flags are used when
15887 # linking a shared library.
15889 # There doesn't appear to be a way to prevent this compiler from
15890 # explicitly linking system object files so we need to strip them
15891 # from the output so that they don't get included in the library
15893 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'
15895 xl* | mpixl* | bgxl*)
15896 # IBM XL 8.0 on PPC, with GNU ld
15897 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15898 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15899 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15900 if test yes = "$supports_anon_versioning"; then
15901 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15902 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15903 echo "local: *; };" >> $output_objdir/$libname.ver~
15904 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15908 case `$CC -V 2>&1 | sed 5q` in
15911 no_undefined_flag_CXX=' -zdefs'
15912 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15913 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'
15914 hardcode_libdir_flag_spec_CXX='-R$libdir'
15915 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'
15916 compiler_needs_object_CXX=yes
15918 # Not sure whether something based on
15919 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15921 output_verbose_link_cmd='func_echo_all'
15923 # Archives containing C++ object files must be created using
15924 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15925 # necessary to make sure instantiated templates are included
15927 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15935 # FIXME: insert proper C++ library support
15940 # FIXME: insert proper C++ library support
15945 case $cc_basename in
15947 # FIXME: insert proper C++ library support
15951 # FIXME: insert proper C++ library support
15958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15959 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15961 hardcode_libdir_flag_spec_CXX='-R$libdir'
15962 hardcode_direct_CXX=yes
15963 hardcode_shlibpath_var_CXX=no
15965 # Workaround some broken pre-1.5 toolchains
15966 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15973 openbsd* | bitrig*)
15974 if test -f /usr/libexec/ld.so; then
15975 hardcode_direct_CXX=yes
15976 hardcode_shlibpath_var_CXX=no
15977 hardcode_direct_absolute_CXX=yes
15978 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15979 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15981 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15982 export_dynamic_flag_spec_CXX='$wl-E'
15983 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15985 output_verbose_link_cmd=func_echo_all
15991 osf3* | osf4* | osf5*)
15992 case $cc_basename in
15994 # Kuck and Associates, Inc. (KAI) C++ Compiler
15996 # KCC will only create a shared library if the output file
15997 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15998 # to its proper name (with version) after linking.
15999 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'
16001 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16002 hardcode_libdir_separator_CXX=:
16004 # Archives containing C++ object files must be created using
16005 # the KAI C++ compiler.
16007 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16008 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16012 # Rational C++ 2.4.1
16013 # FIXME: insert proper C++ library support
16019 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16020 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'
16021 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16024 allow_undefined_flag_CXX=' -expect_unresolved \*'
16025 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'
16026 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16027 echo "-hidden">> $lib.exp~
16028 $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~
16030 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16034 hardcode_libdir_separator_CXX=:
16036 # Commands to make compiler produce verbose output that lists
16037 # what "hidden" libraries, object files and flags are used when
16038 # linking a shared library.
16040 # There doesn't appear to be a way to prevent this compiler from
16041 # explicitly linking system object files so we need to strip them
16042 # from the output so that they don't get included in the library
16044 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"'
16047 if test yes,no = "$GXX,$with_gnu_ld"; then
16048 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16051 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'
16054 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'
16058 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16059 hardcode_libdir_separator_CXX=:
16061 # Commands to make compiler produce verbose output that lists
16062 # what "hidden" libraries, object files and flags are used when
16063 # linking a shared library.
16064 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16067 # FIXME: insert proper C++ library support
16075 # FIXME: insert proper C++ library support
16080 case $cc_basename in
16083 # FIXME: insert proper C++ library support
16088 # FIXME: insert proper C++ library support
16092 # FIXME: insert proper C++ library support
16099 case $cc_basename in
16101 # Sun C++ 4.2, 5.x and Centerline C++
16102 archive_cmds_need_lc_CXX=yes
16103 no_undefined_flag_CXX=' -zdefs'
16104 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16105 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16106 $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'
16108 hardcode_libdir_flag_spec_CXX='-R$libdir'
16109 hardcode_shlibpath_var_CXX=no
16111 solaris2.[0-5] | solaris2.[0-5].*) ;;
16113 # The compiler driver will combine and reorder linker options,
16114 # but understands '-z linker_flag'.
16115 # Supported since Solaris 2.6 (maybe 2.5.1?)
16116 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16119 link_all_deplibs_CXX=yes
16121 output_verbose_link_cmd='func_echo_all'
16123 # Archives containing C++ object files must be created using
16124 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16125 # necessary to make sure instantiated templates are included
16127 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16130 # Green Hills C++ Compiler
16131 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16133 # The C++ compiler must be used to create the archive.
16134 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16137 # GNU C++ compiler with Solaris linker
16138 if test yes,no = "$GXX,$with_gnu_ld"; then
16139 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16140 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16141 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16142 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16143 $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'
16145 # Commands to make compiler produce verbose output that lists
16146 # what "hidden" libraries, object files and flags are used when
16147 # linking a shared library.
16148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16150 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16152 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16153 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16154 $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'
16156 # Commands to make compiler produce verbose output that lists
16157 # what "hidden" libraries, object files and flags are used when
16158 # linking a shared library.
16159 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16162 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16164 solaris2.[0-5] | solaris2.[0-5].*) ;;
16166 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16174 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16175 no_undefined_flag_CXX='$wl-z,text'
16176 archive_cmds_need_lc_CXX=no
16177 hardcode_shlibpath_var_CXX=no
16178 runpath_var='LD_RUN_PATH'
16180 case $cc_basename in
16182 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16183 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16186 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16187 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16192 sysv5* | sco3.2v5* | sco5v6*)
16193 # Note: We CANNOT use -z defs as we might desire, because we do not
16194 # link with -lc, and that would cause any symbols used from libc to
16195 # always be unresolved, which means just about no library would
16196 # ever link correctly. If we're not using GNU ld we use -z text
16197 # though, which does catch some bad symbols but isn't as heavy-handed
16199 no_undefined_flag_CXX='$wl-z,text'
16200 allow_undefined_flag_CXX='$wl-z,nodefs'
16201 archive_cmds_need_lc_CXX=no
16202 hardcode_shlibpath_var_CXX=no
16203 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16204 hardcode_libdir_separator_CXX=':'
16205 link_all_deplibs_CXX=yes
16206 export_dynamic_flag_spec_CXX='$wl-Bexport'
16207 runpath_var='LD_RUN_PATH'
16209 case $cc_basename in
16211 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16212 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16213 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16214 '"$old_archive_cmds_CXX"
16215 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16216 '"$reload_cmds_CXX"
16219 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16220 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16226 case $cc_basename in
16228 # NonStop-UX NCC 3.20
16229 # FIXME: insert proper C++ library support
16233 # FIXME: insert proper C++ library support
16240 # FIXME: insert proper C++ library support
16245 # FIXME: insert proper C++ library support
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16251 $as_echo "$ld_shlibs_CXX" >&6; }
16252 test no = "$ld_shlibs_CXX" && can_build_shared=no
16258 ## There is no encapsulation within the following macros, do not change
16259 ## the running order or otherwise move them around unless you know exactly
16260 ## what you are doing...
16261 # Dependencies to place before and after the object being linked:
16262 predep_objects_CXX=
16263 postdep_objects_CXX=
16266 compiler_lib_search_path_CXX=
16268 cat > conftest.$ac_ext <<_LT_EOF
16272 Foo (void) { a = 0; }
16279 _lt_libdeps_save_CFLAGS=$CFLAGS
16280 case "$CC $CFLAGS " in #(
16281 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16282 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16283 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16287 (eval $ac_compile) 2>&5
16289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16290 test $ac_status = 0; }; then
16291 # Parse the compiler output and extract the necessary
16292 # objects, libraries and library flags.
16294 # Sentinel used to keep track of whether or not we are before
16295 # the conftest object file.
16296 pre_test_object_deps_done=no
16298 for p in `eval "$output_verbose_link_cmd"`; do
16302 # Some compilers place space between "-{L,R}" and the path.
16303 # Remove the space.
16304 if test x-L = "$p" ||
16305 test x-R = "$p"; then
16310 # Expand the sysroot to ease extracting the directories later.
16311 if test -z "$prev"; then
16313 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16314 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16315 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16319 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16321 if test no = "$pre_test_object_deps_done"; then
16324 # Internal compiler library paths should come after those
16325 # provided the user. The postdeps already come after the
16326 # user supplied libs so there is no need to process them.
16327 if test -z "$compiler_lib_search_path_CXX"; then
16328 compiler_lib_search_path_CXX=$prev$p
16330 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16333 # The "-l" case would never come before the object being
16334 # linked, so don't bother handling this case.
16337 if test -z "$postdeps_CXX"; then
16338 postdeps_CXX=$prev$p
16340 postdeps_CXX="${postdeps_CXX} $prev$p"
16346 *.lto.$objext) ;; # Ignore GCC LTO objects
16348 # This assumes that the test object file only shows up
16349 # once in the compiler output.
16350 if test "$p" = "conftest.$objext"; then
16351 pre_test_object_deps_done=yes
16355 if test no = "$pre_test_object_deps_done"; then
16356 if test -z "$predep_objects_CXX"; then
16357 predep_objects_CXX=$p
16359 predep_objects_CXX="$predep_objects_CXX $p"
16362 if test -z "$postdep_objects_CXX"; then
16363 postdep_objects_CXX=$p
16365 postdep_objects_CXX="$postdep_objects_CXX $p"
16370 *) ;; # Ignore the rest.
16378 echo "libtool.m4: error: problem compiling CXX test program"
16381 $RM -f confest.$objext
16382 CFLAGS=$_lt_libdeps_save_CFLAGS
16384 # PORTME: override above test on systems where it is broken
16387 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16388 # hack all around it, let's just trust "g++" to DTRT.
16389 predep_objects_CXX=
16390 postdep_objects_CXX=
16396 case " $postdeps_CXX " in
16397 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16399 compiler_lib_search_dirs_CXX=
16400 if test -n "${compiler_lib_search_path_CXX}"; then
16401 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16434 lt_prog_compiler_wl_CXX=
16435 lt_prog_compiler_pic_CXX=
16436 lt_prog_compiler_static_CXX=
16439 # C++ specific cases for pic, static, wl, etc.
16440 if test yes = "$GXX"; then
16441 lt_prog_compiler_wl_CXX='-Wl,'
16442 lt_prog_compiler_static_CXX='-static'
16446 # All AIX code is PIC.
16447 if test ia64 = "$host_cpu"; then
16448 # AIX 5 now supports IA64 processor
16449 lt_prog_compiler_static_CXX='-Bstatic'
16451 lt_prog_compiler_pic_CXX='-fPIC'
16457 # see comment about AmigaOS4 .so support
16458 lt_prog_compiler_pic_CXX='-fPIC'
16461 # FIXME: we need at least 68020 code to build shared libraries, but
16462 # adding the '-m68020' flag to GCC prevents building anything better,
16464 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16469 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16470 # PIC is the default for these OSes.
16472 mingw* | cygwin* | os2* | pw32* | cegcc*)
16473 # This hack is so that the source file can tell whether it is being
16474 # built for inclusion in a dll (and should export symbols for example).
16475 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16476 # (--disable-auto-import) libraries
16477 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16480 lt_prog_compiler_static_CXX='$wl-static'
16484 darwin* | rhapsody*)
16485 # PIC is the default on this platform
16486 # Common symbols not allowed in MH_DYLIB files
16487 lt_prog_compiler_pic_CXX='-fno-common'
16490 # DJGPP does not support shared libraries at all
16491 lt_prog_compiler_pic_CXX=
16494 # PIC is the default for Haiku.
16495 # The "-static" flag exists, but is broken.
16496 lt_prog_compiler_static_CXX=
16499 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16500 # Instead, we relocate shared libraries at runtime.
16503 if test -d /usr/nec; then
16504 lt_prog_compiler_pic_CXX=-Kconform_pic
16508 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16509 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16510 # sets the default TLS model and affects inlining.
16515 lt_prog_compiler_pic_CXX='-fPIC'
16520 # QNX uses GNU C++, but need to define -shared option too, otherwise
16521 # it will coredump.
16522 lt_prog_compiler_pic_CXX='-fPIC -shared'
16525 lt_prog_compiler_pic_CXX='-fPIC'
16531 # All AIX code is PIC.
16532 if test ia64 = "$host_cpu"; then
16533 # AIX 5 now supports IA64 processor
16534 lt_prog_compiler_static_CXX='-Bstatic'
16536 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16540 case $cc_basename in
16542 # Green Hills C++ Compiler
16543 # _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"
16547 mingw* | cygwin* | os2* | pw32* | cegcc*)
16548 # This hack is so that the source file can tell whether it is being
16549 # built for inclusion in a dll (and should export symbols for example).
16550 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16553 case $cc_basename in
16555 lt_prog_compiler_pic_CXX='-KPIC'
16558 # Green Hills C++ Compiler
16559 lt_prog_compiler_pic_CXX='-pic'
16565 freebsd* | dragonfly*)
16566 # FreeBSD uses GNU C++
16568 hpux9* | hpux10* | hpux11*)
16569 case $cc_basename in
16571 lt_prog_compiler_wl_CXX='-Wl,'
16572 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16573 if test ia64 != "$host_cpu"; then
16574 lt_prog_compiler_pic_CXX='+Z'
16578 lt_prog_compiler_wl_CXX='-Wl,'
16579 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16585 lt_prog_compiler_pic_CXX='+Z'
16594 # This is c89, which is MS Visual C++ (no shared libs)
16595 # Anyone wants to do a port?
16597 irix5* | irix6* | nonstopux*)
16598 case $cc_basename in
16600 lt_prog_compiler_wl_CXX='-Wl,'
16601 lt_prog_compiler_static_CXX='-non_shared'
16602 # CC pic flag -KPIC is the default.
16608 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16609 case $cc_basename in
16612 lt_prog_compiler_wl_CXX='--backend -Wl,'
16613 lt_prog_compiler_pic_CXX='-fPIC'
16616 # old Intel C++ for x86_64, which still supported -KPIC.
16617 lt_prog_compiler_wl_CXX='-Wl,'
16618 lt_prog_compiler_pic_CXX='-KPIC'
16619 lt_prog_compiler_static_CXX='-static'
16622 # Intel C++, used to be incompatible with GCC.
16623 # ICC 10 doesn't accept -KPIC any more.
16624 lt_prog_compiler_wl_CXX='-Wl,'
16625 lt_prog_compiler_pic_CXX='-fPIC'
16626 lt_prog_compiler_static_CXX='-static'
16629 # Portland Group C++ compiler
16630 lt_prog_compiler_wl_CXX='-Wl,'
16631 lt_prog_compiler_pic_CXX='-fpic'
16632 lt_prog_compiler_static_CXX='-Bstatic'
16636 # Make sure the PIC flag is empty. It appears that all Alpha
16637 # Linux and Compaq Tru64 Unix objects are PIC.
16638 lt_prog_compiler_pic_CXX=
16639 lt_prog_compiler_static_CXX='-non_shared'
16641 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16642 # IBM XL 8.0, 9.0 on PPC and BlueGene
16643 lt_prog_compiler_wl_CXX='-Wl,'
16644 lt_prog_compiler_pic_CXX='-qpic'
16645 lt_prog_compiler_static_CXX='-qstaticlink'
16648 case `$CC -V 2>&1 | sed 5q` in
16651 lt_prog_compiler_pic_CXX='-KPIC'
16652 lt_prog_compiler_static_CXX='-Bstatic'
16653 lt_prog_compiler_wl_CXX='-Qoption ld '
16664 case $cc_basename in
16666 lt_prog_compiler_pic_CXX='-W c,exportall'
16675 # QNX uses GNU C++, but need to define -shared option too, otherwise
16676 # it will coredump.
16677 lt_prog_compiler_pic_CXX='-fPIC -shared'
16679 osf3* | osf4* | osf5*)
16680 case $cc_basename in
16682 lt_prog_compiler_wl_CXX='--backend -Wl,'
16685 # Rational C++ 2.4.1
16686 lt_prog_compiler_pic_CXX='-pic'
16689 # Digital/Compaq C++
16690 lt_prog_compiler_wl_CXX='-Wl,'
16691 # Make sure the PIC flag is empty. It appears that all Alpha
16692 # Linux and Compaq Tru64 Unix objects are PIC.
16693 lt_prog_compiler_pic_CXX=
16694 lt_prog_compiler_static_CXX='-non_shared'
16703 case $cc_basename in
16705 # Sun C++ 4.2, 5.x and Centerline C++
16706 lt_prog_compiler_pic_CXX='-KPIC'
16707 lt_prog_compiler_static_CXX='-Bstatic'
16708 lt_prog_compiler_wl_CXX='-Qoption ld '
16711 # Green Hills C++ Compiler
16712 lt_prog_compiler_pic_CXX='-PIC'
16719 case $cc_basename in
16722 lt_prog_compiler_pic_CXX='-pic'
16723 lt_prog_compiler_static_CXX='-Bstatic'
16727 lt_prog_compiler_pic_CXX='-pic'
16733 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16734 case $cc_basename in
16736 lt_prog_compiler_wl_CXX='-Wl,'
16737 lt_prog_compiler_pic_CXX='-KPIC'
16738 lt_prog_compiler_static_CXX='-Bstatic'
16743 case $cc_basename in
16745 # NonStop-UX NCC 3.20
16746 lt_prog_compiler_pic_CXX='-KPIC'
16755 lt_prog_compiler_can_build_shared_CXX=no
16761 # For platforms that do not support PIC, -DPIC is meaningless:
16763 lt_prog_compiler_pic_CXX=
16766 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16771 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16772 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16773 $as_echo_n "(cached) " >&6
16775 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16778 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16779 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16782 # Check to make sure the PIC flag actually works.
16784 if test -n "$lt_prog_compiler_pic_CXX"; then
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16786 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16787 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16788 $as_echo_n "(cached) " >&6
16790 lt_cv_prog_compiler_pic_works_CXX=no
16791 ac_outfile=conftest.$ac_objext
16792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16793 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16794 # Insert the option either (1) after the last *FLAGS variable, or
16795 # (2) before a word containing "conftest.", or (3) at the end.
16796 # Note that $ac_compile itself does not contain backslashes and begins
16797 # with a dollar sign (not a hyphen), so the echo should work correctly.
16798 # The option is referenced via a variable to avoid confusing sed.
16799 lt_compile=`echo "$ac_compile" | $SED \
16800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16802 -e 's:$: $lt_compiler_flag:'`
16803 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16804 (eval "$lt_compile" 2>conftest.err)
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 if (exit $ac_status) && test -s "$ac_outfile"; then
16809 # The compiler can only warn and ignore the option if not recognized
16810 # So say no if there are warnings other than the usual output.
16811 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16813 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16814 lt_cv_prog_compiler_pic_works_CXX=yes
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16821 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16823 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16824 case $lt_prog_compiler_pic_CXX in
16826 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16829 lt_prog_compiler_pic_CXX=
16830 lt_prog_compiler_can_build_shared_CXX=no
16840 # Check to make sure the static flag actually works.
16842 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16844 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16845 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16846 $as_echo_n "(cached) " >&6
16848 lt_cv_prog_compiler_static_works_CXX=no
16849 save_LDFLAGS=$LDFLAGS
16850 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16851 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16852 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16853 # The linker can only warn and ignore the option if not recognized
16854 # So say no if there are warnings
16855 if test -s conftest.err; then
16856 # Append any errors to the config.log.
16857 cat conftest.err 1>&5
16858 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16860 if diff conftest.exp conftest.er2 >/dev/null; then
16861 lt_cv_prog_compiler_static_works_CXX=yes
16864 lt_cv_prog_compiler_static_works_CXX=yes
16868 LDFLAGS=$save_LDFLAGS
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16872 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16874 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16877 lt_prog_compiler_static_CXX=
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16884 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16885 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16886 $as_echo_n "(cached) " >&6
16888 lt_cv_prog_compiler_c_o_CXX=no
16889 $RM -r conftest 2>/dev/null
16893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16895 lt_compiler_flag="-o out/conftest2.$ac_objext"
16896 # Insert the option either (1) after the last *FLAGS variable, or
16897 # (2) before a word containing "conftest.", or (3) at the end.
16898 # Note that $ac_compile itself does not contain backslashes and begins
16899 # with a dollar sign (not a hyphen), so the echo should work correctly.
16900 lt_compile=`echo "$ac_compile" | $SED \
16901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16903 -e 's:$: $lt_compiler_flag:'`
16904 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16905 (eval "$lt_compile" 2>out/conftest.err)
16907 cat out/conftest.err >&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16911 # The compiler can only warn and ignore the option if not recognized
16912 # So say no if there are warnings
16913 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16914 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16915 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16916 lt_cv_prog_compiler_c_o_CXX=yes
16921 # SGI C++ compiler will create directory out/ii_files/ for
16922 # template instantiation
16923 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16924 $RM out/* && rmdir out
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16931 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16936 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16937 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16938 $as_echo_n "(cached) " >&6
16940 lt_cv_prog_compiler_c_o_CXX=no
16941 $RM -r conftest 2>/dev/null
16945 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16947 lt_compiler_flag="-o out/conftest2.$ac_objext"
16948 # Insert the option either (1) after the last *FLAGS variable, or
16949 # (2) before a word containing "conftest.", or (3) at the end.
16950 # Note that $ac_compile itself does not contain backslashes and begins
16951 # with a dollar sign (not a hyphen), so the echo should work correctly.
16952 lt_compile=`echo "$ac_compile" | $SED \
16953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16955 -e 's:$: $lt_compiler_flag:'`
16956 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16957 (eval "$lt_compile" 2>out/conftest.err)
16959 cat out/conftest.err >&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16963 # The compiler can only warn and ignore the option if not recognized
16964 # So say no if there are warnings
16965 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16966 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16967 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16968 lt_cv_prog_compiler_c_o_CXX=yes
16973 # SGI C++ compiler will create directory out/ii_files/ for
16974 # template instantiation
16975 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16976 $RM out/* && rmdir out
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16983 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16988 hard_links=nottested
16989 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16990 # do not overwrite the value of need_locks provided by the user
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16992 $as_echo_n "checking if we can lock with hard links... " >&6; }
16995 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16997 ln conftest.a conftest.b 2>&5 || hard_links=no
16998 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17000 $as_echo "$hard_links" >&6; }
17001 if test no = "$hard_links"; then
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17003 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17013 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17015 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17016 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17019 # If we're using GNU nm, then we don't want the "-C" option.
17020 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17021 # Without the "-l" option, or with the "-B" option, AIX nm treats
17022 # weak defined symbols like other global defined symbols, whereas
17023 # GNU nm marks them as "W".
17024 # While the 'weak' keyword is ignored in the Export File, we need
17025 # it in the Import File for the 'aix-soname' feature, so we have
17026 # to replace the "-B" option with "-P" for AIX nm.
17027 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17028 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'
17030 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 == "L") || (\$ 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'
17034 export_symbols_cmds_CXX=$ltdll_cmds
17036 cygwin* | mingw* | cegcc*)
17037 case $cc_basename in
17039 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17042 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'
17043 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17048 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17053 $as_echo "$ld_shlibs_CXX" >&6; }
17054 test no = "$ld_shlibs_CXX" && can_build_shared=no
17056 with_gnu_ld_CXX=$with_gnu_ld
17064 # Do we need to explicitly link libc?
17066 case "x$archive_cmds_need_lc_CXX" in
17068 # Assume -lc should be added
17069 archive_cmds_need_lc_CXX=yes
17071 if test yes,yes = "$GCC,$enable_shared"; then
17072 case $archive_cmds_CXX in
17074 # FIXME: we may have to deal with multi-command sequences.
17077 # Test whether the compiler implicitly links with -lc since on some
17078 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17079 # to ld, don't add -lc before -lgcc.
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17081 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17082 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17083 $as_echo_n "(cached) " >&6
17086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17089 (eval $ac_compile) 2>&5
17091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17092 test $ac_status = 0; } 2>conftest.err; then
17095 libobjs=conftest.$ac_objext
17097 wl=$lt_prog_compiler_wl_CXX
17098 pic_flag=$lt_prog_compiler_pic_CXX
17104 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17105 allow_undefined_flag_CXX=
17106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17107 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17110 test $ac_status = 0; }
17112 lt_cv_archive_cmds_need_lc_CXX=no
17114 lt_cv_archive_cmds_need_lc_CXX=yes
17116 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17118 cat conftest.err 1>&5
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17124 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17125 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17194 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17196 library_names_spec=
17197 libname_spec='lib$name'
17201 postuninstall_cmds=
17205 shlibpath_overrides_runpath=unknown
17207 dynamic_linker="$host_os ld.so"
17208 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17209 need_lib_prefix=unknown
17210 hardcode_into_libs=no
17212 # when you set need_version to no, make sure it does not cause -set_version
17213 # flags to be left without arguments
17214 need_version=unknown
17220 version_type=linux # correct to gnu/linux during the next big refactor
17221 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17222 shlibpath_var=LIBPATH
17224 # AIX 3 has no versioning support, so we append a major version to the name.
17225 soname_spec='$libname$release$shared_ext$major'
17229 version_type=linux # correct to gnu/linux during the next big refactor
17232 hardcode_into_libs=yes
17233 if test ia64 = "$host_cpu"; then
17234 # AIX 5 supports IA64
17235 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17236 shlibpath_var=LD_LIBRARY_PATH
17238 # With GCC up to 2.95.x, collect2 would create an import file
17239 # for dependence libraries. The import file would start with
17240 # the line '#! .'. This would cause the generated library to
17241 # depend on '.', always an invalid library. This was fixed in
17242 # development snapshots of GCC prior to 3.0.
17244 aix4 | aix4.[01] | aix4.[01].*)
17245 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17247 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17250 can_build_shared=no
17254 # Using Import Files as archive members, it is possible to support
17255 # filename-based versioning of shared library archives on AIX. While
17256 # this would work for both with and without runtime linking, it will
17257 # prevent static linking of such archives. So we do filename-based
17258 # shared library versioning with .so extension only, which is used
17259 # when both runtime linking and shared linking is enabled.
17260 # Unfortunately, runtime linking may impact performance, so we do
17261 # not want this to be the default eventually. Also, we use the
17262 # versioned .so libs for executables only if there is the -brtl
17263 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17264 # To allow for filename-based versioning support, we need to create
17265 # libNAME.so.V as an archive file, containing:
17266 # *) an Import File, referring to the versioned filename of the
17267 # archive as well as the shared archive member, telling the
17268 # bitwidth (32 or 64) of that shared object, and providing the
17269 # list of exported symbols of that shared object, eventually
17270 # decorated with the 'weak' keyword
17271 # *) the shared object with the F_LOADONLY flag set, to really avoid
17272 # it being seen by the linker.
17273 # At run time we better use the real file rather than another symlink,
17274 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17276 case $with_aix_soname,$aix_use_runtimelinking in
17277 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17278 # soname into executable. Probably we can add versioning support to
17279 # collect2, so additional links can be useful in future.
17280 aix,yes) # traditional libtool
17281 dynamic_linker='AIX unversionable lib.so'
17282 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17283 # instead of lib<name>.a to let people know that these are not
17284 # typical AIX shared libraries.
17285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17287 aix,no) # traditional AIX only
17288 dynamic_linker='AIX lib.a(lib.so.V)'
17289 # We preserve .a as extension for shared libraries through AIX4.2
17290 # and later when we are not doing run time linking.
17291 library_names_spec='$libname$release.a $libname.a'
17292 soname_spec='$libname$release$shared_ext$major'
17294 svr4,*) # full svr4 only
17295 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17296 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17297 # We do not specify a path in Import Files, so LIBPATH fires.
17298 shlibpath_overrides_runpath=yes
17300 *,yes) # both, prefer svr4
17301 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17302 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17303 # unpreferred sharedlib libNAME.a needs extra handling
17304 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"'
17305 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"'
17306 # We do not specify a path in Import Files, so LIBPATH fires.
17307 shlibpath_overrides_runpath=yes
17309 *,no) # both, prefer aix
17310 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17311 library_names_spec='$libname$release.a $libname.a'
17312 soname_spec='$libname$release$shared_ext$major'
17313 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17314 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)'
17315 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"'
17318 shlibpath_var=LIBPATH
17325 # Since July 2007 AmigaOS4 officially supports .so libraries.
17326 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17330 library_names_spec='$libname.ixlibrary $libname.a'
17331 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17332 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'
17338 library_names_spec='$libname$shared_ext'
17339 dynamic_linker="$host_os ld.so"
17340 shlibpath_var=LIBRARY_PATH
17344 version_type=linux # correct to gnu/linux during the next big refactor
17346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17347 soname_spec='$libname$release$shared_ext$major'
17348 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17349 shlibpath_var=LD_LIBRARY_PATH
17350 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17351 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17352 # the default ld.so.conf also contains /usr/contrib/lib and
17353 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17354 # libtool to hard-code these into programs
17357 cygwin* | mingw* | pw32* | cegcc*)
17358 version_type=windows
17363 case $GCC,$cc_basename in
17366 library_names_spec='$libname.dll.a'
17367 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17368 postinstall_cmds='base_file=`basename \$file`~
17369 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17370 dldir=$destdir/`dirname \$dlpath`~
17371 test -d \$dldir || mkdir -p \$dldir~
17372 $install_prog $dir/$dlname \$dldir/$dlname~
17373 chmod a+x \$dldir/$dlname~
17374 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17375 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17377 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17378 dlpath=$dir/\$dldll~
17380 shlibpath_overrides_runpath=yes
17384 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17385 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17389 # MinGW DLLs use traditional 'lib' prefix
17390 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17393 # pw32 DLLs use 'pw' prefix rather than 'lib'
17394 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17397 dynamic_linker='Win32 ld.exe'
17401 # Native MSVC or ICC
17402 libname_spec='$name'
17403 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17404 library_names_spec='$libname.dll.lib'
17408 sys_lib_search_path_spec=
17411 for lt_path in $LIB
17414 # Let DOS variable expansion print the short 8.3 style file name.
17415 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17416 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17419 # Convert to MSYS style.
17420 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17423 # Convert to unix form, then to dos form, then back to unix form
17424 # but this time dos style (no spaces!) so that the unix form looks
17425 # like /cygdrive/c/PROGRA~1:/cygdr...
17426 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17427 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17428 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17431 sys_lib_search_path_spec=$LIB
17432 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17433 # It is most probably a Windows format PATH.
17434 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17436 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17438 # FIXME: find the short name or the path components, as spaces are
17439 # common. (e.g. "Program Files" -> "PROGRA~1")
17443 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17444 postinstall_cmds='base_file=`basename \$file`~
17445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17446 dldir=$destdir/`dirname \$dlpath`~
17447 test -d \$dldir || mkdir -p \$dldir~
17448 $install_prog $dir/$dlname \$dldir/$dlname'
17449 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17450 dlpath=$dir/\$dldll~
17452 shlibpath_overrides_runpath=yes
17453 dynamic_linker='Win32 link.exe'
17457 # Assume MSVC and ICC wrapper
17458 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17459 dynamic_linker='Win32 ld.exe'
17462 # FIXME: first we should search . and the directory the executable is in
17466 darwin* | rhapsody*)
17467 dynamic_linker="$host_os dyld"
17468 version_type=darwin
17471 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17472 soname_spec='$libname$release$major$shared_ext'
17473 shlibpath_overrides_runpath=yes
17474 shlibpath_var=DYLD_LIBRARY_PATH
17475 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17477 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17481 version_type=linux # correct to gnu/linux during the next big refactor
17484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17485 soname_spec='$libname$release$shared_ext$major'
17486 shlibpath_var=LD_LIBRARY_PATH
17489 freebsd* | dragonfly*)
17490 # DragonFly does not have aout. When/if they implement a new
17491 # versioning mechanism, adjust this.
17492 if test -x /usr/bin/objformat; then
17493 objformat=`/usr/bin/objformat`
17496 freebsd[23].*) objformat=aout ;;
17497 *) objformat=elf ;;
17500 version_type=freebsd-$objformat
17501 case $version_type in
17503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17504 soname_spec='$libname$release$shared_ext$major'
17509 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17513 shlibpath_var=LD_LIBRARY_PATH
17516 shlibpath_overrides_runpath=yes
17518 freebsd3.[01]* | freebsdelf3.[01]*)
17519 shlibpath_overrides_runpath=yes
17520 hardcode_into_libs=yes
17522 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17523 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17524 shlibpath_overrides_runpath=no
17525 hardcode_into_libs=yes
17527 *) # from 4.6 on, and DragonFly
17528 shlibpath_overrides_runpath=yes
17529 hardcode_into_libs=yes
17535 version_type=linux # correct to gnu/linux during the next big refactor
17538 dynamic_linker="$host_os runtime_loader"
17539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17540 soname_spec='$libname$release$shared_ext$major'
17541 shlibpath_var=LIBRARY_PATH
17542 shlibpath_overrides_runpath=no
17543 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17544 hardcode_into_libs=yes
17547 hpux9* | hpux10* | hpux11*)
17548 # Give a soname corresponding to the major version so that dld.sl refuses to
17549 # link against other versions.
17556 hardcode_into_libs=yes
17557 dynamic_linker="$host_os dld.so"
17558 shlibpath_var=LD_LIBRARY_PATH
17559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test 32 = "$HPUX_IA64_MODE"; then
17563 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17564 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17566 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17567 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17572 hardcode_into_libs=yes
17573 dynamic_linker="$host_os dld.sl"
17574 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17577 soname_spec='$libname$release$shared_ext$major'
17578 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17583 dynamic_linker="$host_os dld.sl"
17584 shlibpath_var=SHLIB_PATH
17585 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17587 soname_spec='$libname$release$shared_ext$major'
17590 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17591 postinstall_cmds='chmod 555 $lib'
17592 # or fails outright, so override atomically:
17593 install_override_mode=555
17597 version_type=linux # correct to gnu/linux during the next big refactor
17600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17601 soname_spec='$libname$release$shared_ext$major'
17602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17603 shlibpath_var=LD_LIBRARY_PATH
17604 shlibpath_overrides_runpath=no
17605 hardcode_into_libs=yes
17608 irix5* | irix6* | nonstopux*)
17610 nonstopux*) version_type=nonstopux ;;
17612 if test yes = "$lt_cv_prog_gnu_ld"; then
17613 version_type=linux # correct to gnu/linux during the next big refactor
17620 soname_spec='$libname$release$shared_ext$major'
17621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17623 irix5* | nonstopux*)
17624 libsuff= shlibsuff=
17627 case $LD in # libtool.m4 will add one of these switches to LD
17628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17629 libsuff= shlibsuff= libmagic=32-bit;;
17630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17631 libsuff=32 shlibsuff=N32 libmagic=N32;;
17632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17633 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17634 *) libsuff= shlibsuff= libmagic=never-match;;
17638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17639 shlibpath_overrides_runpath=no
17640 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17641 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17642 hardcode_into_libs=yes
17645 # No shared lib support for Linux oldld, aout, or coff.
17646 linux*oldld* | linux*aout* | linux*coff*)
17651 version_type=none # Android doesn't support versioned libraries.
17654 library_names_spec='$libname$release$shared_ext'
17655 soname_spec='$libname$release$shared_ext'
17657 shlibpath_var=LD_LIBRARY_PATH
17658 shlibpath_overrides_runpath=yes
17660 # This implies no fast_install, which is unacceptable.
17661 # Some rework will be needed to allow for fast_install
17662 # before this can be enabled.
17663 hardcode_into_libs=yes
17665 dynamic_linker='Android linker'
17666 # Don't embed -rpath directories since the linker doesn't support them.
17667 hardcode_libdir_flag_spec_CXX='-L$libdir'
17670 # This must be glibc/ELF.
17671 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17672 version_type=linux # correct to gnu/linux during the next big refactor
17675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17676 soname_spec='$libname$release$shared_ext$major'
17677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17678 shlibpath_var=LD_LIBRARY_PATH
17679 shlibpath_overrides_runpath=no
17681 # Some binutils ld are patched to set DT_RUNPATH
17682 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17683 $as_echo_n "(cached) " >&6
17685 lt_cv_shlibpath_overrides_runpath=no
17686 save_LDFLAGS=$LDFLAGS
17687 save_libdir=$libdir
17688 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17689 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h. */
17701 if ac_fn_cxx_try_link "$LINENO"; then :
17702 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17703 lt_cv_shlibpath_overrides_runpath=yes
17706 rm -f core conftest.err conftest.$ac_objext \
17707 conftest$ac_exeext conftest.$ac_ext
17708 LDFLAGS=$save_LDFLAGS
17709 libdir=$save_libdir
17713 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17715 # This implies no fast_install, which is unacceptable.
17716 # Some rework will be needed to allow for fast_install
17717 # before this can be enabled.
17718 hardcode_into_libs=yes
17720 # Ideally, we could use ldconfig to report *all* directores which are
17721 # searched for libraries, however this is still not possible. Aside from not
17722 # being certain /sbin/ldconfig is available, command
17723 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17724 # even though it is searched at run-time. Try to do the best guess by
17725 # appending ld.so.conf contents (and includes) to the search path.
17726 if test -f /etc/ld.so.conf; then
17727 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' ' '`
17728 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17731 # We used to test for /lib/ld.so.1 and disable shared libraries on
17732 # powerpc, because MkLinux only supported shared libraries with the
17733 # GNU dynamic linker. Since this was broken with cross compilers,
17734 # most powerpc-linux boxes support dynamic linking these days and
17735 # people can always --disable-shared, the test was removed, and we
17736 # assume the GNU/Linux dynamic linker is in use.
17737 dynamic_linker='GNU/Linux ld.so'
17744 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17745 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17747 dynamic_linker='NetBSD (a.out) ld.so'
17749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17750 soname_spec='$libname$release$shared_ext$major'
17751 dynamic_linker='NetBSD ld.elf_so'
17753 shlibpath_var=LD_LIBRARY_PATH
17754 shlibpath_overrides_runpath=yes
17755 hardcode_into_libs=yes
17759 version_type=linux # correct to gnu/linux during the next big refactor
17760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17761 shlibpath_var=LD_LIBRARY_PATH
17762 shlibpath_overrides_runpath=yes
17769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17770 soname_spec='$libname$release$shared_ext$major'
17771 shlibpath_var=LD_LIBRARY_PATH
17772 shlibpath_overrides_runpath=no
17773 hardcode_into_libs=yes
17774 dynamic_linker='ldqnx.so'
17777 openbsd* | bitrig*)
17779 sys_lib_dlsearch_path_spec=/usr/lib
17781 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17786 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17788 shlibpath_var=LD_LIBRARY_PATH
17789 shlibpath_overrides_runpath=yes
17793 libname_spec='$name'
17794 version_type=windows
17798 # OS/2 can only load a DLL with a base name of 8 characters or less.
17799 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17800 v=$($ECHO $release$versuffix | tr -d .-);
17801 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17802 $ECHO $n$v`$shared_ext'
17803 library_names_spec='${libname}_dll.$libext'
17804 dynamic_linker='OS/2 ld.exe'
17805 shlibpath_var=BEGINLIBPATH
17806 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17808 postinstall_cmds='base_file=`basename \$file`~
17809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17810 dldir=$destdir/`dirname \$dlpath`~
17811 test -d \$dldir || mkdir -p \$dldir~
17812 $install_prog $dir/$dlname \$dldir/$dlname~
17813 chmod a+x \$dldir/$dlname~
17814 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17815 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17817 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17818 dlpath=$dir/\$dldll~
17822 osf3* | osf4* | osf5*)
17826 soname_spec='$libname$release$shared_ext$major'
17827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17828 shlibpath_var=LD_LIBRARY_PATH
17829 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17838 version_type=linux # correct to gnu/linux during the next big refactor
17841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17842 soname_spec='$libname$release$shared_ext$major'
17843 shlibpath_var=LD_LIBRARY_PATH
17844 shlibpath_overrides_runpath=yes
17845 hardcode_into_libs=yes
17846 # ldd complains unless libraries are executable
17847 postinstall_cmds='chmod +x $lib'
17852 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17853 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17854 shlibpath_var=LD_LIBRARY_PATH
17855 shlibpath_overrides_runpath=yes
17856 if test yes = "$with_gnu_ld"; then
17863 version_type=linux # correct to gnu/linux during the next big refactor
17864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17865 soname_spec='$libname$release$shared_ext$major'
17866 shlibpath_var=LD_LIBRARY_PATH
17867 case $host_vendor in
17869 shlibpath_overrides_runpath=no
17871 runpath_var=LD_RUN_PATH
17879 shlibpath_overrides_runpath=no
17880 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17886 if test -d /usr/nec; then
17887 version_type=linux # correct to gnu/linux during the next big refactor
17888 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17889 soname_spec='$libname$shared_ext.$major'
17890 shlibpath_var=LD_LIBRARY_PATH
17894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17899 soname_spec='$libname$release$shared_ext$major'
17900 shlibpath_var=LD_LIBRARY_PATH
17901 shlibpath_overrides_runpath=yes
17902 hardcode_into_libs=yes
17903 if test yes = "$with_gnu_ld"; then
17904 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17906 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17909 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17913 sys_lib_dlsearch_path_spec='/usr/lib'
17917 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17918 version_type=linux # correct to gnu/linux during the next big refactor
17921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17922 shlibpath_var=LD_LIBRARY_PATH
17923 shlibpath_overrides_runpath=no
17924 hardcode_into_libs=yes
17928 version_type=linux # correct to gnu/linux during the next big refactor
17929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17930 soname_spec='$libname$release$shared_ext$major'
17931 shlibpath_var=LD_LIBRARY_PATH
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17939 $as_echo "$dynamic_linker" >&6; }
17940 test no = "$dynamic_linker" && can_build_shared=no
17942 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17943 if test yes = "$GCC"; then
17944 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17947 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17948 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17951 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17952 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17955 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17956 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17958 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17959 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17961 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17962 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18004 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18005 hardcode_action_CXX=
18006 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18007 test -n "$runpath_var_CXX" ||
18008 test yes = "$hardcode_automatic_CXX"; then
18010 # We can hardcode non-existent directories.
18011 if test no != "$hardcode_direct_CXX" &&
18012 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18013 # have to relink, otherwise we might link with an installed library
18014 # when we should be linking with a yet-to-be-installed one
18015 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18016 test no != "$hardcode_minus_L_CXX"; then
18017 # Linking always hardcodes the temporary library directory.
18018 hardcode_action_CXX=relink
18020 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18021 hardcode_action_CXX=immediate
18024 # We cannot hardcode anything, or else we can only hardcode existing
18026 hardcode_action_CXX=unsupported
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18029 $as_echo "$hardcode_action_CXX" >&6; }
18031 if test relink = "$hardcode_action_CXX" ||
18032 test yes = "$inherit_rpath_CXX"; then
18033 # Fast installation is not supported
18034 enable_fast_install=no
18035 elif test yes = "$shlibpath_overrides_runpath" ||
18036 test no = "$enable_shared"; then
18037 # Fast installation is not necessary
18038 enable_fast_install=needless
18047 fi # test -n "$compiler"
18050 CFLAGS=$lt_save_CFLAGS
18054 with_gnu_ld=$lt_save_with_gnu_ld
18055 lt_cv_path_LDCXX=$lt_cv_path_LD
18056 lt_cv_path_LD=$lt_save_path_LD
18057 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18058 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18059 fi # test yes != "$_lt_caught_CXX_error"
18062 ac_cpp='$CPP $CPPFLAGS'
18063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18068 # Check whether --enable-largefile was given.
18069 if test "${enable_largefile+set}" = set; then :
18070 enableval=$enable_largefile;
18073 if test "$enable_largefile" != no; then
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18076 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18077 if ${ac_cv_sys_largefile_CC+:} false; then :
18078 $as_echo_n "(cached) " >&6
18080 ac_cv_sys_largefile_CC=no
18081 if test "$GCC" != yes; then
18084 # IRIX 6.2 and later do not support large files by default,
18085 # so use the C compiler's -n32 option if that helps.
18086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h. */
18088 #include <sys/types.h>
18089 /* Check that off_t can represent 2**63 - 1 correctly.
18090 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18091 since some C++ compilers masquerading as C compilers
18092 incorrectly reject 9223372036854775807. */
18093 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18094 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18095 && LARGE_OFF_T % 2147483647 == 1)
18105 if ac_fn_c_try_compile "$LINENO"; then :
18108 rm -f core conftest.err conftest.$ac_objext
18110 if ac_fn_c_try_compile "$LINENO"; then :
18111 ac_cv_sys_largefile_CC=' -n32'; break
18113 rm -f core conftest.err conftest.$ac_objext
18117 rm -f conftest.$ac_ext
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18121 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18122 if test "$ac_cv_sys_largefile_CC" != no; then
18123 CC=$CC$ac_cv_sys_largefile_CC
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18127 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18128 if ${ac_cv_sys_file_offset_bits+:} false; then :
18129 $as_echo_n "(cached) " >&6
18132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h. */
18134 #include <sys/types.h>
18135 /* Check that off_t can represent 2**63 - 1 correctly.
18136 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18137 since some C++ compilers masquerading as C compilers
18138 incorrectly reject 9223372036854775807. */
18139 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18140 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18141 && LARGE_OFF_T % 2147483647 == 1)
18151 if ac_fn_c_try_compile "$LINENO"; then :
18152 ac_cv_sys_file_offset_bits=no; break
18154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18156 /* end confdefs.h. */
18157 #define _FILE_OFFSET_BITS 64
18158 #include <sys/types.h>
18159 /* Check that off_t can represent 2**63 - 1 correctly.
18160 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18161 since some C++ compilers masquerading as C compilers
18162 incorrectly reject 9223372036854775807. */
18163 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18164 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18165 && LARGE_OFF_T % 2147483647 == 1)
18175 if ac_fn_c_try_compile "$LINENO"; then :
18176 ac_cv_sys_file_offset_bits=64; break
18178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18179 ac_cv_sys_file_offset_bits=unknown
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18184 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18185 case $ac_cv_sys_file_offset_bits in #(
18188 cat >>confdefs.h <<_ACEOF
18189 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18194 if test $ac_cv_sys_file_offset_bits = unknown; then
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18196 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18197 if ${ac_cv_sys_large_files+:} false; then :
18198 $as_echo_n "(cached) " >&6
18201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18202 /* end confdefs.h. */
18203 #include <sys/types.h>
18204 /* Check that off_t can represent 2**63 - 1 correctly.
18205 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18206 since some C++ compilers masquerading as C compilers
18207 incorrectly reject 9223372036854775807. */
18208 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18209 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18210 && LARGE_OFF_T % 2147483647 == 1)
18220 if ac_fn_c_try_compile "$LINENO"; then :
18221 ac_cv_sys_large_files=no; break
18223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18225 /* end confdefs.h. */
18226 #define _LARGE_FILES 1
18227 #include <sys/types.h>
18228 /* Check that off_t can represent 2**63 - 1 correctly.
18229 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18230 since some C++ compilers masquerading as C compilers
18231 incorrectly reject 9223372036854775807. */
18232 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18233 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18234 && LARGE_OFF_T % 2147483647 == 1)
18244 if ac_fn_c_try_compile "$LINENO"; then :
18245 ac_cv_sys_large_files=1; break
18247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18248 ac_cv_sys_large_files=unknown
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18253 $as_echo "$ac_cv_sys_large_files" >&6; }
18254 case $ac_cv_sys_large_files in #(
18257 cat >>confdefs.h <<_ACEOF
18258 #define _LARGE_FILES $ac_cv_sys_large_files
18275 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18276 if test -n "$ac_tool_prefix"; then
18277 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18278 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18280 $as_echo_n "checking for $ac_word... " >&6; }
18281 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18282 $as_echo_n "(cached) " >&6
18284 case $PKG_CONFIG in
18286 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18290 for as_dir in $PATH
18293 test -z "$as_dir" && as_dir=.
18294 for ac_exec_ext in '' $ac_executable_extensions; do
18295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18296 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18307 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18308 if test -n "$PKG_CONFIG"; then
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18310 $as_echo "$PKG_CONFIG" >&6; }
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18313 $as_echo "no" >&6; }
18318 if test -z "$ac_cv_path_PKG_CONFIG"; then
18319 ac_pt_PKG_CONFIG=$PKG_CONFIG
18320 # Extract the first word of "pkg-config", so it can be a program name with args.
18321 set dummy pkg-config; ac_word=$2
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18323 $as_echo_n "checking for $ac_word... " >&6; }
18324 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18325 $as_echo_n "(cached) " >&6
18327 case $ac_pt_PKG_CONFIG in
18329 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18333 for as_dir in $PATH
18336 test -z "$as_dir" && as_dir=.
18337 for ac_exec_ext in '' $ac_executable_extensions; do
18338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18339 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18350 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18351 if test -n "$ac_pt_PKG_CONFIG"; then
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18353 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18356 $as_echo "no" >&6; }
18359 if test "x$ac_pt_PKG_CONFIG" = x; then
18362 case $cross_compiling:$ac_tool_warned in
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18366 ac_tool_warned=yes ;;
18368 PKG_CONFIG=$ac_pt_PKG_CONFIG
18371 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18375 if test -n "$PKG_CONFIG"; then
18376 _pkg_min_version=0.20
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18378 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18379 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18381 $as_echo "yes" >&6; }
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18384 $as_echo "no" >&6; }
18389 RAGEL=${RAGEL-"${am_missing_run}ragel"}
18392 GIT=${GIT-"${am_missing_run}git"}
18414 HB_LIBTOOL_VERSION_INFO=20400:0:20400
18418 # Check whether --with-libstdc++ was given.
18419 if test "${with_libstdc__+set}" = set; then :
18420 withval=$with_libstdc__; with_libstdcxx=$withval
18425 if test "x$with_libstdcxx" = "xyes"; then
18426 WITH_LIBSTDCXX_TRUE=
18427 WITH_LIBSTDCXX_FALSE='#'
18429 WITH_LIBSTDCXX_TRUE='#'
18430 WITH_LIBSTDCXX_FALSE=
18440 gtk_doc_requires="gtk-doc >= 1.15"
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
18442 $as_echo_n "checking for gtk-doc... " >&6; }
18443 if test -n "$PKG_CONFIG" && \
18444 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
18445 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
18447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18448 test $ac_status = 0; }; then
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
18454 $as_echo "$have_gtk_doc" >&6; }
18456 if test "$have_gtk_doc" = "no"; then
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18458 You will not be able to create source packages with 'make dist'
18459 because $gtk_doc_requires is not found." >&5
18460 $as_echo "$as_me: WARNING:
18461 You will not be able to create source packages with 'make dist'
18462 because $gtk_doc_requires is not found." >&2;}
18465 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18466 set dummy gtkdoc-check; ac_word=$2
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18468 $as_echo_n "checking for $ac_word... " >&6; }
18469 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
18470 $as_echo_n "(cached) " >&6
18472 if test -n "$GTKDOC_CHECK"; then
18473 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
18475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18476 for as_dir in $PATH
18479 test -z "$as_dir" && as_dir=.
18480 for ac_exec_ext in '' $ac_executable_extensions; do
18481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18482 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
18483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18492 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
18493 if test -n "$GTKDOC_CHECK"; then
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
18495 $as_echo "$GTKDOC_CHECK" >&6; }
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18498 $as_echo "no" >&6; }
18502 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18503 set dummy gtkdoc-check; ac_word=$2
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18505 $as_echo_n "checking for $ac_word... " >&6; }
18506 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
18507 $as_echo_n "(cached) " >&6
18509 case $GTKDOC_CHECK_PATH in
18511 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
18514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18515 for as_dir in $PATH
18518 test -z "$as_dir" && as_dir=.
18519 for ac_exec_ext in '' $ac_executable_extensions; do
18520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18521 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
18522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18532 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
18533 if test -n "$GTKDOC_CHECK_PATH"; then
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
18535 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18538 $as_echo "no" >&6; }
18542 for ac_prog in gtkdoc-rebase
18544 # Extract the first word of "$ac_prog", so it can be a program name with args.
18545 set dummy $ac_prog; ac_word=$2
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18547 $as_echo_n "checking for $ac_word... " >&6; }
18548 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
18549 $as_echo_n "(cached) " >&6
18551 case $GTKDOC_REBASE in
18553 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
18556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18557 for as_dir in $PATH
18560 test -z "$as_dir" && as_dir=.
18561 for ac_exec_ext in '' $ac_executable_extensions; do
18562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18563 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
18564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18574 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
18575 if test -n "$GTKDOC_REBASE"; then
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
18577 $as_echo "$GTKDOC_REBASE" >&6; }
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18580 $as_echo "no" >&6; }
18584 test -n "$GTKDOC_REBASE" && break
18586 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
18588 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
18589 set dummy gtkdoc-mkpdf; ac_word=$2
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18591 $as_echo_n "checking for $ac_word... " >&6; }
18592 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
18593 $as_echo_n "(cached) " >&6
18595 case $GTKDOC_MKPDF in
18597 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
18600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18601 for as_dir in $PATH
18604 test -z "$as_dir" && as_dir=.
18605 for ac_exec_ext in '' $ac_executable_extensions; do
18606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18607 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
18608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18618 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
18619 if test -n "$GTKDOC_MKPDF"; then
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
18621 $as_echo "$GTKDOC_MKPDF" >&6; }
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18624 $as_echo "no" >&6; }
18630 # Check whether --with-html-dir was given.
18631 if test "${with_html_dir+set}" = set; then :
18632 withval=$with_html_dir;
18634 with_html_dir='${datadir}/gtk-doc/html'
18637 HTML_DIR="$with_html_dir"
18640 # Check whether --enable-gtk-doc was given.
18641 if test "${enable_gtk_doc+set}" = set; then :
18642 enableval=$enable_gtk_doc;
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
18649 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
18651 $as_echo "$enable_gtk_doc" >&6; }
18653 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
18655 You must have $gtk_doc_requires installed to build documentation for
18656 $PACKAGE_NAME. Please install gtk-doc or disable building the
18657 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
18660 if test "x$PACKAGE_NAME" != "xglib"; then
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
18664 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
18666 if test -n "$GTKDOC_DEPS_CFLAGS"; then
18667 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
18668 elif test -n "$PKG_CONFIG"; then
18669 if test -n "$PKG_CONFIG" && \
18670 { { $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
18671 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
18673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18674 test $ac_status = 0; }; then
18675 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
18676 test "x$?" != "x0" && pkg_failed=yes
18683 if test -n "$GTKDOC_DEPS_LIBS"; then
18684 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
18685 elif test -n "$PKG_CONFIG"; then
18686 if test -n "$PKG_CONFIG" && \
18687 { { $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
18688 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
18690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18691 test $ac_status = 0; }; then
18692 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
18693 test "x$?" != "x0" && pkg_failed=yes
18703 if test $pkg_failed = yes; then
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18705 $as_echo "no" >&6; }
18707 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18708 _pkg_short_errors_supported=yes
18710 _pkg_short_errors_supported=no
18712 if test $_pkg_short_errors_supported = yes; then
18713 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`
18715 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
18717 # Put the nasty error message in config.log where it belongs
18718 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
18721 elif test $pkg_failed = untried; then
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18723 $as_echo "no" >&6; }
18726 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
18727 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18729 $as_echo "yes" >&6; }
18734 # Check whether --enable-gtk-doc-html was given.
18735 if test "${enable_gtk_doc_html+set}" = set; then :
18736 enableval=$enable_gtk_doc_html;
18738 enable_gtk_doc_html=yes
18741 # Check whether --enable-gtk-doc-pdf was given.
18742 if test "${enable_gtk_doc_pdf+set}" = set; then :
18743 enableval=$enable_gtk_doc_pdf;
18745 enable_gtk_doc_pdf=no
18749 if test -z "$GTKDOC_MKPDF"; then
18750 enable_gtk_doc_pdf=no
18753 if test -z "$AM_DEFAULT_VERBOSITY"; then
18754 AM_DEFAULT_VERBOSITY=1
18758 if test x$have_gtk_doc = xyes; then
18760 HAVE_GTK_DOC_FALSE='#'
18762 HAVE_GTK_DOC_TRUE='#'
18763 HAVE_GTK_DOC_FALSE=
18766 if test x$enable_gtk_doc = xyes; then
18767 ENABLE_GTK_DOC_TRUE=
18768 ENABLE_GTK_DOC_FALSE='#'
18770 ENABLE_GTK_DOC_TRUE='#'
18771 ENABLE_GTK_DOC_FALSE=
18774 if test x$enable_gtk_doc_html = xyes; then
18775 GTK_DOC_BUILD_HTML_TRUE=
18776 GTK_DOC_BUILD_HTML_FALSE='#'
18778 GTK_DOC_BUILD_HTML_TRUE='#'
18779 GTK_DOC_BUILD_HTML_FALSE=
18782 if test x$enable_gtk_doc_pdf = xyes; then
18783 GTK_DOC_BUILD_PDF_TRUE=
18784 GTK_DOC_BUILD_PDF_FALSE='#'
18786 GTK_DOC_BUILD_PDF_TRUE='#'
18787 GTK_DOC_BUILD_PDF_FALSE=
18790 if test -n "$LIBTOOL"; then
18791 GTK_DOC_USE_LIBTOOL_TRUE=
18792 GTK_DOC_USE_LIBTOOL_FALSE='#'
18794 GTK_DOC_USE_LIBTOOL_TRUE='#'
18795 GTK_DOC_USE_LIBTOOL_FALSE=
18798 if test -n "$GTKDOC_REBASE"; then
18799 GTK_DOC_USE_REBASE_TRUE=
18800 GTK_DOC_USE_REBASE_FALSE='#'
18802 GTK_DOC_USE_REBASE_TRUE='#'
18803 GTK_DOC_USE_REBASE_FALSE=
18807 if test "x$enable_gtk_doc" = xyes; then
18812 # Functions and headers
18813 for ac_func in atexit mprotect sysconf getpagesize mmap isatty newlocale strtod_l posix_memalign
18815 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18816 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18817 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18818 cat >>confdefs.h <<_ACEOF
18819 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18828 for ac_func in round
18830 ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
18831 if test "x$ac_cv_func_round" = xyes; then :
18832 cat >>confdefs.h <<_ACEOF
18833 #define HAVE_ROUND 1
18837 ac_fn_c_check_decl "$LINENO" "round" "ac_cv_have_decl_round" "#include <math.h>
18839 if test "x$ac_cv_have_decl_round" = xyes; then :
18845 cat >>confdefs.h <<_ACEOF
18846 #define HAVE_DECL_ROUND $ac_have_decl
18854 for ac_header in unistd.h sys/mman.h xlocale.h stdbool.h
18856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18857 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18858 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18859 cat >>confdefs.h <<_ACEOF
18860 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18870 # The cast to long int works around a bug in the HP C Compiler,
18871 # see AC_CHECK_SIZEOF for more information.
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
18873 $as_echo_n "checking alignment of struct{char;}... " >&6; }
18874 if ${ac_cv_alignof_struct_char__+:} false; then :
18875 $as_echo_n "(cached) " >&6
18877 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__" "$ac_includes_default
18879 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
18881 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
18884 if test "$ac_cv_type_struct_char__" = yes; then
18885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18887 as_fn_error 77 "cannot compute alignment of struct{char;}
18888 See \`config.log' for more details" "$LINENO" 5; }
18890 ac_cv_alignof_struct_char__=0
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
18896 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
18900 cat >>confdefs.h <<_ACEOF
18901 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
18905 if test "x$GCC" = "xyes"; then
18907 # Make symbols link locally
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Bsymbolic-functions" >&5
18909 $as_echo_n "checking whether the linker accepts -Bsymbolic-functions... " >&6; }
18910 if ${ax_cv_check_ldflags___Bsymbolic_functions+:} false; then :
18911 $as_echo_n "(cached) " >&6
18914 ax_check_save_flags=$LDFLAGS
18915 LDFLAGS="$LDFLAGS -Bsymbolic-functions"
18916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18917 /* end confdefs.h. */
18927 if ac_fn_c_try_link "$LINENO"; then :
18928 ax_cv_check_ldflags___Bsymbolic_functions=yes
18930 ax_cv_check_ldflags___Bsymbolic_functions=no
18932 rm -f core conftest.err conftest.$ac_objext \
18933 conftest$ac_exeext conftest.$ac_ext
18934 LDFLAGS=$ax_check_save_flags
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Bsymbolic_functions" >&5
18937 $as_echo "$ax_cv_check_ldflags___Bsymbolic_functions" >&6; }
18938 if test "x$ax_cv_check_ldflags___Bsymbolic_functions" = xyes; then :
18939 LDFLAGS="$LDFLAGS -Bsymbolic-functions"
18945 # Make it possible to not link to libstdc++
18946 # No threadsafe statics in C++ as we do it ourselves.
18947 # We don't use these features, so it's safe to disable them
18948 # even in the cases where we DO link to libstdc++.
18949 # Put -fno-rtti before $CXXFLAGS such that users can re-enable it
18950 # by overriding CXXFLAGS.
18951 CXXFLAGS="-fno-rtti $CXXFLAGS -fno-exceptions -fno-threadsafe-statics"
18957 # Hide inline methods
18958 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
18964 if test "x$ac_cv_alignof_struct_char__" != x1; then
18965 # Request byte alignment
18966 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
18972 if test "x$GCC" = "xyes"; then
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
18983 $as_echo_n "checking for native Win32... " >&6; }
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
18990 $as_echo "$hb_os_win32" >&6; }
18991 if test "$hb_os_win32" = "yes"; then
19001 if test "$hb_os_win32" = no; then
19007 ac_cpp='$CPP $CPPFLAGS'
19008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19014 # We used to check for pthread.h first, but this fails if pthread.h
19015 # requires special compiler flags (e.g. on Tru64 or Sequent).
19016 # It gets checked for in the link test anyway.
19018 # First of all, check if the user has set any of the PTHREAD_LIBS,
19019 # etcetera environment variables, and if threads linking works using
19021 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19022 ax_pthread_save_CC="$CC"
19023 ax_pthread_save_CFLAGS="$CFLAGS"
19024 ax_pthread_save_LIBS="$LIBS"
19025 if test "x$PTHREAD_CC" != "x"; then :
19028 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19029 LIBS="$PTHREAD_LIBS $LIBS"
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19031 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19033 /* end confdefs.h. */
19035 /* Override any GCC internal prototype to avoid an error.
19036 Use char because int might match the return type of a GCC
19037 builtin and then its argument prototype would still apply. */
19041 char pthread_join ();
19045 return pthread_join ();
19050 if ac_fn_c_try_link "$LINENO"; then :
19053 rm -f core conftest.err conftest.$ac_objext \
19054 conftest$ac_exeext conftest.$ac_ext
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19056 $as_echo "$ax_pthread_ok" >&6; }
19057 if test "x$ax_pthread_ok" = "xno"; then
19061 CC="$ax_pthread_save_CC"
19062 CFLAGS="$ax_pthread_save_CFLAGS"
19063 LIBS="$ax_pthread_save_LIBS"
19066 # We must check for the threads library under a number of different
19067 # names; the ordering is very important because some systems
19068 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19069 # libraries is broken (non-POSIX).
19071 # Create a list of thread flags to try. Items starting with a "-" are
19072 # C compiler flags, and other items are library names, except for "none"
19073 # which indicates that we try without any flags at all, and "pthread-config"
19074 # which is a program returning the flags for the Pth emulation library.
19076 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19078 # The ordering *is* (sometimes) important. Some notes on the
19079 # individual items follow:
19081 # pthreads: AIX (must check this before -lpthread)
19082 # none: in case threads are in libc; should be tried before -Kthread and
19083 # other compiler flags to prevent continual compiler warnings
19084 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19085 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19086 # (Note: HP C rejects this with "bad form for `-t' option")
19087 # -pthreads: Solaris/gcc (Note: HP C also rejects)
19088 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19089 # doesn't hurt to check since this sometimes defines pthreads and
19090 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
19091 # is present but should not be used directly; and before -mthreads,
19092 # because the compiler interprets this as "-mt" + "-hreads")
19093 # -mthreads: Mingw32/gcc, Lynx/gcc
19094 # pthread: Linux, etcetera
19095 # --thread-safe: KAI C++
19096 # pthread-config: use pthread-config program (for GNU Pth library)
19102 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19103 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19105 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
19110 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19111 # multi-threading and also sets -lpthread."
19113 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19118 # IBM z/OS requires a feature-test macro to be defined in order to
19119 # enable POSIX threads at all, so give the user a hint if this is
19120 # not set. (We don't define these ourselves, as they can affect
19121 # other portions of the system API in unpredictable ways.)
19123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19124 /* end confdefs.h. */
19126 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19127 AX_PTHREAD_ZOS_MISSING
19131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19132 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19134 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19142 # On Solaris (at least, for some versions), libc contains stubbed
19143 # (non-functional) versions of the pthreads routines, so link-based
19144 # tests will erroneously succeed. (N.B.: The stubs are missing
19145 # pthread_cleanup_push, or rather a function called by this macro,
19146 # so we could check for that, but who knows whether they'll stub
19147 # that too in a future libc.) So we'll check first for the
19148 # standard Solaris way of linking pthreads (-mt -lpthread).
19150 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
19154 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
19156 if test "x$GCC" = "xyes"; then :
19157 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
19160 # The presence of a feature test macro requesting re-entrant function
19161 # definitions is, on some systems, a strong hint that pthreads support is
19162 # correctly enabled
19165 darwin* | hpux* | linux* | osf* | solaris*)
19166 ax_pthread_check_macro="_REENTRANT"
19170 ax_pthread_check_macro="_THREAD_SAFE"
19174 ax_pthread_check_macro="--"
19177 if test "x$ax_pthread_check_macro" = "x--"; then :
19178 ax_pthread_check_cond=0
19180 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
19183 # Are we compiling with Clang?
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
19186 $as_echo_n "checking whether $CC is Clang... " >&6; }
19187 if ${ax_cv_PTHREAD_CLANG+:} false; then :
19188 $as_echo_n "(cached) " >&6
19190 ax_cv_PTHREAD_CLANG=no
19191 # Note that Autoconf sets GCC=yes for Clang as well as GCC
19192 if test "x$GCC" = "xyes"; then
19193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19194 /* end confdefs.h. */
19195 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
19196 # if defined(__clang__) && defined(__llvm__)
19197 AX_PTHREAD_CC_IS_CLANG
19201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19202 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
19203 ax_cv_PTHREAD_CLANG=yes
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
19211 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
19212 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
19214 ax_pthread_clang_warning=no
19216 # Clang needs special handling, because older versions handle the -pthread
19217 # option in a rather... idiosyncratic way
19219 if test "x$ax_pthread_clang" = "xyes"; then
19221 # Clang takes -pthread; it has never supported any other flag
19223 # (Note 1: This will need to be revisited if a system that Clang
19224 # supports has POSIX threads in a separate library. This tends not
19225 # to be the way of modern systems, but it's conceivable.)
19227 # (Note 2: On some systems, notably Darwin, -pthread is not needed
19228 # to get POSIX threads support; the API is always present and
19229 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
19230 # -pthread does define _REENTRANT, and while the Darwin headers
19231 # ignore this macro, third-party headers might not.)
19233 PTHREAD_CFLAGS="-pthread"
19238 # However, older versions of Clang make a point of warning the user
19239 # that, in an invocation where only linking and no compilation is
19240 # taking place, the -pthread option has no effect ("argument unused
19241 # during compilation"). They expect -pthread to be passed in only
19242 # when source code is being compiled.
19244 # Problem is, this is at odds with the way Automake and most other
19245 # C build frameworks function, which is that the same flags used in
19246 # compilation (CFLAGS) are also used in linking. Many systems
19247 # supported by AX_PTHREAD require exactly this for POSIX threads
19248 # support, and in fact it is often not straightforward to specify a
19249 # flag that is used only in the compilation phase and not in
19250 # linking. Such a scenario is extremely rare in practice.
19252 # Even though use of the -pthread flag in linking would only print
19253 # a warning, this can be a nuisance for well-run software projects
19254 # that build with -Werror. So if the active version of Clang has
19255 # this misfeature, we search for an option to squash it.
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
19258 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
19259 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
19260 $as_echo_n "(cached) " >&6
19262 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
19263 # Create an alternate version of $ac_link that compiles and
19264 # links in two steps (.c -> .o, .o -> exe) instead of one
19265 # (.c -> exe), because the warning occurs only in the second
19267 ax_pthread_save_ac_link="$ac_link"
19268 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
19269 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
19270 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
19271 ax_pthread_save_CFLAGS="$CFLAGS"
19272 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
19273 if test "x$ax_pthread_try" = "xunknown"; then :
19276 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
19277 ac_link="$ax_pthread_save_ac_link"
19278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19279 /* end confdefs.h. */
19280 int main(void){return 0;}
19282 if ac_fn_c_try_link "$LINENO"; then :
19283 ac_link="$ax_pthread_2step_ac_link"
19284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19285 /* end confdefs.h. */
19286 int main(void){return 0;}
19288 if ac_fn_c_try_link "$LINENO"; then :
19291 rm -f core conftest.err conftest.$ac_objext \
19292 conftest$ac_exeext conftest.$ac_ext
19295 rm -f core conftest.err conftest.$ac_objext \
19296 conftest$ac_exeext conftest.$ac_ext
19298 ac_link="$ax_pthread_save_ac_link"
19299 CFLAGS="$ax_pthread_save_CFLAGS"
19300 if test "x$ax_pthread_try" = "x"; then :
19303 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
19307 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
19309 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
19311 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
19314 fi # $ax_pthread_clang = yes
19316 if test "x$ax_pthread_ok" = "xno"; then
19317 for ax_pthread_try_flag in $ax_pthread_flags; do
19319 case $ax_pthread_try_flag in
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19322 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
19327 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
19328 PTHREAD_CFLAGS="-mt"
19329 PTHREAD_LIBS="-lpthread"
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
19334 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
19335 PTHREAD_CFLAGS="$ax_pthread_try_flag"
19339 # Extract the first word of "pthread-config", so it can be a program name with args.
19340 set dummy pthread-config; ac_word=$2
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19342 $as_echo_n "checking for $ac_word... " >&6; }
19343 if ${ac_cv_prog_ax_pthread_config+:} false; then :
19344 $as_echo_n "(cached) " >&6
19346 if test -n "$ax_pthread_config"; then
19347 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19350 for as_dir in $PATH
19353 test -z "$as_dir" && as_dir=.
19354 for ac_exec_ext in '' $ac_executable_extensions; do
19355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19356 ac_cv_prog_ax_pthread_config="yes"
19357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19364 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19367 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19368 if test -n "$ax_pthread_config"; then
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19370 $as_echo "$ax_pthread_config" >&6; }
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19373 $as_echo "no" >&6; }
19377 if test "x$ax_pthread_config" = "xno"; then :
19380 PTHREAD_CFLAGS="`pthread-config --cflags`"
19381 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
19386 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
19387 PTHREAD_LIBS="-l$ax_pthread_try_flag"
19391 ax_pthread_save_CFLAGS="$CFLAGS"
19392 ax_pthread_save_LIBS="$LIBS"
19393 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19394 LIBS="$PTHREAD_LIBS $LIBS"
19396 # Check for various functions. We must include pthread.h,
19397 # since some functions may be macros. (On the Sequent, we
19398 # need a special flag -Kthread to make this header compile.)
19399 # We check for pthread_join because it is in -lpthread on IRIX
19400 # while pthread_create is in libc. We check for pthread_attr_init
19401 # due to DEC craziness with -lpthreads. We check for
19402 # pthread_cleanup_push because it is one of the few pthread
19403 # functions on Solaris that doesn't have a non-functional libc stub.
19404 # We try pthread_create on general principles.
19406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19407 /* end confdefs.h. */
19408 #include <pthread.h>
19409 # if $ax_pthread_check_cond
19410 # error "$ax_pthread_check_macro must be defined"
19412 static void routine(void *a) { a = 0; }
19413 static void *start_routine(void *a) { return a; }
19417 pthread_t th; pthread_attr_t attr;
19418 pthread_create(&th, 0, start_routine, 0);
19419 pthread_join(th, 0);
19420 pthread_attr_init(&attr);
19421 pthread_cleanup_push(routine, 0);
19422 pthread_cleanup_pop(0) /* ; */
19427 if ac_fn_c_try_link "$LINENO"; then :
19430 rm -f core conftest.err conftest.$ac_objext \
19431 conftest$ac_exeext conftest.$ac_ext
19433 CFLAGS="$ax_pthread_save_CFLAGS"
19434 LIBS="$ax_pthread_save_LIBS"
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19437 $as_echo "$ax_pthread_ok" >&6; }
19438 if test "x$ax_pthread_ok" = "xyes"; then :
19447 # Various other checks:
19448 if test "x$ax_pthread_ok" = "xyes"; then
19449 ax_pthread_save_CFLAGS="$CFLAGS"
19450 ax_pthread_save_LIBS="$LIBS"
19451 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19452 LIBS="$PTHREAD_LIBS $LIBS"
19454 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19456 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19457 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
19458 $as_echo_n "(cached) " >&6
19460 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19461 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19463 /* end confdefs.h. */
19464 #include <pthread.h>
19468 int attr = $ax_pthread_attr; return attr /* ; */
19473 if ac_fn_c_try_link "$LINENO"; then :
19474 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
19476 rm -f core conftest.err conftest.$ac_objext \
19477 conftest$ac_exeext conftest.$ac_ext
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19482 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19483 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
19484 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
19485 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
19487 cat >>confdefs.h <<_ACEOF
19488 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
19491 ax_pthread_joinable_attr_defined=yes
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
19496 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
19497 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
19498 $as_echo_n "(cached) " >&6
19500 ax_cv_PTHREAD_SPECIAL_FLAGS=no
19503 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19509 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19510 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19511 test "x$ax_pthread_special_flags_added" != "xyes"; then :
19512 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19513 ax_pthread_special_flags_added=yes
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19517 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19518 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19519 $as_echo_n "(cached) " >&6
19521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19522 /* end confdefs.h. */
19523 #include <pthread.h>
19527 int i = PTHREAD_PRIO_INHERIT;
19532 if ac_fn_c_try_link "$LINENO"; then :
19533 ax_cv_PTHREAD_PRIO_INHERIT=yes
19535 ax_cv_PTHREAD_PRIO_INHERIT=no
19537 rm -f core conftest.err conftest.$ac_objext \
19538 conftest$ac_exeext conftest.$ac_ext
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19542 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19543 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
19544 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
19546 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19548 ax_pthread_prio_inherit_defined=yes
19552 CFLAGS="$ax_pthread_save_CFLAGS"
19553 LIBS="$ax_pthread_save_LIBS"
19555 # More AIX lossage: compile with *_r variant
19556 if test "x$GCC" != "xyes"; then
19560 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19561 #handle absolute path differently from PATH based program lookup
19564 if as_fn_executable_p ${CC}_r; then :
19565 PTHREAD_CC="${CC}_r"
19568 for ac_prog in ${CC}_r
19570 # Extract the first word of "$ac_prog", so it can be a program name with args.
19571 set dummy $ac_prog; ac_word=$2
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19573 $as_echo_n "checking for $ac_word... " >&6; }
19574 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19575 $as_echo_n "(cached) " >&6
19577 if test -n "$PTHREAD_CC"; then
19578 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19581 for as_dir in $PATH
19584 test -z "$as_dir" && as_dir=.
19585 for ac_exec_ext in '' $ac_executable_extensions; do
19586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19587 ac_cv_prog_PTHREAD_CC="$ac_prog"
19588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19597 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19598 if test -n "$PTHREAD_CC"; then
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19600 $as_echo "$PTHREAD_CC" >&6; }
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19603 $as_echo "no" >&6; }
19607 test -n "$PTHREAD_CC" && break
19609 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19620 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19626 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19627 if test "x$ax_pthread_ok" = "xyes"; then
19635 ac_cpp='$CPP $CPPFLAGS'
19636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19642 if $have_pthread; then
19644 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19647 if $have_pthread; then
19649 HAVE_PTHREAD_FALSE='#'
19651 HAVE_PTHREAD_TRUE='#'
19652 HAVE_PTHREAD_FALSE=
19658 if $have_fallback; then
19660 $as_echo "#define HAVE_FALLBACK 1" >>confdefs.h
19663 if $have_fallback; then
19664 HAVE_FALLBACK_TRUE=
19665 HAVE_FALLBACK_FALSE='#'
19667 HAVE_FALLBACK_TRUE='#'
19668 HAVE_FALLBACK_FALSE=
19674 # Check whether --with-glib was given.
19675 if test "${with_glib+set}" = set; then :
19676 withval=$with_glib;
19682 GLIB_DEPS="glib-2.0 >= 2.19.1"
19684 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
19688 $as_echo_n "checking for GLIB... " >&6; }
19690 if test -n "$GLIB_CFLAGS"; then
19691 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
19692 elif test -n "$PKG_CONFIG"; then
19693 if test -n "$PKG_CONFIG" && \
19694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
19695 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
19697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19698 test $ac_status = 0; }; then
19699 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
19700 test "x$?" != "x0" && pkg_failed=yes
19707 if test -n "$GLIB_LIBS"; then
19708 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
19709 elif test -n "$PKG_CONFIG"; then
19710 if test -n "$PKG_CONFIG" && \
19711 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
19712 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
19714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19715 test $ac_status = 0; }; then
19716 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
19717 test "x$?" != "x0" && pkg_failed=yes
19727 if test $pkg_failed = yes; then
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19729 $as_echo "no" >&6; }
19731 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19732 _pkg_short_errors_supported=yes
19734 _pkg_short_errors_supported=no
19736 if test $_pkg_short_errors_supported = yes; then
19737 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
19739 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
19741 # Put the nasty error message in config.log where it belongs
19742 echo "$GLIB_PKG_ERRORS" >&5
19745 elif test $pkg_failed = untried; then
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19747 $as_echo "no" >&6; }
19750 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
19751 GLIB_LIBS=$pkg_cv_GLIB_LIBS
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19753 $as_echo "yes" >&6; }
19757 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
19758 as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
19760 if $have_glib; then
19762 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
19765 if $have_glib; then
19767 HAVE_GLIB_FALSE='#'
19776 # Check whether --with-gobject was given.
19777 if test "${with_gobject+set}" = set; then :
19778 withval=$with_gobject;
19784 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
19788 $as_echo_n "checking for GOBJECT... " >&6; }
19790 if test -n "$GOBJECT_CFLAGS"; then
19791 pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
19792 elif test -n "$PKG_CONFIG"; then
19793 if test -n "$PKG_CONFIG" && \
19794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
19795 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
19797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19798 test $ac_status = 0; }; then
19799 pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
19800 test "x$?" != "x0" && pkg_failed=yes
19807 if test -n "$GOBJECT_LIBS"; then
19808 pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
19809 elif test -n "$PKG_CONFIG"; then
19810 if test -n "$PKG_CONFIG" && \
19811 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
19812 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
19814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19815 test $ac_status = 0; }; then
19816 pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
19817 test "x$?" != "x0" && pkg_failed=yes
19827 if test $pkg_failed = yes; then
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19829 $as_echo "no" >&6; }
19831 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19832 _pkg_short_errors_supported=yes
19834 _pkg_short_errors_supported=no
19836 if test $_pkg_short_errors_supported = yes; then
19837 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
19839 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
19841 # Put the nasty error message in config.log where it belongs
19842 echo "$GOBJECT_PKG_ERRORS" >&5
19845 elif test $pkg_failed = untried; then
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19847 $as_echo "no" >&6; }
19850 GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
19851 GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19853 $as_echo "yes" >&6; }
19857 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
19858 as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
19860 if $have_gobject; then
19862 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
19864 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
19867 if $have_gobject; then
19869 HAVE_GOBJECT_FALSE='#'
19871 HAVE_GOBJECT_TRUE='#'
19872 HAVE_GOBJECT_FALSE=
19879 # Gobject-Introspection
19880 have_introspection=false
19882 if $have_gobject; then
19886 # Check whether --enable-introspection was given.
19887 if test "${enable_introspection+set}" = set; then :
19888 enableval=$enable_introspection;
19890 enable_introspection=auto
19894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
19895 $as_echo_n "checking for gobject-introspection... " >&6; }
19897 case $enable_introspection in #(
19899 found_introspection="no (disabled, use --enable-introspection to enable)"
19902 if test -n "$PKG_CONFIG" && \
19903 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
19904 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
19906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19907 test $ac_status = 0; }; then
19910 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
19912 if test -n "$PKG_CONFIG" && \
19913 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
19914 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
19916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19917 test $ac_status = 0; }; then
19918 found_introspection=yes
19920 as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
19924 if test -n "$PKG_CONFIG" && \
19925 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
19926 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
19928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19929 test $ac_status = 0; }; then
19930 found_introspection=yes
19932 found_introspection=no
19934 enable_introspection=$found_introspection
19937 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
19941 $as_echo "$found_introspection" >&6; }
19943 INTROSPECTION_SCANNER=
19944 INTROSPECTION_COMPILER=
19945 INTROSPECTION_GENERATE=
19946 INTROSPECTION_GIRDIR=
19947 INTROSPECTION_TYPELIBDIR=
19948 if test "x$found_introspection" = "xyes"; then
19949 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
19950 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
19951 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
19952 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
19953 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
19954 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
19955 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
19956 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
19967 if test "x$found_introspection" = "xyes"; then
19968 HAVE_INTROSPECTION_TRUE=
19969 HAVE_INTROSPECTION_FALSE='#'
19971 HAVE_INTROSPECTION_TRUE='#'
19972 HAVE_INTROSPECTION_FALSE=
19977 if test "x$found_introspection" = xyes; then
19978 have_introspection=true
19982 HAVE_INTROSPECTION_TRUE=
19983 HAVE_INTROSPECTION_FALSE='#'
19985 HAVE_INTROSPECTION_TRUE='#'
19986 HAVE_INTROSPECTION_FALSE=
19994 # Check whether --with-cairo was given.
19995 if test "${with_cairo+set}" = set; then :
19996 withval=$with_cairo;
20002 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
20006 $as_echo_n "checking for CAIRO... " >&6; }
20008 if test -n "$CAIRO_CFLAGS"; then
20009 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
20010 elif test -n "$PKG_CONFIG"; then
20011 if test -n "$PKG_CONFIG" && \
20012 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20013 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20016 test $ac_status = 0; }; then
20017 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
20018 test "x$?" != "x0" && pkg_failed=yes
20025 if test -n "$CAIRO_LIBS"; then
20026 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
20027 elif test -n "$PKG_CONFIG"; then
20028 if test -n "$PKG_CONFIG" && \
20029 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20030 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20033 test $ac_status = 0; }; then
20034 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
20035 test "x$?" != "x0" && pkg_failed=yes
20045 if test $pkg_failed = yes; then
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20047 $as_echo "no" >&6; }
20049 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20050 _pkg_short_errors_supported=yes
20052 _pkg_short_errors_supported=no
20054 if test $_pkg_short_errors_supported = yes; then
20055 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
20057 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
20059 # Put the nasty error message in config.log where it belongs
20060 echo "$CAIRO_PKG_ERRORS" >&5
20063 elif test $pkg_failed = untried; then
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20065 $as_echo "no" >&6; }
20068 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
20069 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20071 $as_echo "yes" >&6; }
20075 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
20076 as_fn_error $? "cairo support requested but not found" "$LINENO" 5
20078 if $have_cairo; then
20080 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
20083 if $have_cairo; then
20085 HAVE_CAIRO_FALSE='#'
20087 HAVE_CAIRO_TRUE='#'
20092 have_cairo_ft=false
20093 if $have_cairo; then
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
20097 $as_echo_n "checking for CAIRO_FT... " >&6; }
20099 if test -n "$CAIRO_FT_CFLAGS"; then
20100 pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
20101 elif test -n "$PKG_CONFIG"; then
20102 if test -n "$PKG_CONFIG" && \
20103 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20104 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20107 test $ac_status = 0; }; then
20108 pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
20109 test "x$?" != "x0" && pkg_failed=yes
20116 if test -n "$CAIRO_FT_LIBS"; then
20117 pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
20118 elif test -n "$PKG_CONFIG"; then
20119 if test -n "$PKG_CONFIG" && \
20120 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20121 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20124 test $ac_status = 0; }; then
20125 pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
20126 test "x$?" != "x0" && pkg_failed=yes
20136 if test $pkg_failed = yes; then
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20138 $as_echo "no" >&6; }
20140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20141 _pkg_short_errors_supported=yes
20143 _pkg_short_errors_supported=no
20145 if test $_pkg_short_errors_supported = yes; then
20146 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-ft" 2>&1`
20148 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-ft" 2>&1`
20150 # Put the nasty error message in config.log where it belongs
20151 echo "$CAIRO_FT_PKG_ERRORS" >&5
20154 elif test $pkg_failed = untried; then
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20156 $as_echo "no" >&6; }
20159 CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
20160 CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20162 $as_echo "yes" >&6; }
20166 if $have_cairo_ft; then
20168 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
20171 if $have_cairo_ft; then
20172 HAVE_CAIRO_FT_TRUE=
20173 HAVE_CAIRO_FT_FALSE='#'
20175 HAVE_CAIRO_FT_TRUE='#'
20176 HAVE_CAIRO_FT_FALSE=
20182 # Check whether --with-fontconfig was given.
20183 if test "${with_fontconfig+set}" = set; then :
20184 withval=$with_fontconfig;
20186 with_fontconfig=auto
20189 have_fontconfig=false
20190 if test "x$with_fontconfig" = "xyes" -o "x$with_fontconfig" = "xauto"; then
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
20194 $as_echo_n "checking for FONTCONFIG... " >&6; }
20196 if test -n "$FONTCONFIG_CFLAGS"; then
20197 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
20198 elif test -n "$PKG_CONFIG"; then
20199 if test -n "$PKG_CONFIG" && \
20200 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
20201 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
20203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20204 test $ac_status = 0; }; then
20205 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
20206 test "x$?" != "x0" && pkg_failed=yes
20213 if test -n "$FONTCONFIG_LIBS"; then
20214 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
20215 elif test -n "$PKG_CONFIG"; then
20216 if test -n "$PKG_CONFIG" && \
20217 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
20218 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
20220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20221 test $ac_status = 0; }; then
20222 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
20223 test "x$?" != "x0" && pkg_failed=yes
20233 if test $pkg_failed = yes; then
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20235 $as_echo "no" >&6; }
20237 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20238 _pkg_short_errors_supported=yes
20240 _pkg_short_errors_supported=no
20242 if test $_pkg_short_errors_supported = yes; then
20243 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
20245 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
20247 # Put the nasty error message in config.log where it belongs
20248 echo "$FONTCONFIG_PKG_ERRORS" >&5
20251 elif test $pkg_failed = untried; then
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20253 $as_echo "no" >&6; }
20256 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
20257 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20259 $as_echo "yes" >&6; }
20260 have_fontconfig=true
20263 if test "x$with_fontconfig" = "xyes" -a "x$have_fontconfig" != "xtrue"; then
20264 as_fn_error $? "fontconfig support requested but not found" "$LINENO" 5
20266 if $have_fontconfig; then
20268 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
20271 if $have_fontconfig; then
20272 HAVE_FONTCONFIG_TRUE=
20273 HAVE_FONTCONFIG_FALSE='#'
20275 HAVE_FONTCONFIG_TRUE='#'
20276 HAVE_FONTCONFIG_FALSE=
20282 # Check whether --with-icu was given.
20283 if test "${with_icu+set}" = set; then :
20290 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
20294 $as_echo_n "checking for ICU... " >&6; }
20296 if test -n "$ICU_CFLAGS"; then
20297 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
20298 elif test -n "$PKG_CONFIG"; then
20299 if test -n "$PKG_CONFIG" && \
20300 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
20301 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
20303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20304 test $ac_status = 0; }; then
20305 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
20306 test "x$?" != "x0" && pkg_failed=yes
20313 if test -n "$ICU_LIBS"; then
20314 pkg_cv_ICU_LIBS="$ICU_LIBS"
20315 elif test -n "$PKG_CONFIG"; then
20316 if test -n "$PKG_CONFIG" && \
20317 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
20318 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
20320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20321 test $ac_status = 0; }; then
20322 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
20323 test "x$?" != "x0" && pkg_failed=yes
20333 if test $pkg_failed = yes; then
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20335 $as_echo "no" >&6; }
20337 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20338 _pkg_short_errors_supported=yes
20340 _pkg_short_errors_supported=no
20342 if test $_pkg_short_errors_supported = yes; then
20343 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
20345 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
20347 # Put the nasty error message in config.log where it belongs
20348 echo "$ICU_PKG_ERRORS" >&5
20351 elif test $pkg_failed = untried; then
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20353 $as_echo "no" >&6; }
20356 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
20357 ICU_LIBS=$pkg_cv_ICU_LIBS
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20359 $as_echo "yes" >&6; }
20363 if test "$have_icu" != "true"; then
20364 if test -n "$ac_tool_prefix"; then
20365 # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
20366 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20368 $as_echo_n "checking for $ac_word... " >&6; }
20369 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
20370 $as_echo_n "(cached) " >&6
20372 if test -n "$ICU_CONFIG"; then
20373 ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
20375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20376 for as_dir in $PATH
20379 test -z "$as_dir" && as_dir=.
20380 for ac_exec_ext in '' $ac_executable_extensions; do
20381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20382 ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
20383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20392 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
20393 if test -n "$ICU_CONFIG"; then
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
20395 $as_echo "$ICU_CONFIG" >&6; }
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20398 $as_echo "no" >&6; }
20403 if test -z "$ac_cv_prog_ICU_CONFIG"; then
20404 ac_ct_ICU_CONFIG=$ICU_CONFIG
20405 # Extract the first word of "icu-config", so it can be a program name with args.
20406 set dummy icu-config; ac_word=$2
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20408 $as_echo_n "checking for $ac_word... " >&6; }
20409 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
20410 $as_echo_n "(cached) " >&6
20412 if test -n "$ac_ct_ICU_CONFIG"; then
20413 ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
20415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20416 for as_dir in $PATH
20419 test -z "$as_dir" && as_dir=.
20420 for ac_exec_ext in '' $ac_executable_extensions; do
20421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20422 ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
20423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20432 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
20433 if test -n "$ac_ct_ICU_CONFIG"; then
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
20435 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20438 $as_echo "no" >&6; }
20441 if test "x$ac_ct_ICU_CONFIG" = x; then
20444 case $cross_compiling:$ac_tool_warned in
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20448 ac_tool_warned=yes ;;
20450 ICU_CONFIG=$ac_ct_ICU_CONFIG
20453 ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
20457 $as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
20458 if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
20460 # We don't use --cflags as this gives us a lot of things that we don't
20461 # necessarily want, like debugging and optimization flags
20462 # See man (1) icu-config for more info.
20463 ICU_CFLAGS=`$ICU_CONFIG --cppflags`
20464 ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20468 $as_echo "yes" >&6; }
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20471 $as_echo "no" >&6; }
20475 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
20476 as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
20480 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
20482 $as_echo "#define HAVE_ICU 1" >>confdefs.h
20484 if test "x$with_icu" = "xbuiltin"; then
20486 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
20498 if $have_icu && test "x$with_icu" = "xbuiltin"; then
20499 HAVE_ICU_BUILTIN_TRUE=
20500 HAVE_ICU_BUILTIN_FALSE='#'
20502 HAVE_ICU_BUILTIN_TRUE='#'
20503 HAVE_ICU_BUILTIN_FALSE=
20509 # Check whether --with-ucdn was given.
20510 if test "${with_ucdn+set}" = set; then :
20511 withval=$with_ucdn;
20517 if test "x$with_ucdn" = "xyes"; then
20520 if $have_ucdn; then
20522 $as_echo "#define HAVE_UCDN 1" >>confdefs.h
20525 if $have_ucdn; then
20527 HAVE_UCDN_FALSE='#'
20536 # Check whether --with-graphite2 was given.
20537 if test "${with_graphite2+set}" = set; then :
20538 withval=$with_graphite2;
20543 have_graphite2=false
20544 GRAPHITE2_DEPS="graphite2 >= 1.2.0"
20546 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
20550 $as_echo_n "checking for GRAPHITE2... " >&6; }
20552 if test -n "$GRAPHITE2_CFLAGS"; then
20553 pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
20554 elif test -n "$PKG_CONFIG"; then
20555 if test -n "$PKG_CONFIG" && \
20556 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
20557 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
20559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20560 test $ac_status = 0; }; then
20561 pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
20562 test "x$?" != "x0" && pkg_failed=yes
20569 if test -n "$GRAPHITE2_LIBS"; then
20570 pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
20571 elif test -n "$PKG_CONFIG"; then
20572 if test -n "$PKG_CONFIG" && \
20573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
20574 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
20576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20577 test $ac_status = 0; }; then
20578 pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
20579 test "x$?" != "x0" && pkg_failed=yes
20589 if test $pkg_failed = yes; then
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20591 $as_echo "no" >&6; }
20593 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20594 _pkg_short_errors_supported=yes
20596 _pkg_short_errors_supported=no
20598 if test $_pkg_short_errors_supported = yes; then
20599 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
20601 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
20603 # Put the nasty error message in config.log where it belongs
20604 echo "$GRAPHITE2_PKG_ERRORS" >&5
20607 elif test $pkg_failed = untried; then
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20609 $as_echo "no" >&6; }
20612 GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
20613 GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20615 $as_echo "yes" >&6; }
20616 have_graphite2=true
20618 if test "x$have_graphite2" != "xtrue"; then
20619 # If pkg-config is not available, graphite2 can still be there
20620 ac_save_CFLAGS="$CFLAGS"
20621 ac_save_CPPFLAGS="$CPPFLAGS"
20622 CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS"
20623 CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS"
20624 ac_fn_c_check_header_mongrel "$LINENO" "graphite2/Segment.h" "ac_cv_header_graphite2_Segment_h" "$ac_includes_default"
20625 if test "x$ac_cv_header_graphite2_Segment_h" = xyes; then :
20626 have_graphite2=true
20632 CPPFLAGS="$ac_save_CPPFLAGS"
20633 CFLAGS="$ac_save_CFLAGS"
20636 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
20637 as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
20639 if $have_graphite2; then
20641 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
20644 if $have_graphite2; then
20645 HAVE_GRAPHITE2_TRUE=
20646 HAVE_GRAPHITE2_FALSE='#'
20648 HAVE_GRAPHITE2_TRUE='#'
20649 HAVE_GRAPHITE2_FALSE=
20655 # Check whether --with-freetype was given.
20656 if test "${with_freetype+set}" = set; then :
20657 withval=$with_freetype;
20662 have_freetype=false
20663 FREETYPE_DEPS="freetype2 >= 12.0.6"
20665 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
20666 # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
20670 $as_echo_n "checking for FREETYPE... " >&6; }
20672 if test -n "$FREETYPE_CFLAGS"; then
20673 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
20674 elif test -n "$PKG_CONFIG"; then
20675 if test -n "$PKG_CONFIG" && \
20676 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
20677 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
20679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20680 test $ac_status = 0; }; then
20681 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
20682 test "x$?" != "x0" && pkg_failed=yes
20689 if test -n "$FREETYPE_LIBS"; then
20690 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
20691 elif test -n "$PKG_CONFIG"; then
20692 if test -n "$PKG_CONFIG" && \
20693 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
20694 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
20696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20697 test $ac_status = 0; }; then
20698 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
20699 test "x$?" != "x0" && pkg_failed=yes
20709 if test $pkg_failed = yes; then
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20711 $as_echo "no" >&6; }
20713 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20714 _pkg_short_errors_supported=yes
20716 _pkg_short_errors_supported=no
20718 if test $_pkg_short_errors_supported = yes; then
20719 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
20721 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
20723 # Put the nasty error message in config.log where it belongs
20724 echo "$FREETYPE_PKG_ERRORS" >&5
20727 elif test $pkg_failed = untried; then
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20729 $as_echo "no" >&6; }
20732 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
20733 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20735 $as_echo "yes" >&6; }
20739 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
20740 as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
20742 if $have_freetype; then
20744 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
20747 LIBS="$LIBS $FREETYPE_LIBS"
20748 for ac_func in FT_Get_Var_Blend_Coordinates FT_Set_Var_Blend_Coordinates FT_Done_MM_Var
20750 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20751 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20752 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20753 cat >>confdefs.h <<_ACEOF
20754 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20762 if $have_freetype; then
20763 HAVE_FREETYPE_TRUE=
20764 HAVE_FREETYPE_FALSE='#'
20766 HAVE_FREETYPE_TRUE='#'
20767 HAVE_FREETYPE_FALSE=
20773 # Check whether --with-uniscribe was given.
20774 if test "${with_uniscribe+set}" = set; then :
20775 withval=$with_uniscribe;
20780 have_uniscribe=false
20781 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
20782 for ac_header in usp10.h windows.h
20784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20785 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20786 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20787 cat >>confdefs.h <<_ACEOF
20788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20790 have_uniscribe=true
20796 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
20797 as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
20799 if $have_uniscribe; then
20801 UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
20805 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
20808 if $have_uniscribe; then
20809 HAVE_UNISCRIBE_TRUE=
20810 HAVE_UNISCRIBE_FALSE='#'
20812 HAVE_UNISCRIBE_TRUE='#'
20813 HAVE_UNISCRIBE_FALSE=
20819 # Check whether --with-directwrite was given.
20820 if test "${with_directwrite+set}" = set; then :
20821 withval=$with_directwrite;
20823 with_directwrite=no
20826 have_directwrite=false
20828 ac_cpp='$CXXCPP $CPPFLAGS'
20829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20833 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
20835 for ac_header in dwrite.h
20837 ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
20838 if test "x$ac_cv_header_dwrite_h" = xyes; then :
20839 cat >>confdefs.h <<_ACEOF
20840 #define HAVE_DWRITE_H 1
20842 have_directwrite=true
20849 ac_cpp='$CPP $CPPFLAGS'
20850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20854 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
20855 as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
20857 if $have_directwrite; then
20858 DIRECTWRITE_CXXFLAGS=
20859 DIRECTWRITE_LIBS="-ldwrite"
20863 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
20866 if $have_directwrite; then
20867 HAVE_DIRECTWRITE_TRUE=
20868 HAVE_DIRECTWRITE_FALSE='#'
20870 HAVE_DIRECTWRITE_TRUE='#'
20871 HAVE_DIRECTWRITE_FALSE=
20877 # Check whether --with-coretext was given.
20878 if test "${with_coretext+set}" = set; then :
20879 withval=$with_coretext;
20884 have_coretext=false
20885 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
20886 ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
20888 if test "x$ac_cv_type_CTFontRef" = xyes; then :
20893 if $have_coretext; then
20895 CORETEXT_LIBS="-framework ApplicationServices"
20899 # On iOS CoreText and CoreGraphics are stand-alone frameworks
20900 if test "x$have_coretext" != "xtrue"; then
20901 # Check for a different symbol to avoid getting cached result.
20902 ac_fn_c_check_type "$LINENO" "CTRunRef" "ac_cv_type_CTRunRef" "#include <CoreText/CoreText.h>
20904 if test "x$ac_cv_type_CTRunRef" = xyes; then :
20910 if $have_coretext; then
20912 CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation"
20918 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
20919 as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
20921 if $have_coretext; then
20923 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
20926 if $have_coretext; then
20927 HAVE_CORETEXT_TRUE=
20928 HAVE_CORETEXT_FALSE='#'
20930 HAVE_CORETEXT_TRUE='#'
20931 HAVE_CORETEXT_FALSE=
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
20937 $as_echo_n "checking for Intel atomic primitives... " >&6; }
20938 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
20939 $as_echo_n "(cached) " >&6
20942 hb_cv_have_intel_atomic_primitives=false
20943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20944 /* end confdefs.h. */
20946 void memory_barrier (void) { __sync_synchronize (); }
20947 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
20948 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
20949 void mutex_unlock (int *m) { __sync_lock_release (m); }
20959 if ac_fn_c_try_link "$LINENO"; then :
20960 hb_cv_have_intel_atomic_primitives=true
20963 rm -f core conftest.err conftest.$ac_objext \
20964 conftest$ac_exeext conftest.$ac_ext
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
20968 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
20969 if $hb_cv_have_intel_atomic_primitives; then
20971 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
20977 $as_echo_n "checking for Solaris atomic operations... " >&6; }
20978 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
20979 $as_echo_n "(cached) " >&6
20982 hb_cv_have_solaris_atomic_ops=false
20983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20984 /* end confdefs.h. */
20986 #include <atomic.h>
20987 /* This requires Solaris Studio 12.2 or newer: */
20988 #include <mbarrier.h>
20989 void memory_barrier (void) { __machine_rw_barrier (); }
20990 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
20991 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
21001 if ac_fn_c_try_link "$LINENO"; then :
21002 hb_cv_have_solaris_atomic_ops=true
21005 rm -f core conftest.err conftest.$ac_objext \
21006 conftest$ac_exeext conftest.$ac_ext
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
21010 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
21011 if $hb_cv_have_solaris_atomic_ops; then
21013 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
21017 if test "$os_win32" = no && ! $have_pthread; then
21018 for ac_header in sched.h
21020 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
21021 if test "x$ac_cv_header_sched_h" = xyes; then :
21022 cat >>confdefs.h <<_ACEOF
21023 #define HAVE_SCHED_H 1
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
21031 $as_echo_n "checking for library containing sched_yield... " >&6; }
21032 if ${ac_cv_search_sched_yield+:} false; then :
21033 $as_echo_n "(cached) " >&6
21035 ac_func_search_save_LIBS=$LIBS
21036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21037 /* end confdefs.h. */
21039 /* Override any GCC internal prototype to avoid an error.
21040 Use char because int might match the return type of a GCC
21041 builtin and then its argument prototype would still apply. */
21045 char sched_yield ();
21049 return sched_yield ();
21054 for ac_lib in '' rt; do
21055 if test -z "$ac_lib"; then
21056 ac_res="none required"
21059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21061 if ac_fn_c_try_link "$LINENO"; then :
21062 ac_cv_search_sched_yield=$ac_res
21064 rm -f core conftest.err conftest.$ac_objext \
21066 if ${ac_cv_search_sched_yield+:} false; then :
21070 if ${ac_cv_search_sched_yield+:} false; then :
21073 ac_cv_search_sched_yield=no
21075 rm conftest.$ac_ext
21076 LIBS=$ac_func_search_save_LIBS
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
21079 $as_echo "$ac_cv_search_sched_yield" >&6; }
21080 ac_res=$ac_cv_search_sched_yield
21081 if test "$ac_res" != no; then :
21082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21084 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
21091 ac_config_files="$ac_config_files Makefile src/Makefile src/harfbuzz-config.cmake src/hb-ucdn/Makefile util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shaping/Makefile test/shaping/data/Makefile test/shaping/data/aots/Makefile test/shaping/data/in-house/Makefile test/shaping/data/text-rendering-tests/Makefile test/subset/Makefile test/subset/data/Makefile docs/Makefile docs/version.xml"
21094 cat >confcache <<\_ACEOF
21095 # This file is a shell script that caches the results of configure
21096 # tests run on this system so they can be shared between configure
21097 # scripts and configure runs, see configure's option --config-cache.
21098 # It is not useful on other systems. If it contains results you don't
21099 # want to keep, you may remove or edit it.
21101 # config.status only pays attention to the cache file if you give it
21102 # the --recheck option to rerun configure.
21104 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21105 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21106 # following values.
21110 # The following way of writing the cache mishandles newlines in values,
21111 # but we know of no workaround that is simple, portable, and efficient.
21112 # So, we kill variables containing newlines.
21113 # Ultrix sh set writes to stderr and can't be redirected directly,
21114 # and sets the high bit in the cache file unless we assign to the vars.
21116 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21117 eval ac_val=\$$ac_var
21121 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21122 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21125 _ | IFS | as_nl) ;; #(
21126 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21127 *) { eval $ac_var=; unset $ac_var;} ;;
21133 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21134 *${as_nl}ac_space=\ *)
21135 # `set' does not quote correctly, so add quotes: double-quote
21136 # substitution turns \\\\ into \\, and sed turns \\ into \.
21139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21142 # `set' quotes correctly as required by POSIX, so do not add quotes.
21143 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21152 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21154 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21156 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21157 if test -w "$cache_file"; then
21158 if test "x$cache_file" != "x/dev/null"; then
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21160 $as_echo "$as_me: updating cache $cache_file" >&6;}
21161 if test ! -f "$cache_file" || test -h "$cache_file"; then
21162 cat confcache >"$cache_file"
21164 case $cache_file in #(
21166 mv -f confcache "$cache_file"$$ &&
21167 mv -f "$cache_file"$$ "$cache_file" ;; #(
21169 mv -f confcache "$cache_file" ;;
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21175 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21180 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21181 # Let make expand exec_prefix.
21182 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21184 DEFS=-DHAVE_CONFIG_H
21189 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21190 # 1. Remove the extension, and $U if already installed.
21191 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21192 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21193 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21194 # will be set to the directory where LIBOBJS objects are built.
21195 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21196 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21198 LIBOBJS=$ac_libobjs
21200 LTLIBOBJS=$ac_ltlibobjs
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21204 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21205 if test -n "$am_sleep_pid"; then
21206 # Hide warnings about reused PIDs.
21207 wait $am_sleep_pid 2>/dev/null
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21210 $as_echo "done" >&6; }
21211 if test -n "$EXEEXT"; then
21213 am__EXEEXT_FALSE='#'
21215 am__EXEEXT_TRUE='#'
21219 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
21220 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
21221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21223 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21224 as_fn_error $? "conditional \"AMDEP\" was never defined.
21225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21227 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21228 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21231 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21232 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21235 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21236 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21239 if test -z "${WITH_LIBSTDCXX_TRUE}" && test -z "${WITH_LIBSTDCXX_FALSE}"; then
21240 as_fn_error $? "conditional \"WITH_LIBSTDCXX\" was never defined.
21241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21243 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
21244 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
21245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21247 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
21248 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
21249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21251 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
21252 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
21253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21255 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
21256 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
21257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21259 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
21260 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
21261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21263 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
21264 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
21265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21267 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
21268 as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
21269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21271 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
21272 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
21273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21275 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
21276 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
21277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21279 if test -z "${HAVE_FALLBACK_TRUE}" && test -z "${HAVE_FALLBACK_FALSE}"; then
21280 as_fn_error $? "conditional \"HAVE_FALLBACK\" was never defined.
21281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21283 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
21284 as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
21285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21287 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
21288 as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
21289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21291 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
21292 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
21293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21295 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
21296 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
21297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21299 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
21300 as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
21301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21303 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
21304 as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
21305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21307 if test -z "${HAVE_FONTCONFIG_TRUE}" && test -z "${HAVE_FONTCONFIG_FALSE}"; then
21308 as_fn_error $? "conditional \"HAVE_FONTCONFIG\" was never defined.
21309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21311 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
21312 as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
21313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21315 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
21316 as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
21317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21319 if test -z "${HAVE_UCDN_TRUE}" && test -z "${HAVE_UCDN_FALSE}"; then
21320 as_fn_error $? "conditional \"HAVE_UCDN\" was never defined.
21321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21323 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
21324 as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
21325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21327 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
21328 as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
21329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21331 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
21332 as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
21333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21335 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
21336 as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
21337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21339 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
21340 as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
21341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21344 : "${CONFIG_STATUS=./config.status}"
21346 ac_clean_files_save=$ac_clean_files
21347 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21348 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21349 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21351 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21353 # Generated by $as_me.
21354 # Run this file to recreate the current configuration.
21355 # Compiler output produced by configure, useful for debugging
21356 # configure, is in config.log if it exists.
21359 ac_cs_recheck=false
21362 SHELL=\${CONFIG_SHELL-$SHELL}
21365 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21366 ## -------------------- ##
21367 ## M4sh Initialization. ##
21368 ## -------------------- ##
21370 # Be more Bourne compatible
21371 DUALCASE=1; export DUALCASE # for MKS sh
21372 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21375 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21376 # is contrary to our usage. Disable this feature.
21377 alias -g '${1+"$@"}'='"$@"'
21378 setopt NO_GLOB_SUBST
21380 case `(set -o) 2>/dev/null` in #(
21392 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21393 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21394 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21395 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21396 # Prefer a ksh shell builtin over an external printf program on Solaris,
21397 # but without wasting forks for bash or zsh.
21398 if test -z "$BASH_VERSION$ZSH_VERSION" \
21399 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21400 as_echo='print -r --'
21401 as_echo_n='print -rn --'
21402 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21403 as_echo='printf %s\n'
21404 as_echo_n='printf %s'
21406 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21407 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21408 as_echo_n='/usr/ucb/echo -n'
21410 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21411 as_echo_n_body='eval
21415 expr "X$arg" : "X\\(.*\\)$as_nl";
21416 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21418 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21420 export as_echo_n_body
21421 as_echo_n='sh -c $as_echo_n_body as_echo'
21423 export as_echo_body
21424 as_echo='sh -c $as_echo_body as_echo'
21427 # The user is always right.
21428 if test "${PATH_SEPARATOR+set}" != set; then
21430 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21431 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21438 # We need space, tab and new line, in precisely that order. Quoting is
21439 # there to prevent editors from complaining about space-tab.
21440 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21441 # splitting by setting IFS to empty value.)
21444 # Find who we are. Look in the path if we contain no directory separator.
21447 *[\\/]* ) as_myself=$0 ;;
21448 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21449 for as_dir in $PATH
21452 test -z "$as_dir" && as_dir=.
21453 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21459 # We did not find ourselves, most probably we were run as `sh COMMAND'
21460 # in which case we are not to be found in the path.
21461 if test "x$as_myself" = x; then
21464 if test ! -f "$as_myself"; then
21465 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21469 # Unset variables that we do not need and which cause bugs (e.g. in
21470 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21471 # suppresses any "Segmentation fault" message there. '((' could
21472 # trigger a bug in pdksh 5.2.14.
21473 for as_var in BASH_ENV ENV MAIL MAILPATH
21474 do eval test x\${$as_var+set} = xset \
21475 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21488 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21491 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21492 # ----------------------------------------
21493 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21494 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21495 # script with STATUS, using 1 if that was 0.
21498 as_status=$1; test $as_status -eq 0 && as_status=1
21500 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21501 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21503 $as_echo "$as_me: error: $2" >&2
21504 as_fn_exit $as_status
21508 # as_fn_set_status STATUS
21509 # -----------------------
21510 # Set $? to STATUS, without forking.
21511 as_fn_set_status ()
21514 } # as_fn_set_status
21516 # as_fn_exit STATUS
21517 # -----------------
21518 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21522 as_fn_set_status $1
21528 # Portably unset VAR.
21531 { eval $1=; unset $1;}
21533 as_unset=as_fn_unset
21534 # as_fn_append VAR VALUE
21535 # ----------------------
21536 # Append the text in VALUE to the end of the definition contained in VAR. Take
21537 # advantage of any shell optimizations that allow amortized linear growth over
21538 # repeated appends, instead of the typical quadratic growth present in naive
21540 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21541 eval 'as_fn_append ()
21552 # as_fn_arith ARG...
21553 # ------------------
21554 # Perform arithmetic evaluation on the ARGs, and store the result in the
21555 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21556 # must be portable across $(()) and expr.
21557 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21558 eval 'as_fn_arith ()
21565 as_val=`expr "$@" || test $? -eq 1`
21570 if expr a : '\(a\)' >/dev/null 2>&1 &&
21571 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21577 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21578 as_basename=basename
21583 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21589 as_me=`$as_basename -- "$0" ||
21590 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21591 X"$0" : 'X\(//\)$' \| \
21592 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21594 sed '/^.*\/\([^/][^/]*\)\/*$/{
21608 # Avoid depending upon Character Ranges.
21609 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21610 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21611 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21612 as_cr_digits='0123456789'
21613 as_cr_alnum=$as_cr_Letters$as_cr_digits
21615 ECHO_C= ECHO_N= ECHO_T=
21616 case `echo -n x` in #(((((
21618 case `echo 'xy\c'` in
21619 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21621 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21628 rm -f conf$$ conf$$.exe conf$$.file
21629 if test -d conf$$.dir; then
21630 rm -f conf$$.dir/conf$$.file
21633 mkdir conf$$.dir 2>/dev/null
21635 if (echo >conf$$.file) 2>/dev/null; then
21636 if ln -s conf$$.file conf$$ 2>/dev/null; then
21638 # ... but there are two gotchas:
21639 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21640 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21641 # In both cases, we have to default to `cp -pR'.
21642 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21644 elif ln conf$$.file conf$$ 2>/dev/null; then
21652 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21653 rmdir conf$$.dir 2>/dev/null
21658 # Create "$as_dir" as a directory, including parents if necessary.
21663 -*) as_dir=./$as_dir;;
21665 test -d "$as_dir" || eval $as_mkdir_p || {
21669 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21670 *) as_qdir=$as_dir;;
21672 as_dirs="'$as_qdir' $as_dirs"
21673 as_dir=`$as_dirname -- "$as_dir" ||
21674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21675 X"$as_dir" : 'X\(//\)[^/]' \| \
21676 X"$as_dir" : 'X\(//\)$' \| \
21677 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21678 $as_echo X"$as_dir" |
21679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21683 /^X\(\/\/\)[^/].*/{
21696 test -d "$as_dir" && break
21698 test -z "$as_dirs" || eval "mkdir $as_dirs"
21699 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21703 if mkdir -p . 2>/dev/null; then
21704 as_mkdir_p='mkdir -p "$as_dir"'
21706 test -d ./-p && rmdir ./-p
21711 # as_fn_executable_p FILE
21712 # -----------------------
21713 # Test if FILE is an executable regular file.
21714 as_fn_executable_p ()
21716 test -f "$1" && test -x "$1"
21717 } # as_fn_executable_p
21718 as_test_x='test -x'
21719 as_executable_p=as_fn_executable_p
21721 # Sed expression to map a string onto a valid CPP name.
21722 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21724 # Sed expression to map a string onto a valid variable name.
21725 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21729 ## ----------------------------------- ##
21730 ## Main body of $CONFIG_STATUS script. ##
21731 ## ----------------------------------- ##
21733 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21736 # Save the log message, to keep $0 and so on meaningful, and to
21737 # report actual input values of CONFIG_FILES etc. instead of their
21738 # values after options handling.
21740 This file was extended by HarfBuzz $as_me 2.4.0, which was
21741 generated by GNU Autoconf 2.69. Invocation command line was
21743 CONFIG_FILES = $CONFIG_FILES
21744 CONFIG_HEADERS = $CONFIG_HEADERS
21745 CONFIG_LINKS = $CONFIG_LINKS
21746 CONFIG_COMMANDS = $CONFIG_COMMANDS
21749 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21754 case $ac_config_files in *"
21755 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21758 case $ac_config_headers in *"
21759 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21764 # Files that config.status was made for.
21765 config_files="$ac_config_files"
21766 config_headers="$ac_config_headers"
21767 config_commands="$ac_config_commands"
21771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21773 \`$as_me' instantiates files and other configuration actions
21774 from templates according to the current configuration. Unless the files
21775 and actions are specified as TAGs, all are instantiated by default.
21777 Usage: $0 [OPTION]... [TAG]...
21779 -h, --help print this help, then exit
21780 -V, --version print version number and configuration settings, then exit
21781 --config print configuration, then exit
21782 -q, --quiet, --silent
21783 do not print progress messages
21784 -d, --debug don't remove temporary files
21785 --recheck update $as_me by reconfiguring in the same conditions
21786 --file=FILE[:TEMPLATE]
21787 instantiate the configuration file FILE
21788 --header=FILE[:TEMPLATE]
21789 instantiate the configuration header FILE
21791 Configuration files:
21794 Configuration headers:
21797 Configuration commands:
21800 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
21801 HarfBuzz home page: <http://harfbuzz.org/>."
21804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21805 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21807 HarfBuzz config.status 2.4.0
21808 configured by $0, generated by GNU Autoconf 2.69,
21809 with options \\"\$ac_cs_config\\"
21811 Copyright (C) 2012 Free Software Foundation, Inc.
21812 This config.status script is free software; the Free Software Foundation
21813 gives unlimited permission to copy, distribute and modify it."
21820 test -n "\$AWK" || AWK=awk
21823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21824 # The default lists apply if the user does not specify any file.
21830 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21831 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21835 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21847 # Handling of the options.
21848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21850 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21851 $as_echo "$ac_cs_version"; exit ;;
21852 --config | --confi | --conf | --con | --co | --c )
21853 $as_echo "$ac_cs_config"; exit ;;
21854 --debug | --debu | --deb | --de | --d | -d )
21856 --file | --fil | --fi | --f )
21859 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21860 '') as_fn_error $? "missing file argument" ;;
21862 as_fn_append CONFIG_FILES " '$ac_optarg'"
21863 ac_need_defaults=false;;
21864 --header | --heade | --head | --hea )
21867 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21869 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21870 ac_need_defaults=false;;
21872 # Conflict between --help and --header
21873 as_fn_error $? "ambiguous option: \`$1'
21874 Try \`$0 --help' for more information.";;
21875 --help | --hel | -h )
21876 $as_echo "$ac_cs_usage"; exit ;;
21877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21878 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21881 # This is an error.
21882 -*) as_fn_error $? "unrecognized option: \`$1'
21883 Try \`$0 --help' for more information." ;;
21885 *) as_fn_append ac_config_targets " $1"
21886 ac_need_defaults=false ;;
21892 ac_configure_extra_args=
21894 if $ac_cs_silent; then
21896 ac_configure_extra_args="$ac_configure_extra_args --silent"
21900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21901 if \$ac_cs_recheck; then
21902 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21904 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21905 CONFIG_SHELL='$SHELL'
21906 export CONFIG_SHELL
21911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21915 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21916 ## Running $as_me. ##
21922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21926 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21929 # The HP-UX ksh and POSIX shell print the target directory to stdout
21930 # if CDPATH is set.
21931 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21933 sed_quote_subst='$sed_quote_subst'
21934 double_quote_subst='$double_quote_subst'
21935 delay_variable_subst='$delay_variable_subst'
21936 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21937 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21938 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21939 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21940 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21941 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21942 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21943 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21944 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21945 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21946 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21947 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21948 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21949 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21950 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21951 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21952 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21953 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21954 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21955 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21956 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21957 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21958 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21959 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21960 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21961 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21962 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21963 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21964 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21965 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21966 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21967 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21968 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21969 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21970 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21971 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21972 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21973 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21974 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21975 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21976 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21977 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21978 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21979 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21980 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21981 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21982 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21983 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21984 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21985 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21986 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21987 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21988 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21989 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21990 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21991 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21992 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21993 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21994 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21995 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"`'
21996 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21997 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21998 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21999 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22000 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22001 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22002 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22003 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22004 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22005 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22006 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22007 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22008 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22009 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22010 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22011 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22012 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22013 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22014 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22015 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22016 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22017 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22018 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22019 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22020 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22021 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22022 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22023 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22024 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22025 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22026 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22027 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22028 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22029 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22030 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22031 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22032 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22033 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22034 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22035 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22036 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22037 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22038 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22039 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22040 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22041 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22042 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22043 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22044 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22045 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22046 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22047 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22048 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22049 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22050 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22051 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22052 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22053 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22054 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22055 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22056 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22057 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22058 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22059 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22060 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22061 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22062 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22063 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22064 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22065 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22066 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22067 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22068 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22069 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22070 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22071 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22072 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22073 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22074 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22075 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22076 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22077 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22078 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22079 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22080 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22081 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22082 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22083 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22084 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22085 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22086 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22087 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22088 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22089 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22090 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22091 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22092 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22093 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22094 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22095 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22096 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22097 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22098 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22099 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22100 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22101 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22102 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22103 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22104 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22105 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22106 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22107 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22108 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22109 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22110 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22111 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22112 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22113 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22114 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22115 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22116 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22117 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22118 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22119 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22120 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22121 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22122 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22123 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22124 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22125 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22128 LTCFLAGS='$LTCFLAGS'
22129 compiler='$compiler_DEFAULT'
22131 # A function that is used when there is no print builtin or printf.
22132 func_fallback_echo ()
22134 eval 'cat <<_LTECHO_EOF
22139 # Quote evaled strings.
22154 deplibs_check_method \
22159 sharedlib_from_linklib_cmd \
22161 archiver_list_spec \
22167 lt_cv_sys_global_symbol_pipe \
22168 lt_cv_sys_global_symbol_to_cdecl \
22169 lt_cv_sys_global_symbol_to_import \
22170 lt_cv_sys_global_symbol_to_c_name_address \
22171 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22172 lt_cv_nm_interface \
22173 nm_file_list_spec \
22174 lt_cv_truncate_bin \
22175 lt_prog_compiler_no_builtin_flag \
22176 lt_prog_compiler_pic \
22177 lt_prog_compiler_wl \
22178 lt_prog_compiler_static \
22179 lt_cv_prog_compiler_c_o \
22188 export_dynamic_flag_spec \
22189 whole_archive_flag_spec \
22190 compiler_needs_object \
22192 allow_undefined_flag \
22193 no_undefined_flag \
22194 hardcode_libdir_flag_spec \
22195 hardcode_libdir_separator \
22199 variables_saved_for_relink \
22201 library_names_spec \
22203 install_override_mode \
22207 compiler_lib_search_dirs \
22212 compiler_lib_search_path \
22216 lt_prog_compiler_no_builtin_flag_CXX \
22217 lt_prog_compiler_pic_CXX \
22218 lt_prog_compiler_wl_CXX \
22219 lt_prog_compiler_static_CXX \
22220 lt_cv_prog_compiler_c_o_CXX \
22221 export_dynamic_flag_spec_CXX \
22222 whole_archive_flag_spec_CXX \
22223 compiler_needs_object_CXX \
22225 allow_undefined_flag_CXX \
22226 no_undefined_flag_CXX \
22227 hardcode_libdir_flag_spec_CXX \
22228 hardcode_libdir_separator_CXX \
22229 exclude_expsyms_CXX \
22230 include_expsyms_CXX \
22231 file_list_spec_CXX \
22232 compiler_lib_search_dirs_CXX \
22233 predep_objects_CXX \
22234 postdep_objects_CXX \
22237 compiler_lib_search_path_CXX; do
22238 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22239 *[\\\\\\\`\\"\\\$]*)
22240 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22243 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22248 # Double-quote double-evaled strings.
22249 for var in reload_cmds \
22250 old_postinstall_cmds \
22251 old_postuninstall_cmds \
22253 extract_expsyms_cmds \
22254 old_archive_from_new_cmds \
22255 old_archive_from_expsyms_cmds \
22257 archive_expsym_cmds \
22259 module_expsym_cmds \
22260 export_symbols_cmds \
22264 postuninstall_cmds \
22266 sys_lib_search_path_spec \
22267 configure_time_dlsearch_path \
22268 configure_time_lt_sys_library_path \
22270 old_archive_cmds_CXX \
22271 old_archive_from_new_cmds_CXX \
22272 old_archive_from_expsyms_cmds_CXX \
22274 archive_expsym_cmds_CXX \
22276 module_expsym_cmds_CXX \
22277 export_symbols_cmds_CXX \
22279 postlink_cmds_CXX; do
22280 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22281 *[\\\\\\\`\\"\\\$]*)
22282 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22285 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22290 ac_aux_dir='$ac_aux_dir'
22292 # See if we are running on zsh, and set the options that allow our
22293 # commands through without removal of \ escapes INIT.
22294 if test -n "\${ZSH_VERSION+set}"; then
22295 setopt NO_GLOB_SUBST
22311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22313 # Handling of arguments.
22314 for ac_config_target in $ac_config_targets
22316 case $ac_config_target in
22317 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22318 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22319 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22320 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22321 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22322 "src/harfbuzz-config.cmake") CONFIG_FILES="$CONFIG_FILES src/harfbuzz-config.cmake" ;;
22323 "src/hb-ucdn/Makefile") CONFIG_FILES="$CONFIG_FILES src/hb-ucdn/Makefile" ;;
22324 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
22325 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22326 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
22327 "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
22328 "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
22329 "test/shaping/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/Makefile" ;;
22330 "test/shaping/data/aots/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/aots/Makefile" ;;
22331 "test/shaping/data/in-house/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/in-house/Makefile" ;;
22332 "test/shaping/data/text-rendering-tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/text-rendering-tests/Makefile" ;;
22333 "test/subset/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/Makefile" ;;
22334 "test/subset/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/Makefile" ;;
22335 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
22336 "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
22338 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22343 # If the user did not use the arguments to specify the items to instantiate,
22344 # then the envvar interface is used. Set only those that are not.
22345 # We use the long form for the default assignment because of an extremely
22346 # bizarre bug on SunOS 4.1.3.
22347 if $ac_need_defaults; then
22348 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22349 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22350 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22353 # Have a temporary directory for convenience. Make it in the build tree
22354 # simply because there is no reason against having it here, and in addition,
22355 # creating and moving files from /tmp can sometimes cause problems.
22356 # Hook for its removal unless debugging.
22357 # Note that there is a small window in which the directory will not be cleaned:
22358 # after its creation but before its name has been assigned to `$tmp'.
22362 trap 'exit_status=$?
22363 : "${ac_tmp:=$tmp}"
22364 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22366 trap 'as_fn_exit 1' 1 2 13 15
22368 # Create a (secure) tmp directory for tmp files.
22371 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22375 tmp=./conf$$-$RANDOM
22376 (umask 077 && mkdir "$tmp")
22377 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22380 # Set up the scripts for CONFIG_FILES section.
22381 # No need to generate them if there are no CONFIG_FILES.
22382 # This happens for instance with `./config.status config.h'.
22383 if test -n "$CONFIG_FILES"; then
22386 ac_cr=`echo X | tr X '\015'`
22387 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22388 # But we know of no other shell where ac_cr would be empty at this
22389 # point, so we can use a bashism as a fallback.
22390 if test "x$ac_cr" = x; then
22391 eval ac_cr=\$\'\\r\'
22393 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22394 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22397 ac_cs_awk_cr=$ac_cr
22400 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22405 echo "cat >conf$$subs.awk <<_ACEOF" &&
22406 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22408 } >conf$$subs.sh ||
22409 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22410 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22412 for ac_last_try in false false false false false :; do
22413 . ./conf$$subs.sh ||
22414 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22416 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22417 if test $ac_delim_n = $ac_delim_num; then
22419 elif $ac_last_try; then
22420 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22422 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22425 rm -f conf$$subs.sh
22427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22428 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22432 s/^/S["/; s/!.*/"]=/
22442 s/\(.\{148\}\)..*/\1/
22444 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22449 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22456 s/\(.\{148\}\)..*/\1/
22458 s/["\\]/\\&/g; s/^/"/; s/$/"/
22462 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22467 ' <conf$$subs.awk | sed '
22472 ' >>$CONFIG_STATUS || ac_write_fail=1
22473 rm -f conf$$subs.awk
22474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22476 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22477 for (key in S) S_is_set[key] = 1
22483 nfields = split(line, field, "@")
22485 len = length(field[1])
22486 for (i = 2; i < nfields; i++) {
22488 keylen = length(key)
22489 if (S_is_set[key]) {
22491 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22492 len += length(value) + length(field[++i])
22503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22504 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22505 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22508 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22509 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22512 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22513 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22514 # trailing colons and then remove the whole line if VPATH becomes empty
22515 # (actually we leave an empty line to preserve line numbers).
22516 if test "x$srcdir" = x.; then
22517 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22536 fi # test -n "$CONFIG_FILES"
22538 # Set up the scripts for CONFIG_HEADERS section.
22539 # No need to generate them if there are no CONFIG_HEADERS.
22540 # This happens for instance with `./config.status Makefile'.
22541 if test -n "$CONFIG_HEADERS"; then
22542 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22546 # Transform confdefs.h into an awk script `defines.awk', embedded as
22547 # here-document in config.status, that substitutes the proper values into
22548 # config.h.in to produce config.h.
22550 # Create a delimiter string that does not exist in confdefs.h, to ease
22551 # handling of long lines.
22553 for ac_last_try in false false :; do
22554 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22555 if test -z "$ac_tt"; then
22557 elif $ac_last_try; then
22558 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22564 # For the awk script, D is an array of macro values keyed by name,
22565 # likewise P contains macro parameters if any. Preserve backslash
22566 # newline sequences.
22568 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22570 s/.\{148\}/&'"$ac_delim"'/g
22573 s/^[ ]*#[ ]*define[ ][ ]*/ /
22580 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22582 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22586 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22587 D["\1"]=" \3\\\\\\n"\\/p
22589 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22594 s/.\{148\}/&'"$ac_delim"'/g
22599 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22602 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22604 ' <confdefs.h | sed '
22605 s/'"$ac_delim"'/"\\\
22606 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22609 for (key in D) D_is_set[key] = 1
22612 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22614 split(line, arg, " ")
22615 if (arg[1] == "#") {
22619 defundef = substr(arg[1], 2)
22622 split(mac1, mac2, "(") #)
22624 prefix = substr(line, 1, index(line, defundef) - 1)
22625 if (D_is_set[macro]) {
22626 # Preserve the white space surrounding the "#".
22627 print prefix "define", macro P[macro] D[macro]
22630 # Replace #undef with comments. This is necessary, for example,
22631 # in the case of _POSIX_SOURCE, which is predefined and required
22632 # on some systems where configure will not decide to define it.
22633 if (defundef == "undef") {
22634 print "/*", prefix defundef, macro, "*/"
22642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22643 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22644 fi # test -n "$CONFIG_HEADERS"
22647 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22652 :[FHLC]) ac_mode=$ac_tag; continue;;
22654 case $ac_mode$ac_tag in
22656 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22657 :[FH]-) ac_tag=-:-;;
22658 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22675 -) ac_f="$ac_tmp/stdin";;
22676 *) # Look for the file first in the build tree, then in the source tree
22677 # (if the path is not absolute). The absolute path cannot be DOS-style,
22678 # because $ac_f cannot contain `:'.
22682 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22684 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22686 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22687 as_fn_append ac_file_inputs " '$ac_f'"
22690 # Let's still pretend it is `configure' which instantiates (i.e., don't
22691 # use $as_me), people would be surprised to read:
22692 # /* config.h. Generated by config.status. */
22693 configure_input='Generated from '`
22694 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22696 if test x"$ac_file" != x-; then
22697 configure_input="$ac_file. $configure_input"
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22699 $as_echo "$as_me: creating $ac_file" >&6;}
22701 # Neutralize special characters interpreted by sed in replacement strings.
22702 case $configure_input in #(
22703 *\&* | *\|* | *\\* )
22704 ac_sed_conf_input=`$as_echo "$configure_input" |
22705 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22706 *) ac_sed_conf_input=$configure_input;;
22710 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22711 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22716 ac_dir=`$as_dirname -- "$ac_file" ||
22717 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22718 X"$ac_file" : 'X\(//\)[^/]' \| \
22719 X"$ac_file" : 'X\(//\)$' \| \
22720 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22721 $as_echo X"$ac_file" |
22722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22726 /^X\(\/\/\)[^/].*/{
22739 as_dir="$ac_dir"; as_fn_mkdir_p
22743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22745 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22746 # A ".." for each directory in $ac_dir_suffix.
22747 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22748 case $ac_top_builddir_sub in
22749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22753 ac_abs_top_builddir=$ac_pwd
22754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22755 # for backward compatibility:
22756 ac_top_builddir=$ac_top_build_prefix
22759 .) # We are building in place.
22761 ac_top_srcdir=$ac_top_builddir_sub
22762 ac_abs_top_srcdir=$ac_pwd ;;
22763 [\\/]* | ?:[\\/]* ) # Absolute name.
22764 ac_srcdir=$srcdir$ac_dir_suffix;
22765 ac_top_srcdir=$srcdir
22766 ac_abs_top_srcdir=$srcdir ;;
22767 *) # Relative name.
22768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22769 ac_top_srcdir=$ac_top_build_prefix$srcdir
22770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22782 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22783 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22785 ac_MKDIR_P=$MKDIR_P
22787 [\\/$]* | ?:[\\/]* ) ;;
22788 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22793 # If the template does not know about datarootdir, expand it.
22794 # FIXME: This hack should be removed a few years after 2.60.
22795 ac_datarootdir_hack=; ac_datarootdir_seen=
22806 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22807 *datarootdir*) ac_datarootdir_seen=yes;;
22808 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22810 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22813 ac_datarootdir_hack='
22814 s&@datadir@&$datadir&g
22815 s&@docdir@&$docdir&g
22816 s&@infodir@&$infodir&g
22817 s&@localedir@&$localedir&g
22818 s&@mandir@&$mandir&g
22819 s&\\\${datarootdir}&$datarootdir&g' ;;
22823 # Neutralize VPATH when `$srcdir' = `.'.
22824 # Shell code in configure.ac might set extrasub.
22825 # FIXME: do we really want to maintain this feature?
22826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22827 ac_sed_extra="$ac_vpsub
22830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22833 s|@configure_input@|$ac_sed_conf_input|;t t
22834 s&@top_builddir@&$ac_top_builddir_sub&;t t
22835 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22836 s&@srcdir@&$ac_srcdir&;t t
22837 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22838 s&@top_srcdir@&$ac_top_srcdir&;t t
22839 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22840 s&@builddir@&$ac_builddir&;t t
22841 s&@abs_builddir@&$ac_abs_builddir&;t t
22842 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22843 s&@INSTALL@&$ac_INSTALL&;t t
22844 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22845 $ac_datarootdir_hack
22847 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22848 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22850 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22851 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22852 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22853 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22855 which seems to be undefined. Please make sure it is defined" >&5
22856 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22857 which seems to be undefined. Please make sure it is defined" >&2;}
22859 rm -f "$ac_tmp/stdin"
22861 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22862 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22870 if test x"$ac_file" != x-; then
22872 $as_echo "/* $configure_input */" \
22873 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22874 } >"$ac_tmp/config.h" \
22875 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22876 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22878 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22881 mv "$ac_tmp/config.h" "$ac_file" \
22882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22885 $as_echo "/* $configure_input */" \
22886 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22887 || as_fn_error $? "could not create -" "$LINENO" 5
22889 # Compute "$ac_file"'s index in $config_headers.
22892 for _am_header in $config_headers :; do
22893 case $_am_header in
22894 $_am_arg | $_am_arg:* )
22897 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22900 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22901 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22902 X"$_am_arg" : 'X\(//\)[^/]' \| \
22903 X"$_am_arg" : 'X\(//\)$' \| \
22904 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22905 $as_echo X"$_am_arg" |
22906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22910 /^X\(\/\/\)[^/].*/{
22922 s/.*/./; q'`/stamp-h$_am_stamp_count
22925 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22926 $as_echo "$as_me: executing $ac_file commands" >&6;}
22931 case $ac_file$ac_mode in
22932 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22933 # Older Autoconf quotes --file arguments for eval, but not when files
22934 # are listed without --file. Let's play safe and only enable the eval
22935 # if we detect the quoting.
22936 # TODO: see whether this extra hack can be removed once we start
22937 # requiring Autoconf 2.70 or later.
22938 case $CONFIG_FILES in #(
22940 eval set x "$CONFIG_FILES" ;; #(
22942 set x $CONFIG_FILES ;; #(
22947 # Used to flag and report bootstrapping failures.
22951 # Strip MF so we end up with the name of the file.
22952 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
22953 # Check whether this is an Automake generated Makefile which includes
22954 # dependency-tracking related rules and includes.
22955 # Grep'ing the whole file directly is not great: AIX grep has a line
22956 # limit of 2048, but all sed's we know have understand at least 4000.
22957 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22959 am_dirpart=`$as_dirname -- "$am_mf" ||
22960 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22961 X"$am_mf" : 'X\(//\)[^/]' \| \
22962 X"$am_mf" : 'X\(//\)$' \| \
22963 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22964 $as_echo X"$am_mf" |
22965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22969 /^X\(\/\/\)[^/].*/{
22982 am_filepart=`$as_basename -- "$am_mf" ||
22983 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22984 X"$am_mf" : 'X\(//\)$' \| \
22985 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22986 $as_echo X/"$am_mf" |
22987 sed '/^.*\/\([^/][^/]*\)\/*$/{
23000 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23001 && sed -e '/# am--include-marker/d' "$am_filepart" \
23002 | $MAKE -f - am--depfiles" >&5
23003 (cd "$am_dirpart" \
23004 && sed -e '/# am--include-marker/d' "$am_filepart" \
23005 | $MAKE -f - am--depfiles) >&5 2>&5
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); } || am_rc=$?
23010 if test $am_rc -ne 0; then
23011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23013 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23014 for automatic dependency tracking. Try re-running configure with the
23015 '--disable-dependency-tracking' option to at least be able to build
23016 the package (albeit without support for automatic dependency tracking).
23017 See \`config.log' for more details" "$LINENO" 5; }
23019 { am_dirpart=; unset am_dirpart;}
23020 { am_filepart=; unset am_filepart;}
23021 { am_mf=; unset am_mf;}
23022 { am_rc=; unset am_rc;}
23023 rm -f conftest-deps.mk
23028 # See if we are running on zsh, and set the options that allow our
23029 # commands through without removal of \ escapes.
23030 if test -n "${ZSH_VERSION+set}"; then
23031 setopt NO_GLOB_SUBST
23035 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23038 cat <<_LT_EOF >> "$cfgfile"
23040 # Generated automatically by $as_me ($PACKAGE) $VERSION
23041 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23042 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23044 # Provide generalized library-building support services.
23045 # Written by Gordon Matzigkeit, 1996
23047 # Copyright (C) 2014 Free Software Foundation, Inc.
23048 # This is free software; see the source for copying conditions. There is NO
23049 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23051 # GNU Libtool is free software; you can redistribute it and/or modify
23052 # it under the terms of the GNU General Public License as published by
23053 # the Free Software Foundation; either version 2 of of the License, or
23054 # (at your option) any later version.
23056 # As a special exception to the GNU General Public License, if you
23057 # distribute this file as part of a program or library that is built
23058 # using GNU Libtool, you may include this file under the same
23059 # distribution terms that you use for the rest of that program.
23061 # GNU Libtool is distributed in the hope that it will be useful, but
23062 # WITHOUT ANY WARRANTY; without even the implied warranty of
23063 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23064 # GNU General Public License for more details.
23066 # You should have received a copy of the GNU General Public License
23067 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23070 # The names of the tagged configurations supported by this script.
23071 available_tags='CXX '
23073 # Configured defaults for sys_lib_dlsearch_path munging.
23074 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23076 # ### BEGIN LIBTOOL CONFIG
23078 # Which release of libtool.m4 was used?
23079 macro_version=$macro_version
23080 macro_revision=$macro_revision
23082 # Whether or not to build static libraries.
23083 build_old_libs=$enable_static
23085 # Whether or not to build shared libraries.
23086 build_libtool_libs=$enable_shared
23088 # What type of objects to build.
23091 # Whether or not to optimize for fast installation.
23092 fast_install=$enable_fast_install
23094 # Shared archive member basename,for filename based shared library versioning on AIX.
23095 shared_archive_member_spec=$shared_archive_member_spec
23097 # Shell to use when invoking shell scripts.
23100 # An echo program that protects backslashes.
23103 # The PATH separator for the build system.
23104 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23107 host_alias=$host_alias
23111 # The build system.
23112 build_alias=$build_alias
23116 # A sed program that does not truncate output.
23119 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23120 Xsed="\$SED -e 1s/^X//"
23122 # A grep program that handles long lines.
23128 # A literal string matcher.
23131 # A BSD- or MS-compatible name lister.
23134 # Whether we need soft or hard links.
23137 # What is the maximum length of a command?
23138 max_cmd_len=$max_cmd_len
23140 # Object file suffix (normally "o").
23143 # Executable file suffix (normally "").
23146 # whether the shell understands "unset".
23149 # turn spaces into newlines.
23152 # turn newlines into spaces.
23155 # convert \$build file names to \$host format.
23156 to_host_file_cmd=$lt_cv_to_host_file_cmd
23158 # convert \$build files to toolchain format.
23159 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23161 # An object symbol dumper.
23162 OBJDUMP=$lt_OBJDUMP
23164 # Method to check whether dependent libraries are shared objects.
23165 deplibs_check_method=$lt_deplibs_check_method
23167 # Command to use when deplibs_check_method = "file_magic".
23168 file_magic_cmd=$lt_file_magic_cmd
23170 # How to find potential files when deplibs_check_method = "file_magic".
23171 file_magic_glob=$lt_file_magic_glob
23173 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23174 want_nocaseglob=$lt_want_nocaseglob
23176 # DLL creation program.
23177 DLLTOOL=$lt_DLLTOOL
23179 # Command to associate shared and link libraries.
23180 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23185 # Flags to create an archive (by configure).
23186 lt_ar_flags=$lt_ar_flags
23188 # Flags to create an archive.
23189 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23191 # How to feed a file listing to the archiver.
23192 archiver_list_spec=$lt_archiver_list_spec
23194 # A symbol stripping program.
23197 # Commands used to install an old-style archive.
23199 old_postinstall_cmds=$lt_old_postinstall_cmds
23200 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23202 # Whether to use a lock for old archive extraction.
23203 lock_old_archive_extraction=$lock_old_archive_extraction
23208 # LTCC compiler flags.
23209 LTCFLAGS=$lt_CFLAGS
23211 # Take the output of nm and produce a listing of raw symbols and C names.
23212 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23214 # Transform the output of nm in a proper C declaration.
23215 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23217 # Transform the output of nm into a list of symbols to manually relocate.
23218 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23220 # Transform the output of nm in a C name address pair.
23221 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23223 # Transform the output of nm in a C name address pair when lib prefix is needed.
23224 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23226 # The name lister interface.
23227 nm_interface=$lt_lt_cv_nm_interface
23229 # Specify filename containing input files for \$NM.
23230 nm_file_list_spec=$lt_nm_file_list_spec
23232 # The root where to search for dependent libraries,and where our libraries should be installed.
23233 lt_sysroot=$lt_sysroot
23235 # Command to truncate a binary pipe.
23236 lt_truncate_bin=$lt_lt_cv_truncate_bin
23238 # The name of the directory that contains temporary libtool files.
23241 # Used to examine libraries when file_magic_cmd begins with "file".
23242 MAGIC_CMD=$MAGIC_CMD
23244 # Must we lock files when doing compilation?
23245 need_locks=$lt_need_locks
23248 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23250 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23251 DSYMUTIL=$lt_DSYMUTIL
23253 # Tool to change global to local symbols on Mac OS X.
23256 # Tool to manipulate fat objects and archives on Mac OS X.
23259 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23262 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23263 OTOOL64=$lt_OTOOL64
23265 # Old archive suffix (normally "a").
23268 # Shared library suffix (normally ".so").
23269 shrext_cmds=$lt_shrext_cmds
23271 # The commands to extract the exported symbol list from a shared archive.
23272 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23274 # Variables whose values should be saved in libtool wrapper scripts and
23275 # restored at link time.
23276 variables_saved_for_relink=$lt_variables_saved_for_relink
23278 # Do we need the "lib" prefix for modules?
23279 need_lib_prefix=$need_lib_prefix
23281 # Do we need a version for libraries?
23282 need_version=$need_version
23284 # Library versioning type.
23285 version_type=$version_type
23287 # Shared library runtime path variable.
23288 runpath_var=$runpath_var
23290 # Shared library path variable.
23291 shlibpath_var=$shlibpath_var
23293 # Is shlibpath searched before the hard-coded library search path?
23294 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23296 # Format of library name prefix.
23297 libname_spec=$lt_libname_spec
23299 # List of archive names. First name is the real one, the rest are links.
23300 # The last name is the one that the linker finds with -lNAME
23301 library_names_spec=$lt_library_names_spec
23303 # The coded name of the library, if different from the real name.
23304 soname_spec=$lt_soname_spec
23306 # Permission mode override for installation of shared libraries.
23307 install_override_mode=$lt_install_override_mode
23309 # Command to use after installation of a shared archive.
23310 postinstall_cmds=$lt_postinstall_cmds
23312 # Command to use after uninstallation of a shared archive.
23313 postuninstall_cmds=$lt_postuninstall_cmds
23315 # Commands used to finish a libtool library installation in a directory.
23316 finish_cmds=$lt_finish_cmds
23318 # As "finish_cmds", except a single script fragment to be evaled but
23320 finish_eval=$lt_finish_eval
23322 # Whether we should hardcode library paths into libraries.
23323 hardcode_into_libs=$hardcode_into_libs
23325 # Compile-time system search path for libraries.
23326 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23328 # Detected run-time system search path for libraries.
23329 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23331 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23332 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23334 # Whether dlopen is supported.
23335 dlopen_support=$enable_dlopen
23337 # Whether dlopen of programs is supported.
23338 dlopen_self=$enable_dlopen_self
23340 # Whether dlopen of statically linked programs is supported.
23341 dlopen_self_static=$enable_dlopen_self_static
23343 # Commands to strip libraries.
23344 old_striplib=$lt_old_striplib
23345 striplib=$lt_striplib
23348 # The linker used to build libraries.
23351 # How to create reloadable object files.
23352 reload_flag=$lt_reload_flag
23353 reload_cmds=$lt_reload_cmds
23355 # Commands used to build an old-style archive.
23356 old_archive_cmds=$lt_old_archive_cmds
23358 # A language specific compiler.
23361 # Is the compiler the GNU compiler?
23364 # Compiler flag to turn off builtin functions.
23365 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23367 # Additional compiler flags for building library objects.
23368 pic_flag=$lt_lt_prog_compiler_pic
23370 # How to pass a linker flag through the compiler.
23371 wl=$lt_lt_prog_compiler_wl
23373 # Compiler flag to prevent dynamic linking.
23374 link_static_flag=$lt_lt_prog_compiler_static
23376 # Does compiler simultaneously support -c and -o options?
23377 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23379 # Whether or not to add -lc for building shared libraries.
23380 build_libtool_need_lc=$archive_cmds_need_lc
23382 # Whether or not to disallow shared libs when runtime libs are static.
23383 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23385 # Compiler flag to allow reflexive dlopens.
23386 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23388 # Compiler flag to generate shared objects directly from archives.
23389 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23391 # Whether the compiler copes with passing no objects directly.
23392 compiler_needs_object=$lt_compiler_needs_object
23394 # Create an old-style archive from a shared archive.
23395 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23397 # Create a temporary old-style archive to link instead of a shared archive.
23398 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23400 # Commands used to build a shared archive.
23401 archive_cmds=$lt_archive_cmds
23402 archive_expsym_cmds=$lt_archive_expsym_cmds
23404 # Commands used to build a loadable module if different from building
23405 # a shared archive.
23406 module_cmds=$lt_module_cmds
23407 module_expsym_cmds=$lt_module_expsym_cmds
23409 # Whether we are building with GNU ld or not.
23410 with_gnu_ld=$lt_with_gnu_ld
23412 # Flag that allows shared libraries with undefined symbols to be built.
23413 allow_undefined_flag=$lt_allow_undefined_flag
23415 # Flag that enforces no undefined symbols.
23416 no_undefined_flag=$lt_no_undefined_flag
23418 # Flag to hardcode \$libdir into a binary during linking.
23419 # This must work even if \$libdir does not exist
23420 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23422 # Whether we need a single "-rpath" flag with a separated argument.
23423 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23425 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23426 # DIR into the resulting binary.
23427 hardcode_direct=$hardcode_direct
23429 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23430 # DIR into the resulting binary and the resulting library dependency is
23431 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23432 # library is relocated.
23433 hardcode_direct_absolute=$hardcode_direct_absolute
23435 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23436 # into the resulting binary.
23437 hardcode_minus_L=$hardcode_minus_L
23439 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23440 # into the resulting binary.
23441 hardcode_shlibpath_var=$hardcode_shlibpath_var
23443 # Set to "yes" if building a shared library automatically hardcodes DIR
23444 # into the library and all subsequent libraries and executables linked
23446 hardcode_automatic=$hardcode_automatic
23448 # Set to yes if linker adds runtime paths of dependent libraries
23449 # to runtime path list.
23450 inherit_rpath=$inherit_rpath
23452 # Whether libtool must link a program against all its dependency libraries.
23453 link_all_deplibs=$link_all_deplibs
23455 # Set to "yes" if exported symbols are required.
23456 always_export_symbols=$always_export_symbols
23458 # The commands to list exported symbols.
23459 export_symbols_cmds=$lt_export_symbols_cmds
23461 # Symbols that should not be listed in the preloaded symbols.
23462 exclude_expsyms=$lt_exclude_expsyms
23464 # Symbols that must always be exported.
23465 include_expsyms=$lt_include_expsyms
23467 # Commands necessary for linking programs (against libraries) with templates.
23468 prelink_cmds=$lt_prelink_cmds
23470 # Commands necessary for finishing linking programs.
23471 postlink_cmds=$lt_postlink_cmds
23473 # Specify filename containing input files.
23474 file_list_spec=$lt_file_list_spec
23476 # How to hardcode a shared library path into an executable.
23477 hardcode_action=$hardcode_action
23479 # The directories searched by this compiler when creating a shared library.
23480 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23482 # Dependencies to place before and after the objects being linked to
23483 # create a shared library.
23484 predep_objects=$lt_predep_objects
23485 postdep_objects=$lt_postdep_objects
23486 predeps=$lt_predeps
23487 postdeps=$lt_postdeps
23489 # The library search path used internally by the compiler when linking
23490 # a shared library.
23491 compiler_lib_search_path=$lt_compiler_lib_search_path
23493 # ### END LIBTOOL CONFIG
23497 cat <<'_LT_EOF' >> "$cfgfile"
23499 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23501 # func_munge_path_list VARIABLE PATH
23502 # -----------------------------------
23503 # VARIABLE is name of variable containing _space_ separated list of
23504 # directories to be munged by the contents of PATH, which is string
23507 # string "DIR[ DIR]" will be prepended to VARIABLE
23509 # string "DIR[ DIR]" will be appended to VARIABLE
23510 # "DIRP[:DIRP]::[DIRA:]DIRA"
23511 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23512 # "DIRA[ DIRA]" will be appended to VARIABLE
23514 # VARIABLE will be replaced by "DIR[ DIR]"
23515 func_munge_path_list ()
23521 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23524 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23527 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23528 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23531 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23537 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23538 func_cc_basename ()
23540 for cc_temp in $*""; do
23542 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23543 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23548 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23552 # ### END FUNCTIONS SHARED WITH CONFIGURE
23558 cat <<\_LT_EOF >> "$cfgfile"
23559 # AIX sometimes has problems with the GCC collect2 program. For some
23560 # reason, if we set the COLLECT_NAMES environment variable, the problems
23561 # vanish in a puff of smoke.
23562 if test set != "${COLLECT_NAMES+set}"; then
23564 export COLLECT_NAMES
23571 ltmain=$ac_aux_dir/ltmain.sh
23574 # We use sed instead of cat because bash on DJGPP gets confused if
23575 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23576 # text mode, it properly converts lines to CR/LF. This bash problem
23577 # is reportedly fixed, but why not run on old versions too?
23578 sed '$q' "$ltmain" >> "$cfgfile" \
23579 || (rm -f "$cfgfile"; exit 1)
23581 mv -f "$cfgfile" "$ofile" ||
23582 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23586 cat <<_LT_EOF >> "$ofile"
23588 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23590 # The linker used to build libraries.
23593 # How to create reloadable object files.
23594 reload_flag=$lt_reload_flag_CXX
23595 reload_cmds=$lt_reload_cmds_CXX
23597 # Commands used to build an old-style archive.
23598 old_archive_cmds=$lt_old_archive_cmds_CXX
23600 # A language specific compiler.
23601 CC=$lt_compiler_CXX
23603 # Is the compiler the GNU compiler?
23606 # Compiler flag to turn off builtin functions.
23607 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23609 # Additional compiler flags for building library objects.
23610 pic_flag=$lt_lt_prog_compiler_pic_CXX
23612 # How to pass a linker flag through the compiler.
23613 wl=$lt_lt_prog_compiler_wl_CXX
23615 # Compiler flag to prevent dynamic linking.
23616 link_static_flag=$lt_lt_prog_compiler_static_CXX
23618 # Does compiler simultaneously support -c and -o options?
23619 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23621 # Whether or not to add -lc for building shared libraries.
23622 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23624 # Whether or not to disallow shared libs when runtime libs are static.
23625 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23627 # Compiler flag to allow reflexive dlopens.
23628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23630 # Compiler flag to generate shared objects directly from archives.
23631 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23633 # Whether the compiler copes with passing no objects directly.
23634 compiler_needs_object=$lt_compiler_needs_object_CXX
23636 # Create an old-style archive from a shared archive.
23637 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23639 # Create a temporary old-style archive to link instead of a shared archive.
23640 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23642 # Commands used to build a shared archive.
23643 archive_cmds=$lt_archive_cmds_CXX
23644 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23646 # Commands used to build a loadable module if different from building
23647 # a shared archive.
23648 module_cmds=$lt_module_cmds_CXX
23649 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23651 # Whether we are building with GNU ld or not.
23652 with_gnu_ld=$lt_with_gnu_ld_CXX
23654 # Flag that allows shared libraries with undefined symbols to be built.
23655 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23657 # Flag that enforces no undefined symbols.
23658 no_undefined_flag=$lt_no_undefined_flag_CXX
23660 # Flag to hardcode \$libdir into a binary during linking.
23661 # This must work even if \$libdir does not exist
23662 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23664 # Whether we need a single "-rpath" flag with a separated argument.
23665 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23667 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23668 # DIR into the resulting binary.
23669 hardcode_direct=$hardcode_direct_CXX
23671 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23672 # DIR into the resulting binary and the resulting library dependency is
23673 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23674 # library is relocated.
23675 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23677 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23678 # into the resulting binary.
23679 hardcode_minus_L=$hardcode_minus_L_CXX
23681 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23682 # into the resulting binary.
23683 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23685 # Set to "yes" if building a shared library automatically hardcodes DIR
23686 # into the library and all subsequent libraries and executables linked
23688 hardcode_automatic=$hardcode_automatic_CXX
23690 # Set to yes if linker adds runtime paths of dependent libraries
23691 # to runtime path list.
23692 inherit_rpath=$inherit_rpath_CXX
23694 # Whether libtool must link a program against all its dependency libraries.
23695 link_all_deplibs=$link_all_deplibs_CXX
23697 # Set to "yes" if exported symbols are required.
23698 always_export_symbols=$always_export_symbols_CXX
23700 # The commands to list exported symbols.
23701 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23703 # Symbols that should not be listed in the preloaded symbols.
23704 exclude_expsyms=$lt_exclude_expsyms_CXX
23706 # Symbols that must always be exported.
23707 include_expsyms=$lt_include_expsyms_CXX
23709 # Commands necessary for linking programs (against libraries) with templates.
23710 prelink_cmds=$lt_prelink_cmds_CXX
23712 # Commands necessary for finishing linking programs.
23713 postlink_cmds=$lt_postlink_cmds_CXX
23715 # Specify filename containing input files.
23716 file_list_spec=$lt_file_list_spec_CXX
23718 # How to hardcode a shared library path into an executable.
23719 hardcode_action=$hardcode_action_CXX
23721 # The directories searched by this compiler when creating a shared library.
23722 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23724 # Dependencies to place before and after the objects being linked to
23725 # create a shared library.
23726 predep_objects=$lt_predep_objects_CXX
23727 postdep_objects=$lt_postdep_objects_CXX
23728 predeps=$lt_predeps_CXX
23729 postdeps=$lt_postdeps_CXX
23731 # The library search path used internally by the compiler when linking
23732 # a shared library.
23733 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23735 # ### END LIBTOOL TAG CONFIG: CXX
23746 ac_clean_files=$ac_clean_files_save
23748 test $ac_write_fail = 0 ||
23749 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23752 # configure is writing to config.log, and then calls config.status.
23753 # config.status does its own redirection, appending to config.log.
23754 # Unfortunately, on DOS this fails, as config.log is still kept open
23755 # by configure, so config.status won't be able to write to it; its
23756 # output is simply discarded. So we exec the FD to /dev/null,
23757 # effectively closing config.log, so it can be properly (re)opened and
23758 # appended to by config.status. When coming back to configure, we
23759 # need to make the FD available again.
23760 if test "$no_create" != yes; then
23762 ac_config_status_args=
23763 test "$silent" = yes &&
23764 ac_config_status_args="$ac_config_status_args --quiet"
23766 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23768 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23769 # would make configure fail if this is the last instruction.
23770 $ac_cs_success || as_fn_exit 1
23772 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23774 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23779 echo "C++ compiler version:"
23783 { $as_echo "$as_me:${as_lineno-$LINENO}:
23785 Build configuration:
23787 Unicode callbacks (you want at least one):
23788 Builtin (UCDN): ${have_ucdn}
23792 Font callbacks (the more the merrier):
23793 FreeType: ${have_freetype}
23795 Tools used for command-line utilities:
23796 Cairo: ${have_cairo}
23797 Fontconfig: ${have_fontconfig}
23799 Additional shapers (the more the merrier):
23800 Graphite2: ${have_graphite2}
23802 Platform shapers (not normally needed):
23803 CoreText: ${have_coretext}
23804 DirectWrite: ${have_directwrite}
23805 Uniscribe: ${have_uniscribe}
23808 Documentation: ${enable_gtk_doc}
23809 GObject bindings: ${have_gobject}
23810 Introspection: ${have_introspection}
23814 Build configuration:
23816 Unicode callbacks (you want at least one):
23817 Builtin (UCDN): ${have_ucdn}
23821 Font callbacks (the more the merrier):
23822 FreeType: ${have_freetype}
23824 Tools used for command-line utilities:
23825 Cairo: ${have_cairo}
23826 Fontconfig: ${have_fontconfig}
23828 Additional shapers (the more the merrier):
23829 Graphite2: ${have_graphite2}
23831 Platform shapers (not normally needed):
23832 CoreText: ${have_coretext}
23833 DirectWrite: ${have_directwrite}
23834 Uniscribe: ${have_uniscribe}
23837 Documentation: ${enable_gtk_doc}
23838 GObject bindings: ${have_gobject}
23839 Introspection: ${have_introspection}