2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for HarfBuzz 1.7.6.
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='1.7.6'
594 PACKAGE_STRING='HarfBuzz 1.7.6'
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
717 GTK_DOC_USE_REBASE_FALSE
718 GTK_DOC_USE_REBASE_TRUE
719 GTK_DOC_USE_LIBTOOL_FALSE
720 GTK_DOC_USE_LIBTOOL_TRUE
721 GTK_DOC_BUILD_PDF_FALSE
722 GTK_DOC_BUILD_PDF_TRUE
723 GTK_DOC_BUILD_HTML_FALSE
724 GTK_DOC_BUILD_HTML_TRUE
738 HB_LIBTOOL_VERSION_INFO
801 CODE_COVERAGE_LDFLAGS
803 CODE_COVERAGE_CXXFLAGS
805 CODE_COVERAGE_CPPFLAGS
809 CODE_COVERAGE_ENABLED
810 CODE_COVERAGE_ENABLED_FALSE
811 CODE_COVERAGE_ENABLED_TRUE
825 INSTALL_STRIP_PROGRAM
868 program_transform_name
881 enable_option_checking
885 enable_dependency_tracking
913 ac_precious_vars='build_alias
948 # Initialize some variables set by options.
950 ac_init_version=false
951 ac_unrecognized_opts=
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
962 program_transform_name=s,x,x,
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 runstatedir='${localstatedir}/run'
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 -runstatedir | --runstatedir | --runstatedi | --runstated \
1238 | --runstate | --runstat | --runsta | --runst | --runs \
1239 | --run | --ru | --r)
1240 ac_prev=runstatedir ;;
1241 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1242 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1243 | --run=* | --ru=* | --r=*)
1244 runstatedir=$ac_optarg ;;
1246 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 sbindir=$ac_optarg ;;
1252 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254 | --sharedst | --shareds | --shared | --share | --shar \
1256 ac_prev=sharedstatedir ;;
1257 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 sharedstatedir=$ac_optarg ;;
1263 -site | --site | --sit)
1265 -site=* | --site=* | --sit=*)
1268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271 srcdir=$ac_optarg ;;
1273 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274 | --syscon | --sysco | --sysc | --sys | --sy)
1275 ac_prev=sysconfdir ;;
1276 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278 sysconfdir=$ac_optarg ;;
1280 -target | --target | --targe | --targ | --tar | --ta | --t)
1281 ac_prev=target_alias ;;
1282 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283 target_alias=$ac_optarg ;;
1285 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288 -version | --version | --versio | --versi | --vers | -V)
1289 ac_init_version=: ;;
1292 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error $? "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1305 eval with_$ac_useropt=\$ac_optarg ;;
1307 -without-* | --without-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 as_fn_error $? "invalid package name: $ac_useropt"
1312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1321 eval with_$ac_useropt=no ;;
1324 # Obsolete; use --with-x.
1327 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1328 | --x-incl | --x-inc | --x-in | --x-i)
1329 ac_prev=x_includes ;;
1330 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1331 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1332 x_includes=$ac_optarg ;;
1334 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1335 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1336 ac_prev=x_libraries ;;
1337 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1338 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1339 x_libraries=$ac_optarg ;;
1341 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1342 Try \`$0 --help' for more information"
1346 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1347 # Reject names that are not valid shell variable names.
1348 case $ac_envvar in #(
1349 '' | [0-9]* | *[!_$as_cr_alnum]* )
1350 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1352 eval $ac_envvar=\$ac_optarg
1353 export $ac_envvar ;;
1356 # FIXME: should be removed in autoconf 3.0.
1357 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1359 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1366 if test -n "$ac_prev"; then
1367 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1368 as_fn_error $? "missing argument to $ac_option"
1371 if test -n "$ac_unrecognized_opts"; then
1372 case $enable_option_checking in
1374 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1375 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379 # Check all directory arguments for consistency.
1380 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381 datadir sysconfdir sharedstatedir localstatedir includedir \
1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383 libdir localedir mandir runstatedir
1385 eval ac_val=\$$ac_var
1386 # Remove trailing slashes.
1389 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390 eval $ac_var=\$ac_val;;
1392 # Be sure to have absolute directory names.
1394 [\\/$]* | ?:[\\/]* ) continue;;
1395 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1397 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1400 # There might be people who depend on the old broken behavior: `$host'
1401 # used to hold the argument of --host etc.
1402 # FIXME: To remove some day.
1405 target=$target_alias
1407 # FIXME: To remove some day.
1408 if test "x$host_alias" != x; then
1409 if test "x$build_alias" = x; then
1410 cross_compiling=maybe
1411 elif test "x$build_alias" != "x$host_alias"; then
1417 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1419 test "$silent" = yes && exec 6>/dev/null
1422 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di=`ls -di .` &&
1424 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1425 as_fn_error $? "working directory cannot be determined"
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427 as_fn_error $? "pwd does not report name of working directory"
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432 ac_srcdir_defaulted=yes
1433 # Try the directory containing this script, then the parent directory.
1434 ac_confdir=`$as_dirname -- "$as_myself" ||
1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436 X"$as_myself" : 'X\(//\)[^/]' \| \
1437 X"$as_myself" : 'X\(//\)$' \| \
1438 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439 $as_echo X"$as_myself" |
1440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1462 ac_srcdir_defaulted=no
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1466 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1468 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1470 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482 for ac_var in $ac_precious_vars; do
1483 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_env_${ac_var}_value=\$${ac_var}
1485 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490 # Report the --help message.
1492 if test "$ac_init_help" = "long"; then
1493 # Omit some internal or obsolete options to make the list less imposing.
1494 # This message is too long to be a string in the A/UX 3.1 sh.
1496 \`configure' configures HarfBuzz 1.7.6 to adapt to many kinds of systems.
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE. See below for descriptions of some of the useful variables.
1503 Defaults for the options are specified in brackets.
1506 -h, --help display this help and exit
1507 --help=short display options specific to this package
1508 --help=recursive display the short help of all the included packages
1509 -V, --version display version information and exit
1510 -q, --quiet, --silent do not print \`checking ...' messages
1511 --cache-file=FILE cache test results in FILE [disabled]
1512 -C, --config-cache alias for \`--cache-file=config.cache'
1513 -n, --no-create do not create output files
1514 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1516 Installation directories:
1517 --prefix=PREFIX install architecture-independent files in PREFIX
1518 [$ac_default_prefix]
1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1527 For better control, use the options below.
1529 Fine tuning of the installation directories:
1530 --bindir=DIR user executables [EPREFIX/bin]
1531 --sbindir=DIR system admin executables [EPREFIX/sbin]
1532 --libexecdir=DIR program executables [EPREFIX/libexec]
1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1536 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1537 --libdir=DIR object code libraries [EPREFIX/lib]
1538 --includedir=DIR C header files [PREFIX/include]
1539 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1540 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1541 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1542 --infodir=DIR info documentation [DATAROOTDIR/info]
1543 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1544 --mandir=DIR man documentation [DATAROOTDIR/man]
1545 --docdir=DIR documentation root [DATAROOTDIR/doc/harfbuzz]
1546 --htmldir=DIR html documentation [DOCDIR]
1547 --dvidir=DIR dvi documentation [DOCDIR]
1548 --pdfdir=DIR pdf documentation [DOCDIR]
1549 --psdir=DIR ps documentation [DOCDIR]
1555 --program-prefix=PREFIX prepend PREFIX to installed program names
1556 --program-suffix=SUFFIX append SUFFIX to installed program names
1557 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1560 --build=BUILD configure for building on BUILD [guessed]
1561 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1565 if test -n "$ac_init_help"; then
1566 case $ac_init_help in
1567 short | recursive ) echo "Configuration of HarfBuzz 1.7.6:";;
1572 --disable-option-checking ignore unrecognized --enable/--with options
1573 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1574 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1575 --enable-silent-rules less verbose build output (undo: "make V=1")
1576 --disable-silent-rules verbose build output (undo: "make V=0")
1577 --enable-code-coverage Whether to enable code coverage support
1578 --enable-dependency-tracking
1579 do not reject slow dependency extractors
1580 --disable-dependency-tracking
1581 speeds up one-time build
1582 --enable-static[=PKGS] build static libraries [default=no]
1583 --enable-shared[=PKGS] build shared libraries [default=yes]
1584 --enable-fast-install[=PKGS]
1585 optimize for fast installation [default=yes]
1586 --disable-libtool-lock avoid locking (might break parallel builds)
1587 --disable-largefile omit support for large files
1588 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1589 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1590 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1591 --enable-introspection=[no/auto/yes]
1592 Enable introspection for this build
1595 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1596 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1597 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1598 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1600 --with-aix-soname=aix|svr4|both
1601 shared library versioning (aka "SONAME") variant to
1602 provide on AIX, [default=aix].
1603 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1604 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1605 compiler's sysroot if not specified).
1606 --with-libstdc++=[yes/no]
1607 Allow linking with libstdc++ [default=no]
1608 --with-html-dir=PATH path to installed docs
1609 --with-glib=[yes/no/auto]
1610 Use glib [default=auto]
1611 --with-gobject=[yes/no/auto]
1612 Use gobject [default=no]
1613 --with-cairo=[yes/no/auto]
1614 Use cairo [default=auto]
1615 --with-fontconfig=[yes/no/auto]
1616 Use fontconfig [default=auto]
1617 --with-icu=[yes/no/builtin/auto]
1618 Use ICU [default=auto]
1619 --with-ucdn=[yes/no] Use builtin UCDN library [default=yes]
1620 --with-graphite2=[yes/no/auto]
1621 Use the graphite2 library [default=no]
1622 --with-freetype=[yes/no/auto]
1623 Use the FreeType library [default=auto]
1624 --with-uniscribe=[yes/no/auto]
1625 Use the Uniscribe library [default=no]
1626 --with-directwrite=[yes/no/auto]
1627 Use the DirectWrite library (experimental)
1629 --with-coretext=[yes/no/auto]
1630 Use CoreText [default=no]
1632 Some influential environment variables:
1633 CC C compiler command
1634 CFLAGS C compiler flags
1635 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1636 nonstandard directory <lib dir>
1637 LIBS libraries to pass to the linker, e.g. -l<library>
1638 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1639 you have headers in a nonstandard directory <include dir>
1641 User-defined run-time library search path.
1643 CXX C++ compiler command
1644 CXXFLAGS C++ compiler flags
1645 CXXCPP C++ preprocessor
1646 PKG_CONFIG path to pkg-config utility
1648 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1650 linker flags for GTKDOC_DEPS, overriding pkg-config
1651 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1652 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1654 C compiler flags for GOBJECT, overriding pkg-config
1656 linker flags for GOBJECT, overriding pkg-config
1658 C compiler flags for CAIRO, overriding pkg-config
1659 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1661 C compiler flags for CAIRO_FT, overriding pkg-config
1663 linker flags for CAIRO_FT, overriding pkg-config
1665 C compiler flags for FONTCONFIG, overriding pkg-config
1667 linker flags for FONTCONFIG, overriding pkg-config
1668 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1669 ICU_LIBS linker flags for ICU, overriding pkg-config
1671 C compiler flags for GRAPHITE2, overriding pkg-config
1673 linker flags for GRAPHITE2, overriding pkg-config
1675 C compiler flags for FREETYPE, overriding pkg-config
1677 linker flags for FREETYPE, overriding pkg-config
1679 Use these variables to override the choices made by `configure' or to help
1680 it to find libraries and programs with nonstandard names/locations.
1682 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
1683 HarfBuzz home page: <http://harfbuzz.org/>.
1688 if test "$ac_init_help" = "recursive"; then
1689 # If there are subdirs, report their specific --help.
1690 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1691 test -d "$ac_dir" ||
1692 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1697 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1699 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1700 # A ".." for each directory in $ac_dir_suffix.
1701 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1702 case $ac_top_builddir_sub in
1703 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1707 ac_abs_top_builddir=$ac_pwd
1708 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1709 # for backward compatibility:
1710 ac_top_builddir=$ac_top_build_prefix
1713 .) # We are building in place.
1715 ac_top_srcdir=$ac_top_builddir_sub
1716 ac_abs_top_srcdir=$ac_pwd ;;
1717 [\\/]* | ?:[\\/]* ) # Absolute name.
1718 ac_srcdir=$srcdir$ac_dir_suffix;
1719 ac_top_srcdir=$srcdir
1720 ac_abs_top_srcdir=$srcdir ;;
1722 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1723 ac_top_srcdir=$ac_top_build_prefix$srcdir
1724 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1726 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1728 cd "$ac_dir" || { ac_status=$?; continue; }
1729 # Check for guested configure.
1730 if test -f "$ac_srcdir/configure.gnu"; then
1732 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1733 elif test -f "$ac_srcdir/configure"; then
1735 $SHELL "$ac_srcdir/configure" --help=recursive
1737 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1739 cd "$ac_pwd" || { ac_status=$?; break; }
1743 test -n "$ac_init_help" && exit $ac_status
1744 if $ac_init_version; then
1746 HarfBuzz configure 1.7.6
1747 generated by GNU Autoconf 2.69
1749 Copyright (C) 2012 Free Software Foundation, Inc.
1750 This configure script is free software; the Free Software Foundation
1751 gives unlimited permission to copy, distribute and modify it.
1756 ## ------------------------ ##
1757 ## Autoconf initialization. ##
1758 ## ------------------------ ##
1760 # ac_fn_c_try_compile LINENO
1761 # --------------------------
1762 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_c_try_compile ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 rm -f conftest.$ac_objext
1767 if { { ac_try="$ac_compile"
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_compile") 2>conftest.err
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && {
1783 test -z "$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1785 } && test -s conftest.$ac_objext; then :
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
1796 } # ac_fn_c_try_compile
1798 # ac_fn_c_try_link LINENO
1799 # -----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded.
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext conftest$ac_exeext
1805 if { { ac_try="$ac_link"
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>conftest.err
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest$ac_exeext && {
1824 test "$cross_compiling" = yes ||
1825 test -x conftest$ac_exeext
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1834 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1835 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1836 # interfere with the next link command; also delete a directory that is
1837 # left behind by Apple's compiler. We do this before executing the actions.
1838 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1842 } # ac_fn_c_try_link
1844 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists and can be compiled using the include files in
1847 # INCLUDES, setting the cache variable VAR accordingly.
1848 ac_fn_c_check_header_compile ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1861 if ac_fn_c_try_compile "$LINENO"; then :
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 } # ac_fn_c_check_header_compile
1875 # ac_fn_c_try_cpp LINENO
1876 # ----------------------
1877 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if { { ac_try="$ac_cpp conftest.$ac_ext"
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } > conftest.i && {
1897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1898 test ! -s conftest.err
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 as_fn_set_status $ac_retval
1912 # ac_fn_c_try_run LINENO
1913 # ----------------------
1914 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1915 # that executables *can* be run.
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if { { ac_try="$ac_link"
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_link") 2>&5
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1930 { { case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_try") 2>&5
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; }; }; then :
1942 $as_echo "$as_me: program exited with status $ac_status" >&5
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1946 ac_retval=$ac_status
1948 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 as_fn_set_status $ac_retval
1954 # ac_fn_c_check_func LINENO FUNC VAR
1955 # ----------------------------------
1956 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1957 ac_fn_c_check_func ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if eval \${$3+:} false; then :
1963 $as_echo_n "(cached) " >&6
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1967 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1969 #define $2 innocuous_$2
1971 /* System header to define __stub macros and hopefully few prototypes,
1972 which can conflict with char $2 (); below.
1973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1974 <limits.h> exists even on freestanding compilers. */
1977 # include <limits.h>
1979 # include <assert.h>
1984 /* Override any GCC internal prototype to avoid an error.
1985 Use char because int might match the return type of a GCC
1986 builtin and then its argument prototype would still apply. */
1991 /* The GNU C library defines this for functions which it implements
1992 to always fail with ENOSYS. Some functions are actually named
1993 something starting with __ and the normal name is an alias. */
1994 #if defined __stub_$2 || defined __stub___$2
2006 if ac_fn_c_try_link "$LINENO"; then :
2011 rm -f core conftest.err conftest.$ac_objext \
2012 conftest$ac_exeext conftest.$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019 } # ac_fn_c_check_func
2021 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2022 # -------------------------------------------------------
2023 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2024 # the include files in INCLUDES and setting the cache variable VAR
2026 ac_fn_c_check_header_mongrel ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 if eval \${$3+:} false; then :
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031 $as_echo_n "checking for $2... " >&6; }
2032 if eval \${$3+:} false; then :
2033 $as_echo_n "(cached) " >&6
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2039 # Is the header compilable?
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2041 $as_echo_n "checking $2 usability... " >&6; }
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048 ac_header_compiler=yes
2050 ac_header_compiler=no
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2054 $as_echo "$ac_header_compiler" >&6; }
2056 # Is the header present?
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2058 $as_echo_n "checking $2 presence... " >&6; }
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2063 if ac_fn_c_try_cpp "$LINENO"; then :
2064 ac_header_preproc=yes
2066 ac_header_preproc=no
2068 rm -f conftest.err conftest.i conftest.$ac_ext
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2070 $as_echo "$ac_header_preproc" >&6; }
2072 # So? What about this header?
2073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2076 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2078 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2082 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2084 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2086 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2088 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2090 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2091 ( $as_echo "## -------------------------------------------------------------- ##
2092 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2093 ## -------------------------------------------------------------- ##"
2094 ) | sed "s/^/$as_me: WARNING: /" >&2
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098 $as_echo_n "checking for $2... " >&6; }
2099 if eval \${$3+:} false; then :
2100 $as_echo_n "(cached) " >&6
2102 eval "$3=\$ac_header_compiler"
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110 } # ac_fn_c_check_header_mongrel
2112 # ac_fn_cxx_try_compile LINENO
2113 # ----------------------------
2114 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2115 ac_fn_cxx_try_compile ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 rm -f conftest.$ac_objext
2119 if { { ac_try="$ac_compile"
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_compile") 2>conftest.err
2128 if test -s conftest.err; then
2129 grep -v '^ *+' conftest.err >conftest.er1
2130 cat conftest.er1 >&5
2131 mv -f conftest.er1 conftest.err
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } && {
2135 test -z "$ac_cxx_werror_flag" ||
2136 test ! -s conftest.err
2137 } && test -s conftest.$ac_objext; then :
2140 $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146 as_fn_set_status $ac_retval
2148 } # ac_fn_cxx_try_compile
2150 # ac_fn_cxx_try_cpp LINENO
2151 # ------------------------
2152 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2153 ac_fn_cxx_try_cpp ()
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 if { { ac_try="$ac_cpp conftest.$ac_ext"
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162 $as_echo "$ac_try_echo"; } >&5
2163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2165 if test -s conftest.err; then
2166 grep -v '^ *+' conftest.err >conftest.er1
2167 cat conftest.er1 >&5
2168 mv -f conftest.er1 conftest.err
2170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171 test $ac_status = 0; } > conftest.i && {
2172 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2173 test ! -s conftest.err
2177 $as_echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183 as_fn_set_status $ac_retval
2185 } # ac_fn_cxx_try_cpp
2187 # ac_fn_cxx_try_link LINENO
2188 # -------------------------
2189 # Try to link conftest.$ac_ext, and return whether this succeeded.
2190 ac_fn_cxx_try_link ()
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 rm -f conftest.$ac_objext conftest$ac_exeext
2194 if { { ac_try="$ac_link"
2196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197 *) ac_try_echo=$ac_try;;
2199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200 $as_echo "$ac_try_echo"; } >&5
2201 (eval "$ac_link") 2>conftest.err
2203 if test -s conftest.err; then
2204 grep -v '^ *+' conftest.err >conftest.er1
2205 cat conftest.er1 >&5
2206 mv -f conftest.er1 conftest.err
2208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2209 test $ac_status = 0; } && {
2210 test -z "$ac_cxx_werror_flag" ||
2211 test ! -s conftest.err
2212 } && test -s conftest$ac_exeext && {
2213 test "$cross_compiling" = yes ||
2214 test -x conftest$ac_exeext
2218 $as_echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2223 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2224 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2225 # interfere with the next link command; also delete a directory that is
2226 # left behind by Apple's compiler. We do this before executing the actions.
2227 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 as_fn_set_status $ac_retval
2231 } # ac_fn_cxx_try_link
2233 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2234 # --------------------------------------------
2235 # Tries to find the compile-time value of EXPR in a program that includes
2236 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2238 ac_fn_c_compute_int ()
2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241 if test "$cross_compiling" = yes; then
2242 # Depending upon the size, compute the lo and hi bounds.
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2249 static int test_array [1 - 2 * !(($2) >= 0)];
2251 return test_array [0];
2257 if ac_fn_c_try_compile "$LINENO"; then :
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2266 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2268 return test_array [0];
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275 ac_hi=$ac_mid; break
2277 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2278 if test $ac_lo -le $ac_mid; then
2282 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2293 static int test_array [1 - 2 * !(($2) < 0)];
2295 return test_array [0];
2301 if ac_fn_c_try_compile "$LINENO"; then :
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2310 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2312 return test_array [0];
2318 if ac_fn_c_try_compile "$LINENO"; then :
2319 ac_lo=$ac_mid; break
2321 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2322 if test $ac_mid -le $ac_hi; then
2326 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 # Binary search between lo and hi bounds.
2337 while test "x$ac_lo" != "x$ac_hi"; do
2338 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h. */
2345 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2347 return test_array [0];
2353 if ac_fn_c_try_compile "$LINENO"; then :
2356 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2368 static long int longval () { return $2; }
2369 static unsigned long int ulongval () { return $2; }
2376 FILE *f = fopen ("conftest.val", "w");
2381 long int i = longval ();
2384 fprintf (f, "%ld", i);
2388 unsigned long int i = ulongval ();
2391 fprintf (f, "%lu", i);
2393 /* Do not output a trailing newline, as this causes \r\n confusion
2394 on some platforms. */
2395 return ferror (f) || fclose (f) != 0;
2401 if ac_fn_c_try_run "$LINENO"; then :
2402 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2407 conftest.$ac_objext conftest.beam conftest.$ac_ext
2411 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2412 as_fn_set_status $ac_retval
2414 } # ac_fn_c_compute_int
2416 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2417 # ---------------------------------------------------------
2418 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2419 # the include files in INCLUDES and setting the cache variable VAR
2421 ac_fn_cxx_check_header_mongrel ()
2423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2424 if eval \${$3+:} false; then :
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2426 $as_echo_n "checking for $2... " >&6; }
2427 if eval \${$3+:} false; then :
2428 $as_echo_n "(cached) " >&6
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432 $as_echo "$ac_res" >&6; }
2434 # Is the header compilable?
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2436 $as_echo_n "checking $2 usability... " >&6; }
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h. */
2442 if ac_fn_cxx_try_compile "$LINENO"; then :
2443 ac_header_compiler=yes
2445 ac_header_compiler=no
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2449 $as_echo "$ac_header_compiler" >&6; }
2451 # Is the header present?
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2453 $as_echo_n "checking $2 presence... " >&6; }
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2458 if ac_fn_cxx_try_cpp "$LINENO"; then :
2459 ac_header_preproc=yes
2461 ac_header_preproc=no
2463 rm -f conftest.err conftest.i conftest.$ac_ext
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2465 $as_echo "$ac_header_preproc" >&6; }
2467 # So? What about this header?
2468 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2471 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2473 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2477 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2479 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2481 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2483 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2485 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2486 ( $as_echo "## -------------------------------------------------------------- ##
2487 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2488 ## -------------------------------------------------------------- ##"
2489 ) | sed "s/^/$as_me: WARNING: /" >&2
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2493 $as_echo_n "checking for $2... " >&6; }
2494 if eval \${$3+:} false; then :
2495 $as_echo_n "(cached) " >&6
2497 eval "$3=\$ac_header_compiler"
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2501 $as_echo "$ac_res" >&6; }
2503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2505 } # ac_fn_cxx_check_header_mongrel
2507 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2508 # -------------------------------------------
2509 # Tests whether TYPE exists after having included INCLUDES, setting cache
2510 # variable VAR accordingly.
2511 ac_fn_c_check_type ()
2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2515 $as_echo_n "checking for $2... " >&6; }
2516 if eval \${$3+:} false; then :
2517 $as_echo_n "(cached) " >&6
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h. */
2532 if ac_fn_c_try_compile "$LINENO"; then :
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2545 if ac_fn_c_try_compile "$LINENO"; then :
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2559 } # ac_fn_c_check_type
2560 cat >config.log <<_ACEOF
2561 This file contains any messages produced by compilers while
2562 running configure, to aid debugging if configure makes a mistake.
2564 It was created by HarfBuzz $as_me 1.7.6, which was
2565 generated by GNU Autoconf 2.69. Invocation command line was
2577 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2578 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2579 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2580 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2581 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2583 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2584 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2586 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2587 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2588 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2589 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2590 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2591 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2592 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 test -z "$as_dir" && as_dir=.
2601 $as_echo "PATH: $as_dir"
2617 # Keep a trace of the command line.
2618 # Strip out --no-create and --no-recursion so they do not pile up.
2619 # Strip out --silent because we don't want to record it for future runs.
2620 # Also quote any args containing shell meta-characters.
2621 # Make two passes to allow for proper duplicate-argument suppression.
2625 ac_must_keep_next=false
2631 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2633 | -silent | --silent | --silen | --sile | --sil)
2636 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2639 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2641 as_fn_append ac_configure_args1 " '$ac_arg'"
2642 if test $ac_must_keep_next = true; then
2643 ac_must_keep_next=false # Got value, back to normal.
2646 *=* | --config-cache | -C | -disable-* | --disable-* \
2647 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2648 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2649 | -with-* | --with-* | -without-* | --without-* | --x)
2650 case "$ac_configure_args0 " in
2651 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2654 -* ) ac_must_keep_next=true ;;
2657 as_fn_append ac_configure_args " '$ac_arg'"
2662 { ac_configure_args0=; unset ac_configure_args0;}
2663 { ac_configure_args1=; unset ac_configure_args1;}
2665 # When interrupted or exit'd, cleanup temporary files, and complete
2666 # config.log. We remove comments because anyway the quotes in there
2667 # would cause problems or look ugly.
2668 # WARNING: Use '\'' to represent an apostrophe within the trap.
2669 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2670 trap 'exit_status=$?
2671 # Save into config.log some information that might help in debugging.
2675 $as_echo "## ---------------- ##
2676 ## Cache variables. ##
2677 ## ---------------- ##"
2679 # The following way of writing the cache mishandles newlines in values,
2681 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2682 eval ac_val=\$$ac_var
2686 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2687 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2690 _ | IFS | as_nl) ;; #(
2691 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2692 *) { eval $ac_var=; unset $ac_var;} ;;
2697 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2698 *${as_nl}ac_space=\ *)
2700 "s/'\''/'\''\\\\'\'''\''/g;
2701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2704 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2711 $as_echo "## ----------------- ##
2712 ## Output variables. ##
2713 ## ----------------- ##"
2715 for ac_var in $ac_subst_vars
2717 eval ac_val=\$$ac_var
2719 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2721 $as_echo "$ac_var='\''$ac_val'\''"
2725 if test -n "$ac_subst_files"; then
2726 $as_echo "## ------------------- ##
2727 ## File substitutions. ##
2728 ## ------------------- ##"
2730 for ac_var in $ac_subst_files
2732 eval ac_val=\$$ac_var
2734 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2736 $as_echo "$ac_var='\''$ac_val'\''"
2741 if test -s confdefs.h; then
2742 $as_echo "## ----------- ##
2749 test "$ac_signal" != 0 &&
2750 $as_echo "$as_me: caught signal $ac_signal"
2751 $as_echo "$as_me: exit $exit_status"
2753 rm -f core *.core core.conftest.* &&
2754 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2757 for ac_signal in 1 2 13 15; do
2758 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2762 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2763 rm -f -r conftest* confdefs.h
2765 $as_echo "/* confdefs.h */" > confdefs.h
2767 # Predefined preprocessor variables.
2769 cat >>confdefs.h <<_ACEOF
2770 #define PACKAGE_NAME "$PACKAGE_NAME"
2773 cat >>confdefs.h <<_ACEOF
2774 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2777 cat >>confdefs.h <<_ACEOF
2778 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2781 cat >>confdefs.h <<_ACEOF
2782 #define PACKAGE_STRING "$PACKAGE_STRING"
2785 cat >>confdefs.h <<_ACEOF
2786 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2789 cat >>confdefs.h <<_ACEOF
2790 #define PACKAGE_URL "$PACKAGE_URL"
2794 # Let the site file select an alternate cache file if it wants to.
2795 # Prefer an explicitly selected file to automatically selected ones.
2798 if test -n "$CONFIG_SITE"; then
2799 # We do not want a PATH search for config.site.
2800 case $CONFIG_SITE in #((
2801 -*) ac_site_file1=./$CONFIG_SITE;;
2802 */*) ac_site_file1=$CONFIG_SITE;;
2803 *) ac_site_file1=./$CONFIG_SITE;;
2805 elif test "x$prefix" != xNONE; then
2806 ac_site_file1=$prefix/share/config.site
2807 ac_site_file2=$prefix/etc/config.site
2809 ac_site_file1=$ac_default_prefix/share/config.site
2810 ac_site_file2=$ac_default_prefix/etc/config.site
2812 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2814 test "x$ac_site_file" = xNONE && continue
2815 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2817 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2818 sed 's/^/| /' "$ac_site_file" >&5
2820 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2822 as_fn_error $? "failed to load site script $ac_site_file
2823 See \`config.log' for more details" "$LINENO" 5; }
2827 if test -r "$cache_file"; then
2828 # Some versions of bash will fail to source /dev/null (special files
2829 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2830 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2832 $as_echo "$as_me: loading cache $cache_file" >&6;}
2834 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2835 *) . "./$cache_file";;
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2840 $as_echo "$as_me: creating cache $cache_file" >&6;}
2844 # Check that the precious variables saved in the cache have kept the same
2846 ac_cache_corrupted=false
2847 for ac_var in $ac_precious_vars; do
2848 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2849 eval ac_new_set=\$ac_env_${ac_var}_set
2850 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2851 eval ac_new_val=\$ac_env_${ac_var}_value
2852 case $ac_old_set,$ac_new_set in
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2855 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2856 ac_cache_corrupted=: ;;
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2859 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2860 ac_cache_corrupted=: ;;
2863 if test "x$ac_old_val" != "x$ac_new_val"; then
2864 # differences in whitespace do not lead to failure.
2865 ac_old_val_w=`echo x $ac_old_val`
2866 ac_new_val_w=`echo x $ac_new_val`
2867 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2869 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2870 ac_cache_corrupted=:
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2873 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2874 eval $ac_var=\$ac_old_val
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2877 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2879 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2882 # Pass precious variables to config.status.
2883 if test "$ac_new_set" = set; then
2885 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2886 *) ac_arg=$ac_var=$ac_new_val ;;
2888 case " $ac_configure_args " in
2889 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2890 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2894 if $ac_cache_corrupted; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2898 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2899 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2901 ## -------------------- ##
2902 ## Main body of script. ##
2903 ## -------------------- ##
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2915 ac_config_headers="$ac_config_headers config.h"
2918 am__api_version='1.15'
2921 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2922 if test -f "$ac_dir/install-sh"; then
2924 ac_install_sh="$ac_aux_dir/install-sh -c"
2926 elif test -f "$ac_dir/install.sh"; then
2928 ac_install_sh="$ac_aux_dir/install.sh -c"
2930 elif test -f "$ac_dir/shtool"; then
2932 ac_install_sh="$ac_aux_dir/shtool install -c"
2936 if test -z "$ac_aux_dir"; then
2937 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2940 # These three variables are undocumented and unsupported,
2941 # and are intended to be withdrawn in a future Autoconf release.
2942 # They can cause serious problems if a builder's source tree is in a directory
2943 # whose full name contains unusual characters.
2944 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2945 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2946 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2949 # Find a good install program. We prefer a C program (faster),
2950 # so one script is as good as another. But avoid the broken or
2951 # incompatible versions:
2952 # SysV /etc/install, /usr/sbin/install
2953 # SunOS /usr/etc/install
2954 # IRIX /sbin/install
2956 # AmigaOS /C/install, which installs bootblocks on floppy discs
2957 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2958 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2959 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2960 # OS/2's system install, which has a completely different semantic
2961 # ./install, which can be erroneously created by make from ./install.sh.
2962 # Reject install programs that cannot install multiple files.
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2964 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2965 if test -z "$INSTALL"; then
2966 if ${ac_cv_path_install+:} false; then :
2967 $as_echo_n "(cached) " >&6
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 test -z "$as_dir" && as_dir=.
2974 # Account for people who put trailing slashes in PATH elements.
2975 case $as_dir/ in #((
2976 ./ | .// | /[cC]/* | \
2977 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2978 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2981 # OSF1 and SCO ODT 3.0 have their own names for install.
2982 # Don't use installbsd from OSF since it installs stuff as root
2984 for ac_prog in ginstall scoinst install; do
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2987 if test $ac_prog = install &&
2988 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2989 # AIX install. It has an incompatible calling convention.
2991 elif test $ac_prog = install &&
2992 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2993 # program-specific install script used by HP pwplus--don't use.
2996 rm -rf conftest.one conftest.two conftest.dir
2997 echo one > conftest.one
2998 echo two > conftest.two
3000 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3001 test -s conftest.one && test -s conftest.two &&
3002 test -s conftest.dir/conftest.one &&
3003 test -s conftest.dir/conftest.two
3005 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3018 rm -rf conftest.one conftest.two conftest.dir
3021 if test "${ac_cv_path_install+set}" = set; then
3022 INSTALL=$ac_cv_path_install
3024 # As a last resort, use the slow shell script. Don't cache a
3025 # value for INSTALL within a source directory, because that will
3026 # break other packages using the cache if that directory is
3027 # removed, or if the value is a relative name.
3028 INSTALL=$ac_install_sh
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3032 $as_echo "$INSTALL" >&6; }
3034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3035 # It thinks the first close brace ends the variable substitution.
3036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3038 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3040 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3043 $as_echo_n "checking whether build environment is sane... " >&6; }
3044 # Reject unsafe characters in $srcdir or the absolute working directory
3045 # name. Accept space and tab only in the latter.
3049 *[\\\"\#\$\&\'\`$am_lf]*)
3050 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3053 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3054 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3057 # Do 'set' in a subshell so we don't clobber the current shell's
3058 # arguments. Must try -L first in case configure is actually a
3059 # symlink; some systems play weird games with the mod time of symlinks
3060 # (eg FreeBSD returns the mod time of the symlink's containing
3064 for am_try in 1 2; do
3065 echo "timestamp, slept: $am_has_slept" > conftest.file
3066 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3067 if test "$*" = "X"; then
3069 set X `ls -t "$srcdir/configure" conftest.file`
3071 if test "$*" != "X $srcdir/configure conftest.file" \
3072 && test "$*" != "X conftest.file $srcdir/configure"; then
3074 # If neither matched, then we have a broken ls. This can happen
3075 # if, for instance, CONFIG_SHELL is bash and it inherits a
3076 # broken ls alias from the environment. This has actually
3077 # happened. Such a system could not be considered "sane".
3078 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3079 alias in your environment" "$LINENO" 5
3081 if test "$2" = conftest.file || test $am_try -eq 2; then
3088 test "$2" = conftest.file
3094 as_fn_error $? "newly created file is older than distributed files!
3095 Check your system clock" "$LINENO" 5
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3098 $as_echo "yes" >&6; }
3099 # If we didn't sleep, we still need to ensure time stamps of config.status and
3100 # generated files are strictly newer.
3102 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3109 test "$program_prefix" != NONE &&
3110 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3111 # Use a double $ so make ignores it.
3112 test "$program_suffix" != NONE &&
3113 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3114 # Double any \ or $.
3115 # By default was `s,x,x', remove it if useless.
3116 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3117 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3119 # Expand $ac_aux_dir to an absolute path.
3120 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3122 if test x"${MISSING+set}" != xset; then
3125 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3127 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3130 # Use eval to expand $SHELL
3131 if eval "$MISSING --is-lightweight"; then
3132 am_missing_run="$MISSING "
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3136 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3139 if test x"${install_sh+set}" != xset; then
3142 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3144 install_sh="\${SHELL} $am_aux_dir/install-sh"
3148 # Installed binaries are usually stripped using 'strip' when the user
3149 # run "make install-strip". However 'strip' might not be the right
3150 # tool to use in cross-compilation environments, therefore Automake
3151 # will honor the 'STRIP' environment variable to overrule this program.
3152 if test "$cross_compiling" != no; then
3153 if test -n "$ac_tool_prefix"; then
3154 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3155 set dummy ${ac_tool_prefix}strip; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_STRIP+:} false; then :
3159 $as_echo_n "(cached) " >&6
3161 if test -n "$STRIP"; then
3162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 STRIP=$ac_cv_prog_STRIP
3182 if test -n "$STRIP"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3184 $as_echo "$STRIP" >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3192 if test -z "$ac_cv_prog_STRIP"; then
3194 # Extract the first word of "strip", so it can be a program name with args.
3195 set dummy 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_ac_ct_STRIP+:} false; then :
3199 $as_echo_n "(cached) " >&6
3201 if test -n "$ac_ct_STRIP"; then
3202 ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="strip"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3222 if test -n "$ac_ct_STRIP"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3224 $as_echo "$ac_ct_STRIP" >&6; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3230 if test "x$ac_ct_STRIP" = x; then
3233 case $cross_compiling:$ac_tool_warned in
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3237 ac_tool_warned=yes ;;
3242 STRIP="$ac_cv_prog_STRIP"
3246 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3249 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3250 if test -z "$MKDIR_P"; then
3251 if ${ac_cv_path_mkdir+:} false; then :
3252 $as_echo_n "(cached) " >&6
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3258 test -z "$as_dir" && as_dir=.
3259 for ac_prog in mkdir gmkdir; do
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3262 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3263 'mkdir (GNU coreutils) '* | \
3264 'mkdir (coreutils) '* | \
3265 'mkdir (fileutils) '4.1*)
3266 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3276 test -d ./--version && rmdir ./--version
3277 if test "${ac_cv_path_mkdir+set}" = set; then
3278 MKDIR_P="$ac_cv_path_mkdir -p"
3280 # As a last resort, use the slow shell script. Don't cache a
3281 # value for MKDIR_P within a source directory, because that will
3282 # break other packages using the cache if that directory is
3283 # removed, or if the value is a relative name.
3284 MKDIR_P="$ac_install_sh -d"
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3288 $as_echo "$MKDIR_P" >&6; }
3290 for ac_prog in gawk mawk nawk awk
3292 # Extract the first word of "$ac_prog", so it can be a program name with args.
3293 set dummy $ac_prog; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if ${ac_cv_prog_AWK+:} false; then :
3297 $as_echo_n "(cached) " >&6
3299 if test -n "$AWK"; then
3300 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309 ac_cv_prog_AWK="$ac_prog"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 if test -n "$AWK"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3322 $as_echo "$AWK" >&6; }
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3329 test -n "$AWK" && break
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3333 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3335 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3336 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3337 $as_echo_n "(cached) " >&6
3339 cat >conftest.make <<\_ACEOF
3342 @echo '@@@%%%=$(MAKE)=@@@%%%'
3344 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3345 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3347 eval ac_cv_prog_make_${ac_make}_set=yes;;
3349 eval ac_cv_prog_make_${ac_make}_set=no;;
3353 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3355 $as_echo "yes" >&6; }
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 SET_MAKE="MAKE=${MAKE-make}"
3363 rm -rf .tst 2>/dev/null
3364 mkdir .tst 2>/dev/null
3365 if test -d .tst; then
3370 rmdir .tst 2>/dev/null
3372 # Check whether --enable-silent-rules was given.
3373 if test "${enable_silent_rules+set}" = set; then :
3374 enableval=$enable_silent_rules;
3377 case $enable_silent_rules in # (((
3378 yes) AM_DEFAULT_VERBOSITY=0;;
3379 no) AM_DEFAULT_VERBOSITY=1;;
3380 *) AM_DEFAULT_VERBOSITY=1;;
3382 am_make=${MAKE-make}
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3384 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3385 if ${am_cv_make_support_nested_variables+:} false; then :
3386 $as_echo_n "(cached) " >&6
3388 if $as_echo 'TRUE=$(BAR$(V))
3394 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3395 am_cv_make_support_nested_variables=yes
3397 am_cv_make_support_nested_variables=no
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3401 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3402 if test $am_cv_make_support_nested_variables = yes; then
3404 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3406 AM_V=$AM_DEFAULT_VERBOSITY
3407 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3411 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3412 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3413 # is not polluted with repeated "-I."
3414 am__isrc=' -I$(srcdir)'
3415 # test to see if srcdir already configured
3416 if test -f $srcdir/config.status; then
3417 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3421 # test whether we have cygpath
3422 if test -z "$CYGPATH_W"; then
3423 if (cygpath --version) >/dev/null 2>/dev/null; then
3424 CYGPATH_W='cygpath -w'
3431 # Define the identity of the package.
3436 # Some tools Automake needs.
3438 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3441 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3444 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3447 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3450 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3452 # For better backward compatibility. To be removed once Automake 1.9.x
3453 # dies out for good. For more background, see:
3454 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3455 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3456 mkdir_p='$(MKDIR_P)'
3458 # We need awk for the "check" target (and possibly the TAP driver). The
3459 # system "awk" is bad on some platforms.
3460 # Always define AMTAR for backward compatibility. Yes, it's still used
3461 # in the wild :-( We should find a proper way to deprecate it ...
3465 # We'll loop over all known methods to create a tar archive until one works.
3466 _am_tools='gnutar plaintar pax cpio none'
3468 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3469 # There is notably a 21 bits limit for the UID and the GID. In fact,
3470 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3472 am_max_uid=2097151 # 2^21 - 1
3473 am_max_gid=$am_max_uid
3474 # The $UID and $GID variables are not portable, so we need to resort
3475 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3476 # below are definitely unexpected, so allow the users to see them
3477 # (that is, avoid stderr redirection).
3478 am_uid=`id -u || echo unknown`
3479 am_gid=`id -g || echo unknown`
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3481 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3482 if test $am_uid -le $am_max_uid; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3484 $as_echo "yes" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3491 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3492 if test $am_gid -le $am_max_gid; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3494 $as_echo "yes" >&6; }
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3502 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3504 # Go ahead even if we have the value already cached. We do so because we
3505 # need to set the values for the 'am__tar' and 'am__untar' variables.
3506 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3508 for _am_tool in $_am_tools; do
3511 for _am_tar in tar gnutar gtar; do
3512 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3513 ($_am_tar --version) >&5 2>&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } && break
3518 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3519 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3520 am__untar="$_am_tar -xf -"
3523 # Must skip GNU tar: if it does not support --format= it doesn't create
3524 # ustar tarball either.
3525 (tar --version) >/dev/null 2>&1 && continue
3526 am__tar='tar chf - "$$tardir"'
3527 am__tar_='tar chf - "$tardir"'
3528 am__untar='tar xf -'
3531 am__tar='pax -L -x ustar -w "$$tardir"'
3532 am__tar_='pax -L -x ustar -w "$tardir"'
3536 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3537 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3538 am__untar='cpio -i -H ustar -d'
3547 # If the value was cached, stop now. We just wanted to have am__tar
3548 # and am__untar set.
3549 test -n "${am_cv_prog_tar_ustar}" && break
3551 # tar/untar a dummy directory, and stop if the command works.
3554 echo GrepMe > conftest.dir/file
3555 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3556 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }
3561 if test -s conftest.tar; then
3562 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3563 ($am__untar <conftest.tar) >&5 2>&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }
3567 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3568 (cat conftest.dir/file) >&5 2>&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }
3572 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3577 if ${am_cv_prog_tar_ustar+:} false; then :
3578 $as_echo_n "(cached) " >&6
3580 am_cv_prog_tar_ustar=$_am_tool
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3584 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3591 # POSIX will say in a future version that running "rm -f" with no argument
3592 # is OK; and we want to be able to make that assumption in our Makefile
3593 # recipes. So use an aggressive probe to check that the usage we want is
3594 # actually supported "in the wild" to an acceptable degree.
3595 # See automake bug#10828.
3596 # To make any issue more visible, cause the running configure to be aborted
3597 # by default if the 'rm' program in use doesn't match our expectations; the
3598 # user can still override this though.
3599 if rm -f && rm -fr && rm -rf; then : OK; else
3603 Your 'rm' program seems unable to run without file operands specified
3604 on the command line, even when the '-f' option is present. This is contrary
3605 to the behaviour of most rm programs out there, and not conforming with
3606 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3608 Please tell bug-automake@gnu.org about your system, including the value
3609 of your $PATH and any error possibly output before this message. This
3610 can help us improve future automake versions.
3613 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3614 echo 'Configuration will proceed anyway, since you have set the' >&2
3615 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3619 Aborting the configuration process, to ensure you take notice of the issue.
3621 You can download and install GNU coreutils to get an 'rm' implementation
3622 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3624 If you want to complete the configuration process using your problematic
3625 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3626 to "yes", and re-run configure.
3629 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3633 # Check whether --enable-silent-rules was given.
3634 if test "${enable_silent_rules+set}" = set; then :
3635 enableval=$enable_silent_rules;
3638 case $enable_silent_rules in # (((
3639 yes) AM_DEFAULT_VERBOSITY=0;;
3640 no) AM_DEFAULT_VERBOSITY=1;;
3641 *) AM_DEFAULT_VERBOSITY=0;;
3643 am_make=${MAKE-make}
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3645 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3646 if ${am_cv_make_support_nested_variables+:} false; then :
3647 $as_echo_n "(cached) " >&6
3649 if $as_echo 'TRUE=$(BAR$(V))
3655 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3656 am_cv_make_support_nested_variables=yes
3658 am_cv_make_support_nested_variables=no
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3662 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3663 if test $am_cv_make_support_nested_variables = yes; then
3665 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3667 AM_V=$AM_DEFAULT_VERBOSITY
3668 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3673 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3674 if ${ac_cv_path_SED+:} false; then :
3675 $as_echo_n "(cached) " >&6
3677 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3678 for ac_i in 1 2 3 4 5 6 7; do
3679 ac_script="$ac_script$as_nl$ac_script"
3681 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3682 { ac_script=; unset ac_script;}
3683 if test -z "$SED"; then
3684 ac_path_SED_found=false
3685 # Loop through the user's path and test for each of PROGNAME-LIST
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 test -z "$as_dir" && as_dir=.
3691 for ac_prog in sed gsed; do
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3694 as_fn_executable_p "$ac_path_SED" || continue
3695 # Check for GNU ac_path_SED and select it if it is found.
3696 # Check for GNU $ac_path_SED
3697 case `"$ac_path_SED" --version 2>&1` in
3699 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3702 $as_echo_n 0123456789 >"conftest.in"
3705 cat "conftest.in" "conftest.in" >"conftest.tmp"
3706 mv "conftest.tmp" "conftest.in"
3707 cp "conftest.in" "conftest.nl"
3708 $as_echo '' >> "conftest.nl"
3709 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3711 as_fn_arith $ac_count + 1 && ac_count=$as_val
3712 if test $ac_count -gt ${ac_path_SED_max-0}; then
3713 # Best one so far, save it but keep looking for a better one
3714 ac_cv_path_SED="$ac_path_SED"
3715 ac_path_SED_max=$ac_count
3717 # 10*(2^10) chars as input seems more than enough
3718 test $ac_count -gt 10 && break
3720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3723 $ac_path_SED_found && break 3
3728 if test -z "$ac_cv_path_SED"; then
3729 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3737 $as_echo "$ac_cv_path_SED" >&6; }
3738 SED="$ac_cv_path_SED"
3744 # allow to override gcov location
3746 # Check whether --with-gcov was given.
3747 if test "${with_gcov+set}" = set; then :
3748 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3750 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3755 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3756 # Check whether --enable-code-coverage was given.
3757 if test "${enable_code_coverage+set}" = set; then :
3758 enableval=$enable_code_coverage;
3760 enable_code_coverage=no
3764 if test x$enable_code_coverage = xyes; then
3765 CODE_COVERAGE_ENABLED_TRUE=
3766 CODE_COVERAGE_ENABLED_FALSE='#'
3768 CODE_COVERAGE_ENABLED_TRUE='#'
3769 CODE_COVERAGE_ENABLED_FALSE=
3772 CODE_COVERAGE_ENABLED=$enable_code_coverage
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3775 $as_echo "$enable_code_coverage" >&6; }
3777 if test "$enable_code_coverage" = "yes" ; then :
3780 if test -n "$ac_tool_prefix"; then
3781 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3782 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784 $as_echo_n "checking for $ac_word... " >&6; }
3785 if ${ac_cv_prog_GCOV+:} false; then :
3786 $as_echo_n "(cached) " >&6
3788 if test -n "$GCOV"; then
3789 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 test -z "$as_dir" && as_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3798 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 GCOV=$ac_cv_prog_GCOV
3809 if test -n "$GCOV"; then
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3811 $as_echo "$GCOV" >&6; }
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3819 if test -z "$ac_cv_prog_GCOV"; then
3821 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3822 set dummy $_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_ac_ct_GCOV+:} false; then :
3826 $as_echo_n "(cached) " >&6
3828 if test -n "$ac_ct_GCOV"; then
3829 ac_cv_prog_ac_ct_GCOV="$ac_ct_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_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3849 if test -n "$ac_ct_GCOV"; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3851 $as_echo "$ac_ct_GCOV" >&6; }
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3857 if test "x$ac_ct_GCOV" = x; then
3860 case $cross_compiling:$ac_tool_warned in
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3864 ac_tool_warned=yes ;;
3869 GCOV="$ac_cv_prog_GCOV"
3872 if test "X$GCOV" = "X:"; then :
3873 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3877 if test "$GCC" = "no" ; then :
3879 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3883 # Extract the first word of "lcov", so it can be a program name with args.
3884 set dummy lcov; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_prog_LCOV+:} false; then :
3888 $as_echo_n "(cached) " >&6
3890 if test -n "$LCOV"; then
3891 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900 ac_cv_prog_LCOV="lcov"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 LCOV=$ac_cv_prog_LCOV
3911 if test -n "$LCOV"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3913 $as_echo "$LCOV" >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3920 # Extract the first word of "genhtml", so it can be a program name with args.
3921 set dummy genhtml; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if ${ac_cv_prog_GENHTML+:} false; then :
3925 $as_echo_n "(cached) " >&6
3927 if test -n "$GENHTML"; then
3928 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_GENHTML="genhtml"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 GENHTML=$ac_cv_prog_GENHTML
3948 if test -n "$GENHTML"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3950 $as_echo "$GENHTML" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3958 if test -z "$LCOV" ; then :
3960 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
3964 if test -z "$GENHTML" ; then :
3966 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3970 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
3971 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3972 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3973 CODE_COVERAGE_LIBS="-lgcov"
3974 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
3982 CODE_COVERAGE_RULES_CHECK='
3983 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
3984 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3986 CODE_COVERAGE_RULES_CAPTURE='
3987 $(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)
3988 $(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)
3989 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3990 $(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)
3991 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
3993 CODE_COVERAGE_RULES_CLEAN='
3994 clean: code-coverage-clean
3995 distclean: code-coverage-clean
3996 code-coverage-clean:
3997 -$(LCOV) --directory $(top_builddir) -z
3998 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3999 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
4004 CODE_COVERAGE_RULES_CHECK='
4005 @echo "Need to reconfigure with --enable-code-coverage"
4007 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
4008 CODE_COVERAGE_RULES_CLEAN=''
4012 CODE_COVERAGE_RULES='
4016 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
4017 # Multiple directories may be specified, separated by whitespace.
4018 # (Default: $(top_builddir))
4019 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
4020 # by lcov for code coverage. (Default:
4021 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
4022 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
4023 # reports to be created. (Default:
4024 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
4025 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
4026 # set to 0 to disable it and leave empty to stay with the default.
4028 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
4029 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4030 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
4031 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4032 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
4033 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
4034 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4035 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
4036 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4037 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
4038 # lcov instance. (Default: empty)
4039 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
4040 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4041 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
4042 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4043 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
4044 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4045 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
4047 # The generated report will be titled using the $(PACKAGE_NAME) and
4048 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
4049 # use the git-version-gen script, available online.
4051 # Optional variables
4052 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
4053 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
4054 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
4055 CODE_COVERAGE_BRANCH_COVERAGE ?=
4056 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4057 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4058 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4059 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
4060 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4061 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4062 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
4063 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4064 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
4065 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4066 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4067 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4068 CODE_COVERAGE_IGNORE_PATTERN ?=
4071 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4073 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
4074 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
4075 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
4076 $(CODE_COVERAGE_OUTPUT_FILE);
4077 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
4078 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
4079 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
4080 $(CODE_COVERAGE_IGNORE_PATTERN);
4081 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
4082 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
4083 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
4084 code_coverage_quiet = $(code_coverage_quiet_$(V))
4085 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
4086 code_coverage_quiet_0 = --quiet
4088 # sanitizes the test-name: replaces with underscores: dashes and dots
4089 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
4091 # Use recursive makes in order to ignore errors during check
4092 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
4094 # Capture code coverage data
4095 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
4097 # Hook rule executed before code-coverage-capture, overridable by the user
4098 code-coverage-capture-hook:
4100 '"$CODE_COVERAGE_RULES_CLEAN"'
4102 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4103 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
4105 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
4112 # Initialize libtool
4113 DEPDIR="${am__leading_dot}deps"
4115 ac_config_commands="$ac_config_commands depfiles"
4118 am_make=${MAKE-make}
4119 cat > confinc << 'END'
4121 @echo this is the am__doit target
4124 # If we don't find an include directive, just comment out the code.
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4126 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4130 # First try GNU make style include.
4131 echo "include confinc" > confmf
4132 # Ignore all kinds of additional output from 'make'.
4133 case `$am_make -s -f confmf 2> /dev/null` in #(
4134 *the\ am__doit\ target*)
4140 # Now try BSD make style include.
4141 if test "$am__include" = "#"; then
4142 echo '.include "confinc"' > confmf
4143 case `$am_make -s -f confmf 2> /dev/null` in #(
4144 *the\ am__doit\ target*)
4145 am__include=.include
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4154 $as_echo "$_am_result" >&6; }
4155 rm -f confinc confmf
4157 # Check whether --enable-dependency-tracking was given.
4158 if test "${enable_dependency_tracking+set}" = set; then :
4159 enableval=$enable_dependency_tracking;
4162 if test "x$enable_dependency_tracking" != xno; then
4163 am_depcomp="$ac_aux_dir/depcomp"
4167 if test "x$enable_dependency_tracking" != xno; then
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181 if test -n "$ac_tool_prefix"; then
4182 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4183 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185 $as_echo_n "checking for $ac_word... " >&6; }
4186 if ${ac_cv_prog_CC+:} false; then :
4187 $as_echo_n "(cached) " >&6
4189 if test -n "$CC"; then
4190 ac_cv_prog_CC="$CC" # Let the user override the test.
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 test -z "$as_dir" && as_dir=.
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4199 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 if test -n "$CC"; then
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212 $as_echo "$CC" >&6; }
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4220 if test -z "$ac_cv_prog_CC"; then
4222 # Extract the first word of "gcc", so it can be a program name with args.
4223 set dummy 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_ac_ct_CC+:} false; then :
4227 $as_echo_n "(cached) " >&6
4229 if test -n "$ac_ct_CC"; then
4230 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4250 if test -n "$ac_ct_CC"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4252 $as_echo "$ac_ct_CC" >&6; }
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4258 if test "x$ac_ct_CC" = x; then
4261 case $cross_compiling:$ac_tool_warned in
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4265 ac_tool_warned=yes ;;
4273 if test -z "$CC"; then
4274 if test -n "$ac_tool_prefix"; then
4275 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4276 set dummy ${ac_tool_prefix}cc; ac_word=$2
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4278 $as_echo_n "checking for $ac_word... " >&6; }
4279 if ${ac_cv_prog_CC+:} false; then :
4280 $as_echo_n "(cached) " >&6
4282 if test -n "$CC"; then
4283 ac_cv_prog_CC="$CC" # Let the user override the test.
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4292 ac_cv_prog_CC="${ac_tool_prefix}cc"
4293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 if test -n "$CC"; then
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4305 $as_echo "$CC" >&6; }
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308 $as_echo "no" >&6; }
4314 if test -z "$CC"; then
4315 # Extract the first word of "cc", so it can be a program name with args.
4316 set dummy 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.
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4334 ac_prog_rejected=yes
4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 if test $ac_prog_rejected = yes; then
4346 # We found a bogon in the path, so make sure we never use it.
4347 set dummy $ac_cv_prog_CC
4349 if test $# != 0; then
4350 # We chose a different compiler from the bogus one.
4351 # However, it has the same basename, so the bogon will be chosen
4352 # first if we set CC to just the basename; use the full file name.
4354 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4360 if test -n "$CC"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4362 $as_echo "$CC" >&6; }
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4370 if test -z "$CC"; then
4371 if test -n "$ac_tool_prefix"; then
4372 for ac_prog in cl.exe
4374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4375 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377 $as_echo_n "checking for $ac_word... " >&6; }
4378 if ${ac_cv_prog_CC+:} false; then :
4379 $as_echo_n "(cached) " >&6
4381 if test -n "$CC"; then
4382 ac_cv_prog_CC="$CC" # Let the user override the test.
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 if test -n "$CC"; then
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4404 $as_echo "$CC" >&6; }
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 $as_echo "no" >&6; }
4411 test -n "$CC" && break
4414 if test -z "$CC"; then
4416 for ac_prog in cl.exe
4418 # Extract the first word of "$ac_prog", so it can be a program name with args.
4419 set dummy $ac_prog; ac_word=$2
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 $as_echo_n "checking for $ac_word... " >&6; }
4422 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4423 $as_echo_n "(cached) " >&6
4425 if test -n "$ac_ct_CC"; then
4426 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435 ac_cv_prog_ac_ct_CC="$ac_prog"
4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4446 if test -n "$ac_ct_CC"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4448 $as_echo "$ac_ct_CC" >&6; }
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4455 test -n "$ac_ct_CC" && break
4458 if test "x$ac_ct_CC" = x; then
4461 case $cross_compiling:$ac_tool_warned in
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4465 ac_tool_warned=yes ;;
4474 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4476 as_fn_error $? "no acceptable C compiler found in \$PATH
4477 See \`config.log' for more details" "$LINENO" 5; }
4479 # Provide some information about the compiler.
4480 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4483 for ac_option in --version -v -V -qversion; do
4484 { { ac_try="$ac_compiler $ac_option >&5"
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4490 $as_echo "$ac_try_echo"; } >&5
4491 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4493 if test -s conftest.err; then
4495 ... rest of stderr output deleted ...
4496 10q' conftest.err >conftest.er1
4497 cat conftest.er1 >&5
4499 rm -f conftest.er1 conftest.err
4500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4501 test $ac_status = 0; }
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4515 ac_clean_files_save=$ac_clean_files
4516 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4517 # Try to create an executable without -o first, disregard a.out.
4518 # It will help us diagnose broken compilers, and finding out an intuition
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4521 $as_echo_n "checking whether the C compiler works... " >&6; }
4522 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4524 # The possible output files:
4525 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4528 for ac_file in $ac_files
4531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4532 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4537 if { { ac_try="$ac_link_default"
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4543 $as_echo "$ac_try_echo"; } >&5
4544 (eval "$ac_link_default") 2>&5
4546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4547 test $ac_status = 0; }; then :
4548 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4549 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4550 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4551 # so that the user can short-circuit this test for compilers unknown to
4553 for ac_file in $ac_files ''
4555 test -f "$ac_file" || continue
4557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4560 # We found the default executable, but exeext='' is most
4564 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4566 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4568 # We set ac_cv_exeext here because the later test for it is not
4569 # safe: cross compilers may not add the suffix if given an `-o'
4570 # argument, so we may need to know it at that point already.
4571 # Even if this section looks crufty: it has the advantage of
4578 test "$ac_cv_exeext" = no && ac_cv_exeext=
4583 if test -z "$ac_file"; then :
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4586 $as_echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4591 as_fn_error 77 "C compiler cannot create executables
4592 See \`config.log' for more details" "$LINENO" 5; }
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4595 $as_echo "yes" >&6; }
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4598 $as_echo_n "checking for C compiler default output file name... " >&6; }
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4600 $as_echo "$ac_file" >&6; }
4601 ac_exeext=$ac_cv_exeext
4603 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4604 ac_clean_files=$ac_clean_files_save
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4606 $as_echo_n "checking for suffix of executables... " >&6; }
4607 if { { ac_try="$ac_link"
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613 $as_echo "$ac_try_echo"; } >&5
4614 (eval "$ac_link") 2>&5
4616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617 test $ac_status = 0; }; then :
4618 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4619 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4620 # work properly (i.e., refer to `conftest.exe'), while it won't with
4622 for ac_file in conftest.exe conftest conftest.*; do
4623 test -f "$ac_file" || continue
4625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4626 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4634 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4635 See \`config.log' for more details" "$LINENO" 5; }
4637 rm -f conftest conftest$ac_cv_exeext
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4639 $as_echo "$ac_cv_exeext" >&6; }
4641 rm -f conftest.$ac_ext
4642 EXEEXT=$ac_cv_exeext
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4650 FILE *f = fopen ("conftest.out", "w");
4651 return ferror (f) || fclose (f) != 0;
4657 ac_clean_files="$ac_clean_files conftest.out"
4658 # Check that the compiler produces executables we can run. If not, either
4659 # the compiler is broken, or we cross compile.
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4661 $as_echo_n "checking whether we are cross compiling... " >&6; }
4662 if test "$cross_compiling" != yes; then
4663 { { ac_try="$ac_link"
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4669 $as_echo "$ac_try_echo"; } >&5
4670 (eval "$ac_link") 2>&5
4672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4673 test $ac_status = 0; }
4674 if { ac_try='./conftest$ac_cv_exeext'
4675 { { case "(($ac_try" in
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4680 $as_echo "$ac_try_echo"; } >&5
4681 (eval "$ac_try") 2>&5
4683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4684 test $ac_status = 0; }; }; then
4687 if test "$cross_compiling" = maybe; then
4690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4692 as_fn_error $? "cannot run C compiled programs.
4693 If you meant to cross compile, use \`--host'.
4694 See \`config.log' for more details" "$LINENO" 5; }
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4699 $as_echo "$cross_compiling" >&6; }
4701 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4702 ac_clean_files=$ac_clean_files_save
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4704 $as_echo_n "checking for suffix of object files... " >&6; }
4705 if ${ac_cv_objext+:} false; then :
4706 $as_echo_n "(cached) " >&6
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4719 rm -f conftest.o conftest.obj
4720 if { { ac_try="$ac_compile"
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726 $as_echo "$ac_try_echo"; } >&5
4727 (eval "$ac_compile") 2>&5
4729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730 test $ac_status = 0; }; then :
4731 for ac_file in conftest.o conftest.obj conftest.*; do
4732 test -f "$ac_file" || continue;
4734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4735 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4740 $as_echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4745 as_fn_error $? "cannot compute suffix of object files: cannot compile
4746 See \`config.log' for more details" "$LINENO" 5; }
4748 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4751 $as_echo "$ac_cv_objext" >&6; }
4752 OBJEXT=$ac_cv_objext
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4755 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4756 if ${ac_cv_c_compiler_gnu+:} false; then :
4757 $as_echo_n "(cached) " >&6
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4773 if ac_fn_c_try_compile "$LINENO"; then :
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4783 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4784 if test $ac_compiler_gnu = yes; then
4789 ac_test_CFLAGS=${CFLAGS+set}
4790 ac_save_CFLAGS=$CFLAGS
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4792 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4793 if ${ac_cv_prog_cc_g+:} false; then :
4794 $as_echo_n "(cached) " >&6
4796 ac_save_c_werror_flag=$ac_c_werror_flag
4797 ac_c_werror_flag=yes
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4811 if ac_fn_c_try_compile "$LINENO"; then :
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4826 if ac_fn_c_try_compile "$LINENO"; then :
4829 ac_c_werror_flag=$ac_save_c_werror_flag
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4842 if ac_fn_c_try_compile "$LINENO"; then :
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 ac_c_werror_flag=$ac_save_c_werror_flag
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4853 $as_echo "$ac_cv_prog_cc_g" >&6; }
4854 if test "$ac_test_CFLAGS" = set; then
4855 CFLAGS=$ac_save_CFLAGS
4856 elif test $ac_cv_prog_cc_g = yes; then
4857 if test "$GCC" = yes; then
4863 if test "$GCC" = yes; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4870 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4871 if ${ac_cv_prog_cc_c89+:} false; then :
4872 $as_echo_n "(cached) " >&6
4874 ac_cv_prog_cc_c89=no
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4881 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4882 struct buf { int x; };
4883 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4884 static char *e (p, i)
4890 static char *f (char * (*g) (char **, int), char **p, ...)
4895 s = g (p, va_arg (v,int));
4900 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4901 function prototypes and stuff, but not '\xHH' hex character constants.
4902 These don't provoke an error unfortunately, instead are silently treated
4903 as 'x'. The following induces an error, until -std is added to get
4904 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4905 array size at least. It's necessary to write '\x00'==0 to get something
4906 that's true only with -std. */
4907 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4909 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4910 inside strings and character constants. */
4912 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4914 int test (int i, double x);
4915 struct s1 {int (*f) (int a);};
4916 struct s2 {int (*f) (double a);};
4917 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4923 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4928 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4929 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4931 CC="$ac_save_CC $ac_arg"
4932 if ac_fn_c_try_compile "$LINENO"; then :
4933 ac_cv_prog_cc_c89=$ac_arg
4935 rm -f core conftest.err conftest.$ac_objext
4936 test "x$ac_cv_prog_cc_c89" != "xno" && break
4938 rm -f conftest.$ac_ext
4943 case "x$ac_cv_prog_cc_c89" in
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4946 $as_echo "none needed" >&6; } ;;
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4949 $as_echo "unsupported" >&6; } ;;
4951 CC="$CC $ac_cv_prog_cc_c89"
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4953 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4955 if test "x$ac_cv_prog_cc_c89" != xno; then :
4960 ac_cpp='$CPP $CPPFLAGS'
4961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4971 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4972 if ${am_cv_prog_cc_c_o+:} false; then :
4973 $as_echo_n "(cached) " >&6
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4986 # Make sure it works both with $CC and with simple cc.
4987 # Following AC_PROG_CC_C_O, we do the test twice because some
4988 # compilers refuse to overwrite an existing .o file with -o,
4989 # though they will create one.
4990 am_cv_prog_cc_c_o=yes
4992 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4993 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } \
4997 && test -f conftest2.$ac_objext; then
5000 am_cv_prog_cc_c_o=no
5004 rm -f core conftest*
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5008 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5009 if test "$am_cv_prog_cc_c_o" != yes; then
5010 # Losing compiler, so override with the script.
5011 # FIXME: It is wrong to rewrite CC.
5012 # But if we don't then we get into trouble of one sort or another.
5013 # A longer-term fix would be to have automake use am__CC in this case,
5014 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5015 CC="$am_aux_dir/compile $CC"
5018 ac_cpp='$CPP $CPPFLAGS'
5019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5024 depcc="$CC" am_compiler_list=
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5027 $as_echo_n "checking dependency style of $depcc... " >&6; }
5028 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5029 $as_echo_n "(cached) " >&6
5031 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5032 # We make a subdir and do the tests there. Otherwise we can end up
5033 # making bogus files that we don't know about and never remove. For
5034 # instance it was reported that on HP-UX the gcc test will end up
5035 # making a dummy file named 'D' -- because '-MD' means "put the output
5039 # Copy depcomp to subdir because otherwise we won't find it if we're
5040 # using a relative directory.
5041 cp "$am_depcomp" conftest.dir
5043 # We will build objects and dependencies in a subdirectory because
5044 # it helps to detect inapplicable dependency modes. For instance
5045 # both Tru64's cc and ICC support -MD to output dependencies as a
5046 # side effect of compilation, but ICC will put the dependencies in
5047 # the current directory while Tru64 will put them in the object
5051 am_cv_CC_dependencies_compiler_type=none
5052 if test "$am_compiler_list" = ""; then
5053 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5056 case " $depcc " in #(
5057 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5060 for depmode in $am_compiler_list; do
5061 # Setup a source with many dependencies, because some compilers
5062 # like to wrap large dependency lists on column 80 (with \), and
5063 # we should not choose a depcomp mode which is confused by this.
5065 # We need to recreate these files for each test, as the compiler may
5066 # overwrite some of them when testing with obscure command lines.
5067 # This happens at least with the AIX C compiler.
5069 for i in 1 2 3 4 5 6; do
5070 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5071 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5072 # Solaris 10 /bin/sh.
5073 echo '/* dummy */' > sub/conftst$i.h
5075 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5077 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5078 # mode. It turns out that the SunPro C++ compiler does not properly
5079 # handle '-M -o', and we need to detect this. Also, some Intel
5080 # versions had trouble with output in subdirs.
5081 am__obj=sub/conftest.${OBJEXT-o}
5082 am__minus_obj="-o $am__obj"
5085 # This depmode causes a compiler race in universal mode.
5086 test "$am__universal" = false || continue
5089 # After this tag, mechanisms are not by side-effect, so they'll
5090 # only be used when explicitly requested.
5091 if test "x$enable_dependency_tracking" = xyes; then
5097 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5098 # This compiler won't grok '-c -o', but also, the minuso test has
5099 # not run yet. These depmodes are late enough in the game, and
5100 # so weak that their functioning should not be impacted.
5101 am__obj=conftest.${OBJEXT-o}
5106 if depmode=$depmode \
5107 source=sub/conftest.c object=$am__obj \
5108 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5109 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5110 >/dev/null 2>conftest.err &&
5111 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5112 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5113 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5114 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5115 # icc doesn't choke on unknown options, it will just issue warnings
5116 # or remarks (even with -Werror). So we grep stderr for any message
5117 # that says an option was ignored or not supported.
5118 # When given -MP, icc 7.0 and 7.1 complain thusly:
5119 # icc: Command line warning: ignoring option '-M'; no argument required
5120 # The diagnosis changed in icc 8.0:
5121 # icc: Command line remark: option '-MP' not supported
5122 if (grep 'ignoring option' conftest.err ||
5123 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5124 am_cv_CC_dependencies_compiler_type=$depmode
5133 am_cv_CC_dependencies_compiler_type=none
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5138 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5139 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5142 test "x$enable_dependency_tracking" != xno \
5143 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5145 am__fastdepCC_FALSE='#'
5147 am__fastdepCC_TRUE='#'
5148 am__fastdepCC_FALSE=
5153 if test -n "$ac_tool_prefix"; then
5154 for ac_prog in ar lib "link -lib"
5156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if ${ac_cv_prog_AR+:} false; then :
5161 $as_echo_n "(cached) " >&6
5163 if test -n "$AR"; then
5164 ac_cv_prog_AR="$AR" # Let the user override the test.
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 if test -n "$AR"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5186 $as_echo "$AR" >&6; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5193 test -n "$AR" && break
5196 if test -z "$AR"; then
5198 for ac_prog in ar lib "link -lib"
5200 # Extract the first word of "$ac_prog", so it can be a program name with args.
5201 set dummy $ac_prog; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5205 $as_echo_n "(cached) " >&6
5207 if test -n "$ac_ct_AR"; then
5208 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_ac_ct_AR="$ac_prog"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5228 if test -n "$ac_ct_AR"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5230 $as_echo "$ac_ct_AR" >&6; }
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5237 test -n "$ac_ct_AR" && break
5240 if test "x$ac_ct_AR" = x; then
5243 case $cross_compiling:$ac_tool_warned in
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5247 ac_tool_warned=yes ;;
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5256 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5257 if ${am_cv_ar_interface+:} false; then :
5258 $as_echo_n "(cached) " >&6
5261 ac_cpp='$CPP $CPPFLAGS'
5262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5266 am_cv_ar_interface=ar
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5269 int some_variable = 0;
5271 if ac_fn_c_try_compile "$LINENO"; then :
5272 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5274 (eval $am_ar_try) 2>&5
5276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5277 test $ac_status = 0; }
5278 if test "$ac_status" -eq 0; then
5279 am_cv_ar_interface=ar
5281 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5283 (eval $am_ar_try) 2>&5
5285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5286 test $ac_status = 0; }
5287 if test "$ac_status" -eq 0; then
5288 am_cv_ar_interface=lib
5290 am_cv_ar_interface=unknown
5293 rm -f conftest.lib libconftest.a
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298 ac_cpp='$CPP $CPPFLAGS'
5299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5305 $as_echo "$am_cv_ar_interface" >&6; }
5307 case $am_cv_ar_interface in
5311 # Microsoft lib, so override with the ar-lib wrapper script.
5312 # FIXME: It is wrong to rewrite AR.
5313 # But if we don't then we get into trouble of one sort or another.
5314 # A longer-term fix would be to have automake use am__AR in this case,
5315 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5317 AR="$am_aux_dir/ar-lib $AR"
5320 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5328 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5333 macro_version='2.4.6'
5334 macro_revision='2.4.6'
5348 ltmain=$ac_aux_dir/ltmain.sh
5350 # Make sure we can run config.sub.
5351 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5352 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5355 $as_echo_n "checking build system type... " >&6; }
5356 if ${ac_cv_build+:} false; then :
5357 $as_echo_n "(cached) " >&6
5359 ac_build_alias=$build_alias
5360 test "x$ac_build_alias" = x &&
5361 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5362 test "x$ac_build_alias" = x &&
5363 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5364 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5365 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5369 $as_echo "$ac_cv_build" >&6; }
5370 case $ac_cv_build in
5372 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5375 ac_save_IFS=$IFS; IFS='-'
5381 # Remember, the first character of IFS is used to create $*,
5382 # except with old shells:
5385 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5389 $as_echo_n "checking host system type... " >&6; }
5390 if ${ac_cv_host+:} false; then :
5391 $as_echo_n "(cached) " >&6
5393 if test "x$host_alias" = x; then
5394 ac_cv_host=$ac_cv_build
5396 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5397 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5402 $as_echo "$ac_cv_host" >&6; }
5405 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5408 ac_save_IFS=$IFS; IFS='-'
5414 # Remember, the first character of IFS is used to create $*,
5415 # except with old shells:
5418 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5421 # Backslashify metacharacters that are still active within
5422 # double-quoted strings.
5423 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5425 # Same as above, but do not quote variable references.
5426 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5428 # Sed substitution to delay expansion of an escaped shell variable in a
5429 # double_quote_subst'ed string.
5430 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5432 # Sed substitution to delay expansion of an escaped single quote.
5433 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5435 # Sed substitution to avoid accidental globbing in evaled expressions
5436 no_glob_subst='s/\*/\\\*/g'
5438 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5439 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5440 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5443 $as_echo_n "checking how to print strings... " >&6; }
5444 # Test print first, because it will be a builtin if present.
5445 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5446 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5448 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5451 # Use this function as a fallback that always works.
5452 func_fallback_echo ()
5454 eval 'cat <<_LTECHO_EOF
5458 ECHO='func_fallback_echo'
5461 # func_echo_all arg...
5462 # Invoke $ECHO with all args, space-separated.
5469 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5470 $as_echo "printf" >&6; } ;;
5471 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5472 $as_echo "print -r" >&6; } ;;
5473 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5474 $as_echo "cat" >&6; } ;;
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5491 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5492 if ${ac_cv_path_SED+:} false; then :
5493 $as_echo_n "(cached) " >&6
5495 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5496 for ac_i in 1 2 3 4 5 6 7; do
5497 ac_script="$ac_script$as_nl$ac_script"
5499 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5500 { ac_script=; unset ac_script;}
5501 if test -z "$SED"; then
5502 ac_path_SED_found=false
5503 # Loop through the user's path and test for each of PROGNAME-LIST
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 test -z "$as_dir" && as_dir=.
5509 for ac_prog in sed gsed; do
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5512 as_fn_executable_p "$ac_path_SED" || continue
5513 # Check for GNU ac_path_SED and select it if it is found.
5514 # Check for GNU $ac_path_SED
5515 case `"$ac_path_SED" --version 2>&1` in
5517 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5520 $as_echo_n 0123456789 >"conftest.in"
5523 cat "conftest.in" "conftest.in" >"conftest.tmp"
5524 mv "conftest.tmp" "conftest.in"
5525 cp "conftest.in" "conftest.nl"
5526 $as_echo '' >> "conftest.nl"
5527 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5528 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5529 as_fn_arith $ac_count + 1 && ac_count=$as_val
5530 if test $ac_count -gt ${ac_path_SED_max-0}; then
5531 # Best one so far, save it but keep looking for a better one
5532 ac_cv_path_SED="$ac_path_SED"
5533 ac_path_SED_max=$ac_count
5535 # 10*(2^10) chars as input seems more than enough
5536 test $ac_count -gt 10 && break
5538 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5541 $ac_path_SED_found && break 3
5546 if test -z "$ac_cv_path_SED"; then
5547 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5555 $as_echo "$ac_cv_path_SED" >&6; }
5556 SED="$ac_cv_path_SED"
5559 test -z "$SED" && SED=sed
5560 Xsed="$SED -e 1s/^X//"
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5573 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5574 if ${ac_cv_path_GREP+:} false; then :
5575 $as_echo_n "(cached) " >&6
5577 if test -z "$GREP"; then
5578 ac_path_GREP_found=false
5579 # Loop through the user's path and test for each of PROGNAME-LIST
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5584 test -z "$as_dir" && as_dir=.
5585 for ac_prog in grep ggrep; do
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5588 as_fn_executable_p "$ac_path_GREP" || continue
5589 # Check for GNU ac_path_GREP and select it if it is found.
5590 # Check for GNU $ac_path_GREP
5591 case `"$ac_path_GREP" --version 2>&1` in
5593 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5596 $as_echo_n 0123456789 >"conftest.in"
5599 cat "conftest.in" "conftest.in" >"conftest.tmp"
5600 mv "conftest.tmp" "conftest.in"
5601 cp "conftest.in" "conftest.nl"
5602 $as_echo 'GREP' >> "conftest.nl"
5603 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5605 as_fn_arith $ac_count + 1 && ac_count=$as_val
5606 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5607 # Best one so far, save it but keep looking for a better one
5608 ac_cv_path_GREP="$ac_path_GREP"
5609 ac_path_GREP_max=$ac_count
5611 # 10*(2^10) chars as input seems more than enough
5612 test $ac_count -gt 10 && break
5614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5617 $ac_path_GREP_found && break 3
5622 if test -z "$ac_cv_path_GREP"; then
5623 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5626 ac_cv_path_GREP=$GREP
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5631 $as_echo "$ac_cv_path_GREP" >&6; }
5632 GREP="$ac_cv_path_GREP"
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5636 $as_echo_n "checking for egrep... " >&6; }
5637 if ${ac_cv_path_EGREP+:} false; then :
5638 $as_echo_n "(cached) " >&6
5640 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5641 then ac_cv_path_EGREP="$GREP -E"
5643 if test -z "$EGREP"; then
5644 ac_path_EGREP_found=false
5645 # Loop through the user's path and test for each of PROGNAME-LIST
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5650 test -z "$as_dir" && as_dir=.
5651 for ac_prog in egrep; do
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5654 as_fn_executable_p "$ac_path_EGREP" || continue
5655 # Check for GNU ac_path_EGREP and select it if it is found.
5656 # Check for GNU $ac_path_EGREP
5657 case `"$ac_path_EGREP" --version 2>&1` in
5659 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5662 $as_echo_n 0123456789 >"conftest.in"
5665 cat "conftest.in" "conftest.in" >"conftest.tmp"
5666 mv "conftest.tmp" "conftest.in"
5667 cp "conftest.in" "conftest.nl"
5668 $as_echo 'EGREP' >> "conftest.nl"
5669 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5671 as_fn_arith $ac_count + 1 && ac_count=$as_val
5672 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5673 # Best one so far, save it but keep looking for a better one
5674 ac_cv_path_EGREP="$ac_path_EGREP"
5675 ac_path_EGREP_max=$ac_count
5677 # 10*(2^10) chars as input seems more than enough
5678 test $ac_count -gt 10 && break
5680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5683 $ac_path_EGREP_found && break 3
5688 if test -z "$ac_cv_path_EGREP"; then
5689 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5692 ac_cv_path_EGREP=$EGREP
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5698 $as_echo "$ac_cv_path_EGREP" >&6; }
5699 EGREP="$ac_cv_path_EGREP"
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5703 $as_echo_n "checking for fgrep... " >&6; }
5704 if ${ac_cv_path_FGREP+:} false; then :
5705 $as_echo_n "(cached) " >&6
5707 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5708 then ac_cv_path_FGREP="$GREP -F"
5710 if test -z "$FGREP"; then
5711 ac_path_FGREP_found=false
5712 # Loop through the user's path and test for each of PROGNAME-LIST
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5717 test -z "$as_dir" && as_dir=.
5718 for ac_prog in fgrep; do
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5721 as_fn_executable_p "$ac_path_FGREP" || continue
5722 # Check for GNU ac_path_FGREP and select it if it is found.
5723 # Check for GNU $ac_path_FGREP
5724 case `"$ac_path_FGREP" --version 2>&1` in
5726 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5729 $as_echo_n 0123456789 >"conftest.in"
5732 cat "conftest.in" "conftest.in" >"conftest.tmp"
5733 mv "conftest.tmp" "conftest.in"
5734 cp "conftest.in" "conftest.nl"
5735 $as_echo 'FGREP' >> "conftest.nl"
5736 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5737 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5738 as_fn_arith $ac_count + 1 && ac_count=$as_val
5739 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5740 # Best one so far, save it but keep looking for a better one
5741 ac_cv_path_FGREP="$ac_path_FGREP"
5742 ac_path_FGREP_max=$ac_count
5744 # 10*(2^10) chars as input seems more than enough
5745 test $ac_count -gt 10 && break
5747 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5750 $ac_path_FGREP_found && break 3
5755 if test -z "$ac_cv_path_FGREP"; then
5756 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5759 ac_cv_path_FGREP=$FGREP
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5765 $as_echo "$ac_cv_path_FGREP" >&6; }
5766 FGREP="$ac_cv_path_FGREP"
5769 test -z "$GREP" && GREP=grep
5789 # Check whether --with-gnu-ld was given.
5790 if test "${with_gnu_ld+set}" = set; then :
5791 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5797 if test yes = "$GCC"; then
5798 # Check if gcc -print-prog-name=ld gives a path.
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5800 $as_echo_n "checking for ld used by $CC... " >&6; }
5803 # gcc leaves a trailing carriage return, which upsets mingw
5804 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5806 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5809 # Accept absolute paths.
5811 re_direlt='/[^/][^/]*/\.\./'
5812 # Canonicalize the pathname of ld
5813 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5814 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5815 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5817 test -z "$LD" && LD=$ac_prog
5820 # If it fails, then pretend we aren't using GCC.
5824 # If it is relative, then search for the first ld in PATH.
5828 elif test yes = "$with_gnu_ld"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5830 $as_echo_n "checking for GNU ld... " >&6; }
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5833 $as_echo_n "checking for non-GNU ld... " >&6; }
5835 if ${lt_cv_path_LD+:} false; then :
5836 $as_echo_n "(cached) " >&6
5838 if test -z "$LD"; then
5839 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5840 for ac_dir in $PATH; do
5842 test -z "$ac_dir" && ac_dir=.
5843 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5844 lt_cv_path_LD=$ac_dir/$ac_prog
5845 # Check to see if the program is GNU ld. I'd rather use --version,
5846 # but apparently some variants of GNU ld only accept -v.
5847 # Break only if it was the GNU/non-GNU ld that we prefer.
5848 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5849 *GNU* | *'with BFD'*)
5850 test no != "$with_gnu_ld" && break
5853 test yes != "$with_gnu_ld" && break
5860 lt_cv_path_LD=$LD # Let the user override the test with a path.
5865 if test -n "$LD"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5867 $as_echo "$LD" >&6; }
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5872 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5874 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5875 if ${lt_cv_prog_gnu_ld+:} false; then :
5876 $as_echo_n "(cached) " >&6
5878 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5879 case `$LD -v 2>&1 </dev/null` in
5880 *GNU* | *'with BFD'*)
5881 lt_cv_prog_gnu_ld=yes
5884 lt_cv_prog_gnu_ld=no
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5889 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5890 with_gnu_ld=$lt_cv_prog_gnu_ld
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5901 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5902 if ${lt_cv_path_NM+:} false; then :
5903 $as_echo_n "(cached) " >&6
5905 if test -n "$NM"; then
5906 # Let the user override the test.
5909 lt_nm_to_check=${ac_tool_prefix}nm
5910 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5911 lt_nm_to_check="$lt_nm_to_check nm"
5913 for lt_tmp_nm in $lt_nm_to_check; do
5914 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5915 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5917 test -z "$ac_dir" && ac_dir=.
5918 tmp_nm=$ac_dir/$lt_tmp_nm
5919 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5920 # Check to see if the nm accepts a BSD-compat flag.
5921 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5922 # nm: unknown option "B" ignored
5923 # Tru64's nm complains that /dev/null is an invalid object file
5924 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5926 mingw*) lt_bad_file=conftest.nm/nofile ;;
5927 *) lt_bad_file=/dev/null ;;
5929 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5930 *$lt_bad_file* | *'Invalid file or object type'*)
5931 lt_cv_path_NM="$tmp_nm -B"
5935 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5937 lt_cv_path_NM="$tmp_nm -p"
5941 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5942 continue # so that we can try to find one that supports BSD flags
5951 : ${lt_cv_path_NM=no}
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5955 $as_echo "$lt_cv_path_NM" >&6; }
5956 if test no != "$lt_cv_path_NM"; then
5959 # Didn't find any BSD compatible name lister, look for dumpbin.
5960 if test -n "$DUMPBIN"; then :
5961 # Let the user override the test.
5963 if test -n "$ac_tool_prefix"; then
5964 for ac_prog in dumpbin "link -dump"
5966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5967 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969 $as_echo_n "checking for $ac_word... " >&6; }
5970 if ${ac_cv_prog_DUMPBIN+:} false; then :
5971 $as_echo_n "(cached) " >&6
5973 if test -n "$DUMPBIN"; then
5974 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5983 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 DUMPBIN=$ac_cv_prog_DUMPBIN
5994 if test -n "$DUMPBIN"; then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5996 $as_echo "$DUMPBIN" >&6; }
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6003 test -n "$DUMPBIN" && break
6006 if test -z "$DUMPBIN"; then
6007 ac_ct_DUMPBIN=$DUMPBIN
6008 for ac_prog in dumpbin "link -dump"
6010 # Extract the first word of "$ac_prog", so it can be a program name with args.
6011 set dummy $ac_prog; ac_word=$2
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013 $as_echo_n "checking for $ac_word... " >&6; }
6014 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6015 $as_echo_n "(cached) " >&6
6017 if test -n "$ac_ct_DUMPBIN"; then
6018 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6027 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6038 if test -n "$ac_ct_DUMPBIN"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6040 $as_echo "$ac_ct_DUMPBIN" >&6; }
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6047 test -n "$ac_ct_DUMPBIN" && break
6050 if test "x$ac_ct_DUMPBIN" = x; then
6053 case $cross_compiling:$ac_tool_warned in
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6057 ac_tool_warned=yes ;;
6059 DUMPBIN=$ac_ct_DUMPBIN
6063 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6065 DUMPBIN="$DUMPBIN -symbols -headers"
6073 if test : != "$DUMPBIN"; then
6077 test -z "$NM" && NM=nm
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6085 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6086 if ${lt_cv_nm_interface+:} false; then :
6087 $as_echo_n "(cached) " >&6
6089 lt_cv_nm_interface="BSD nm"
6090 echo "int some_variable = 0;" > conftest.$ac_ext
6091 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6092 (eval "$ac_compile" 2>conftest.err)
6093 cat conftest.err >&5
6094 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6095 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6096 cat conftest.err >&5
6097 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6098 cat conftest.out >&5
6099 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6100 lt_cv_nm_interface="MS dumpbin"
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6105 $as_echo "$lt_cv_nm_interface" >&6; }
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6108 $as_echo_n "checking whether ln -s works... " >&6; }
6110 if test "$LN_S" = "ln -s"; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6112 $as_echo "yes" >&6; }
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6115 $as_echo "no, using $LN_S" >&6; }
6118 # find the maximum length of command line arguments
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6120 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6121 if ${lt_cv_sys_max_cmd_len+:} false; then :
6122 $as_echo_n "(cached) " >&6
6129 # On DJGPP, this test can blow up pretty badly due to problems in libc
6130 # (any single argument exceeding 2000 bytes causes a buffer overrun
6131 # during glob expansion). Even if it were fixed, the result of this
6132 # check would be larger than it should be.
6133 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6137 # Under GNU Hurd, this test is not required because there is
6138 # no limit to the length of command line arguments.
6139 # Libtool will interpret -1 as no limit whatsoever
6140 lt_cv_sys_max_cmd_len=-1;
6143 cygwin* | mingw* | cegcc*)
6144 # On Win9x/ME, this test blows up -- it succeeds, but takes
6145 # about 5 minutes as the teststring grows exponentially.
6146 # Worse, since 9x/ME are not pre-emptively multitasking,
6147 # you end up with a "frozen" computer, even though with patience
6148 # the test eventually succeeds (with a max line length of 256k).
6149 # Instead, let's just punt: use the minimum linelength reported by
6150 # all of the supported platforms: 8192 (on NT/2K/XP).
6151 lt_cv_sys_max_cmd_len=8192;
6155 # On MiNT this can take a long time and run out of memory.
6156 lt_cv_sys_max_cmd_len=8192;
6160 # On AmigaOS with pdksh, this test takes hours, literally.
6161 # So we just punt and use a minimum line length of 8192.
6162 lt_cv_sys_max_cmd_len=8192;
6165 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6166 # This has been around since 386BSD, at least. Likely further.
6167 if test -x /sbin/sysctl; then
6168 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6169 elif test -x /usr/sbin/sysctl; then
6170 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6172 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6174 # And add a safety zone
6175 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6176 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6180 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6181 lt_cv_sys_max_cmd_len=196608
6185 # The test takes a long time on OS/2.
6186 lt_cv_sys_max_cmd_len=8192
6190 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6191 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6192 # nice to cause kernel panics so lets avoid the loop below.
6193 # First set a reasonable default.
6194 lt_cv_sys_max_cmd_len=16384
6196 if test -x /sbin/sysconfig; then
6197 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6198 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6203 lt_cv_sys_max_cmd_len=102400
6205 sysv5* | sco5v6* | sysv4.2uw2*)
6206 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6207 if test -n "$kargmax"; then
6208 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6210 lt_cv_sys_max_cmd_len=32768
6214 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6215 if test -n "$lt_cv_sys_max_cmd_len" && \
6216 test undefined != "$lt_cv_sys_max_cmd_len"; then
6217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6218 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6220 # Make teststring a little bigger before we do anything with it.
6221 # a 1K string should be a reasonable start.
6222 for i in 1 2 3 4 5 6 7 8; do
6223 teststring=$teststring$teststring
6225 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6226 # If test is not a shell built-in, we'll probably end up computing a
6227 # maximum length that is only half of the actual maximum length, but
6229 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6230 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6231 test 17 != "$i" # 1/2 MB should be enough
6234 teststring=$teststring$teststring
6236 # Only check the string length outside the loop.
6237 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6239 # Add a significant safety factor because C++ compilers can tack on
6240 # massive amounts of additional arguments before passing them to the
6241 # linker. It appears as though 1/2 is a usable value.
6242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6249 if test -n "$lt_cv_sys_max_cmd_len"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6251 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6254 $as_echo "none" >&6; }
6256 max_cmd_len=$lt_cv_sys_max_cmd_len
6267 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6277 # test EBCDIC or ASCII
6278 case `echo X|tr X '\101'` in
6279 A) # ASCII based system
6280 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6281 lt_SP2NL='tr \040 \012'
6282 lt_NL2SP='tr \015\012 \040\040'
6284 *) # EBCDIC based system
6285 lt_SP2NL='tr \100 \n'
6286 lt_NL2SP='tr \r\n \100\100'
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6299 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6300 if ${lt_cv_to_host_file_cmd+:} false; then :
6301 $as_echo_n "(cached) " >&6
6306 *-*-mingw* ) # actually msys
6307 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6310 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6312 * ) # otherwise, assume *nix
6313 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6319 *-*-mingw* ) # actually msys
6320 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6323 lt_cv_to_host_file_cmd=func_convert_file_noop
6325 * ) # otherwise, assume *nix
6326 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6330 * ) # unhandled hosts (and "normal" native builds)
6331 lt_cv_to_host_file_cmd=func_convert_file_noop
6337 to_host_file_cmd=$lt_cv_to_host_file_cmd
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6339 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6346 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6347 if ${lt_cv_to_tool_file_cmd+:} false; then :
6348 $as_echo_n "(cached) " >&6
6350 #assume ordinary cross tools, or native build.
6351 lt_cv_to_tool_file_cmd=func_convert_file_noop
6355 *-*-mingw* ) # actually msys
6356 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6364 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6366 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6373 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6374 if ${lt_cv_ld_reload_flag+:} false; then :
6375 $as_echo_n "(cached) " >&6
6377 lt_cv_ld_reload_flag='-r'
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6380 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6381 reload_flag=$lt_cv_ld_reload_flag
6382 case $reload_flag in
6384 *) reload_flag=" $reload_flag" ;;
6386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6388 cygwin* | mingw* | pw32* | cegcc*)
6389 if test yes != "$GCC"; then
6394 if test yes = "$GCC"; then
6395 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6397 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6410 if test -n "$ac_tool_prefix"; then
6411 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6412 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if ${ac_cv_prog_OBJDUMP+:} false; then :
6416 $as_echo_n "(cached) " >&6
6418 if test -n "$OBJDUMP"; then
6419 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 OBJDUMP=$ac_cv_prog_OBJDUMP
6439 if test -n "$OBJDUMP"; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6441 $as_echo "$OBJDUMP" >&6; }
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6449 if test -z "$ac_cv_prog_OBJDUMP"; then
6450 ac_ct_OBJDUMP=$OBJDUMP
6451 # Extract the first word of "objdump", so it can be a program name with args.
6452 set dummy 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_ac_ct_OBJDUMP+:} false; then :
6456 $as_echo_n "(cached) " >&6
6458 if test -n "$ac_ct_OBJDUMP"; then
6459 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_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_ac_ct_OBJDUMP="objdump"
6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6479 if test -n "$ac_ct_OBJDUMP"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6481 $as_echo "$ac_ct_OBJDUMP" >&6; }
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6487 if test "x$ac_ct_OBJDUMP" = x; then
6490 case $cross_compiling:$ac_tool_warned in
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6494 ac_tool_warned=yes ;;
6496 OBJDUMP=$ac_ct_OBJDUMP
6499 OBJDUMP="$ac_cv_prog_OBJDUMP"
6502 test -z "$OBJDUMP" && OBJDUMP=objdump
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6513 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6514 if ${lt_cv_deplibs_check_method+:} false; then :
6515 $as_echo_n "(cached) " >&6
6517 lt_cv_file_magic_cmd='$MAGIC_CMD'
6518 lt_cv_file_magic_test_file=
6519 lt_cv_deplibs_check_method='unknown'
6520 # Need to set the preceding variable on all platforms that support
6521 # interlibrary dependencies.
6522 # 'none' -- dependencies not supported.
6523 # 'unknown' -- same as none, but documents that we really don't know.
6524 # 'pass_all' -- all dependencies passed with no checks.
6525 # 'test_compile' -- check by making test program.
6526 # 'file_magic [[regex]]' -- check by looking for files in library path
6527 # that responds to the $file_magic_cmd with a given extended regex.
6528 # If you have 'file' or equivalent on your system and you're not sure
6529 # whether 'pass_all' will *always* work, you probably want this one.
6533 lt_cv_deplibs_check_method=pass_all
6537 lt_cv_deplibs_check_method=pass_all
6541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6542 lt_cv_file_magic_cmd='/usr/bin/file -L'
6543 lt_cv_file_magic_test_file=/shlib/libc.so
6547 # func_win32_libid is a shell function defined in ltmain.sh
6548 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6549 lt_cv_file_magic_cmd='func_win32_libid'
6553 # Base MSYS/MinGW do not provide the 'file' command needed by
6554 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6555 # unless we find 'file', for example because we are cross-compiling.
6556 if ( file / ) >/dev/null 2>&1; then
6557 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6558 lt_cv_file_magic_cmd='func_win32_libid'
6560 # Keep this pattern in sync with the one in func_win32_libid.
6561 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6562 lt_cv_file_magic_cmd='$OBJDUMP -f'
6567 # use the weaker test based on 'objdump'. See mingw*.
6568 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6569 lt_cv_file_magic_cmd='$OBJDUMP -f'
6572 darwin* | rhapsody*)
6573 lt_cv_deplibs_check_method=pass_all
6576 freebsd* | dragonfly*)
6577 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6580 # Not sure whether the presence of OpenBSD here was a mistake.
6581 # Let's accept both of them until this is cleared up.
6582 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6583 lt_cv_file_magic_cmd=/usr/bin/file
6584 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6588 lt_cv_deplibs_check_method=pass_all
6593 lt_cv_deplibs_check_method=pass_all
6596 hpux10.20* | hpux11*)
6597 lt_cv_file_magic_cmd=/usr/bin/file
6600 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6601 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6604 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]'
6605 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6608 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6609 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6615 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6616 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6619 irix5* | irix6* | nonstopux*)
6621 *-32|*"-32 ") libmagic=32-bit;;
6622 *-n32|*"-n32 ") libmagic=N32;;
6623 *-64|*"-64 ") libmagic=64-bit;;
6624 *) libmagic=never-match;;
6626 lt_cv_deplibs_check_method=pass_all
6629 # This must be glibc/ELF.
6630 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6631 lt_cv_deplibs_check_method=pass_all
6634 netbsd* | netbsdelf*-gnu)
6635 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6643 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6644 lt_cv_file_magic_cmd=/usr/bin/file
6645 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6649 lt_cv_deplibs_check_method=pass_all
6653 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6660 osf3* | osf4* | osf5*)
6661 lt_cv_deplibs_check_method=pass_all
6665 lt_cv_deplibs_check_method=pass_all
6669 lt_cv_deplibs_check_method=pass_all
6672 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6673 lt_cv_deplibs_check_method=pass_all
6677 case $host_vendor in
6679 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]'
6680 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6683 lt_cv_deplibs_check_method=pass_all
6686 lt_cv_file_magic_cmd='/bin/file'
6687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6690 lt_cv_file_magic_cmd='/bin/file'
6691 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6692 lt_cv_file_magic_test_file=/lib/libc.so
6695 lt_cv_deplibs_check_method=pass_all
6698 lt_cv_deplibs_check_method=pass_all
6704 lt_cv_deplibs_check_method=pass_all
6707 lt_cv_deplibs_check_method=pass_all
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6713 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6717 if test "$build" = "$host"; then
6720 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6723 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6729 file_magic_cmd=$lt_cv_file_magic_cmd
6730 deplibs_check_method=$lt_cv_deplibs_check_method
6731 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6754 if test -n "$ac_tool_prefix"; then
6755 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6756 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if ${ac_cv_prog_DLLTOOL+:} false; then :
6760 $as_echo_n "(cached) " >&6
6762 if test -n "$DLLTOOL"; then
6763 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 DLLTOOL=$ac_cv_prog_DLLTOOL
6783 if test -n "$DLLTOOL"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6785 $as_echo "$DLLTOOL" >&6; }
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6793 if test -z "$ac_cv_prog_DLLTOOL"; then
6794 ac_ct_DLLTOOL=$DLLTOOL
6795 # Extract the first word of "dlltool", so it can be a program name with args.
6796 set dummy 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_ac_ct_DLLTOOL+:} false; then :
6800 $as_echo_n "(cached) " >&6
6802 if test -n "$ac_ct_DLLTOOL"; then
6803 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_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_ac_ct_DLLTOOL="dlltool"
6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6823 if test -n "$ac_ct_DLLTOOL"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6825 $as_echo "$ac_ct_DLLTOOL" >&6; }
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6831 if test "x$ac_ct_DLLTOOL" = x; then
6834 case $cross_compiling:$ac_tool_warned in
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6838 ac_tool_warned=yes ;;
6840 DLLTOOL=$ac_ct_DLLTOOL
6843 DLLTOOL="$ac_cv_prog_DLLTOOL"
6846 test -z "$DLLTOOL" && DLLTOOL=dlltool
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6858 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6859 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6860 $as_echo_n "(cached) " >&6
6862 lt_cv_sharedlib_from_linklib_cmd='unknown'
6865 cygwin* | mingw* | pw32* | cegcc*)
6866 # two different shell functions defined in ltmain.sh;
6867 # decide which one to use based on capabilities of $DLLTOOL
6868 case `$DLLTOOL --help 2>&1` in
6869 *--identify-strict*)
6870 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6873 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6878 # fallback: assume linklib IS sharedlib
6879 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6885 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6886 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6887 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6895 if test -n "$ac_tool_prefix"; then
6898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if ${ac_cv_prog_AR+:} false; then :
6903 $as_echo_n "(cached) " >&6
6905 if test -n "$AR"; then
6906 ac_cv_prog_AR="$AR" # Let the user override the test.
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6915 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 if test -n "$AR"; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6928 $as_echo "$AR" >&6; }
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6935 test -n "$AR" && break
6938 if test -z "$AR"; then
6942 # Extract the first word of "$ac_prog", so it can be a program name with args.
6943 set dummy $ac_prog; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6947 $as_echo_n "(cached) " >&6
6949 if test -n "$ac_ct_AR"; then
6950 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959 ac_cv_prog_ac_ct_AR="$ac_prog"
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6970 if test -n "$ac_ct_AR"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6972 $as_echo "$ac_ct_AR" >&6; }
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6979 test -n "$ac_ct_AR" && break
6982 if test "x$ac_ct_AR" = x; then
6985 case $cross_compiling:$ac_tool_warned in
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6989 ac_tool_warned=yes ;;
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7009 $as_echo_n "checking for archiver @FILE support... " >&6; }
7010 if ${lt_cv_ar_at_file+:} false; then :
7011 $as_echo_n "(cached) " >&6
7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7025 if ac_fn_c_try_compile "$LINENO"; then :
7026 echo conftest.$ac_objext > conftest.lst
7027 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7029 (eval $lt_ar_try) 2>&5
7031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7032 test $ac_status = 0; }
7033 if test 0 -eq "$ac_status"; then
7034 # Ensure the archiver fails upon bogus file names.
7035 rm -f conftest.$ac_objext libconftest.a
7036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7037 (eval $lt_ar_try) 2>&5
7039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7040 test $ac_status = 0; }
7041 if test 0 -ne "$ac_status"; then
7045 rm -f conftest.* libconftest.a
7048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7052 $as_echo "$lt_cv_ar_at_file" >&6; }
7054 if test no = "$lt_cv_ar_at_file"; then
7057 archiver_list_spec=$lt_cv_ar_at_file
7066 if test -n "$ac_tool_prefix"; then
7067 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7068 set dummy ${ac_tool_prefix}strip; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if ${ac_cv_prog_STRIP+:} false; then :
7072 $as_echo_n "(cached) " >&6
7074 if test -n "$STRIP"; then
7075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 STRIP=$ac_cv_prog_STRIP
7095 if test -n "$STRIP"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7097 $as_echo "$STRIP" >&6; }
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7105 if test -z "$ac_cv_prog_STRIP"; then
7107 # Extract the first word of "strip", so it can be a program name with args.
7108 set dummy strip; ac_word=$2
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110 $as_echo_n "checking for $ac_word... " >&6; }
7111 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7112 $as_echo_n "(cached) " >&6
7114 if test -n "$ac_ct_STRIP"; then
7115 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124 ac_cv_prog_ac_ct_STRIP="strip"
7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7135 if test -n "$ac_ct_STRIP"; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7137 $as_echo "$ac_ct_STRIP" >&6; }
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7143 if test "x$ac_ct_STRIP" = x; then
7146 case $cross_compiling:$ac_tool_warned in
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7150 ac_tool_warned=yes ;;
7155 STRIP="$ac_cv_prog_STRIP"
7158 test -z "$STRIP" && STRIP=:
7165 if test -n "$ac_tool_prefix"; then
7166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_RANLIB+:} false; then :
7171 $as_echo_n "(cached) " >&6
7173 if test -n "$RANLIB"; then
7174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 RANLIB=$ac_cv_prog_RANLIB
7194 if test -n "$RANLIB"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7196 $as_echo "$RANLIB" >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7204 if test -z "$ac_cv_prog_RANLIB"; then
7205 ac_ct_RANLIB=$RANLIB
7206 # Extract the first word of "ranlib", so it can be a program name with args.
7207 set dummy ranlib; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7211 $as_echo_n "(cached) " >&6
7213 if test -n "$ac_ct_RANLIB"; then
7214 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223 ac_cv_prog_ac_ct_RANLIB="ranlib"
7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7234 if test -n "$ac_ct_RANLIB"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7236 $as_echo "$ac_ct_RANLIB" >&6; }
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7242 if test "x$ac_ct_RANLIB" = x; then
7245 case $cross_compiling:$ac_tool_warned in
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7249 ac_tool_warned=yes ;;
7251 RANLIB=$ac_ct_RANLIB
7254 RANLIB="$ac_cv_prog_RANLIB"
7257 test -z "$RANLIB" && RANLIB=:
7264 # Determine commands to create old-style static archives.
7265 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7266 old_postinstall_cmds='chmod 644 $oldlib'
7267 old_postuninstall_cmds=
7269 if test -n "$RANLIB"; then
7272 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7275 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7278 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7283 lock_old_archive_extraction=yes ;;
7285 lock_old_archive_extraction=no ;;
7326 # If no C compiler was specified, use CC.
7329 # If no C compiler flags were specified, use CFLAGS.
7330 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7332 # Allow CC to be a program name with arguments.
7336 # Check for command to grab the raw symbol name followed by C symbol from nm.
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7338 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7339 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7340 $as_echo_n "(cached) " >&6
7343 # These are sane defaults that work on at least a few old systems.
7344 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7346 # Character class describing NM global symbol codes.
7347 symcode='[BCDEGRST]'
7349 # Regexp to match symbols that can be accessed directly from C.
7350 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7352 # Define system-specific variables.
7357 cygwin* | mingw* | pw32* | cegcc*)
7358 symcode='[ABCDGISTW]'
7361 if test ia64 = "$host_cpu"; then
7362 symcode='[ABCDEGRST]'
7366 symcode='[BCDEGRST]'
7369 symcode='[BCDEGQRST]'
7380 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7388 # If we're using GNU nm, then use its standard symbol codes.
7389 case `$NM -V 2>&1` in
7390 *GNU* | *'with BFD'*)
7391 symcode='[ABCDGIRSTW]' ;;
7394 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7395 # Gets list of data symbols to import.
7396 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7397 # Adjust the below global symbol transforms to fixup imported variables.
7398 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7399 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7400 lt_c_name_lib_hook="\
7401 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7402 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7404 # Disable hooks by default.
7405 lt_cv_sys_global_symbol_to_import=
7411 # Transform an extracted symbol line into a proper C declaration.
7412 # Some systems (esp. on ia64) link data and code symbols differently,
7413 # so use this general approach.
7414 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7416 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7417 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7419 # Transform an extracted symbol line into symbol name and symbol address
7420 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7422 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7423 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7425 # Transform an extracted symbol line into symbol name with lib prefix and
7427 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7428 $lt_c_name_lib_hook\
7429 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7430 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7431 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7433 # Handle CRLF in mingw tool chain
7437 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7441 # Try without a prefix underscore, then with it.
7442 for ac_symprfx in "" "_"; do
7444 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7445 symxfrm="\\1 $ac_symprfx\\2 \\2"
7447 # Write the raw and C identifiers.
7448 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7449 # Fake it for dumpbin and say T for any non-static function,
7450 # D for any global variable and I for any imported variable.
7451 # Also find C++ and __fastcall symbols from MSVC++,
7452 # which start with @ or ?.
7453 lt_cv_sys_global_symbol_pipe="$AWK '"\
7454 " {last_section=section; section=\$ 3};"\
7455 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7456 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7457 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7458 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7459 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7460 " \$ 0!~/External *\|/{next};"\
7461 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7462 " {if(hide[section]) next};"\
7463 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7464 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7465 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7466 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7467 " ' prfx=^$ac_symprfx"
7469 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7471 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7473 # Check to see that the pipe works correctly.
7477 cat > conftest.$ac_ext <<_LT_EOF
7482 void nm_test_func(void);
7483 void nm_test_func(void){}
7487 int main(){nm_test_var='a';nm_test_func();return(0);}
7490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7491 (eval $ac_compile) 2>&5
7493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7494 test $ac_status = 0; }; then
7495 # Now try to grab the symbols.
7497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7498 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7501 test $ac_status = 0; } && test -s "$nlist"; then
7502 # Try sorting and uniquifying the output.
7503 if sort "$nlist" | uniq > "$nlist"T; then
7504 mv -f "$nlist"T "$nlist"
7509 # Make sure that we snagged all the symbols we need.
7510 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7511 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7512 cat <<_LT_EOF > conftest.$ac_ext
7513 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7514 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7515 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7516 relocations are performed -- see ld's documentation on pseudo-relocs. */
7517 # define LT_DLSYM_CONST
7518 #elif defined __osf__
7519 /* This system does not cope well with relocations in const data. */
7520 # define LT_DLSYM_CONST
7522 # define LT_DLSYM_CONST const
7530 # Now generate the symbol file.
7531 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7533 cat <<_LT_EOF >> conftest.$ac_ext
7535 /* The mapping between symbol names and symbols. */
7536 LT_DLSYM_CONST struct {
7540 lt__PROGRAM__LTX_preloaded_symbols[] =
7542 { "@PROGRAM@", (void *) 0 },
7544 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7545 cat <<\_LT_EOF >> conftest.$ac_ext
7549 /* This works around a problem in FreeBSD linker */
7550 #ifdef FREEBSD_WORKAROUND
7551 static const void *lt_preloaded_setup() {
7552 return lt__PROGRAM__LTX_preloaded_symbols;
7560 # Now try linking the two files.
7561 mv conftest.$ac_objext conftstm.$ac_objext
7562 lt_globsym_save_LIBS=$LIBS
7563 lt_globsym_save_CFLAGS=$CFLAGS
7564 LIBS=conftstm.$ac_objext
7565 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7567 (eval $ac_link) 2>&5
7569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7570 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7573 LIBS=$lt_globsym_save_LIBS
7574 CFLAGS=$lt_globsym_save_CFLAGS
7576 echo "cannot find nm_test_func in $nlist" >&5
7579 echo "cannot find nm_test_var in $nlist" >&5
7582 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7585 echo "$progname: failed program was:" >&5
7586 cat conftest.$ac_ext >&5
7588 rm -rf conftest* conftst*
7590 # Do not use the global_symbol_pipe unless it works.
7591 if test yes = "$pipe_works"; then
7594 lt_cv_sys_global_symbol_pipe=
7600 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7601 lt_cv_sys_global_symbol_to_cdecl=
7603 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7605 $as_echo "failed" >&6; }
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7608 $as_echo "ok" >&6; }
7611 # Response file support.
7612 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7613 nm_file_list_spec='@'
7614 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7615 nm_file_list_spec='@'
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7655 $as_echo_n "checking for sysroot... " >&6; }
7657 # Check whether --with-sysroot was given.
7658 if test "${with_sysroot+set}" = set; then :
7659 withval=$with_sysroot;
7666 case $with_sysroot in #(
7668 if test yes = "$GCC"; then
7669 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7673 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7679 $as_echo "$with_sysroot" >&6; }
7680 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7685 $as_echo "${lt_sysroot:-no}" >&6; }
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7692 $as_echo_n "checking for a working dd... " >&6; }
7693 if ${ac_cv_path_lt_DD+:} false; then :
7694 $as_echo_n "(cached) " >&6
7696 printf 0123456789abcdef0123456789abcdef >conftest.i
7697 cat conftest.i conftest.i >conftest2.i
7699 if test -z "$lt_DD"; then
7700 ac_path_lt_DD_found=false
7701 # Loop through the user's path and test for each of PROGNAME-LIST
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 test -z "$as_dir" && as_dir=.
7707 for ac_prog in dd; do
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7710 as_fn_executable_p "$ac_path_lt_DD" || continue
7711 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7712 cmp -s conftest.i conftest.out \
7713 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7715 $ac_path_lt_DD_found && break 3
7720 if test -z "$ac_cv_path_lt_DD"; then
7724 ac_cv_path_lt_DD=$lt_DD
7727 rm -f conftest.i conftest2.i conftest.out
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7730 $as_echo "$ac_cv_path_lt_DD" >&6; }
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7734 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7735 if ${lt_cv_truncate_bin+:} false; then :
7736 $as_echo_n "(cached) " >&6
7738 printf 0123456789abcdef0123456789abcdef >conftest.i
7739 cat conftest.i conftest.i >conftest2.i
7741 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7742 cmp -s conftest.i conftest.out \
7743 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7745 rm -f conftest.i conftest2.i conftest.out
7746 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7749 $as_echo "$lt_cv_truncate_bin" >&6; }
7757 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7760 for cc_temp in $*""; do
7762 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7763 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7768 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7771 # Check whether --enable-libtool-lock was given.
7772 if test "${enable_libtool_lock+set}" = set; then :
7773 enableval=$enable_libtool_lock;
7776 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7778 # Some flags need to be propagated to the compiler or linker for good
7782 # Find out what ABI is being produced by ac_compile, and set mode
7783 # options accordingly.
7784 echo 'int i;' > conftest.$ac_ext
7785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7786 (eval $ac_compile) 2>&5
7788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7789 test $ac_status = 0; }; then
7790 case `/usr/bin/file conftest.$ac_objext` in
7802 # Find out what ABI is being produced by ac_compile, and set linker
7803 # options accordingly.
7804 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7806 (eval $ac_compile) 2>&5
7808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7809 test $ac_status = 0; }; then
7810 if test yes = "$lt_cv_prog_gnu_ld"; then
7811 case `/usr/bin/file conftest.$ac_objext` in
7813 LD="${LD-ld} -melf32bsmip"
7816 LD="${LD-ld} -melf32bmipn32"
7819 LD="${LD-ld} -melf64bmip"
7823 case `/usr/bin/file conftest.$ac_objext` in
7840 # Find out what ABI is being produced by ac_compile, and set linker
7841 # options accordingly.
7842 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7844 (eval $ac_compile) 2>&5
7846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7847 test $ac_status = 0; }; then
7849 case `/usr/bin/file conftest.$ac_objext` in
7857 case `/usr/bin/file conftest.$ac_objext` in
7859 emul="${emul}btsmip"
7862 emul="${emul}ltsmip"
7865 case `/usr/bin/file conftest.$ac_objext` in
7870 LD="${LD-ld} -m $emul"
7875 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7876 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7877 # Find out what ABI is being produced by ac_compile, and set linker
7878 # options accordingly. Note that the listed cases only cover the
7879 # situations where additional linker options are needed (such as when
7880 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7881 # vice versa); the common cases where no linker options are needed do
7882 # not appear in the list.
7883 echo 'int i;' > conftest.$ac_ext
7884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7885 (eval $ac_compile) 2>&5
7887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7888 test $ac_status = 0; }; then
7889 case `/usr/bin/file conftest.o` in
7892 x86_64-*kfreebsd*-gnu)
7893 LD="${LD-ld} -m elf_i386_fbsd"
7896 case `/usr/bin/file conftest.o` in
7898 LD="${LD-ld} -m elf32_x86_64"
7901 LD="${LD-ld} -m elf_i386"
7905 powerpc64le-*linux*)
7906 LD="${LD-ld} -m elf32lppclinux"
7909 LD="${LD-ld} -m elf32ppclinux"
7912 LD="${LD-ld} -m elf_s390"
7915 LD="${LD-ld} -m elf32_sparc"
7921 x86_64-*kfreebsd*-gnu)
7922 LD="${LD-ld} -m elf_x86_64_fbsd"
7925 LD="${LD-ld} -m elf_x86_64"
7928 LD="${LD-ld} -m elf64lppc"
7931 LD="${LD-ld} -m elf64ppc"
7933 s390*-*linux*|s390*-*tpf*)
7934 LD="${LD-ld} -m elf64_s390"
7937 LD="${LD-ld} -m elf64_sparc"
7947 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7949 CFLAGS="$CFLAGS -belf"
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7951 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7952 if ${lt_cv_cc_needs_belf+:} false; then :
7953 $as_echo_n "(cached) " >&6
7956 ac_cpp='$CPP $CPPFLAGS'
7957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7972 if ac_fn_c_try_link "$LINENO"; then :
7973 lt_cv_cc_needs_belf=yes
7975 lt_cv_cc_needs_belf=no
7977 rm -f core conftest.err conftest.$ac_objext \
7978 conftest$ac_exeext conftest.$ac_ext
7980 ac_cpp='$CPP $CPPFLAGS'
7981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7987 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7988 if test yes != "$lt_cv_cc_needs_belf"; then
7989 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7994 # Find out what ABI is being produced by ac_compile, and set linker
7995 # options accordingly.
7996 echo 'int i;' > conftest.$ac_ext
7997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7998 (eval $ac_compile) 2>&5
8000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8001 test $ac_status = 0; }; then
8002 case `/usr/bin/file conftest.o` in
8004 case $lt_cv_prog_gnu_ld in
8007 i?86-*-solaris*|x86_64-*-solaris*)
8008 LD="${LD-ld} -m elf_x86_64"
8011 LD="${LD-ld} -m elf64_sparc"
8014 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8015 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8020 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8032 need_locks=$enable_libtool_lock
8034 if test -n "$ac_tool_prefix"; then
8035 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8036 set dummy ${ac_tool_prefix}mt; ac_word=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8040 $as_echo_n "(cached) " >&6
8042 if test -n "$MANIFEST_TOOL"; then
8043 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8063 if test -n "$MANIFEST_TOOL"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8065 $as_echo "$MANIFEST_TOOL" >&6; }
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8073 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8074 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8075 # Extract the first word of "mt", so it can be a program name with args.
8076 set dummy mt; ac_word=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8080 $as_echo_n "(cached) " >&6
8082 if test -n "$ac_ct_MANIFEST_TOOL"; then
8083 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8102 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8103 if test -n "$ac_ct_MANIFEST_TOOL"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8105 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8111 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8114 case $cross_compiling:$ac_tool_warned in
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118 ac_tool_warned=yes ;;
8120 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8123 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8126 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8128 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8129 if ${lt_cv_path_mainfest_tool+:} false; then :
8130 $as_echo_n "(cached) " >&6
8132 lt_cv_path_mainfest_tool=no
8133 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8134 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8135 cat conftest.err >&5
8136 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8137 lt_cv_path_mainfest_tool=yes
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8142 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8143 if test yes != "$lt_cv_path_mainfest_tool"; then
8153 rhapsody* | darwin*)
8154 if test -n "$ac_tool_prefix"; then
8155 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8156 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8160 $as_echo_n "(cached) " >&6
8162 if test -n "$DSYMUTIL"; then
8163 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 test -z "$as_dir" && as_dir=.
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8172 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8183 if test -n "$DSYMUTIL"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8185 $as_echo "$DSYMUTIL" >&6; }
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8193 if test -z "$ac_cv_prog_DSYMUTIL"; then
8194 ac_ct_DSYMUTIL=$DSYMUTIL
8195 # Extract the first word of "dsymutil", so it can be a program name with args.
8196 set dummy dsymutil; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8200 $as_echo_n "(cached) " >&6
8202 if test -n "$ac_ct_DSYMUTIL"; then
8203 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209 test -z "$as_dir" && as_dir=.
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8212 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8222 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8223 if test -n "$ac_ct_DSYMUTIL"; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8225 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8231 if test "x$ac_ct_DSYMUTIL" = x; then
8234 case $cross_compiling:$ac_tool_warned in
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8238 ac_tool_warned=yes ;;
8240 DSYMUTIL=$ac_ct_DSYMUTIL
8243 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8246 if test -n "$ac_tool_prefix"; then
8247 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8248 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if ${ac_cv_prog_NMEDIT+:} false; then :
8252 $as_echo_n "(cached) " >&6
8254 if test -n "$NMEDIT"; then
8255 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8264 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 NMEDIT=$ac_cv_prog_NMEDIT
8275 if test -n "$NMEDIT"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8277 $as_echo "$NMEDIT" >&6; }
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8285 if test -z "$ac_cv_prog_NMEDIT"; then
8286 ac_ct_NMEDIT=$NMEDIT
8287 # Extract the first word of "nmedit", so it can be a program name with args.
8288 set dummy nmedit; ac_word=$2
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8290 $as_echo_n "checking for $ac_word... " >&6; }
8291 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8292 $as_echo_n "(cached) " >&6
8294 if test -n "$ac_ct_NMEDIT"; then
8295 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 test -z "$as_dir" && as_dir=.
8302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8304 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8315 if test -n "$ac_ct_NMEDIT"; then
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8317 $as_echo "$ac_ct_NMEDIT" >&6; }
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8323 if test "x$ac_ct_NMEDIT" = x; then
8326 case $cross_compiling:$ac_tool_warned in
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8330 ac_tool_warned=yes ;;
8332 NMEDIT=$ac_ct_NMEDIT
8335 NMEDIT="$ac_cv_prog_NMEDIT"
8338 if test -n "$ac_tool_prefix"; then
8339 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8340 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if ${ac_cv_prog_LIPO+:} false; then :
8344 $as_echo_n "(cached) " >&6
8346 if test -n "$LIPO"; then
8347 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8356 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 LIPO=$ac_cv_prog_LIPO
8367 if test -n "$LIPO"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8369 $as_echo "$LIPO" >&6; }
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8377 if test -z "$ac_cv_prog_LIPO"; then
8379 # Extract the first word of "lipo", so it can be a program name with args.
8380 set dummy lipo; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8384 $as_echo_n "(cached) " >&6
8386 if test -n "$ac_ct_LIPO"; then
8387 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 test -z "$as_dir" && as_dir=.
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8396 ac_cv_prog_ac_ct_LIPO="lipo"
8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8407 if test -n "$ac_ct_LIPO"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8409 $as_echo "$ac_ct_LIPO" >&6; }
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8415 if test "x$ac_ct_LIPO" = x; then
8418 case $cross_compiling:$ac_tool_warned in
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8422 ac_tool_warned=yes ;;
8427 LIPO="$ac_cv_prog_LIPO"
8430 if test -n "$ac_tool_prefix"; then
8431 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8432 set dummy ${ac_tool_prefix}otool; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if ${ac_cv_prog_OTOOL+:} false; then :
8436 $as_echo_n "(cached) " >&6
8438 if test -n "$OTOOL"; then
8439 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 OTOOL=$ac_cv_prog_OTOOL
8459 if test -n "$OTOOL"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8461 $as_echo "$OTOOL" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8469 if test -z "$ac_cv_prog_OTOOL"; then
8471 # Extract the first word of "otool", so it can be a program name with args.
8472 set dummy otool; ac_word=$2
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 $as_echo_n "checking for $ac_word... " >&6; }
8475 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8476 $as_echo_n "(cached) " >&6
8478 if test -n "$ac_ct_OTOOL"; then
8479 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485 test -z "$as_dir" && as_dir=.
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8488 ac_cv_prog_ac_ct_OTOOL="otool"
8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8498 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8499 if test -n "$ac_ct_OTOOL"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8501 $as_echo "$ac_ct_OTOOL" >&6; }
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8507 if test "x$ac_ct_OTOOL" = x; then
8510 case $cross_compiling:$ac_tool_warned in
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8514 ac_tool_warned=yes ;;
8519 OTOOL="$ac_cv_prog_OTOOL"
8522 if test -n "$ac_tool_prefix"; then
8523 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8524 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if ${ac_cv_prog_OTOOL64+:} false; then :
8528 $as_echo_n "(cached) " >&6
8530 if test -n "$OTOOL64"; then
8531 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8540 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550 OTOOL64=$ac_cv_prog_OTOOL64
8551 if test -n "$OTOOL64"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8553 $as_echo "$OTOOL64" >&6; }
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8561 if test -z "$ac_cv_prog_OTOOL64"; then
8562 ac_ct_OTOOL64=$OTOOL64
8563 # Extract the first word of "otool64", so it can be a program name with args.
8564 set dummy otool64; ac_word=$2
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566 $as_echo_n "checking for $ac_word... " >&6; }
8567 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8568 $as_echo_n "(cached) " >&6
8570 if test -n "$ac_ct_OTOOL64"; then
8571 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577 test -z "$as_dir" && as_dir=.
8578 for ac_exec_ext in '' $ac_executable_extensions; do
8579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8580 ac_cv_prog_ac_ct_OTOOL64="otool64"
8581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8590 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8591 if test -n "$ac_ct_OTOOL64"; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8593 $as_echo "$ac_ct_OTOOL64" >&6; }
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596 $as_echo "no" >&6; }
8599 if test "x$ac_ct_OTOOL64" = x; then
8602 case $cross_compiling:$ac_tool_warned in
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8606 ac_tool_warned=yes ;;
8608 OTOOL64=$ac_ct_OTOOL64
8611 OTOOL64="$ac_cv_prog_OTOOL64"
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8641 $as_echo_n "checking for -single_module linker flag... " >&6; }
8642 if ${lt_cv_apple_cc_single_mod+:} false; then :
8643 $as_echo_n "(cached) " >&6
8645 lt_cv_apple_cc_single_mod=no
8646 if test -z "$LT_MULTI_MODULE"; then
8647 # By default we will add the -single_module flag. You can override
8648 # by either setting the environment variable LT_MULTI_MODULE
8649 # non-empty at configure time, or by adding -multi_module to the
8651 rm -rf libconftest.dylib*
8652 echo "int foo(void){return 1;}" > conftest.c
8653 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8654 -dynamiclib -Wl,-single_module conftest.c" >&5
8655 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8656 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8658 # If there is a non-empty error log, and "single_module"
8659 # appears in it, assume the flag caused a linker warning
8660 if test -s conftest.err && $GREP single_module conftest.err; then
8661 cat conftest.err >&5
8662 # Otherwise, if the output was created with a 0 exit code from
8663 # the compiler, it worked.
8664 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8665 lt_cv_apple_cc_single_mod=yes
8667 cat conftest.err >&5
8669 rm -rf libconftest.dylib*
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8674 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8677 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8678 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8679 $as_echo_n "(cached) " >&6
8681 lt_cv_ld_exported_symbols_list=no
8682 save_LDFLAGS=$LDFLAGS
8683 echo "_main" > conftest.sym
8684 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8696 if ac_fn_c_try_link "$LINENO"; then :
8697 lt_cv_ld_exported_symbols_list=yes
8699 lt_cv_ld_exported_symbols_list=no
8701 rm -f core conftest.err conftest.$ac_objext \
8702 conftest$ac_exeext conftest.$ac_ext
8703 LDFLAGS=$save_LDFLAGS
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8707 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8710 $as_echo_n "checking for -force_load linker flag... " >&6; }
8711 if ${lt_cv_ld_force_load+:} false; then :
8712 $as_echo_n "(cached) " >&6
8714 lt_cv_ld_force_load=no
8715 cat > conftest.c << _LT_EOF
8716 int forced_loaded() { return 2;}
8718 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8719 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8720 echo "$AR cru libconftest.a conftest.o" >&5
8721 $AR cru libconftest.a conftest.o 2>&5
8722 echo "$RANLIB libconftest.a" >&5
8723 $RANLIB libconftest.a 2>&5
8724 cat > conftest.c << _LT_EOF
8725 int main() { return 0;}
8727 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8728 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8730 if test -s conftest.err && $GREP force_load conftest.err; then
8731 cat conftest.err >&5
8732 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8733 lt_cv_ld_force_load=yes
8735 cat conftest.err >&5
8737 rm -f conftest.err libconftest.a conftest conftest.c
8738 rm -rf conftest.dSYM
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8742 $as_echo "$lt_cv_ld_force_load" >&6; }
8744 rhapsody* | darwin1.[012])
8745 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8747 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8748 darwin*) # darwin 5.x on
8749 # if running on 10.5 or later, the deployment target defaults
8750 # to the OS version, if on x86, and 10.4, the deployment
8751 # target defaults to 10.4. Don't you love it?
8752 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8753 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8754 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8756 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8758 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8762 if test yes = "$lt_cv_apple_cc_single_mod"; then
8763 _lt_dar_single_mod='$single_module'
8765 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8766 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8768 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8770 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8771 _lt_dsymutil='~$DSYMUTIL $lib || :'
8778 # func_munge_path_list VARIABLE PATH
8779 # -----------------------------------
8780 # VARIABLE is name of variable containing _space_ separated list of
8781 # directories to be munged by the contents of PATH, which is string
8784 # string "DIR[ DIR]" will be prepended to VARIABLE
8786 # string "DIR[ DIR]" will be appended to VARIABLE
8787 # "DIRP[:DIRP]::[DIRA:]DIRA"
8788 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8789 # "DIRA[ DIRA]" will be appended to VARIABLE
8791 # VARIABLE will be replaced by "DIR[ DIR]"
8792 func_munge_path_list ()
8798 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8801 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8804 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8805 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8808 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8814 ac_cpp='$CPP $CPPFLAGS'
8815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8819 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8820 # On Suns, sometimes $CPP names a directory.
8821 if test -n "$CPP" && test -d "$CPP"; then
8824 if test -z "$CPP"; then
8825 if ${ac_cv_prog_CPP+:} false; then :
8826 $as_echo_n "(cached) " >&6
8828 # Double quotes because CPP needs to be expanded
8829 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8832 for ac_c_preproc_warn_flag in '' yes
8834 # Use a header file that comes with gcc, so configuring glibc
8835 # with a fresh cross-compiler works.
8836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8837 # <limits.h> exists even on freestanding compilers.
8838 # On the NeXT, cc -E runs the code through the compiler's parser,
8839 # not just through cpp. "Syntax error" is here to catch this case.
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8843 # include <limits.h>
8845 # include <assert.h>
8849 if ac_fn_c_try_cpp "$LINENO"; then :
8852 # Broken: fails on valid input.
8855 rm -f conftest.err conftest.i conftest.$ac_ext
8857 # OK, works on sane cases. Now check whether nonexistent headers
8858 # can be detected and how.
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 #include <ac_nonexistent.h>
8863 if ac_fn_c_try_cpp "$LINENO"; then :
8864 # Broken: success on invalid input.
8867 # Passes both tests.
8871 rm -f conftest.err conftest.i conftest.$ac_ext
8874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8875 rm -f conftest.i conftest.err conftest.$ac_ext
8876 if $ac_preproc_ok; then :
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8889 $as_echo "$CPP" >&6; }
8891 for ac_c_preproc_warn_flag in '' yes
8893 # Use a header file that comes with gcc, so configuring glibc
8894 # with a fresh cross-compiler works.
8895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8896 # <limits.h> exists even on freestanding compilers.
8897 # On the NeXT, cc -E runs the code through the compiler's parser,
8898 # not just through cpp. "Syntax error" is here to catch this case.
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8902 # include <limits.h>
8904 # include <assert.h>
8908 if ac_fn_c_try_cpp "$LINENO"; then :
8911 # Broken: fails on valid input.
8914 rm -f conftest.err conftest.i conftest.$ac_ext
8916 # OK, works on sane cases. Now check whether nonexistent headers
8917 # can be detected and how.
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8920 #include <ac_nonexistent.h>
8922 if ac_fn_c_try_cpp "$LINENO"; then :
8923 # Broken: success on invalid input.
8926 # Passes both tests.
8930 rm -f conftest.err conftest.i conftest.$ac_ext
8933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8934 rm -f conftest.i conftest.err conftest.$ac_ext
8935 if $ac_preproc_ok; then :
8938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8940 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8941 See \`config.log' for more details" "$LINENO" 5; }
8945 ac_cpp='$CPP $CPPFLAGS'
8946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8952 $as_echo_n "checking for ANSI C header files... " >&6; }
8953 if ${ac_cv_header_stdc+:} false; then :
8954 $as_echo_n "(cached) " >&6
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8971 if ac_fn_c_try_compile "$LINENO"; then :
8972 ac_cv_header_stdc=yes
8974 ac_cv_header_stdc=no
8976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8978 if test $ac_cv_header_stdc = yes; then
8979 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8986 $EGREP "memchr" >/dev/null 2>&1; then :
8989 ac_cv_header_stdc=no
8995 if test $ac_cv_header_stdc = yes; then
8996 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h. */
9002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9003 $EGREP "free" >/dev/null 2>&1; then :
9006 ac_cv_header_stdc=no
9012 if test $ac_cv_header_stdc = yes; then
9013 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9014 if test "$cross_compiling" = yes; then :
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9021 #if ((' ' & 0x0FF) == 0x020)
9022 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9023 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9025 # define ISLOWER(c) \
9026 (('a' <= (c) && (c) <= 'i') \
9027 || ('j' <= (c) && (c) <= 'r') \
9028 || ('s' <= (c) && (c) <= 'z'))
9029 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9032 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9037 for (i = 0; i < 256; i++)
9038 if (XOR (islower (i), ISLOWER (i))
9039 || toupper (i) != TOUPPER (i))
9044 if ac_fn_c_try_run "$LINENO"; then :
9047 ac_cv_header_stdc=no
9049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9050 conftest.$ac_objext conftest.beam conftest.$ac_ext
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9056 $as_echo "$ac_cv_header_stdc" >&6; }
9057 if test $ac_cv_header_stdc = yes; then
9059 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9063 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9064 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9065 inttypes.h stdint.h unistd.h
9067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9068 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9070 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9071 cat >>confdefs.h <<_ACEOF
9072 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9080 for ac_header in dlfcn.h
9082 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9084 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9085 cat >>confdefs.h <<_ACEOF
9086 #define HAVE_DLFCN_H 1
9098 # Check whether --enable-static was given.
9099 if test "${enable_static+set}" = set; then :
9100 enableval=$enable_static; p=${PACKAGE-default}
9102 yes) enable_static=yes ;;
9103 no) enable_static=no ;;
9106 # Look at the argument we got. We use all the common list separators.
9107 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9108 for pkg in $enableval; do
9110 if test "X$pkg" = "X$p"; then
9136 # Check whether --enable-shared was given.
9137 if test "${enable_shared+set}" = set; then :
9138 enableval=$enable_shared; p=${PACKAGE-default}
9140 yes) enable_shared=yes ;;
9141 no) enable_shared=no ;;
9144 # Look at the argument we got. We use all the common list separators.
9145 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9146 for pkg in $enableval; do
9148 if test "X$pkg" = "X$p"; then
9169 # Check whether --with-pic was given.
9170 if test "${with_pic+set}" = set; then :
9171 withval=$with_pic; lt_p=${PACKAGE-default}
9173 yes|no) pic_mode=$withval ;;
9176 # Look at the argument we got. We use all the common list separators.
9177 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9178 for lt_pkg in $withval; do
9180 if test "X$lt_pkg" = "X$lt_p"; then
9198 # Check whether --enable-fast-install was given.
9199 if test "${enable_fast_install+set}" = set; then :
9200 enableval=$enable_fast_install; p=${PACKAGE-default}
9202 yes) enable_fast_install=yes ;;
9203 no) enable_fast_install=no ;;
9205 enable_fast_install=no
9206 # Look at the argument we got. We use all the common list separators.
9207 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9208 for pkg in $enableval; do
9210 if test "X$pkg" = "X$p"; then
9211 enable_fast_install=yes
9218 enable_fast_install=yes
9228 shared_archive_member_spec=
9229 case $host,$enable_shared in
9230 power*-*-aix[5-9]*,yes)
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9232 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9234 # Check whether --with-aix-soname was given.
9235 if test "${with_aix_soname+set}" = set; then :
9236 withval=$with_aix_soname; case $withval in
9240 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9243 lt_cv_with_aix_soname=$with_aix_soname
9245 if ${lt_cv_with_aix_soname+:} false; then :
9246 $as_echo_n "(cached) " >&6
9248 lt_cv_with_aix_soname=aix
9251 with_aix_soname=$lt_cv_with_aix_soname
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9255 $as_echo "$with_aix_soname" >&6; }
9256 if test aix != "$with_aix_soname"; then
9257 # For the AIX way of multilib, we name the shared archive member
9258 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9259 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9260 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9261 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9262 if test 64 = "${OBJECT_MODE-32}"; then
9263 shared_archive_member_spec=shr_64
9265 shared_archive_member_spec=shr
9283 # This can be used to rebuild libtool when needed
9284 LIBTOOL_DEPS=$ltmain
9286 # Always use our own libtool.
9287 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9318 test -z "$LN_S" && LN_S="ln -s"
9333 if test -n "${ZSH_VERSION+set}"; then
9334 setopt NO_GLOB_SUBST
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9338 $as_echo_n "checking for objdir... " >&6; }
9339 if ${lt_cv_objdir+:} false; then :
9340 $as_echo_n "(cached) " >&6
9342 rm -f .libs 2>/dev/null
9343 mkdir .libs 2>/dev/null
9344 if test -d .libs; then
9347 # MS-DOS does not allow filenames that begin with a dot.
9350 rmdir .libs 2>/dev/null
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9353 $as_echo "$lt_cv_objdir" >&6; }
9354 objdir=$lt_cv_objdir
9360 cat >>confdefs.h <<_ACEOF
9361 #define LT_OBJDIR "$lt_cv_objdir/"
9369 # AIX sometimes has problems with the GCC collect2 program. For some
9370 # reason, if we set the COLLECT_NAMES environment variable, the problems
9371 # vanish in a puff of smoke.
9372 if test set != "${COLLECT_NAMES+set}"; then
9374 export COLLECT_NAMES
9381 can_build_shared=yes
9383 # All known linkers require a '.a' archive for static linking (except MSVC,
9384 # which needs '.lib').
9387 with_gnu_ld=$lt_cv_prog_gnu_ld
9392 # Set sane defaults for various variables
9393 test -z "$CC" && CC=cc
9394 test -z "$LTCC" && LTCC=$CC
9395 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9396 test -z "$LD" && LD=ld
9397 test -z "$ac_objext" && ac_objext=o
9399 func_cc_basename $compiler
9400 cc_basename=$func_cc_basename_result
9403 # Only perform the check for file, if the check method requires it
9404 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9405 case $deplibs_check_method in
9407 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9409 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9410 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9411 $as_echo_n "(cached) " >&6
9415 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9418 lt_save_MAGIC_CMD=$MAGIC_CMD
9419 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9420 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9421 for ac_dir in $ac_dummy; do
9423 test -z "$ac_dir" && ac_dir=.
9424 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9425 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9426 if test -n "$file_magic_test_file"; then
9427 case $deplibs_check_method in
9429 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9430 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9431 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9432 $EGREP "$file_magic_regex" > /dev/null; then
9437 *** Warning: the command libtool uses to detect shared libraries,
9438 *** $file_magic_cmd, produces output that libtool cannot recognize.
9439 *** The result is that libtool may fail to recognize shared libraries
9440 *** as such. This will affect the creation of libtool libraries that
9441 *** depend on shared libraries, but programs linked with such libtool
9442 *** libraries will work regardless of this problem. Nevertheless, you
9443 *** may want to report the problem to your system manager and/or to
9444 *** bug-libtool@gnu.org
9454 MAGIC_CMD=$lt_save_MAGIC_CMD
9459 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9460 if test -n "$MAGIC_CMD"; then
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9462 $as_echo "$MAGIC_CMD" >&6; }
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465 $as_echo "no" >&6; }
9472 if test -z "$lt_cv_path_MAGIC_CMD"; then
9473 if test -n "$ac_tool_prefix"; then
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9475 $as_echo_n "checking for file... " >&6; }
9476 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9477 $as_echo_n "(cached) " >&6
9481 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9484 lt_save_MAGIC_CMD=$MAGIC_CMD
9485 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9486 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9487 for ac_dir in $ac_dummy; do
9489 test -z "$ac_dir" && ac_dir=.
9490 if test -f "$ac_dir/file"; then
9491 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9492 if test -n "$file_magic_test_file"; then
9493 case $deplibs_check_method in
9495 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9496 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9497 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9498 $EGREP "$file_magic_regex" > /dev/null; then
9503 *** Warning: the command libtool uses to detect shared libraries,
9504 *** $file_magic_cmd, produces output that libtool cannot recognize.
9505 *** The result is that libtool may fail to recognize shared libraries
9506 *** as such. This will affect the creation of libtool libraries that
9507 *** depend on shared libraries, but programs linked with such libtool
9508 *** libraries will work regardless of this problem. Nevertheless, you
9509 *** may want to report the problem to your system manager and/or to
9510 *** bug-libtool@gnu.org
9520 MAGIC_CMD=$lt_save_MAGIC_CMD
9525 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9526 if test -n "$MAGIC_CMD"; then
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9528 $as_echo "$MAGIC_CMD" >&6; }
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531 $as_echo "no" >&6; }
9544 # Use C for the default configuration in the libtool script
9548 ac_cpp='$CPP $CPPFLAGS'
9549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9554 # Source file extension for C test sources.
9557 # Object file extension for compiled C test sources.
9561 # Code to be used in simple compile tests
9562 lt_simple_compile_test_code="int some_variable = 0;"
9564 # Code to be used in simple link tests
9565 lt_simple_link_test_code='int main(){return(0);}'
9573 # If no C compiler was specified, use CC.
9576 # If no C compiler flags were specified, use CFLAGS.
9577 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9579 # Allow CC to be a program name with arguments.
9582 # Save the default compiler, since it gets overwritten when the other
9583 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9584 compiler_DEFAULT=$CC
9586 # save warnings/boilerplate of simple test code
9587 ac_outfile=conftest.$ac_objext
9588 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9589 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9590 _lt_compiler_boilerplate=`cat conftest.err`
9593 ac_outfile=conftest.$ac_objext
9594 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9595 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9596 _lt_linker_boilerplate=`cat conftest.err`
9601 ## There is no encapsulation within the following macros, do not change
9602 ## the running order or otherwise move them around unless you know exactly
9603 ## what you are doing...
9604 if test -n "$compiler"; then
9606 lt_prog_compiler_no_builtin_flag=
9608 if test yes = "$GCC"; then
9609 case $cc_basename in
9611 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9613 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9617 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9618 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9619 $as_echo_n "(cached) " >&6
9621 lt_cv_prog_compiler_rtti_exceptions=no
9622 ac_outfile=conftest.$ac_objext
9623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9624 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9625 # Insert the option either (1) after the last *FLAGS variable, or
9626 # (2) before a word containing "conftest.", or (3) at the end.
9627 # Note that $ac_compile itself does not contain backslashes and begins
9628 # with a dollar sign (not a hyphen), so the echo should work correctly.
9629 # The option is referenced via a variable to avoid confusing sed.
9630 lt_compile=`echo "$ac_compile" | $SED \
9631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9633 -e 's:$: $lt_compiler_flag:'`
9634 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9635 (eval "$lt_compile" 2>conftest.err)
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 if (exit $ac_status) && test -s "$ac_outfile"; then
9640 # The compiler can only warn and ignore the option if not recognized
9641 # So say no if there are warnings other than the usual output.
9642 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9644 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9645 lt_cv_prog_compiler_rtti_exceptions=yes
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9652 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9654 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9655 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9667 lt_prog_compiler_wl=
9668 lt_prog_compiler_pic=
9669 lt_prog_compiler_static=
9672 if test yes = "$GCC"; then
9673 lt_prog_compiler_wl='-Wl,'
9674 lt_prog_compiler_static='-static'
9678 # All AIX code is PIC.
9679 if test ia64 = "$host_cpu"; then
9680 # AIX 5 now supports IA64 processor
9681 lt_prog_compiler_static='-Bstatic'
9683 lt_prog_compiler_pic='-fPIC'
9689 # see comment about AmigaOS4 .so support
9690 lt_prog_compiler_pic='-fPIC'
9693 # FIXME: we need at least 68020 code to build shared libraries, but
9694 # adding the '-m68020' flag to GCC prevents building anything better,
9696 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9701 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9702 # PIC is the default for these OSes.
9705 mingw* | cygwin* | pw32* | os2* | cegcc*)
9706 # This hack is so that the source file can tell whether it is being
9707 # built for inclusion in a dll (and should export symbols for example).
9708 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9709 # (--disable-auto-import) libraries
9710 lt_prog_compiler_pic='-DDLL_EXPORT'
9713 lt_prog_compiler_static='$wl-static'
9718 darwin* | rhapsody*)
9719 # PIC is the default on this platform
9720 # Common symbols not allowed in MH_DYLIB files
9721 lt_prog_compiler_pic='-fno-common'
9725 # PIC is the default for Haiku.
9726 # The "-static" flag exists, but is broken.
9727 lt_prog_compiler_static=
9731 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9732 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9733 # sets the default TLS model and affects inlining.
9739 lt_prog_compiler_pic='-fPIC'
9745 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9746 # Instead, we relocate shared libraries at runtime.
9750 # Just because we use GCC doesn't mean we suddenly get shared libraries
9751 # on systems that don't support them.
9752 lt_prog_compiler_can_build_shared=no
9757 # QNX uses GNU C++, but need to define -shared option too, otherwise
9759 lt_prog_compiler_pic='-fPIC -shared'
9763 if test -d /usr/nec; then
9764 lt_prog_compiler_pic=-Kconform_pic
9769 lt_prog_compiler_pic='-fPIC'
9773 case $cc_basename in
9774 nvcc*) # Cuda Compiler Driver 2.2
9775 lt_prog_compiler_wl='-Xlinker '
9776 if test -n "$lt_prog_compiler_pic"; then
9777 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9782 # PORTME Check for flag to pass linker flags through the system compiler.
9785 lt_prog_compiler_wl='-Wl,'
9786 if test ia64 = "$host_cpu"; then
9787 # AIX 5 now supports IA64 processor
9788 lt_prog_compiler_static='-Bstatic'
9790 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9794 darwin* | rhapsody*)
9795 # PIC is the default on this platform
9796 # Common symbols not allowed in MH_DYLIB files
9797 lt_prog_compiler_pic='-fno-common'
9798 case $cc_basename in
9800 # NAG Fortran compiler
9801 lt_prog_compiler_wl='-Wl,-Wl,,'
9802 lt_prog_compiler_pic='-PIC'
9803 lt_prog_compiler_static='-Bstatic'
9808 mingw* | cygwin* | pw32* | os2* | cegcc*)
9809 # This hack is so that the source file can tell whether it is being
9810 # built for inclusion in a dll (and should export symbols for example).
9811 lt_prog_compiler_pic='-DDLL_EXPORT'
9814 lt_prog_compiler_static='$wl-static'
9819 hpux9* | hpux10* | hpux11*)
9820 lt_prog_compiler_wl='-Wl,'
9821 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9828 lt_prog_compiler_pic='+Z'
9831 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9832 lt_prog_compiler_static='$wl-a ${wl}archive'
9835 irix5* | irix6* | nonstopux*)
9836 lt_prog_compiler_wl='-Wl,'
9837 # PIC (with -KPIC) is the default.
9838 lt_prog_compiler_static='-non_shared'
9841 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9842 case $cc_basename in
9843 # old Intel for x86_64, which still supported -KPIC.
9845 lt_prog_compiler_wl='-Wl,'
9846 lt_prog_compiler_pic='-KPIC'
9847 lt_prog_compiler_static='-static'
9849 # icc used to be incompatible with GCC.
9850 # ICC 10 doesn't accept -KPIC any more.
9852 lt_prog_compiler_wl='-Wl,'
9853 lt_prog_compiler_pic='-fPIC'
9854 lt_prog_compiler_static='-static'
9856 # Lahey Fortran 8.1.
9858 lt_prog_compiler_wl='-Wl,'
9859 lt_prog_compiler_pic='--shared'
9860 lt_prog_compiler_static='--static'
9863 # NAG Fortran compiler
9864 lt_prog_compiler_wl='-Wl,-Wl,,'
9865 lt_prog_compiler_pic='-PIC'
9866 lt_prog_compiler_static='-Bstatic'
9869 # Fabrice Bellard et al's Tiny C Compiler
9870 lt_prog_compiler_wl='-Wl,'
9871 lt_prog_compiler_pic='-fPIC'
9872 lt_prog_compiler_static='-static'
9874 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9875 # Portland Group compilers (*not* the Pentium gcc compiler,
9876 # which looks to be a dead project)
9877 lt_prog_compiler_wl='-Wl,'
9878 lt_prog_compiler_pic='-fpic'
9879 lt_prog_compiler_static='-Bstatic'
9882 lt_prog_compiler_wl='-Wl,'
9883 # All Alpha code is PIC.
9884 lt_prog_compiler_static='-non_shared'
9886 xl* | bgxl* | bgf* | mpixl*)
9887 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9888 lt_prog_compiler_wl='-Wl,'
9889 lt_prog_compiler_pic='-qpic'
9890 lt_prog_compiler_static='-qstaticlink'
9893 case `$CC -V 2>&1 | sed 5q` in
9894 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9895 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9896 lt_prog_compiler_pic='-KPIC'
9897 lt_prog_compiler_static='-Bstatic'
9898 lt_prog_compiler_wl=''
9900 *Sun\ F* | *Sun*Fortran*)
9901 lt_prog_compiler_pic='-KPIC'
9902 lt_prog_compiler_static='-Bstatic'
9903 lt_prog_compiler_wl='-Qoption ld '
9907 lt_prog_compiler_pic='-KPIC'
9908 lt_prog_compiler_static='-Bstatic'
9909 lt_prog_compiler_wl='-Wl,'
9911 *Intel*\ [CF]*Compiler*)
9912 lt_prog_compiler_wl='-Wl,'
9913 lt_prog_compiler_pic='-fPIC'
9914 lt_prog_compiler_static='-static'
9917 lt_prog_compiler_wl='-Wl,'
9918 lt_prog_compiler_pic='-fpic'
9919 lt_prog_compiler_static='-Bstatic'
9927 lt_prog_compiler_pic='-KPIC'
9928 lt_prog_compiler_static='-Bstatic'
9932 # QNX uses GNU C++, but need to define -shared option too, otherwise
9934 lt_prog_compiler_pic='-fPIC -shared'
9937 osf3* | osf4* | osf5*)
9938 lt_prog_compiler_wl='-Wl,'
9939 # All OSF/1 code is PIC.
9940 lt_prog_compiler_static='-non_shared'
9944 lt_prog_compiler_static='-non_shared'
9948 lt_prog_compiler_pic='-KPIC'
9949 lt_prog_compiler_static='-Bstatic'
9950 case $cc_basename in
9951 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9952 lt_prog_compiler_wl='-Qoption ld ';;
9954 lt_prog_compiler_wl='-Wl,';;
9959 lt_prog_compiler_wl='-Qoption ld '
9960 lt_prog_compiler_pic='-PIC'
9961 lt_prog_compiler_static='-Bstatic'
9964 sysv4 | sysv4.2uw2* | sysv4.3*)
9965 lt_prog_compiler_wl='-Wl,'
9966 lt_prog_compiler_pic='-KPIC'
9967 lt_prog_compiler_static='-Bstatic'
9971 if test -d /usr/nec; then
9972 lt_prog_compiler_pic='-Kconform_pic'
9973 lt_prog_compiler_static='-Bstatic'
9977 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9978 lt_prog_compiler_wl='-Wl,'
9979 lt_prog_compiler_pic='-KPIC'
9980 lt_prog_compiler_static='-Bstatic'
9984 lt_prog_compiler_wl='-Wl,'
9985 lt_prog_compiler_can_build_shared=no
9989 lt_prog_compiler_pic='-pic'
9990 lt_prog_compiler_static='-Bstatic'
9994 lt_prog_compiler_can_build_shared=no
10000 # For platforms that do not support PIC, -DPIC is meaningless:
10002 lt_prog_compiler_pic=
10005 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10010 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10011 if ${lt_cv_prog_compiler_pic+:} false; then :
10012 $as_echo_n "(cached) " >&6
10014 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10017 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10018 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10021 # Check to make sure the PIC flag actually works.
10023 if test -n "$lt_prog_compiler_pic"; then
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10025 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10026 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10027 $as_echo_n "(cached) " >&6
10029 lt_cv_prog_compiler_pic_works=no
10030 ac_outfile=conftest.$ac_objext
10031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10032 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10033 # Insert the option either (1) after the last *FLAGS variable, or
10034 # (2) before a word containing "conftest.", or (3) at the end.
10035 # Note that $ac_compile itself does not contain backslashes and begins
10036 # with a dollar sign (not a hyphen), so the echo should work correctly.
10037 # The option is referenced via a variable to avoid confusing sed.
10038 lt_compile=`echo "$ac_compile" | $SED \
10039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10041 -e 's:$: $lt_compiler_flag:'`
10042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10043 (eval "$lt_compile" 2>conftest.err)
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 if (exit $ac_status) && test -s "$ac_outfile"; then
10048 # The compiler can only warn and ignore the option if not recognized
10049 # So say no if there are warnings other than the usual output.
10050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10052 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10053 lt_cv_prog_compiler_pic_works=yes
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10060 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10062 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10063 case $lt_prog_compiler_pic in
10065 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10068 lt_prog_compiler_pic=
10069 lt_prog_compiler_can_build_shared=no
10085 # Check to make sure the static flag actually works.
10087 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10089 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10090 if ${lt_cv_prog_compiler_static_works+:} false; then :
10091 $as_echo_n "(cached) " >&6
10093 lt_cv_prog_compiler_static_works=no
10094 save_LDFLAGS=$LDFLAGS
10095 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10096 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10097 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10098 # The linker can only warn and ignore the option if not recognized
10099 # So say no if there are warnings
10100 if test -s conftest.err; then
10101 # Append any errors to the config.log.
10102 cat conftest.err 1>&5
10103 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10105 if diff conftest.exp conftest.er2 >/dev/null; then
10106 lt_cv_prog_compiler_static_works=yes
10109 lt_cv_prog_compiler_static_works=yes
10113 LDFLAGS=$save_LDFLAGS
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10117 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10119 if test yes = "$lt_cv_prog_compiler_static_works"; then
10122 lt_prog_compiler_static=
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10132 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10133 if ${lt_cv_prog_compiler_c_o+:} false; then :
10134 $as_echo_n "(cached) " >&6
10136 lt_cv_prog_compiler_c_o=no
10137 $RM -r conftest 2>/dev/null
10141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10143 lt_compiler_flag="-o out/conftest2.$ac_objext"
10144 # Insert the option either (1) after the last *FLAGS variable, or
10145 # (2) before a word containing "conftest.", or (3) at the end.
10146 # Note that $ac_compile itself does not contain backslashes and begins
10147 # with a dollar sign (not a hyphen), so the echo should work correctly.
10148 lt_compile=`echo "$ac_compile" | $SED \
10149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10151 -e 's:$: $lt_compiler_flag:'`
10152 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10153 (eval "$lt_compile" 2>out/conftest.err)
10155 cat out/conftest.err >&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10159 # The compiler can only warn and ignore the option if not recognized
10160 # So say no if there are warnings
10161 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10162 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10163 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10164 lt_cv_prog_compiler_c_o=yes
10169 # SGI C++ compiler will create directory out/ii_files/ for
10170 # template instantiation
10171 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10172 $RM out/* && rmdir out
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10179 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10187 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10188 if ${lt_cv_prog_compiler_c_o+:} false; then :
10189 $as_echo_n "(cached) " >&6
10191 lt_cv_prog_compiler_c_o=no
10192 $RM -r conftest 2>/dev/null
10196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10198 lt_compiler_flag="-o out/conftest2.$ac_objext"
10199 # Insert the option either (1) after the last *FLAGS variable, or
10200 # (2) before a word containing "conftest.", or (3) at the end.
10201 # Note that $ac_compile itself does not contain backslashes and begins
10202 # with a dollar sign (not a hyphen), so the echo should work correctly.
10203 lt_compile=`echo "$ac_compile" | $SED \
10204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10206 -e 's:$: $lt_compiler_flag:'`
10207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10208 (eval "$lt_compile" 2>out/conftest.err)
10210 cat out/conftest.err >&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10214 # The compiler can only warn and ignore the option if not recognized
10215 # So say no if there are warnings
10216 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10217 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10218 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10219 lt_cv_prog_compiler_c_o=yes
10224 # SGI C++ compiler will create directory out/ii_files/ for
10225 # template instantiation
10226 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10227 $RM out/* && rmdir out
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10234 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10239 hard_links=nottested
10240 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10241 # do not overwrite the value of need_locks provided by the user
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10243 $as_echo_n "checking if we can lock with hard links... " >&6; }
10246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10248 ln conftest.a conftest.b 2>&5 || hard_links=no
10249 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10251 $as_echo "$hard_links" >&6; }
10252 if test no = "$hard_links"; then
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10254 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10267 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10270 allow_undefined_flag=
10271 always_export_symbols=no
10273 archive_expsym_cmds=
10274 compiler_needs_object=no
10275 enable_shared_with_static_runtimes=no
10276 export_dynamic_flag_spec=
10277 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10278 hardcode_automatic=no
10280 hardcode_direct_absolute=no
10281 hardcode_libdir_flag_spec=
10282 hardcode_libdir_separator=
10283 hardcode_minus_L=no
10284 hardcode_shlibpath_var=unsupported
10286 link_all_deplibs=unknown
10288 module_expsym_cmds=
10289 old_archive_from_new_cmds=
10290 old_archive_from_expsyms_cmds=
10291 thread_safe_flag_spec=
10292 whole_archive_flag_spec=
10293 # include_expsyms should be a list of space-separated symbols to be *always*
10294 # included in the symbol list
10296 # exclude_expsyms can be an extended regexp of symbols to exclude
10297 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10298 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10299 # as well as any symbol that contains 'd'.
10300 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10301 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10302 # platforms (ab)use it in PIC code, but their linkers get confused if
10303 # the symbol is explicitly referenced. Since portable code cannot
10304 # rely on this symbol name, it's probably fine to never include it in
10305 # preloaded symbol tables.
10306 # Exclude shared library initialization/finalization symbols.
10307 extract_expsyms_cmds=
10310 cygwin* | mingw* | pw32* | cegcc*)
10311 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10312 # When not using gcc, we currently assume that we are using
10313 # Microsoft Visual C++.
10314 if test yes != "$GCC"; then
10319 # we just hope/assume this is gcc and not c89 (= MSVC++)
10322 openbsd* | bitrig*)
10325 linux* | k*bsd*-gnu | gnu*)
10326 link_all_deplibs=no
10332 # On some targets, GNU ld is compatible enough with the native linker
10333 # that we're better off using the native interface for both.
10334 lt_use_gnu_ld_interface=no
10335 if test yes = "$with_gnu_ld"; then
10338 # The AIX port of GNU ld has always aspired to compatibility
10339 # with the native linker. However, as the warning in the GNU ld
10340 # block says, versions before 2.19.5* couldn't really create working
10341 # shared libraries, regardless of the interface used.
10342 case `$LD -v 2>&1` in
10343 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10344 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10345 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10347 lt_use_gnu_ld_interface=yes
10352 lt_use_gnu_ld_interface=yes
10357 if test yes = "$lt_use_gnu_ld_interface"; then
10358 # If archive_cmds runs LD, not CC, wlarc should be empty
10361 # Set some defaults for GNU ld with shared library support. These
10362 # are reset later if shared libraries are not supported. Putting them
10363 # here allows them to be overridden if necessary.
10364 runpath_var=LD_RUN_PATH
10365 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10366 export_dynamic_flag_spec='$wl--export-dynamic'
10367 # ancient GNU ld didn't support --whole-archive et. al.
10368 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10369 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10371 whole_archive_flag_spec=
10373 supports_anon_versioning=no
10374 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10375 *GNU\ gold*) supports_anon_versioning=yes ;;
10376 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10377 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10378 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10379 *\ 2.11.*) ;; # other 2.11 versions
10380 *) supports_anon_versioning=yes ;;
10383 # See if GNU ld supports shared libraries.
10386 # On AIX/PPC, the GNU linker is very broken
10387 if test ia64 != "$host_cpu"; then
10391 *** Warning: the GNU linker, at least up to release 2.19, is reported
10392 *** to be unable to reliably create shared libraries on AIX.
10393 *** Therefore, libtool is disabling shared libraries support. If you
10394 *** really care for shared libraries, you may want to install binutils
10395 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10396 *** You will then need to restart the configuration process.
10405 # see comment about AmigaOS4 .so support
10406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10407 archive_expsym_cmds=''
10410 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)'
10411 hardcode_libdir_flag_spec='-L$libdir'
10412 hardcode_minus_L=yes
10418 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10419 allow_undefined_flag=unsupported
10420 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10421 # support --undefined. This deserves some investigation. FIXME
10422 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10428 cygwin* | mingw* | pw32* | cegcc*)
10429 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10430 # as there is no search path for DLLs.
10431 hardcode_libdir_flag_spec='-L$libdir'
10432 export_dynamic_flag_spec='$wl--export-all-symbols'
10433 allow_undefined_flag=unsupported
10434 always_export_symbols=no
10435 enable_shared_with_static_runtimes=yes
10436 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'
10437 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10439 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10441 # If the export-symbols file already is a .def file, use it as
10442 # is; otherwise, prepend EXPORTS...
10443 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10444 cp $export_symbols $output_objdir/$soname.def;
10446 echo EXPORTS > $output_objdir/$soname.def;
10447 cat $export_symbols >> $output_objdir/$soname.def;
10449 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10457 link_all_deplibs=yes
10461 hardcode_libdir_flag_spec='-L$libdir'
10462 hardcode_minus_L=yes
10463 allow_undefined_flag=unsupported
10465 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10466 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10467 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10468 $ECHO EXPORTS >> $output_objdir/$libname.def~
10469 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10470 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10471 emximp -o $lib $output_objdir/$libname.def'
10472 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10473 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10474 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10475 $ECHO EXPORTS >> $output_objdir/$libname.def~
10476 prefix_cmds="$SED"~
10477 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10478 prefix_cmds="$prefix_cmds -e 1d";
10480 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10481 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10482 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10483 emximp -o $lib $output_objdir/$libname.def'
10484 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10485 enable_shared_with_static_runtimes=yes
10490 hardcode_shlibpath_var=no
10491 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10492 export_dynamic_flag_spec='$wl-E'
10493 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10494 # Instead, shared libraries are loaded at an image base (0x10000000 by
10495 # default) and relocated if they conflict, which is a slow very memory
10496 # consuming and fragmenting process. To avoid this, we pick a random,
10497 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10498 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10499 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10500 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'
10503 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10505 if test linux-dietlibc = "$host_os"; then
10506 case $cc_basename in
10507 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10510 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10511 && test no = "$tmp_diet"
10513 tmp_addflag=' $pic_flag'
10514 tmp_sharedflag='-shared'
10515 case $cc_basename,$host_cpu in
10516 pgcc*) # Portland Group C compiler
10517 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'
10518 tmp_addflag=' $pic_flag'
10520 pgf77* | pgf90* | pgf95* | pgfortran*)
10521 # Portland Group f77 and f90 compilers
10522 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'
10523 tmp_addflag=' $pic_flag -Mnomain' ;;
10524 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10525 tmp_addflag=' -i_dynamic' ;;
10526 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10527 tmp_addflag=' -i_dynamic -nofor_main' ;;
10528 ifc* | ifort*) # Intel Fortran compiler
10529 tmp_addflag=' -nofor_main' ;;
10530 lf95*) # Lahey Fortran 8.1
10531 whole_archive_flag_spec=
10532 tmp_sharedflag='--shared' ;;
10533 nagfor*) # NAGFOR 5.3
10534 tmp_sharedflag='-Wl,-shared' ;;
10535 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10536 tmp_sharedflag='-qmkshrobj'
10538 nvcc*) # Cuda Compiler Driver 2.2
10539 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'
10540 compiler_needs_object=yes
10543 case `$CC -V 2>&1 | sed 5q` in
10544 *Sun\ C*) # Sun C 5.9
10545 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'
10546 compiler_needs_object=yes
10547 tmp_sharedflag='-G' ;;
10548 *Sun\ F*) # Sun Fortran 8.3
10549 tmp_sharedflag='-G' ;;
10551 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10553 if test yes = "$supports_anon_versioning"; then
10554 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10555 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10556 echo "local: *; };" >> $output_objdir/$libname.ver~
10557 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10560 case $cc_basename in
10562 export_dynamic_flag_spec='-rdynamic'
10564 xlf* | bgf* | bgxlf* | mpixlf*)
10565 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10566 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10567 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10568 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10569 if test yes = "$supports_anon_versioning"; then
10570 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10571 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10572 echo "local: *; };" >> $output_objdir/$libname.ver~
10573 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10582 netbsd* | netbsdelf*-gnu)
10583 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10584 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10587 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10588 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10593 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10597 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10598 *** create shared libraries on Solaris systems. Therefore, libtool
10599 *** is disabling shared libraries support. We urge you to upgrade GNU
10600 *** binutils to release 2.9.1 or newer. Another option is to modify
10601 *** your PATH or compiler configuration so that the native linker is
10602 *** used, and then restart.
10605 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10606 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10607 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10613 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10614 case `$LD -v 2>&1` in
10615 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10619 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10620 *** reliably create shared libraries on SCO systems. Therefore, libtool
10621 *** is disabling shared libraries support. We urge you to upgrade GNU
10622 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10623 *** your PATH or compiler configuration so that the native linker is
10624 *** used, and then restart.
10629 # For security reasons, it is highly recommended that you always
10630 # use absolute paths for naming shared libraries, and exclude the
10631 # DT_RUNPATH tag from executables and libraries. But doing so
10632 # requires that you compile everything twice, which is a pain.
10633 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10634 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10645 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10647 hardcode_direct=yes
10648 hardcode_shlibpath_var=no
10652 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10653 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10654 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10661 if test no = "$ld_shlibs"; then
10663 hardcode_libdir_flag_spec=
10664 export_dynamic_flag_spec=
10665 whole_archive_flag_spec=
10668 # PORTME fill in a description of your system's linker (not GNU ld)
10671 allow_undefined_flag=unsupported
10672 always_export_symbols=yes
10673 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'
10674 # Note: this linker hardcodes the directories in LIBPATH if there
10675 # are no directories specified by -L.
10676 hardcode_minus_L=yes
10677 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10678 # Neither direct hardcoding nor static linking is supported with a
10680 hardcode_direct=unsupported
10685 if test ia64 = "$host_cpu"; then
10686 # On IA64, the linker does run time linking by default, so we don't
10687 # have to do anything special.
10688 aix_use_runtimelinking=no
10689 exp_sym_flag='-Bexport'
10692 # If we're using GNU nm, then we don't want the "-C" option.
10693 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10694 # Without the "-l" option, or with the "-B" option, AIX nm treats
10695 # weak defined symbols like other global defined symbols, whereas
10696 # GNU nm marks them as "W".
10697 # While the 'weak' keyword is ignored in the Export File, we need
10698 # it in the Import File for the 'aix-soname' feature, so we have
10699 # to replace the "-B" option with "-P" for AIX nm.
10700 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10701 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'
10703 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10705 aix_use_runtimelinking=no
10707 # Test if we are trying to use run time linking or normal
10708 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10709 # have runtime linking enabled, and use it for executables.
10710 # For shared libraries, we enable/disable runtime linking
10711 # depending on the kind of the shared library created -
10712 # when "with_aix_soname,aix_use_runtimelinking" is:
10713 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10714 # "aix,yes" lib.so shared, rtl:yes, for executables
10715 # lib.a static archive
10716 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10717 # lib.a(lib.so.V) shared, rtl:no, for executables
10718 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10719 # lib.a(lib.so.V) shared, rtl:no
10720 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10721 # lib.a static archive
10722 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10723 for ld_flag in $LDFLAGS; do
10724 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10725 aix_use_runtimelinking=yes
10729 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10730 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10731 # so we don't have lib.a shared libs to link our executables.
10732 # We have to force runtime linking in this case.
10733 aix_use_runtimelinking=yes
10734 LDFLAGS="$LDFLAGS -Wl,-brtl"
10739 exp_sym_flag='-bexport'
10740 no_entry_flag='-bnoentry'
10743 # When large executables or shared objects are built, AIX ld can
10744 # have problems creating the table of contents. If linking a library
10745 # or program results in "error TOC overflow" add -mminimal-toc to
10746 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10747 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10750 hardcode_direct=yes
10751 hardcode_direct_absolute=yes
10752 hardcode_libdir_separator=':'
10753 link_all_deplibs=yes
10754 file_list_spec='$wl-f,'
10755 case $with_aix_soname,$aix_use_runtimelinking in
10756 aix,*) ;; # traditional, no import file
10757 svr4,* | *,yes) # use import file
10758 # The Import File defines what to hardcode.
10760 hardcode_direct_absolute=no
10764 if test yes = "$GCC"; then
10765 case $host_os in aix4.[012]|aix4.[012].*)
10766 # We only want to do this on AIX 4.2 and lower, the check
10767 # below for broken collect2 doesn't work under 4.3+
10768 collect2name=`$CC -print-prog-name=collect2`
10769 if test -f "$collect2name" &&
10770 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10772 # We have reworked collect2
10775 # We have old collect2
10776 hardcode_direct=unsupported
10777 # It fails to find uninstalled libraries when the uninstalled
10778 # path is not listed in the libpath. Setting hardcode_minus_L
10779 # to unsupported forces relinking
10780 hardcode_minus_L=yes
10781 hardcode_libdir_flag_spec='-L$libdir'
10782 hardcode_libdir_separator=
10786 shared_flag='-shared'
10787 if test yes = "$aix_use_runtimelinking"; then
10788 shared_flag="$shared_flag "'$wl-G'
10790 # Need to ensure runtime linking is disabled for the traditional
10791 # shared library, or the linker may eventually find shared libraries
10792 # /with/ Import File - we do not want to mix them.
10793 shared_flag_aix='-shared'
10794 shared_flag_svr4='-shared $wl-G'
10797 if test ia64 = "$host_cpu"; then
10798 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10799 # chokes on -Wl,-G. The following line is correct:
10802 if test yes = "$aix_use_runtimelinking"; then
10803 shared_flag='$wl-G'
10805 shared_flag='$wl-bM:SRE'
10807 shared_flag_aix='$wl-bM:SRE'
10808 shared_flag_svr4='$wl-G'
10812 export_dynamic_flag_spec='$wl-bexpall'
10813 # It seems that -bexpall does not export symbols beginning with
10814 # underscore (_), so it is better to generate a list of symbols to export.
10815 always_export_symbols=yes
10816 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10817 # Warning - without using the other runtime loading flags (-brtl),
10818 # -berok will link without error, but may produce a broken library.
10819 allow_undefined_flag='-berok'
10820 # Determine the default libpath from the value encoded in an
10821 # empty executable.
10822 if test set = "${lt_cv_aix_libpath+set}"; then
10823 aix_libpath=$lt_cv_aix_libpath
10825 if ${lt_cv_aix_libpath_+:} false; then :
10826 $as_echo_n "(cached) " >&6
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10839 if ac_fn_c_try_link "$LINENO"; then :
10841 lt_aix_libpath_sed='
10842 /Import File Strings/,/^$/ {
10844 s/^0 *\([^ ]*\) *$/\1/
10848 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10849 # Check for a 64-bit object if we didn't find anything.
10850 if test -z "$lt_cv_aix_libpath_"; then
10851 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10854 rm -f core conftest.err conftest.$ac_objext \
10855 conftest$ac_exeext conftest.$ac_ext
10856 if test -z "$lt_cv_aix_libpath_"; then
10857 lt_cv_aix_libpath_=/usr/lib:/lib
10862 aix_libpath=$lt_cv_aix_libpath_
10865 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10866 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
10868 if test ia64 = "$host_cpu"; then
10869 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10870 allow_undefined_flag="-z nodefs"
10871 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"
10873 # Determine the default libpath from the value encoded in an
10874 # empty executable.
10875 if test set = "${lt_cv_aix_libpath+set}"; then
10876 aix_libpath=$lt_cv_aix_libpath
10878 if ${lt_cv_aix_libpath_+:} false; then :
10879 $as_echo_n "(cached) " >&6
10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10892 if ac_fn_c_try_link "$LINENO"; then :
10894 lt_aix_libpath_sed='
10895 /Import File Strings/,/^$/ {
10897 s/^0 *\([^ ]*\) *$/\1/
10901 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10902 # Check for a 64-bit object if we didn't find anything.
10903 if test -z "$lt_cv_aix_libpath_"; then
10904 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10907 rm -f core conftest.err conftest.$ac_objext \
10908 conftest$ac_exeext conftest.$ac_ext
10909 if test -z "$lt_cv_aix_libpath_"; then
10910 lt_cv_aix_libpath_=/usr/lib:/lib
10915 aix_libpath=$lt_cv_aix_libpath_
10918 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10919 # Warning - without using the other run time loading flags,
10920 # -berok will link without error, but may produce a broken library.
10921 no_undefined_flag=' $wl-bernotok'
10922 allow_undefined_flag=' $wl-berok'
10923 if test yes = "$with_gnu_ld"; then
10924 # We only use this code for GNU lds that support --whole-archive.
10925 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10927 # Exported symbols can be pulled into shared objects from archives
10928 whole_archive_flag_spec='$convenience'
10930 archive_cmds_need_lc=yes
10931 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10932 # -brtl affects multiple linker settings, -berok does not and is overridden later
10933 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10934 if test svr4 != "$with_aix_soname"; then
10935 # This is similar to how AIX traditionally builds its shared libraries.
10936 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'
10938 if test aix != "$with_aix_soname"; then
10939 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'
10941 # used by -dlpreopen to get the symbols
10942 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10944 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10952 # see comment about AmigaOS4 .so support
10953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10954 archive_expsym_cmds=''
10957 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)'
10958 hardcode_libdir_flag_spec='-L$libdir'
10959 hardcode_minus_L=yes
10965 export_dynamic_flag_spec=-rdynamic
10968 cygwin* | mingw* | pw32* | cegcc*)
10969 # When not using gcc, we currently assume that we are using
10970 # Microsoft Visual C++.
10971 # hardcode_libdir_flag_spec is actually meaningless, as there is
10972 # no search path for DLLs.
10973 case $cc_basename in
10976 hardcode_libdir_flag_spec=' '
10977 allow_undefined_flag=unsupported
10978 always_export_symbols=yes
10980 # Tell ltmain to make .lib files, not .a files.
10982 # Tell ltmain to make .dll files, not .so files.
10984 # FIXME: Setting linknames here is a bad hack.
10985 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10986 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10987 cp "$export_symbols" "$output_objdir/$soname.def";
10988 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10990 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10992 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10994 # The linker will not automatically build a static lib if we build a DLL.
10995 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10996 enable_shared_with_static_runtimes=yes
10997 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10998 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11000 old_postinstall_cmds='chmod 644 $oldlib'
11001 postlink_cmds='lt_outputfile="@OUTPUT@"~
11002 lt_tool_outputfile="@TOOL_OUTPUT@"~
11003 case $lt_outputfile in
11006 lt_outputfile=$lt_outputfile.exe
11007 lt_tool_outputfile=$lt_tool_outputfile.exe
11010 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11011 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11012 $RM "$lt_outputfile.manifest";
11016 # Assume MSVC wrapper
11017 hardcode_libdir_flag_spec=' '
11018 allow_undefined_flag=unsupported
11019 # Tell ltmain to make .lib files, not .a files.
11021 # Tell ltmain to make .dll files, not .so files.
11023 # FIXME: Setting linknames here is a bad hack.
11024 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11025 # The linker will automatically build a .lib file if we build a DLL.
11026 old_archive_from_new_cmds='true'
11027 # FIXME: Should let the user specify the lib program.
11028 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11029 enable_shared_with_static_runtimes=yes
11034 darwin* | rhapsody*)
11037 archive_cmds_need_lc=no
11039 hardcode_automatic=yes
11040 hardcode_shlibpath_var=unsupported
11041 if test yes = "$lt_cv_ld_force_load"; then
11042 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\"`'
11045 whole_archive_flag_spec=''
11047 link_all_deplibs=yes
11048 allow_undefined_flag=$_lt_dar_allow_undefined
11049 case $cc_basename in
11050 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11051 *) _lt_dar_can_shared=$GCC ;;
11053 if test yes = "$_lt_dar_can_shared"; then
11054 output_verbose_link_cmd=func_echo_all
11055 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11056 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11057 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"
11058 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"
11067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11068 hardcode_libdir_flag_spec='-L$libdir'
11069 hardcode_shlibpath_var=no
11072 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11073 # support. Future versions do this automatically, but an explicit c++rt0.o
11074 # does not break anything, and helps significantly (at the cost of a little
11077 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11078 hardcode_libdir_flag_spec='-R$libdir'
11079 hardcode_direct=yes
11080 hardcode_shlibpath_var=no
11083 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11086 hardcode_direct=yes
11087 hardcode_minus_L=yes
11088 hardcode_shlibpath_var=no
11091 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11092 freebsd* | dragonfly*)
11093 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11094 hardcode_libdir_flag_spec='-R$libdir'
11095 hardcode_direct=yes
11096 hardcode_shlibpath_var=no
11100 if test yes = "$GCC"; then
11101 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'
11103 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'
11105 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11106 hardcode_libdir_separator=:
11107 hardcode_direct=yes
11109 # hardcode_minus_L: Not really in the search PATH,
11110 # but as the default location of the library.
11111 hardcode_minus_L=yes
11112 export_dynamic_flag_spec='$wl-E'
11116 if test yes,no = "$GCC,$with_gnu_ld"; then
11117 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11119 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11121 if test no = "$with_gnu_ld"; then
11122 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11123 hardcode_libdir_separator=:
11124 hardcode_direct=yes
11125 hardcode_direct_absolute=yes
11126 export_dynamic_flag_spec='$wl-E'
11127 # hardcode_minus_L: Not really in the search PATH,
11128 # but as the default location of the library.
11129 hardcode_minus_L=yes
11134 if test yes,no = "$GCC,$with_gnu_ld"; then
11137 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11140 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11143 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11149 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11152 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11156 # Older versions of the 11.00 compiler do not understand -b yet
11157 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11159 $as_echo_n "checking if $CC understands -b... " >&6; }
11160 if ${lt_cv_prog_compiler__b+:} false; then :
11161 $as_echo_n "(cached) " >&6
11163 lt_cv_prog_compiler__b=no
11164 save_LDFLAGS=$LDFLAGS
11165 LDFLAGS="$LDFLAGS -b"
11166 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11167 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11168 # The linker can only warn and ignore the option if not recognized
11169 # So say no if there are warnings
11170 if test -s conftest.err; then
11171 # Append any errors to the config.log.
11172 cat conftest.err 1>&5
11173 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11175 if diff conftest.exp conftest.er2 >/dev/null; then
11176 lt_cv_prog_compiler__b=yes
11179 lt_cv_prog_compiler__b=yes
11183 LDFLAGS=$save_LDFLAGS
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11187 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11189 if test yes = "$lt_cv_prog_compiler__b"; then
11190 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11192 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11198 if test no = "$with_gnu_ld"; then
11199 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11200 hardcode_libdir_separator=:
11205 hardcode_shlibpath_var=no
11208 hardcode_direct=yes
11209 hardcode_direct_absolute=yes
11210 export_dynamic_flag_spec='$wl-E'
11212 # hardcode_minus_L: Not really in the search PATH,
11213 # but as the default location of the library.
11214 hardcode_minus_L=yes
11220 irix5* | irix6* | nonstopux*)
11221 if test yes = "$GCC"; then
11222 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'
11223 # Try to use the -exported_symbol ld option, if it does not
11224 # work, assume that -exports_file does not work either and
11225 # implicitly export all symbols.
11226 # This should be the same for all languages, so no per-tag cache variable.
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11228 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11229 if ${lt_cv_irix_exported_symbol+:} false; then :
11230 $as_echo_n "(cached) " >&6
11232 save_LDFLAGS=$LDFLAGS
11233 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h. */
11236 int foo (void) { return 0; }
11238 if ac_fn_c_try_link "$LINENO"; then :
11239 lt_cv_irix_exported_symbol=yes
11241 lt_cv_irix_exported_symbol=no
11243 rm -f core conftest.err conftest.$ac_objext \
11244 conftest$ac_exeext conftest.$ac_ext
11245 LDFLAGS=$save_LDFLAGS
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11248 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11249 if test yes = "$lt_cv_irix_exported_symbol"; then
11250 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'
11252 link_all_deplibs=no
11254 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'
11255 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'
11257 archive_cmds_need_lc='no'
11258 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11259 hardcode_libdir_separator=:
11261 link_all_deplibs=yes
11265 case $cc_basename in
11267 # Fabrice Bellard et al's Tiny C Compiler
11269 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11274 netbsd* | netbsdelf*-gnu)
11275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11276 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11278 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11280 hardcode_libdir_flag_spec='-R$libdir'
11281 hardcode_direct=yes
11282 hardcode_shlibpath_var=no
11286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11287 hardcode_direct=yes
11288 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11289 hardcode_libdir_separator=:
11290 hardcode_shlibpath_var=no
11296 openbsd* | bitrig*)
11297 if test -f /usr/libexec/ld.so; then
11298 hardcode_direct=yes
11299 hardcode_shlibpath_var=no
11300 hardcode_direct_absolute=yes
11301 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11302 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11303 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11304 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11305 export_dynamic_flag_spec='$wl-E'
11307 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11308 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11316 hardcode_libdir_flag_spec='-L$libdir'
11317 hardcode_minus_L=yes
11318 allow_undefined_flag=unsupported
11320 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11321 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11322 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11323 $ECHO EXPORTS >> $output_objdir/$libname.def~
11324 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11325 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11326 emximp -o $lib $output_objdir/$libname.def'
11327 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11328 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11329 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11330 $ECHO EXPORTS >> $output_objdir/$libname.def~
11331 prefix_cmds="$SED"~
11332 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11333 prefix_cmds="$prefix_cmds -e 1d";
11335 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11336 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11337 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11338 emximp -o $lib $output_objdir/$libname.def'
11339 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11340 enable_shared_with_static_runtimes=yes
11344 if test yes = "$GCC"; then
11345 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11346 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'
11348 allow_undefined_flag=' -expect_unresolved \*'
11349 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'
11351 archive_cmds_need_lc='no'
11352 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11353 hardcode_libdir_separator=:
11356 osf4* | osf5*) # as osf3* with the addition of -msym flag
11357 if test yes = "$GCC"; then
11358 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11359 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'
11360 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11362 allow_undefined_flag=' -expect_unresolved \*'
11363 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'
11364 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~
11365 $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'
11367 # Both c and cxx compiler support -rpath directly
11368 hardcode_libdir_flag_spec='-rpath $libdir'
11370 archive_cmds_need_lc='no'
11371 hardcode_libdir_separator=:
11375 no_undefined_flag=' -z defs'
11376 if test yes = "$GCC"; then
11378 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11379 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11380 $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'
11382 case `$CC -V 2>&1` in
11385 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11386 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11387 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11391 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11393 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11397 hardcode_libdir_flag_spec='-R$libdir'
11398 hardcode_shlibpath_var=no
11400 solaris2.[0-5] | solaris2.[0-5].*) ;;
11402 # The compiler driver will combine and reorder linker options,
11403 # but understands '-z linker_flag'. GCC discards it without '$wl',
11404 # but is careful enough not to reorder.
11405 # Supported since Solaris 2.6 (maybe 2.5.1?)
11406 if test yes = "$GCC"; then
11407 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11409 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11413 link_all_deplibs=yes
11417 if test sequent = "$host_vendor"; then
11418 # Use $CC to link under sequent, because it throws in some extra .o
11419 # files that make .init and .fini sections work.
11420 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11422 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11424 hardcode_libdir_flag_spec='-L$libdir'
11425 hardcode_direct=yes
11426 hardcode_minus_L=yes
11427 hardcode_shlibpath_var=no
11431 case $host_vendor in
11433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11434 hardcode_direct=yes # is this really true???
11437 ## LD is ld it makes a PLAMLIB
11438 ## CC just makes a GrossModule.
11439 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11440 reload_cmds='$CC -r -o $output$reload_objs'
11444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11445 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11448 runpath_var='LD_RUN_PATH'
11449 hardcode_shlibpath_var=no
11453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11454 hardcode_shlibpath_var=no
11455 export_dynamic_flag_spec='-Bexport'
11459 if test -d /usr/nec; then
11460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11461 hardcode_shlibpath_var=no
11462 runpath_var=LD_RUN_PATH
11463 hardcode_runpath_var=yes
11468 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11469 no_undefined_flag='$wl-z,text'
11470 archive_cmds_need_lc=no
11471 hardcode_shlibpath_var=no
11472 runpath_var='LD_RUN_PATH'
11474 if test yes = "$GCC"; then
11475 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11476 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11478 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11479 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11483 sysv5* | sco3.2v5* | sco5v6*)
11484 # Note: We CANNOT use -z defs as we might desire, because we do not
11485 # link with -lc, and that would cause any symbols used from libc to
11486 # always be unresolved, which means just about no library would
11487 # ever link correctly. If we're not using GNU ld we use -z text
11488 # though, which does catch some bad symbols but isn't as heavy-handed
11490 no_undefined_flag='$wl-z,text'
11491 allow_undefined_flag='$wl-z,nodefs'
11492 archive_cmds_need_lc=no
11493 hardcode_shlibpath_var=no
11494 hardcode_libdir_flag_spec='$wl-R,$libdir'
11495 hardcode_libdir_separator=':'
11496 link_all_deplibs=yes
11497 export_dynamic_flag_spec='$wl-Bexport'
11498 runpath_var='LD_RUN_PATH'
11500 if test yes = "$GCC"; then
11501 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11502 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11504 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11505 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11511 hardcode_libdir_flag_spec='-L$libdir'
11512 hardcode_shlibpath_var=no
11520 if test sni = "$host_vendor"; then
11522 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11523 export_dynamic_flag_spec='$wl-Blargedynsym'
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11530 $as_echo "$ld_shlibs" >&6; }
11531 test no = "$ld_shlibs" && can_build_shared=no
11533 with_gnu_ld=$with_gnu_ld
11550 # Do we need to explicitly link libc?
11552 case "x$archive_cmds_need_lc" in
11554 # Assume -lc should be added
11555 archive_cmds_need_lc=yes
11557 if test yes,yes = "$GCC,$enable_shared"; then
11558 case $archive_cmds in
11560 # FIXME: we may have to deal with multi-command sequences.
11563 # Test whether the compiler implicitly links with -lc since on some
11564 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11565 # to ld, don't add -lc before -lgcc.
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11567 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11568 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11569 $as_echo_n "(cached) " >&6
11572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11575 (eval $ac_compile) 2>&5
11577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11578 test $ac_status = 0; } 2>conftest.err; then
11581 libobjs=conftest.$ac_objext
11583 wl=$lt_prog_compiler_wl
11584 pic_flag=$lt_prog_compiler_pic
11590 lt_save_allow_undefined_flag=$allow_undefined_flag
11591 allow_undefined_flag=
11592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11593 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11596 test $ac_status = 0; }
11598 lt_cv_archive_cmds_need_lc=no
11600 lt_cv_archive_cmds_need_lc=yes
11602 allow_undefined_flag=$lt_save_allow_undefined_flag
11604 cat conftest.err 1>&5
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11610 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11611 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11770 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11772 if test yes = "$GCC"; then
11774 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11775 *) lt_awk_arg='/^libraries:/' ;;
11778 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11779 *) lt_sed_strip_eq='s|=/|/|g' ;;
11781 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11782 case $lt_search_path_spec in
11784 # if the path contains ";" then we assume it to be the separator
11785 # otherwise default to the standard path separator (i.e. ":") - it is
11786 # assumed that no part of a normal pathname contains ";" but that should
11787 # okay in the real world where ";" in dirpaths is itself problematic.
11788 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11791 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11794 # Ok, now we have the path, separated by spaces, we can step through it
11795 # and add multilib dir if necessary...
11796 lt_tmp_lt_search_path_spec=
11797 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11798 # ...but if some path component already ends with the multilib dir we assume
11799 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11800 case "$lt_multi_os_dir; $lt_search_path_spec " in
11801 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11805 for lt_sys_path in $lt_search_path_spec; do
11806 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11807 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11808 elif test -n "$lt_multi_os_dir"; then
11809 test -d "$lt_sys_path" && \
11810 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11813 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11814 BEGIN {RS = " "; FS = "/|\n";} {
11817 for (lt_i = NF; lt_i > 0; lt_i--) {
11818 if ($lt_i != "" && $lt_i != ".") {
11819 if ($lt_i == "..") {
11822 if (lt_count == 0) {
11823 lt_foo = "/" $lt_i lt_foo;
11830 if (lt_foo != "") { lt_freq[lt_foo]++; }
11831 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11833 # AWK program above erroneously prepends '/' to C:/dos/paths
11836 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11837 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11839 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11841 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11843 library_names_spec=
11844 libname_spec='lib$name'
11848 postuninstall_cmds=
11852 shlibpath_overrides_runpath=unknown
11854 dynamic_linker="$host_os ld.so"
11855 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11856 need_lib_prefix=unknown
11857 hardcode_into_libs=no
11859 # when you set need_version to no, make sure it does not cause -set_version
11860 # flags to be left without arguments
11861 need_version=unknown
11867 version_type=linux # correct to gnu/linux during the next big refactor
11868 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11869 shlibpath_var=LIBPATH
11871 # AIX 3 has no versioning support, so we append a major version to the name.
11872 soname_spec='$libname$release$shared_ext$major'
11876 version_type=linux # correct to gnu/linux during the next big refactor
11879 hardcode_into_libs=yes
11880 if test ia64 = "$host_cpu"; then
11881 # AIX 5 supports IA64
11882 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11883 shlibpath_var=LD_LIBRARY_PATH
11885 # With GCC up to 2.95.x, collect2 would create an import file
11886 # for dependence libraries. The import file would start with
11887 # the line '#! .'. This would cause the generated library to
11888 # depend on '.', always an invalid library. This was fixed in
11889 # development snapshots of GCC prior to 3.0.
11891 aix4 | aix4.[01] | aix4.[01].*)
11892 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11894 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11897 can_build_shared=no
11901 # Using Import Files as archive members, it is possible to support
11902 # filename-based versioning of shared library archives on AIX. While
11903 # this would work for both with and without runtime linking, it will
11904 # prevent static linking of such archives. So we do filename-based
11905 # shared library versioning with .so extension only, which is used
11906 # when both runtime linking and shared linking is enabled.
11907 # Unfortunately, runtime linking may impact performance, so we do
11908 # not want this to be the default eventually. Also, we use the
11909 # versioned .so libs for executables only if there is the -brtl
11910 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11911 # To allow for filename-based versioning support, we need to create
11912 # libNAME.so.V as an archive file, containing:
11913 # *) an Import File, referring to the versioned filename of the
11914 # archive as well as the shared archive member, telling the
11915 # bitwidth (32 or 64) of that shared object, and providing the
11916 # list of exported symbols of that shared object, eventually
11917 # decorated with the 'weak' keyword
11918 # *) the shared object with the F_LOADONLY flag set, to really avoid
11919 # it being seen by the linker.
11920 # At run time we better use the real file rather than another symlink,
11921 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11923 case $with_aix_soname,$aix_use_runtimelinking in
11924 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11925 # soname into executable. Probably we can add versioning support to
11926 # collect2, so additional links can be useful in future.
11927 aix,yes) # traditional libtool
11928 dynamic_linker='AIX unversionable lib.so'
11929 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11930 # instead of lib<name>.a to let people know that these are not
11931 # typical AIX shared libraries.
11932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11934 aix,no) # traditional AIX only
11935 dynamic_linker='AIX lib.a(lib.so.V)'
11936 # We preserve .a as extension for shared libraries through AIX4.2
11937 # and later when we are not doing run time linking.
11938 library_names_spec='$libname$release.a $libname.a'
11939 soname_spec='$libname$release$shared_ext$major'
11941 svr4,*) # full svr4 only
11942 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11943 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11944 # We do not specify a path in Import Files, so LIBPATH fires.
11945 shlibpath_overrides_runpath=yes
11947 *,yes) # both, prefer svr4
11948 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11949 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11950 # unpreferred sharedlib libNAME.a needs extra handling
11951 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"'
11952 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"'
11953 # We do not specify a path in Import Files, so LIBPATH fires.
11954 shlibpath_overrides_runpath=yes
11956 *,no) # both, prefer aix
11957 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11958 library_names_spec='$libname$release.a $libname.a'
11959 soname_spec='$libname$release$shared_ext$major'
11960 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11961 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)'
11962 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"'
11965 shlibpath_var=LIBPATH
11972 # Since July 2007 AmigaOS4 officially supports .so libraries.
11973 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11977 library_names_spec='$libname.ixlibrary $libname.a'
11978 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11979 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'
11985 library_names_spec='$libname$shared_ext'
11986 dynamic_linker="$host_os ld.so"
11987 shlibpath_var=LIBRARY_PATH
11991 version_type=linux # correct to gnu/linux during the next big refactor
11993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11994 soname_spec='$libname$release$shared_ext$major'
11995 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11996 shlibpath_var=LD_LIBRARY_PATH
11997 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11998 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11999 # the default ld.so.conf also contains /usr/contrib/lib and
12000 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12001 # libtool to hard-code these into programs
12004 cygwin* | mingw* | pw32* | cegcc*)
12005 version_type=windows
12010 case $GCC,$cc_basename in
12013 library_names_spec='$libname.dll.a'
12014 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12015 postinstall_cmds='base_file=`basename \$file`~
12016 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12017 dldir=$destdir/`dirname \$dlpath`~
12018 test -d \$dldir || mkdir -p \$dldir~
12019 $install_prog $dir/$dlname \$dldir/$dlname~
12020 chmod a+x \$dldir/$dlname~
12021 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12022 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12024 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12025 dlpath=$dir/\$dldll~
12027 shlibpath_overrides_runpath=yes
12031 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12032 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12034 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12037 # MinGW DLLs use traditional 'lib' prefix
12038 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12041 # pw32 DLLs use 'pw' prefix rather than 'lib'
12042 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12045 dynamic_linker='Win32 ld.exe'
12050 libname_spec='$name'
12051 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12052 library_names_spec='$libname.dll.lib'
12056 sys_lib_search_path_spec=
12059 for lt_path in $LIB
12062 # Let DOS variable expansion print the short 8.3 style file name.
12063 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12064 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12067 # Convert to MSYS style.
12068 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12071 # Convert to unix form, then to dos form, then back to unix form
12072 # but this time dos style (no spaces!) so that the unix form looks
12073 # like /cygdrive/c/PROGRA~1:/cygdr...
12074 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12075 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12076 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12079 sys_lib_search_path_spec=$LIB
12080 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12081 # It is most probably a Windows format PATH.
12082 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12084 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12086 # FIXME: find the short name or the path components, as spaces are
12087 # common. (e.g. "Program Files" -> "PROGRA~1")
12091 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12092 postinstall_cmds='base_file=`basename \$file`~
12093 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12094 dldir=$destdir/`dirname \$dlpath`~
12095 test -d \$dldir || mkdir -p \$dldir~
12096 $install_prog $dir/$dlname \$dldir/$dlname'
12097 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12098 dlpath=$dir/\$dldll~
12100 shlibpath_overrides_runpath=yes
12101 dynamic_linker='Win32 link.exe'
12105 # Assume MSVC wrapper
12106 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12107 dynamic_linker='Win32 ld.exe'
12110 # FIXME: first we should search . and the directory the executable is in
12114 darwin* | rhapsody*)
12115 dynamic_linker="$host_os dyld"
12116 version_type=darwin
12119 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12120 soname_spec='$libname$release$major$shared_ext'
12121 shlibpath_overrides_runpath=yes
12122 shlibpath_var=DYLD_LIBRARY_PATH
12123 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12125 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12126 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12130 version_type=linux # correct to gnu/linux during the next big refactor
12133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12134 soname_spec='$libname$release$shared_ext$major'
12135 shlibpath_var=LD_LIBRARY_PATH
12138 freebsd* | dragonfly*)
12139 # DragonFly does not have aout. When/if they implement a new
12140 # versioning mechanism, adjust this.
12141 if test -x /usr/bin/objformat; then
12142 objformat=`/usr/bin/objformat`
12145 freebsd[23].*) objformat=aout ;;
12146 *) objformat=elf ;;
12149 version_type=freebsd-$objformat
12150 case $version_type in
12152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12153 soname_spec='$libname$release$shared_ext$major'
12158 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12162 shlibpath_var=LD_LIBRARY_PATH
12165 shlibpath_overrides_runpath=yes
12167 freebsd3.[01]* | freebsdelf3.[01]*)
12168 shlibpath_overrides_runpath=yes
12169 hardcode_into_libs=yes
12171 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12172 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12173 shlibpath_overrides_runpath=no
12174 hardcode_into_libs=yes
12176 *) # from 4.6 on, and DragonFly
12177 shlibpath_overrides_runpath=yes
12178 hardcode_into_libs=yes
12184 version_type=linux # correct to gnu/linux during the next big refactor
12187 dynamic_linker="$host_os runtime_loader"
12188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12189 soname_spec='$libname$release$shared_ext$major'
12190 shlibpath_var=LIBRARY_PATH
12191 shlibpath_overrides_runpath=no
12192 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12193 hardcode_into_libs=yes
12196 hpux9* | hpux10* | hpux11*)
12197 # Give a soname corresponding to the major version so that dld.sl refuses to
12198 # link against other versions.
12205 hardcode_into_libs=yes
12206 dynamic_linker="$host_os dld.so"
12207 shlibpath_var=LD_LIBRARY_PATH
12208 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12210 soname_spec='$libname$release$shared_ext$major'
12211 if test 32 = "$HPUX_IA64_MODE"; then
12212 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12213 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12215 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12216 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12221 hardcode_into_libs=yes
12222 dynamic_linker="$host_os dld.sl"
12223 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12226 soname_spec='$libname$release$shared_ext$major'
12227 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12232 dynamic_linker="$host_os dld.sl"
12233 shlibpath_var=SHLIB_PATH
12234 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12235 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12236 soname_spec='$libname$release$shared_ext$major'
12239 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12240 postinstall_cmds='chmod 555 $lib'
12241 # or fails outright, so override atomically:
12242 install_override_mode=555
12246 version_type=linux # correct to gnu/linux during the next big refactor
12249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12250 soname_spec='$libname$release$shared_ext$major'
12251 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12252 shlibpath_var=LD_LIBRARY_PATH
12253 shlibpath_overrides_runpath=no
12254 hardcode_into_libs=yes
12257 irix5* | irix6* | nonstopux*)
12259 nonstopux*) version_type=nonstopux ;;
12261 if test yes = "$lt_cv_prog_gnu_ld"; then
12262 version_type=linux # correct to gnu/linux during the next big refactor
12269 soname_spec='$libname$release$shared_ext$major'
12270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12272 irix5* | nonstopux*)
12273 libsuff= shlibsuff=
12276 case $LD in # libtool.m4 will add one of these switches to LD
12277 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12278 libsuff= shlibsuff= libmagic=32-bit;;
12279 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12280 libsuff=32 shlibsuff=N32 libmagic=N32;;
12281 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12282 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12283 *) libsuff= shlibsuff= libmagic=never-match;;
12287 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12288 shlibpath_overrides_runpath=no
12289 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12290 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12291 hardcode_into_libs=yes
12294 # No shared lib support for Linux oldld, aout, or coff.
12295 linux*oldld* | linux*aout* | linux*coff*)
12300 version_type=none # Android doesn't support versioned libraries.
12303 library_names_spec='$libname$release$shared_ext'
12304 soname_spec='$libname$release$shared_ext'
12306 shlibpath_var=LD_LIBRARY_PATH
12307 shlibpath_overrides_runpath=yes
12309 # This implies no fast_install, which is unacceptable.
12310 # Some rework will be needed to allow for fast_install
12311 # before this can be enabled.
12312 hardcode_into_libs=yes
12314 dynamic_linker='Android linker'
12315 # Don't embed -rpath directories since the linker doesn't support them.
12316 hardcode_libdir_flag_spec='-L$libdir'
12319 # This must be glibc/ELF.
12320 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12321 version_type=linux # correct to gnu/linux during the next big refactor
12324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12325 soname_spec='$libname$release$shared_ext$major'
12326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12327 shlibpath_var=LD_LIBRARY_PATH
12328 shlibpath_overrides_runpath=no
12330 # Some binutils ld are patched to set DT_RUNPATH
12331 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12332 $as_echo_n "(cached) " >&6
12334 lt_cv_shlibpath_overrides_runpath=no
12335 save_LDFLAGS=$LDFLAGS
12336 save_libdir=$libdir
12337 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12338 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12350 if ac_fn_c_try_link "$LINENO"; then :
12351 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12352 lt_cv_shlibpath_overrides_runpath=yes
12355 rm -f core conftest.err conftest.$ac_objext \
12356 conftest$ac_exeext conftest.$ac_ext
12357 LDFLAGS=$save_LDFLAGS
12358 libdir=$save_libdir
12362 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12364 # This implies no fast_install, which is unacceptable.
12365 # Some rework will be needed to allow for fast_install
12366 # before this can be enabled.
12367 hardcode_into_libs=yes
12369 # Ideally, we could use ldconfig to report *all* directores which are
12370 # searched for libraries, however this is still not possible. Aside from not
12371 # being certain /sbin/ldconfig is available, command
12372 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12373 # even though it is searched at run-time. Try to do the best guess by
12374 # appending ld.so.conf contents (and includes) to the search path.
12375 if test -f /etc/ld.so.conf; then
12376 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' ' '`
12377 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12380 # We used to test for /lib/ld.so.1 and disable shared libraries on
12381 # powerpc, because MkLinux only supported shared libraries with the
12382 # GNU dynamic linker. Since this was broken with cross compilers,
12383 # most powerpc-linux boxes support dynamic linking these days and
12384 # people can always --disable-shared, the test was removed, and we
12385 # assume the GNU/Linux dynamic linker is in use.
12386 dynamic_linker='GNU/Linux ld.so'
12393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12394 soname_spec='${libname}${release}${shared_ext}$major'
12395 shlibpath_var=LD_LIBRARY_PATH
12396 shlibpath_overrides_runpath=no
12397 hardcode_into_libs=yes
12398 dynamic_linker='NetBSD ld.elf_so'
12405 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12406 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12408 dynamic_linker='NetBSD (a.out) ld.so'
12410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12411 soname_spec='$libname$release$shared_ext$major'
12412 dynamic_linker='NetBSD ld.elf_so'
12414 shlibpath_var=LD_LIBRARY_PATH
12415 shlibpath_overrides_runpath=yes
12416 hardcode_into_libs=yes
12420 version_type=linux # correct to gnu/linux during the next big refactor
12421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12422 shlibpath_var=LD_LIBRARY_PATH
12423 shlibpath_overrides_runpath=yes
12430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12431 soname_spec='$libname$release$shared_ext$major'
12432 shlibpath_var=LD_LIBRARY_PATH
12433 shlibpath_overrides_runpath=no
12434 hardcode_into_libs=yes
12435 dynamic_linker='ldqnx.so'
12438 openbsd* | bitrig*)
12440 sys_lib_dlsearch_path_spec=/usr/lib
12442 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12447 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12449 shlibpath_var=LD_LIBRARY_PATH
12450 shlibpath_overrides_runpath=yes
12454 libname_spec='$name'
12455 version_type=windows
12459 # OS/2 can only load a DLL with a base name of 8 characters or less.
12460 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12461 v=$($ECHO $release$versuffix | tr -d .-);
12462 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12463 $ECHO $n$v`$shared_ext'
12464 library_names_spec='${libname}_dll.$libext'
12465 dynamic_linker='OS/2 ld.exe'
12466 shlibpath_var=BEGINLIBPATH
12467 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12469 postinstall_cmds='base_file=`basename \$file`~
12470 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12471 dldir=$destdir/`dirname \$dlpath`~
12472 test -d \$dldir || mkdir -p \$dldir~
12473 $install_prog $dir/$dlname \$dldir/$dlname~
12474 chmod a+x \$dldir/$dlname~
12475 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12476 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12478 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12479 dlpath=$dir/\$dldll~
12483 osf3* | osf4* | osf5*)
12487 soname_spec='$libname$release$shared_ext$major'
12488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12489 shlibpath_var=LD_LIBRARY_PATH
12490 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12499 version_type=linux # correct to gnu/linux during the next big refactor
12502 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12503 soname_spec='$libname$release$shared_ext$major'
12504 shlibpath_var=LD_LIBRARY_PATH
12505 shlibpath_overrides_runpath=yes
12506 hardcode_into_libs=yes
12507 # ldd complains unless libraries are executable
12508 postinstall_cmds='chmod +x $lib'
12513 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12514 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12515 shlibpath_var=LD_LIBRARY_PATH
12516 shlibpath_overrides_runpath=yes
12517 if test yes = "$with_gnu_ld"; then
12524 version_type=linux # correct to gnu/linux during the next big refactor
12525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12526 soname_spec='$libname$release$shared_ext$major'
12527 shlibpath_var=LD_LIBRARY_PATH
12528 case $host_vendor in
12530 shlibpath_overrides_runpath=no
12532 runpath_var=LD_RUN_PATH
12540 shlibpath_overrides_runpath=no
12541 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12547 if test -d /usr/nec; then
12548 version_type=linux # correct to gnu/linux during the next big refactor
12549 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12550 soname_spec='$libname$shared_ext.$major'
12551 shlibpath_var=LD_LIBRARY_PATH
12555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12560 soname_spec='$libname$release$shared_ext$major'
12561 shlibpath_var=LD_LIBRARY_PATH
12562 shlibpath_overrides_runpath=yes
12563 hardcode_into_libs=yes
12564 if test yes = "$with_gnu_ld"; then
12565 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12567 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12570 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12574 sys_lib_dlsearch_path_spec='/usr/lib'
12578 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12579 version_type=linux # correct to gnu/linux during the next big refactor
12582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12583 shlibpath_var=LD_LIBRARY_PATH
12584 shlibpath_overrides_runpath=no
12585 hardcode_into_libs=yes
12589 version_type=linux # correct to gnu/linux during the next big refactor
12590 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12591 soname_spec='$libname$release$shared_ext$major'
12592 shlibpath_var=LD_LIBRARY_PATH
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12600 $as_echo "$dynamic_linker" >&6; }
12601 test no = "$dynamic_linker" && can_build_shared=no
12603 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12604 if test yes = "$GCC"; then
12605 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12608 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12609 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12612 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12613 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12616 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12617 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12619 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12620 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12622 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12623 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12722 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12724 if test -n "$hardcode_libdir_flag_spec" ||
12725 test -n "$runpath_var" ||
12726 test yes = "$hardcode_automatic"; then
12728 # We can hardcode non-existent directories.
12729 if test no != "$hardcode_direct" &&
12730 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12731 # have to relink, otherwise we might link with an installed library
12732 # when we should be linking with a yet-to-be-installed one
12733 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12734 test no != "$hardcode_minus_L"; then
12735 # Linking always hardcodes the temporary library directory.
12736 hardcode_action=relink
12738 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12739 hardcode_action=immediate
12742 # We cannot hardcode anything, or else we can only hardcode existing
12744 hardcode_action=unsupported
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12747 $as_echo "$hardcode_action" >&6; }
12749 if test relink = "$hardcode_action" ||
12750 test yes = "$inherit_rpath"; then
12751 # Fast installation is not supported
12752 enable_fast_install=no
12753 elif test yes = "$shlibpath_overrides_runpath" ||
12754 test no = "$enable_shared"; then
12755 # Fast installation is not necessary
12756 enable_fast_install=needless
12764 if test yes != "$enable_dlopen"; then
12765 enable_dlopen=unknown
12766 enable_dlopen_self=unknown
12767 enable_dlopen_self_static=unknown
12774 lt_cv_dlopen=load_add_on
12776 lt_cv_dlopen_self=yes
12779 mingw* | pw32* | cegcc*)
12780 lt_cv_dlopen=LoadLibrary
12785 lt_cv_dlopen=dlopen
12790 # if libdl is installed we need to link against it
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12792 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12793 if ${ac_cv_lib_dl_dlopen+:} false; then :
12794 $as_echo_n "(cached) " >&6
12796 ac_check_lib_save_LIBS=$LIBS
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12801 /* Override any GCC internal prototype to avoid an error.
12802 Use char because int might match the return type of a GCC
12803 builtin and then its argument prototype would still apply. */
12816 if ac_fn_c_try_link "$LINENO"; then :
12817 ac_cv_lib_dl_dlopen=yes
12819 ac_cv_lib_dl_dlopen=no
12821 rm -f core conftest.err conftest.$ac_objext \
12822 conftest$ac_exeext conftest.$ac_ext
12823 LIBS=$ac_check_lib_save_LIBS
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12826 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12827 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12828 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12833 lt_cv_dlopen_self=yes
12840 # Don't try to run any link tests for TPF. We know it's impossible
12841 # because TPF is a cross-compiler, and we know how we open DSOs.
12842 lt_cv_dlopen=dlopen
12844 lt_cv_dlopen_self=no
12848 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12849 if test "x$ac_cv_func_shl_load" = xyes; then :
12850 lt_cv_dlopen=shl_load
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12853 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12854 if ${ac_cv_lib_dld_shl_load+:} false; then :
12855 $as_echo_n "(cached) " >&6
12857 ac_check_lib_save_LIBS=$LIBS
12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h. */
12862 /* Override any GCC internal prototype to avoid an error.
12863 Use char because int might match the return type of a GCC
12864 builtin and then its argument prototype would still apply. */
12872 return shl_load ();
12877 if ac_fn_c_try_link "$LINENO"; then :
12878 ac_cv_lib_dld_shl_load=yes
12880 ac_cv_lib_dld_shl_load=no
12882 rm -f core conftest.err conftest.$ac_objext \
12883 conftest$ac_exeext conftest.$ac_ext
12884 LIBS=$ac_check_lib_save_LIBS
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12887 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12888 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12889 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12891 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12892 if test "x$ac_cv_func_dlopen" = xyes; then :
12893 lt_cv_dlopen=dlopen
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12896 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12897 if ${ac_cv_lib_dl_dlopen+:} false; then :
12898 $as_echo_n "(cached) " >&6
12900 ac_check_lib_save_LIBS=$LIBS
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12905 /* Override any GCC internal prototype to avoid an error.
12906 Use char because int might match the return type of a GCC
12907 builtin and then its argument prototype would still apply. */
12920 if ac_fn_c_try_link "$LINENO"; then :
12921 ac_cv_lib_dl_dlopen=yes
12923 ac_cv_lib_dl_dlopen=no
12925 rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12927 LIBS=$ac_check_lib_save_LIBS
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12930 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12931 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12932 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12935 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12936 if ${ac_cv_lib_svld_dlopen+:} false; then :
12937 $as_echo_n "(cached) " >&6
12939 ac_check_lib_save_LIBS=$LIBS
12940 LIBS="-lsvld $LIBS"
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12944 /* Override any GCC internal prototype to avoid an error.
12945 Use char because int might match the return type of a GCC
12946 builtin and then its argument prototype would still apply. */
12959 if ac_fn_c_try_link "$LINENO"; then :
12960 ac_cv_lib_svld_dlopen=yes
12962 ac_cv_lib_svld_dlopen=no
12964 rm -f core conftest.err conftest.$ac_objext \
12965 conftest$ac_exeext conftest.$ac_ext
12966 LIBS=$ac_check_lib_save_LIBS
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12969 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12970 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12971 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12974 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12975 if ${ac_cv_lib_dld_dld_link+:} false; then :
12976 $as_echo_n "(cached) " >&6
12978 ac_check_lib_save_LIBS=$LIBS
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12983 /* Override any GCC internal prototype to avoid an error.
12984 Use char because int might match the return type of a GCC
12985 builtin and then its argument prototype would still apply. */
12993 return dld_link ();
12998 if ac_fn_c_try_link "$LINENO"; then :
12999 ac_cv_lib_dld_dld_link=yes
13001 ac_cv_lib_dld_dld_link=no
13003 rm -f core conftest.err conftest.$ac_objext \
13004 conftest$ac_exeext conftest.$ac_ext
13005 LIBS=$ac_check_lib_save_LIBS
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13008 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13009 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13010 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13031 if test no = "$lt_cv_dlopen"; then
13037 case $lt_cv_dlopen in
13039 save_CPPFLAGS=$CPPFLAGS
13040 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13042 save_LDFLAGS=$LDFLAGS
13043 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13046 LIBS="$lt_cv_dlopen_libs $LIBS"
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13049 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13050 if ${lt_cv_dlopen_self+:} false; then :
13051 $as_echo_n "(cached) " >&6
13053 if test yes = "$cross_compiling"; then :
13054 lt_cv_dlopen_self=cross
13056 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13057 lt_status=$lt_dlunknown
13058 cat > conftest.$ac_ext <<_LT_EOF
13059 #line $LINENO "configure"
13060 #include "confdefs.h"
13069 # define LT_DLGLOBAL RTLD_GLOBAL
13072 # define LT_DLGLOBAL DL_GLOBAL
13074 # define LT_DLGLOBAL 0
13078 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13079 find out it does not work in some platform. */
13080 #ifndef LT_DLLAZY_OR_NOW
13082 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13085 # define LT_DLLAZY_OR_NOW DL_LAZY
13088 # define LT_DLLAZY_OR_NOW RTLD_NOW
13091 # define LT_DLLAZY_OR_NOW DL_NOW
13093 # define LT_DLLAZY_OR_NOW 0
13100 /* When -fvisibility=hidden is used, assume the code has been annotated
13101 correspondingly for the symbols needed. */
13102 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13103 int fnord () __attribute__((visibility("default")));
13106 int fnord () { return 42; }
13109 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13110 int status = $lt_dlunknown;
13114 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13117 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13118 else puts (dlerror ());
13120 /* dlclose (self); */
13128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13129 (eval $ac_link) 2>&5
13131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13132 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13133 (./conftest; exit; ) >&5 2>/dev/null
13135 case x$lt_status in
13136 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13137 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13138 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13141 # compilation failed
13142 lt_cv_dlopen_self=no
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13150 $as_echo "$lt_cv_dlopen_self" >&6; }
13152 if test yes = "$lt_cv_dlopen_self"; then
13153 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13155 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13156 if ${lt_cv_dlopen_self_static+:} false; then :
13157 $as_echo_n "(cached) " >&6
13159 if test yes = "$cross_compiling"; then :
13160 lt_cv_dlopen_self_static=cross
13162 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13163 lt_status=$lt_dlunknown
13164 cat > conftest.$ac_ext <<_LT_EOF
13165 #line $LINENO "configure"
13166 #include "confdefs.h"
13175 # define LT_DLGLOBAL RTLD_GLOBAL
13178 # define LT_DLGLOBAL DL_GLOBAL
13180 # define LT_DLGLOBAL 0
13184 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13185 find out it does not work in some platform. */
13186 #ifndef LT_DLLAZY_OR_NOW
13188 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13191 # define LT_DLLAZY_OR_NOW DL_LAZY
13194 # define LT_DLLAZY_OR_NOW RTLD_NOW
13197 # define LT_DLLAZY_OR_NOW DL_NOW
13199 # define LT_DLLAZY_OR_NOW 0
13206 /* When -fvisibility=hidden is used, assume the code has been annotated
13207 correspondingly for the symbols needed. */
13208 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13209 int fnord () __attribute__((visibility("default")));
13212 int fnord () { return 42; }
13215 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13216 int status = $lt_dlunknown;
13220 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13223 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13224 else puts (dlerror ());
13226 /* dlclose (self); */
13234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13235 (eval $ac_link) 2>&5
13237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13238 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13239 (./conftest; exit; ) >&5 2>/dev/null
13241 case x$lt_status in
13242 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13243 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13244 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13247 # compilation failed
13248 lt_cv_dlopen_self_static=no
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13256 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13259 CPPFLAGS=$save_CPPFLAGS
13260 LDFLAGS=$save_LDFLAGS
13265 case $lt_cv_dlopen_self in
13266 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13267 *) enable_dlopen_self=unknown ;;
13270 case $lt_cv_dlopen_self_static in
13271 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13272 *) enable_dlopen_self_static=unknown ;;
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13295 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13296 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13297 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13298 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13300 $as_echo "yes" >&6; }
13302 # FIXME - insert some real tests, host_os isn't really good enough
13305 if test -n "$STRIP"; then
13306 striplib="$STRIP -x"
13307 old_striplib="$STRIP -S"
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13309 $as_echo "yes" >&6; }
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13312 $as_echo "no" >&6; }
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13317 $as_echo "no" >&6; }
13333 # Report what library types will actually be built
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13335 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13337 $as_echo "$can_build_shared" >&6; }
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13340 $as_echo_n "checking whether to build shared libraries... " >&6; }
13341 test no = "$can_build_shared" && enable_shared=no
13343 # On AIX, shared libraries and static libraries use the same namespace, and
13344 # are all built from PIC.
13347 test yes = "$enable_shared" && enable_static=no
13348 if test -n "$RANLIB"; then
13349 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13350 postinstall_cmds='$RANLIB $lib'
13355 if test ia64 != "$host_cpu"; then
13356 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13357 yes,aix,yes) ;; # shared object as lib.so file only
13358 yes,svr4,*) ;; # shared object as lib.so archive member only
13359 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13365 $as_echo "$enable_shared" >&6; }
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13368 $as_echo_n "checking whether to build static libraries... " >&6; }
13369 # Make sure either enable_shared or enable_static is yes.
13370 test yes = "$enable_shared" || enable_static=yes
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13372 $as_echo "$enable_static" >&6; }
13379 ac_cpp='$CPP $CPPFLAGS'
13380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13400 ac_config_commands="$ac_config_commands libtool"
13405 # Only expand once:
13409 # Check for programs
13411 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
13412 if test "x$ac_cv_header_minix_config_h" = xyes; then :
13419 if test "$MINIX" = yes; then
13421 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
13424 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
13427 $as_echo "#define _MINIX 1" >>confdefs.h
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
13433 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
13434 if ${ac_cv_safe_to_define___extensions__+:} false; then :
13435 $as_echo_n "(cached) " >&6
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13440 # define __EXTENSIONS__ 1
13441 $ac_includes_default
13450 if ac_fn_c_try_compile "$LINENO"; then :
13451 ac_cv_safe_to_define___extensions__=yes
13453 ac_cv_safe_to_define___extensions__=no
13455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
13458 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
13459 test $ac_cv_safe_to_define___extensions__ = yes &&
13460 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
13462 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
13464 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
13466 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
13468 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
13472 ac_cpp='$CPP $CPPFLAGS'
13473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13476 if test -n "$ac_tool_prefix"; then
13477 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13478 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13480 $as_echo_n "checking for $ac_word... " >&6; }
13481 if ${ac_cv_prog_CC+:} false; then :
13482 $as_echo_n "(cached) " >&6
13484 if test -n "$CC"; then
13485 ac_cv_prog_CC="$CC" # Let the user override the test.
13487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13488 for as_dir in $PATH
13491 test -z "$as_dir" && as_dir=.
13492 for ac_exec_ext in '' $ac_executable_extensions; do
13493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13494 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13505 if test -n "$CC"; then
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13507 $as_echo "$CC" >&6; }
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13510 $as_echo "no" >&6; }
13515 if test -z "$ac_cv_prog_CC"; then
13517 # Extract the first word of "gcc", so it can be a program name with args.
13518 set dummy gcc; ac_word=$2
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13520 $as_echo_n "checking for $ac_word... " >&6; }
13521 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13522 $as_echo_n "(cached) " >&6
13524 if test -n "$ac_ct_CC"; then
13525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528 for as_dir in $PATH
13531 test -z "$as_dir" && as_dir=.
13532 for ac_exec_ext in '' $ac_executable_extensions; do
13533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13534 ac_cv_prog_ac_ct_CC="gcc"
13535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13545 if test -n "$ac_ct_CC"; then
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13547 $as_echo "$ac_ct_CC" >&6; }
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13550 $as_echo "no" >&6; }
13553 if test "x$ac_ct_CC" = x; then
13556 case $cross_compiling:$ac_tool_warned in
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13560 ac_tool_warned=yes ;;
13565 CC="$ac_cv_prog_CC"
13568 if test -z "$CC"; then
13569 if test -n "$ac_tool_prefix"; then
13570 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13571 set dummy ${ac_tool_prefix}cc; ac_word=$2
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13573 $as_echo_n "checking for $ac_word... " >&6; }
13574 if ${ac_cv_prog_CC+:} false; then :
13575 $as_echo_n "(cached) " >&6
13577 if test -n "$CC"; then
13578 ac_cv_prog_CC="$CC" # Let the user override the test.
13580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13581 for as_dir in $PATH
13584 test -z "$as_dir" && as_dir=.
13585 for ac_exec_ext in '' $ac_executable_extensions; do
13586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13587 ac_cv_prog_CC="${ac_tool_prefix}cc"
13588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13598 if test -n "$CC"; then
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13600 $as_echo "$CC" >&6; }
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13603 $as_echo "no" >&6; }
13609 if test -z "$CC"; then
13610 # Extract the first word of "cc", so it can be a program name with args.
13611 set dummy cc; ac_word=$2
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13613 $as_echo_n "checking for $ac_word... " >&6; }
13614 if ${ac_cv_prog_CC+:} false; then :
13615 $as_echo_n "(cached) " >&6
13617 if test -n "$CC"; then
13618 ac_cv_prog_CC="$CC" # Let the user override the test.
13620 ac_prog_rejected=no
13621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13622 for as_dir in $PATH
13625 test -z "$as_dir" && as_dir=.
13626 for ac_exec_ext in '' $ac_executable_extensions; do
13627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13628 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13629 ac_prog_rejected=yes
13633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13640 if test $ac_prog_rejected = yes; then
13641 # We found a bogon in the path, so make sure we never use it.
13642 set dummy $ac_cv_prog_CC
13644 if test $# != 0; then
13645 # We chose a different compiler from the bogus one.
13646 # However, it has the same basename, so the bogon will be chosen
13647 # first if we set CC to just the basename; use the full file name.
13649 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13655 if test -n "$CC"; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13657 $as_echo "$CC" >&6; }
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660 $as_echo "no" >&6; }
13665 if test -z "$CC"; then
13666 if test -n "$ac_tool_prefix"; then
13667 for ac_prog in cl.exe
13669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13672 $as_echo_n "checking for $ac_word... " >&6; }
13673 if ${ac_cv_prog_CC+:} false; then :
13674 $as_echo_n "(cached) " >&6
13676 if test -n "$CC"; then
13677 ac_cv_prog_CC="$CC" # Let the user override the test.
13679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13680 for as_dir in $PATH
13683 test -z "$as_dir" && as_dir=.
13684 for ac_exec_ext in '' $ac_executable_extensions; do
13685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13686 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13697 if test -n "$CC"; then
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13699 $as_echo "$CC" >&6; }
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13702 $as_echo "no" >&6; }
13706 test -n "$CC" && break
13709 if test -z "$CC"; then
13711 for ac_prog in cl.exe
13713 # Extract the first word of "$ac_prog", so it can be a program name with args.
13714 set dummy $ac_prog; ac_word=$2
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13716 $as_echo_n "checking for $ac_word... " >&6; }
13717 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13718 $as_echo_n "(cached) " >&6
13720 if test -n "$ac_ct_CC"; then
13721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13724 for as_dir in $PATH
13727 test -z "$as_dir" && as_dir=.
13728 for ac_exec_ext in '' $ac_executable_extensions; do
13729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13730 ac_cv_prog_ac_ct_CC="$ac_prog"
13731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13741 if test -n "$ac_ct_CC"; then
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13743 $as_echo "$ac_ct_CC" >&6; }
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746 $as_echo "no" >&6; }
13750 test -n "$ac_ct_CC" && break
13753 if test "x$ac_ct_CC" = x; then
13756 case $cross_compiling:$ac_tool_warned in
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13760 ac_tool_warned=yes ;;
13769 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13771 as_fn_error $? "no acceptable C compiler found in \$PATH
13772 See \`config.log' for more details" "$LINENO" 5; }
13774 # Provide some information about the compiler.
13775 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13778 for ac_option in --version -v -V -qversion; do
13779 { { ac_try="$ac_compiler $ac_option >&5"
13780 case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13785 $as_echo "$ac_try_echo"; } >&5
13786 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13788 if test -s conftest.err; then
13790 ... rest of stderr output deleted ...
13791 10q' conftest.err >conftest.er1
13792 cat conftest.er1 >&5
13794 rm -f conftest.er1 conftest.err
13795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13796 test $ac_status = 0; }
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13800 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13801 if ${ac_cv_c_compiler_gnu+:} false; then :
13802 $as_echo_n "(cached) " >&6
13804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805 /* end confdefs.h. */
13818 if ac_fn_c_try_compile "$LINENO"; then :
13819 ac_compiler_gnu=yes
13823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13828 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13829 if test $ac_compiler_gnu = yes; then
13834 ac_test_CFLAGS=${CFLAGS+set}
13835 ac_save_CFLAGS=$CFLAGS
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13837 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13838 if ${ac_cv_prog_cc_g+:} false; then :
13839 $as_echo_n "(cached) " >&6
13841 ac_save_c_werror_flag=$ac_c_werror_flag
13842 ac_c_werror_flag=yes
13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13856 if ac_fn_c_try_compile "$LINENO"; then :
13857 ac_cv_prog_cc_g=yes
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13871 if ac_fn_c_try_compile "$LINENO"; then :
13874 ac_c_werror_flag=$ac_save_c_werror_flag
13876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877 /* end confdefs.h. */
13887 if ac_fn_c_try_compile "$LINENO"; then :
13888 ac_cv_prog_cc_g=yes
13890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13895 ac_c_werror_flag=$ac_save_c_werror_flag
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13898 $as_echo "$ac_cv_prog_cc_g" >&6; }
13899 if test "$ac_test_CFLAGS" = set; then
13900 CFLAGS=$ac_save_CFLAGS
13901 elif test $ac_cv_prog_cc_g = yes; then
13902 if test "$GCC" = yes; then
13908 if test "$GCC" = yes; then
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13915 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13916 if ${ac_cv_prog_cc_c89+:} false; then :
13917 $as_echo_n "(cached) " >&6
13919 ac_cv_prog_cc_c89=no
13921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922 /* end confdefs.h. */
13923 #include <stdarg.h>
13926 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13927 struct buf { int x; };
13928 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13929 static char *e (p, i)
13935 static char *f (char * (*g) (char **, int), char **p, ...)
13940 s = g (p, va_arg (v,int));
13945 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13946 function prototypes and stuff, but not '\xHH' hex character constants.
13947 These don't provoke an error unfortunately, instead are silently treated
13948 as 'x'. The following induces an error, until -std is added to get
13949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13950 array size at least. It's necessary to write '\x00'==0 to get something
13951 that's true only with -std. */
13952 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13954 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13955 inside strings and character constants. */
13957 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13959 int test (int i, double x);
13960 struct s1 {int (*f) (int a);};
13961 struct s2 {int (*f) (double a);};
13962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13968 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13973 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13976 CC="$ac_save_CC $ac_arg"
13977 if ac_fn_c_try_compile "$LINENO"; then :
13978 ac_cv_prog_cc_c89=$ac_arg
13980 rm -f core conftest.err conftest.$ac_objext
13981 test "x$ac_cv_prog_cc_c89" != "xno" && break
13983 rm -f conftest.$ac_ext
13988 case "x$ac_cv_prog_cc_c89" in
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13991 $as_echo "none needed" >&6; } ;;
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13994 $as_echo "unsupported" >&6; } ;;
13996 CC="$CC $ac_cv_prog_cc_c89"
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13998 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14000 if test "x$ac_cv_prog_cc_c89" != xno; then :
14005 ac_cpp='$CPP $CPPFLAGS'
14006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14011 ac_cpp='$CPP $CPPFLAGS'
14012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14016 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
14017 if ${am_cv_prog_cc_c_o+:} false; then :
14018 $as_echo_n "(cached) " >&6
14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h. */
14031 # Make sure it works both with $CC and with simple cc.
14032 # Following AC_PROG_CC_C_O, we do the test twice because some
14033 # compilers refuse to overwrite an existing .o file with -o,
14034 # though they will create one.
14035 am_cv_prog_cc_c_o=yes
14036 for am_i in 1 2; do
14037 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14038 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } \
14042 && test -f conftest2.$ac_objext; then
14045 am_cv_prog_cc_c_o=no
14049 rm -f core conftest*
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14053 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14054 if test "$am_cv_prog_cc_c_o" != yes; then
14055 # Losing compiler, so override with the script.
14056 # FIXME: It is wrong to rewrite CC.
14057 # But if we don't then we get into trouble of one sort or another.
14058 # A longer-term fix would be to have automake use am__CC in this case,
14059 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14060 CC="$am_aux_dir/compile $CC"
14063 ac_cpp='$CPP $CPPFLAGS'
14064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14069 depcc="$CC" am_compiler_list=
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14072 $as_echo_n "checking dependency style of $depcc... " >&6; }
14073 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14074 $as_echo_n "(cached) " >&6
14076 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14077 # We make a subdir and do the tests there. Otherwise we can end up
14078 # making bogus files that we don't know about and never remove. For
14079 # instance it was reported that on HP-UX the gcc test will end up
14080 # making a dummy file named 'D' -- because '-MD' means "put the output
14082 rm -rf conftest.dir
14084 # Copy depcomp to subdir because otherwise we won't find it if we're
14085 # using a relative directory.
14086 cp "$am_depcomp" conftest.dir
14088 # We will build objects and dependencies in a subdirectory because
14089 # it helps to detect inapplicable dependency modes. For instance
14090 # both Tru64's cc and ICC support -MD to output dependencies as a
14091 # side effect of compilation, but ICC will put the dependencies in
14092 # the current directory while Tru64 will put them in the object
14096 am_cv_CC_dependencies_compiler_type=none
14097 if test "$am_compiler_list" = ""; then
14098 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14100 am__universal=false
14101 case " $depcc " in #(
14102 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14105 for depmode in $am_compiler_list; do
14106 # Setup a source with many dependencies, because some compilers
14107 # like to wrap large dependency lists on column 80 (with \), and
14108 # we should not choose a depcomp mode which is confused by this.
14110 # We need to recreate these files for each test, as the compiler may
14111 # overwrite some of them when testing with obscure command lines.
14112 # This happens at least with the AIX C compiler.
14114 for i in 1 2 3 4 5 6; do
14115 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14116 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14117 # Solaris 10 /bin/sh.
14118 echo '/* dummy */' > sub/conftst$i.h
14120 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14122 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14123 # mode. It turns out that the SunPro C++ compiler does not properly
14124 # handle '-M -o', and we need to detect this. Also, some Intel
14125 # versions had trouble with output in subdirs.
14126 am__obj=sub/conftest.${OBJEXT-o}
14127 am__minus_obj="-o $am__obj"
14130 # This depmode causes a compiler race in universal mode.
14131 test "$am__universal" = false || continue
14134 # After this tag, mechanisms are not by side-effect, so they'll
14135 # only be used when explicitly requested.
14136 if test "x$enable_dependency_tracking" = xyes; then
14142 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14143 # This compiler won't grok '-c -o', but also, the minuso test has
14144 # not run yet. These depmodes are late enough in the game, and
14145 # so weak that their functioning should not be impacted.
14146 am__obj=conftest.${OBJEXT-o}
14151 if depmode=$depmode \
14152 source=sub/conftest.c object=$am__obj \
14153 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14154 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14155 >/dev/null 2>conftest.err &&
14156 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14157 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14158 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14159 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14160 # icc doesn't choke on unknown options, it will just issue warnings
14161 # or remarks (even with -Werror). So we grep stderr for any message
14162 # that says an option was ignored or not supported.
14163 # When given -MP, icc 7.0 and 7.1 complain thusly:
14164 # icc: Command line warning: ignoring option '-M'; no argument required
14165 # The diagnosis changed in icc 8.0:
14166 # icc: Command line remark: option '-MP' not supported
14167 if (grep 'ignoring option' conftest.err ||
14168 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14169 am_cv_CC_dependencies_compiler_type=$depmode
14176 rm -rf conftest.dir
14178 am_cv_CC_dependencies_compiler_type=none
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14183 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14184 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14187 test "x$enable_dependency_tracking" != xno \
14188 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14189 am__fastdepCC_TRUE=
14190 am__fastdepCC_FALSE='#'
14192 am__fastdepCC_TRUE='#'
14193 am__fastdepCC_FALSE=
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14198 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14199 if ${ac_cv_prog_cc_c99+:} false; then :
14200 $as_echo_n "(cached) " >&6
14202 ac_cv_prog_cc_c99=no
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14206 #include <stdarg.h>
14207 #include <stdbool.h>
14208 #include <stdlib.h>
14212 // Check varargs macros. These examples are taken from C99 6.10.3.5.
14213 #define debug(...) fprintf (stderr, __VA_ARGS__)
14214 #define showlist(...) puts (#__VA_ARGS__)
14215 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14217 test_varargs_macros (void)
14222 debug ("X = %d\n", x);
14223 showlist (The first, second, and third items.);
14224 report (x>y, "x is %d but y is %d", x, y);
14227 // Check long long types.
14228 #define BIG64 18446744073709551615ull
14229 #define BIG32 4294967295ul
14230 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14232 your preprocessor is broken;
14236 your preprocessor is broken;
14238 static long long int bignum = -9223372036854775807LL;
14239 static unsigned long long int ubignum = BIG64;
14241 struct incomplete_array
14247 struct named_init {
14249 const wchar_t *name;
14253 typedef const char *ccp;
14256 test_restrict (ccp restrict text)
14258 // See if C++-style comments work.
14259 // Iterate through items via the restricted pointer.
14260 // Also check for declarations in for loops.
14261 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14266 // Check varargs and va_copy.
14268 test_varargs (const char *format, ...)
14271 va_start (args, format);
14273 va_copy (args_copy, args);
14283 case 's': // string
14284 str = va_arg (args_copy, const char *);
14287 number = va_arg (args_copy, int);
14290 fnumber = va_arg (args_copy, double);
14296 va_end (args_copy);
14305 _Bool success = false;
14308 if (test_restrict ("String literal") == 0)
14310 char *restrict newvar = "Another string";
14313 test_varargs ("s, d' f .", "string", 65, 34.234);
14314 test_varargs_macros ();
14316 // Check flexible array members.
14317 struct incomplete_array *ia =
14318 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14320 for (int i = 0; i < ia->datasize; ++i)
14321 ia->data[i] = i * 1.234;
14323 // Check named initializers.
14324 struct named_init ni = {
14326 .name = L"Test wide string",
14327 .average = 543.34343,
14332 int dynamic_array[ni.number];
14333 dynamic_array[ni.number - 1] = 543;
14335 // work around unused variable warnings
14336 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14337 || dynamic_array[ni.number - 1] != 543);
14343 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14345 CC="$ac_save_CC $ac_arg"
14346 if ac_fn_c_try_compile "$LINENO"; then :
14347 ac_cv_prog_cc_c99=$ac_arg
14349 rm -f core conftest.err conftest.$ac_objext
14350 test "x$ac_cv_prog_cc_c99" != "xno" && break
14352 rm -f conftest.$ac_ext
14357 case "x$ac_cv_prog_cc_c99" in
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14360 $as_echo "none needed" >&6; } ;;
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14363 $as_echo "unsupported" >&6; } ;;
14365 CC="$CC $ac_cv_prog_cc_c99"
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14367 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14369 if test "x$ac_cv_prog_cc_c99" != xno; then :
14376 ac_cpp='$CXXCPP $CPPFLAGS'
14377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14380 if test -z "$CXX"; then
14381 if test -n "$CCC"; then
14384 if test -n "$ac_tool_prefix"; then
14385 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14390 $as_echo_n "checking for $ac_word... " >&6; }
14391 if ${ac_cv_prog_CXX+:} false; then :
14392 $as_echo_n "(cached) " >&6
14394 if test -n "$CXX"; then
14395 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14398 for as_dir in $PATH
14401 test -z "$as_dir" && as_dir=.
14402 for ac_exec_ext in '' $ac_executable_extensions; do
14403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14404 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14414 CXX=$ac_cv_prog_CXX
14415 if test -n "$CXX"; then
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14417 $as_echo "$CXX" >&6; }
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14420 $as_echo "no" >&6; }
14424 test -n "$CXX" && break
14427 if test -z "$CXX"; then
14429 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14431 # Extract the first word of "$ac_prog", so it can be a program name with args.
14432 set dummy $ac_prog; ac_word=$2
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14434 $as_echo_n "checking for $ac_word... " >&6; }
14435 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14436 $as_echo_n "(cached) " >&6
14438 if test -n "$ac_ct_CXX"; then
14439 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442 for as_dir in $PATH
14445 test -z "$as_dir" && as_dir=.
14446 for ac_exec_ext in '' $ac_executable_extensions; do
14447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14448 ac_cv_prog_ac_ct_CXX="$ac_prog"
14449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14458 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14459 if test -n "$ac_ct_CXX"; then
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14461 $as_echo "$ac_ct_CXX" >&6; }
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14464 $as_echo "no" >&6; }
14468 test -n "$ac_ct_CXX" && break
14471 if test "x$ac_ct_CXX" = x; then
14474 case $cross_compiling:$ac_tool_warned in
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14478 ac_tool_warned=yes ;;
14486 # Provide some information about the compiler.
14487 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14490 for ac_option in --version -v -V -qversion; do
14491 { { ac_try="$ac_compiler $ac_option >&5"
14492 case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14497 $as_echo "$ac_try_echo"; } >&5
14498 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14500 if test -s conftest.err; then
14502 ... rest of stderr output deleted ...
14503 10q' conftest.err >conftest.er1
14504 cat conftest.er1 >&5
14506 rm -f conftest.er1 conftest.err
14507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14508 test $ac_status = 0; }
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14512 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14513 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14514 $as_echo_n "(cached) " >&6
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14530 if ac_fn_cxx_try_compile "$LINENO"; then :
14531 ac_compiler_gnu=yes
14535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14536 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14540 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14541 if test $ac_compiler_gnu = yes; then
14546 ac_test_CXXFLAGS=${CXXFLAGS+set}
14547 ac_save_CXXFLAGS=$CXXFLAGS
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14549 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14550 if ${ac_cv_prog_cxx_g+:} false; then :
14551 $as_echo_n "(cached) " >&6
14553 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14554 ac_cxx_werror_flag=yes
14555 ac_cv_prog_cxx_g=no
14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14568 if ac_fn_cxx_try_compile "$LINENO"; then :
14569 ac_cv_prog_cxx_g=yes
14572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h. */
14583 if ac_fn_cxx_try_compile "$LINENO"; then :
14586 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h. */
14599 if ac_fn_cxx_try_compile "$LINENO"; then :
14600 ac_cv_prog_cxx_g=yes
14602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14607 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14610 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14611 if test "$ac_test_CXXFLAGS" = set; then
14612 CXXFLAGS=$ac_save_CXXFLAGS
14613 elif test $ac_cv_prog_cxx_g = yes; then
14614 if test "$GXX" = yes; then
14620 if test "$GXX" = yes; then
14627 ac_cpp='$CPP $CPPFLAGS'
14628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14632 depcc="$CXX" am_compiler_list=
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14635 $as_echo_n "checking dependency style of $depcc... " >&6; }
14636 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14637 $as_echo_n "(cached) " >&6
14639 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14640 # We make a subdir and do the tests there. Otherwise we can end up
14641 # making bogus files that we don't know about and never remove. For
14642 # instance it was reported that on HP-UX the gcc test will end up
14643 # making a dummy file named 'D' -- because '-MD' means "put the output
14645 rm -rf conftest.dir
14647 # Copy depcomp to subdir because otherwise we won't find it if we're
14648 # using a relative directory.
14649 cp "$am_depcomp" conftest.dir
14651 # We will build objects and dependencies in a subdirectory because
14652 # it helps to detect inapplicable dependency modes. For instance
14653 # both Tru64's cc and ICC support -MD to output dependencies as a
14654 # side effect of compilation, but ICC will put the dependencies in
14655 # the current directory while Tru64 will put them in the object
14659 am_cv_CXX_dependencies_compiler_type=none
14660 if test "$am_compiler_list" = ""; then
14661 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14663 am__universal=false
14664 case " $depcc " in #(
14665 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14668 for depmode in $am_compiler_list; do
14669 # Setup a source with many dependencies, because some compilers
14670 # like to wrap large dependency lists on column 80 (with \), and
14671 # we should not choose a depcomp mode which is confused by this.
14673 # We need to recreate these files for each test, as the compiler may
14674 # overwrite some of them when testing with obscure command lines.
14675 # This happens at least with the AIX C compiler.
14677 for i in 1 2 3 4 5 6; do
14678 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14679 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14680 # Solaris 10 /bin/sh.
14681 echo '/* dummy */' > sub/conftst$i.h
14683 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14685 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14686 # mode. It turns out that the SunPro C++ compiler does not properly
14687 # handle '-M -o', and we need to detect this. Also, some Intel
14688 # versions had trouble with output in subdirs.
14689 am__obj=sub/conftest.${OBJEXT-o}
14690 am__minus_obj="-o $am__obj"
14693 # This depmode causes a compiler race in universal mode.
14694 test "$am__universal" = false || continue
14697 # After this tag, mechanisms are not by side-effect, so they'll
14698 # only be used when explicitly requested.
14699 if test "x$enable_dependency_tracking" = xyes; then
14705 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14706 # This compiler won't grok '-c -o', but also, the minuso test has
14707 # not run yet. These depmodes are late enough in the game, and
14708 # so weak that their functioning should not be impacted.
14709 am__obj=conftest.${OBJEXT-o}
14714 if depmode=$depmode \
14715 source=sub/conftest.c object=$am__obj \
14716 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14717 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14718 >/dev/null 2>conftest.err &&
14719 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14720 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14721 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14722 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14723 # icc doesn't choke on unknown options, it will just issue warnings
14724 # or remarks (even with -Werror). So we grep stderr for any message
14725 # that says an option was ignored or not supported.
14726 # When given -MP, icc 7.0 and 7.1 complain thusly:
14727 # icc: Command line warning: ignoring option '-M'; no argument required
14728 # The diagnosis changed in icc 8.0:
14729 # icc: Command line remark: option '-MP' not supported
14730 if (grep 'ignoring option' conftest.err ||
14731 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14732 am_cv_CXX_dependencies_compiler_type=$depmode
14739 rm -rf conftest.dir
14741 am_cv_CXX_dependencies_compiler_type=none
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14746 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14747 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14750 test "x$enable_dependency_tracking" != xno \
14751 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14752 am__fastdepCXX_TRUE=
14753 am__fastdepCXX_FALSE='#'
14755 am__fastdepCXX_TRUE='#'
14756 am__fastdepCXX_FALSE=
14762 func_stripname_cnf ()
14765 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14766 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14768 } # func_stripname_cnf
14770 if test -n "$CXX" && ( test no != "$CXX" &&
14771 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14772 (test g++ != "$CXX"))); then
14774 ac_cpp='$CXXCPP $CPPFLAGS'
14775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14779 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14780 if test -z "$CXXCPP"; then
14781 if ${ac_cv_prog_CXXCPP+:} false; then :
14782 $as_echo_n "(cached) " >&6
14784 # Double quotes because CXXCPP needs to be expanded
14785 for CXXCPP in "$CXX -E" "/lib/cpp"
14787 ac_preproc_ok=false
14788 for ac_cxx_preproc_warn_flag in '' yes
14790 # Use a header file that comes with gcc, so configuring glibc
14791 # with a fresh cross-compiler works.
14792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14793 # <limits.h> exists even on freestanding compilers.
14794 # On the NeXT, cc -E runs the code through the compiler's parser,
14795 # not just through cpp. "Syntax error" is here to catch this case.
14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h. */
14799 # include <limits.h>
14801 # include <assert.h>
14805 if ac_fn_cxx_try_cpp "$LINENO"; then :
14808 # Broken: fails on valid input.
14811 rm -f conftest.err conftest.i conftest.$ac_ext
14813 # OK, works on sane cases. Now check whether nonexistent headers
14814 # can be detected and how.
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14817 #include <ac_nonexistent.h>
14819 if ac_fn_cxx_try_cpp "$LINENO"; then :
14820 # Broken: success on invalid input.
14823 # Passes both tests.
14827 rm -f conftest.err conftest.i conftest.$ac_ext
14830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14831 rm -f conftest.i conftest.err conftest.$ac_ext
14832 if $ac_preproc_ok; then :
14837 ac_cv_prog_CXXCPP=$CXXCPP
14840 CXXCPP=$ac_cv_prog_CXXCPP
14842 ac_cv_prog_CXXCPP=$CXXCPP
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14845 $as_echo "$CXXCPP" >&6; }
14846 ac_preproc_ok=false
14847 for ac_cxx_preproc_warn_flag in '' yes
14849 # Use a header file that comes with gcc, so configuring glibc
14850 # with a fresh cross-compiler works.
14851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14852 # <limits.h> exists even on freestanding compilers.
14853 # On the NeXT, cc -E runs the code through the compiler's parser,
14854 # not just through cpp. "Syntax error" is here to catch this case.
14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14856 /* end confdefs.h. */
14858 # include <limits.h>
14860 # include <assert.h>
14864 if ac_fn_cxx_try_cpp "$LINENO"; then :
14867 # Broken: fails on valid input.
14870 rm -f conftest.err conftest.i conftest.$ac_ext
14872 # OK, works on sane cases. Now check whether nonexistent headers
14873 # can be detected and how.
14874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h. */
14876 #include <ac_nonexistent.h>
14878 if ac_fn_cxx_try_cpp "$LINENO"; then :
14879 # Broken: success on invalid input.
14882 # Passes both tests.
14886 rm -f conftest.err conftest.i conftest.$ac_ext
14889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14890 rm -f conftest.i conftest.err conftest.$ac_ext
14891 if $ac_preproc_ok; then :
14894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14896 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14897 See \`config.log' for more details" "$LINENO" 5; }
14901 ac_cpp='$CPP $CPPFLAGS'
14902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14907 _lt_caught_CXX_error=yes
14911 ac_cpp='$CXXCPP $CPPFLAGS'
14912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14916 archive_cmds_need_lc_CXX=no
14917 allow_undefined_flag_CXX=
14918 always_export_symbols_CXX=no
14919 archive_expsym_cmds_CXX=
14920 compiler_needs_object_CXX=no
14921 export_dynamic_flag_spec_CXX=
14922 hardcode_direct_CXX=no
14923 hardcode_direct_absolute_CXX=no
14924 hardcode_libdir_flag_spec_CXX=
14925 hardcode_libdir_separator_CXX=
14926 hardcode_minus_L_CXX=no
14927 hardcode_shlibpath_var_CXX=unsupported
14928 hardcode_automatic_CXX=no
14929 inherit_rpath_CXX=no
14931 module_expsym_cmds_CXX=
14932 link_all_deplibs_CXX=unknown
14933 old_archive_cmds_CXX=$old_archive_cmds
14934 reload_flag_CXX=$reload_flag
14935 reload_cmds_CXX=$reload_cmds
14936 no_undefined_flag_CXX=
14937 whole_archive_flag_spec_CXX=
14938 enable_shared_with_static_runtimes_CXX=no
14940 # Source file extension for C++ test sources.
14943 # Object file extension for compiled C++ test sources.
14947 # No sense in running all these tests if we already determined that
14948 # the CXX compiler isn't working. Some variables (like enable_shared)
14949 # are currently assumed to apply to all compilers on this platform,
14950 # and will be corrupted by setting them based on a non-working compiler.
14951 if test yes != "$_lt_caught_CXX_error"; then
14952 # Code to be used in simple compile tests
14953 lt_simple_compile_test_code="int some_variable = 0;"
14955 # Code to be used in simple link tests
14956 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14958 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14965 # If no C compiler was specified, use CC.
14968 # If no C compiler flags were specified, use CFLAGS.
14969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14971 # Allow CC to be a program name with arguments.
14975 # save warnings/boilerplate of simple test code
14976 ac_outfile=conftest.$ac_objext
14977 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14978 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14979 _lt_compiler_boilerplate=`cat conftest.err`
14982 ac_outfile=conftest.$ac_objext
14983 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14984 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14985 _lt_linker_boilerplate=`cat conftest.err`
14989 # Allow CC to be a program name with arguments.
14991 lt_save_CFLAGS=$CFLAGS
14995 lt_save_with_gnu_ld=$with_gnu_ld
14996 lt_save_path_LD=$lt_cv_path_LD
14997 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14998 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15000 $as_unset lt_cv_prog_gnu_ld
15002 if test -n "${lt_cv_path_LDCXX+set}"; then
15003 lt_cv_path_LD=$lt_cv_path_LDCXX
15005 $as_unset lt_cv_path_LD
15007 test -z "${LDCXX+set}" || LD=$LDCXX
15012 func_cc_basename $compiler
15013 cc_basename=$func_cc_basename_result
15016 if test -n "$compiler"; then
15017 # We don't want -fno-exception when compiling C++ code, so set the
15018 # no_builtin_flag separately
15019 if test yes = "$GXX"; then
15020 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15022 lt_prog_compiler_no_builtin_flag_CXX=
15025 if test yes = "$GXX"; then
15026 # Set up default GNU C++ configuration
15030 # Check whether --with-gnu-ld was given.
15031 if test "${with_gnu_ld+set}" = set; then :
15032 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15038 if test yes = "$GCC"; then
15039 # Check if gcc -print-prog-name=ld gives a path.
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15041 $as_echo_n "checking for ld used by $CC... " >&6; }
15044 # gcc leaves a trailing carriage return, which upsets mingw
15045 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15047 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15050 # Accept absolute paths.
15052 re_direlt='/[^/][^/]*/\.\./'
15053 # Canonicalize the pathname of ld
15054 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15055 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15056 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15058 test -z "$LD" && LD=$ac_prog
15061 # If it fails, then pretend we aren't using GCC.
15065 # If it is relative, then search for the first ld in PATH.
15066 with_gnu_ld=unknown
15069 elif test yes = "$with_gnu_ld"; then
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15071 $as_echo_n "checking for GNU ld... " >&6; }
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15074 $as_echo_n "checking for non-GNU ld... " >&6; }
15076 if ${lt_cv_path_LD+:} false; then :
15077 $as_echo_n "(cached) " >&6
15079 if test -z "$LD"; then
15080 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15081 for ac_dir in $PATH; do
15083 test -z "$ac_dir" && ac_dir=.
15084 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15085 lt_cv_path_LD=$ac_dir/$ac_prog
15086 # Check to see if the program is GNU ld. I'd rather use --version,
15087 # but apparently some variants of GNU ld only accept -v.
15088 # Break only if it was the GNU/non-GNU ld that we prefer.
15089 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15090 *GNU* | *'with BFD'*)
15091 test no != "$with_gnu_ld" && break
15094 test yes != "$with_gnu_ld" && break
15101 lt_cv_path_LD=$LD # Let the user override the test with a path.
15106 if test -n "$LD"; then
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15108 $as_echo "$LD" >&6; }
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15111 $as_echo "no" >&6; }
15113 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15115 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15116 if ${lt_cv_prog_gnu_ld+:} false; then :
15117 $as_echo_n "(cached) " >&6
15119 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15120 case `$LD -v 2>&1 </dev/null` in
15121 *GNU* | *'with BFD'*)
15122 lt_cv_prog_gnu_ld=yes
15125 lt_cv_prog_gnu_ld=no
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15130 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15131 with_gnu_ld=$lt_cv_prog_gnu_ld
15139 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15140 # archiving commands below assume that GNU ld is being used.
15141 if test yes = "$with_gnu_ld"; then
15142 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15143 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'
15145 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15146 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15148 # If archive_cmds runs LD, not CC, wlarc should be empty
15149 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15150 # investigate it a little bit more. (MM)
15153 # ancient GNU ld didn't support --whole-archive et. al.
15154 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15155 $GREP 'no-whole-archive' > /dev/null; then
15156 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15158 whole_archive_flag_spec_CXX=
15164 # A generic and very simple default shared library creation
15165 # command for GNU C++ for the case where it uses the native
15166 # linker, instead of GNU ld. If possible, this setting should
15167 # overridden to take advantage of the native linker features on
15168 # the platform it is being used on.
15169 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15172 # Commands to make compiler produce verbose output that lists
15173 # what "hidden" libraries, object files and flags are used when
15174 # linking a shared library.
15175 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15183 # PORTME: fill in a description of your system's C++ link characteristics
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15185 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15189 # FIXME: insert proper C++ library support
15193 if test ia64 = "$host_cpu"; then
15194 # On IA64, the linker does run time linking by default, so we don't
15195 # have to do anything special.
15196 aix_use_runtimelinking=no
15197 exp_sym_flag='-Bexport'
15200 aix_use_runtimelinking=no
15202 # Test if we are trying to use run time linking or normal
15203 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15204 # have runtime linking enabled, and use it for executables.
15205 # For shared libraries, we enable/disable runtime linking
15206 # depending on the kind of the shared library created -
15207 # when "with_aix_soname,aix_use_runtimelinking" is:
15208 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15209 # "aix,yes" lib.so shared, rtl:yes, for executables
15210 # lib.a static archive
15211 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15212 # lib.a(lib.so.V) shared, rtl:no, for executables
15213 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15214 # lib.a(lib.so.V) shared, rtl:no
15215 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15216 # lib.a static archive
15217 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15218 for ld_flag in $LDFLAGS; do
15221 aix_use_runtimelinking=yes
15226 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15227 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15228 # so we don't have lib.a shared libs to link our executables.
15229 # We have to force runtime linking in this case.
15230 aix_use_runtimelinking=yes
15231 LDFLAGS="$LDFLAGS -Wl,-brtl"
15236 exp_sym_flag='-bexport'
15237 no_entry_flag='-bnoentry'
15240 # When large executables or shared objects are built, AIX ld can
15241 # have problems creating the table of contents. If linking a library
15242 # or program results in "error TOC overflow" add -mminimal-toc to
15243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15246 archive_cmds_CXX=''
15247 hardcode_direct_CXX=yes
15248 hardcode_direct_absolute_CXX=yes
15249 hardcode_libdir_separator_CXX=':'
15250 link_all_deplibs_CXX=yes
15251 file_list_spec_CXX='$wl-f,'
15252 case $with_aix_soname,$aix_use_runtimelinking in
15253 aix,*) ;; # no import file
15254 svr4,* | *,yes) # use import file
15255 # The Import File defines what to hardcode.
15256 hardcode_direct_CXX=no
15257 hardcode_direct_absolute_CXX=no
15261 if test yes = "$GXX"; then
15262 case $host_os in aix4.[012]|aix4.[012].*)
15263 # We only want to do this on AIX 4.2 and lower, the check
15264 # below for broken collect2 doesn't work under 4.3+
15265 collect2name=`$CC -print-prog-name=collect2`
15266 if test -f "$collect2name" &&
15267 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15269 # We have reworked collect2
15272 # We have old collect2
15273 hardcode_direct_CXX=unsupported
15274 # It fails to find uninstalled libraries when the uninstalled
15275 # path is not listed in the libpath. Setting hardcode_minus_L
15276 # to unsupported forces relinking
15277 hardcode_minus_L_CXX=yes
15278 hardcode_libdir_flag_spec_CXX='-L$libdir'
15279 hardcode_libdir_separator_CXX=
15282 shared_flag='-shared'
15283 if test yes = "$aix_use_runtimelinking"; then
15284 shared_flag=$shared_flag' $wl-G'
15286 # Need to ensure runtime linking is disabled for the traditional
15287 # shared library, or the linker may eventually find shared libraries
15288 # /with/ Import File - we do not want to mix them.
15289 shared_flag_aix='-shared'
15290 shared_flag_svr4='-shared $wl-G'
15293 if test ia64 = "$host_cpu"; then
15294 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15295 # chokes on -Wl,-G. The following line is correct:
15298 if test yes = "$aix_use_runtimelinking"; then
15299 shared_flag='$wl-G'
15301 shared_flag='$wl-bM:SRE'
15303 shared_flag_aix='$wl-bM:SRE'
15304 shared_flag_svr4='$wl-G'
15308 export_dynamic_flag_spec_CXX='$wl-bexpall'
15309 # It seems that -bexpall does not export symbols beginning with
15310 # underscore (_), so it is better to generate a list of symbols to
15312 always_export_symbols_CXX=yes
15313 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15314 # Warning - without using the other runtime loading flags (-brtl),
15315 # -berok will link without error, but may produce a broken library.
15316 # The "-G" linker flag allows undefined symbols.
15317 no_undefined_flag_CXX='-bernotok'
15318 # Determine the default libpath from the value encoded in an empty
15320 if test set = "${lt_cv_aix_libpath+set}"; then
15321 aix_libpath=$lt_cv_aix_libpath
15323 if ${lt_cv_aix_libpath__CXX+:} false; then :
15324 $as_echo_n "(cached) " >&6
15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15337 if ac_fn_cxx_try_link "$LINENO"; then :
15339 lt_aix_libpath_sed='
15340 /Import File Strings/,/^$/ {
15342 s/^0 *\([^ ]*\) *$/\1/
15346 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15347 # Check for a 64-bit object if we didn't find anything.
15348 if test -z "$lt_cv_aix_libpath__CXX"; then
15349 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15352 rm -f core conftest.err conftest.$ac_objext \
15353 conftest$ac_exeext conftest.$ac_ext
15354 if test -z "$lt_cv_aix_libpath__CXX"; then
15355 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15360 aix_libpath=$lt_cv_aix_libpath__CXX
15363 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15365 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
15367 if test ia64 = "$host_cpu"; then
15368 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15369 allow_undefined_flag_CXX="-z nodefs"
15370 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"
15372 # Determine the default libpath from the value encoded in an
15373 # empty executable.
15374 if test set = "${lt_cv_aix_libpath+set}"; then
15375 aix_libpath=$lt_cv_aix_libpath
15377 if ${lt_cv_aix_libpath__CXX+:} false; then :
15378 $as_echo_n "(cached) " >&6
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15391 if ac_fn_cxx_try_link "$LINENO"; then :
15393 lt_aix_libpath_sed='
15394 /Import File Strings/,/^$/ {
15396 s/^0 *\([^ ]*\) *$/\1/
15400 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15401 # Check for a 64-bit object if we didn't find anything.
15402 if test -z "$lt_cv_aix_libpath__CXX"; then
15403 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15406 rm -f core conftest.err conftest.$ac_objext \
15407 conftest$ac_exeext conftest.$ac_ext
15408 if test -z "$lt_cv_aix_libpath__CXX"; then
15409 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15414 aix_libpath=$lt_cv_aix_libpath__CXX
15417 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15418 # Warning - without using the other run time loading flags,
15419 # -berok will link without error, but may produce a broken library.
15420 no_undefined_flag_CXX=' $wl-bernotok'
15421 allow_undefined_flag_CXX=' $wl-berok'
15422 if test yes = "$with_gnu_ld"; then
15423 # We only use this code for GNU lds that support --whole-archive.
15424 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15426 # Exported symbols can be pulled into shared objects from archives
15427 whole_archive_flag_spec_CXX='$convenience'
15429 archive_cmds_need_lc_CXX=yes
15430 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15431 # -brtl affects multiple linker settings, -berok does not and is overridden later
15432 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15433 if test svr4 != "$with_aix_soname"; then
15434 # This is similar to how AIX traditionally builds its shared
15435 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15436 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'
15438 if test aix != "$with_aix_soname"; then
15439 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'
15441 # used by -dlpreopen to get the symbols
15442 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15444 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15450 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15451 allow_undefined_flag_CXX=unsupported
15452 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15453 # support --undefined. This deserves some investigation. FIXME
15454 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15461 case $cc_basename in
15463 # FIXME: insert proper C++ library support
15469 cygwin* | mingw* | pw32* | cegcc*)
15470 case $GXX,$cc_basename in
15473 # hardcode_libdir_flag_spec is actually meaningless, as there is
15474 # no search path for DLLs.
15475 hardcode_libdir_flag_spec_CXX=' '
15476 allow_undefined_flag_CXX=unsupported
15477 always_export_symbols_CXX=yes
15478 file_list_spec_CXX='@'
15479 # Tell ltmain to make .lib files, not .a files.
15481 # Tell ltmain to make .dll files, not .so files.
15483 # FIXME: Setting linknames here is a bad hack.
15484 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15485 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15486 cp "$export_symbols" "$output_objdir/$soname.def";
15487 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15489 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15491 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15493 # The linker will not automatically build a static lib if we build a DLL.
15494 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15495 enable_shared_with_static_runtimes_CXX=yes
15497 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15498 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15499 lt_tool_outputfile="@TOOL_OUTPUT@"~
15500 case $lt_outputfile in
15503 lt_outputfile=$lt_outputfile.exe
15504 lt_tool_outputfile=$lt_tool_outputfile.exe
15507 func_to_tool_file "$lt_outputfile"~
15508 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15509 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15510 $RM "$lt_outputfile.manifest";
15515 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15516 # as there is no search path for DLLs.
15517 hardcode_libdir_flag_spec_CXX='-L$libdir'
15518 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15519 allow_undefined_flag_CXX=unsupported
15520 always_export_symbols_CXX=no
15521 enable_shared_with_static_runtimes_CXX=yes
15523 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15524 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'
15525 # If the export-symbols file already is a .def file, use it as
15526 # is; otherwise, prepend EXPORTS...
15527 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15528 cp $export_symbols $output_objdir/$soname.def;
15530 echo EXPORTS > $output_objdir/$soname.def;
15531 cat $export_symbols >> $output_objdir/$soname.def;
15533 $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'
15540 darwin* | rhapsody*)
15543 archive_cmds_need_lc_CXX=no
15544 hardcode_direct_CXX=no
15545 hardcode_automatic_CXX=yes
15546 hardcode_shlibpath_var_CXX=unsupported
15547 if test yes = "$lt_cv_ld_force_load"; then
15548 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\"`'
15551 whole_archive_flag_spec_CXX=''
15553 link_all_deplibs_CXX=yes
15554 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15555 case $cc_basename in
15556 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15557 *) _lt_dar_can_shared=$GCC ;;
15559 if test yes = "$_lt_dar_can_shared"; then
15560 output_verbose_link_cmd=func_echo_all
15561 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"
15562 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15563 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"
15564 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"
15565 if test yes != "$lt_cv_apple_cc_single_mod"; then
15566 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"
15567 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"
15577 hardcode_libdir_flag_spec_CXX='-L$libdir'
15578 hardcode_minus_L_CXX=yes
15579 allow_undefined_flag_CXX=unsupported
15581 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15582 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15583 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15584 $ECHO EXPORTS >> $output_objdir/$libname.def~
15585 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15586 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15587 emximp -o $lib $output_objdir/$libname.def'
15588 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15589 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15590 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15591 $ECHO EXPORTS >> $output_objdir/$libname.def~
15592 prefix_cmds="$SED"~
15593 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15594 prefix_cmds="$prefix_cmds -e 1d";
15596 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15597 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15598 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15599 emximp -o $lib $output_objdir/$libname.def'
15600 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15601 enable_shared_with_static_runtimes_CXX=yes
15605 case $cc_basename in
15607 # FIXME: insert proper C++ library support
15611 # Green Hills C++ Compiler
15612 # FIXME: insert proper C++ library support
15616 # FIXME: insert proper C++ library support
15623 # C++ shared libraries reported to be fairly broken before
15629 archive_cmds_need_lc_CXX=no
15632 freebsd* | dragonfly*)
15633 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15639 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15640 link_all_deplibs_CXX=yes
15644 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15645 hardcode_libdir_separator_CXX=:
15646 export_dynamic_flag_spec_CXX='$wl-E'
15647 hardcode_direct_CXX=yes
15648 hardcode_minus_L_CXX=yes # Not in the search PATH,
15649 # but as the default
15650 # location of the library.
15652 case $cc_basename in
15654 # FIXME: insert proper C++ library support
15658 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'
15659 # Commands to make compiler produce verbose output that lists
15660 # what "hidden" libraries, object files and flags are used when
15661 # linking a shared library.
15663 # There doesn't appear to be a way to prevent this compiler from
15664 # explicitly linking system object files so we need to strip them
15665 # from the output so that they don't get included in the library
15667 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"'
15670 if test yes = "$GXX"; then
15671 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'
15673 # FIXME: insert proper C++ library support
15681 if test no = "$with_gnu_ld"; then
15682 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15683 hardcode_libdir_separator_CXX=:
15689 export_dynamic_flag_spec_CXX='$wl-E'
15695 hardcode_direct_CXX=no
15696 hardcode_shlibpath_var_CXX=no
15699 hardcode_direct_CXX=yes
15700 hardcode_direct_absolute_CXX=yes
15701 hardcode_minus_L_CXX=yes # Not in the search PATH,
15702 # but as the default
15703 # location of the library.
15707 case $cc_basename in
15709 # FIXME: insert proper C++ library support
15715 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15718 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15721 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15724 # Commands to make compiler produce verbose output that lists
15725 # what "hidden" libraries, object files and flags are used when
15726 # linking a shared library.
15728 # There doesn't appear to be a way to prevent this compiler from
15729 # explicitly linking system object files so we need to strip them
15730 # from the output so that they don't get included in the library
15732 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"'
15735 if test yes = "$GXX"; then
15736 if test no = "$with_gnu_ld"; then
15739 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15742 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15745 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'
15750 # FIXME: insert proper C++ library support
15758 hardcode_direct_CXX=no
15759 hardcode_shlibpath_var_CXX=no
15760 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15761 export_dynamic_flag_spec_CXX='$wl-E'
15762 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15763 # Instead, shared libraries are loaded at an image base (0x10000000 by
15764 # default) and relocated if they conflict, which is a slow very memory
15765 # consuming and fragmenting process. To avoid this, we pick a random,
15766 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15767 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15768 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'
15769 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'
15772 case $cc_basename in
15775 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'
15777 # Archives containing C++ object files must be created using
15778 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15779 # necessary to make sure instantiated templates are included
15781 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15784 if test yes = "$GXX"; then
15785 if test no = "$with_gnu_ld"; then
15786 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'
15788 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'
15791 link_all_deplibs_CXX=yes
15794 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15795 hardcode_libdir_separator_CXX=:
15796 inherit_rpath_CXX=yes
15799 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15800 case $cc_basename in
15802 # Kuck and Associates, Inc. (KAI) C++ Compiler
15804 # KCC will only create a shared library if the output file
15805 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15806 # to its proper name (with version) after linking.
15807 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'
15808 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'
15809 # Commands to make compiler produce verbose output that lists
15810 # what "hidden" libraries, object files and flags are used when
15811 # linking a shared library.
15813 # There doesn't appear to be a way to prevent this compiler from
15814 # explicitly linking system object files so we need to strip them
15815 # from the output so that they don't get included in the library
15817 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"'
15819 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15820 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15822 # Archives containing C++ object files must be created using
15823 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15824 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15829 # version 8.0 and above of icpc choke on multiply defined symbols
15830 # if we add $predep_objects and $postdep_objects, however 7.1 and
15831 # earlier do not add the objects themselves.
15832 case `$CC -V 2>&1` in
15834 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15835 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'
15837 *) # Version 8.0 or newer
15840 ia64*) tmp_idyn=' -i_dynamic';;
15842 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15843 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'
15846 archive_cmds_need_lc_CXX=no
15847 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15848 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15849 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15852 # Portland Group C++ compiler
15854 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15855 prelink_cmds_CXX='tpldir=Template.dir~
15857 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15858 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15859 old_archive_cmds_CXX='tpldir=Template.dir~
15861 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15862 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15864 archive_cmds_CXX='tpldir=Template.dir~
15866 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15867 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15868 archive_expsym_cmds_CXX='tpldir=Template.dir~
15870 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15871 $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'
15873 *) # Version 6 and above use weak symbols
15874 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15875 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'
15879 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15880 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15881 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'
15885 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15886 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'
15888 runpath_var=LD_RUN_PATH
15889 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15890 hardcode_libdir_separator_CXX=:
15892 # Commands to make compiler produce verbose output that lists
15893 # what "hidden" libraries, object files and flags are used when
15894 # linking a shared library.
15896 # There doesn't appear to be a way to prevent this compiler from
15897 # explicitly linking system object files so we need to strip them
15898 # from the output so that they don't get included in the library
15900 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'
15902 xl* | mpixl* | bgxl*)
15903 # IBM XL 8.0 on PPC, with GNU ld
15904 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15905 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15906 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15907 if test yes = "$supports_anon_versioning"; then
15908 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15909 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15910 echo "local: *; };" >> $output_objdir/$libname.ver~
15911 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15915 case `$CC -V 2>&1 | sed 5q` in
15918 no_undefined_flag_CXX=' -zdefs'
15919 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15920 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'
15921 hardcode_libdir_flag_spec_CXX='-R$libdir'
15922 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'
15923 compiler_needs_object_CXX=yes
15925 # Not sure whether something based on
15926 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15928 output_verbose_link_cmd='func_echo_all'
15930 # Archives containing C++ object files must be created using
15931 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15932 # necessary to make sure instantiated templates are included
15934 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15942 # FIXME: insert proper C++ library support
15947 # FIXME: insert proper C++ library support
15952 case $cc_basename in
15954 # FIXME: insert proper C++ library support
15958 # FIXME: insert proper C++ library support
15965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15966 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15968 hardcode_libdir_flag_spec_CXX='-R$libdir'
15969 hardcode_direct_CXX=yes
15970 hardcode_shlibpath_var_CXX=no
15972 # Workaround some broken pre-1.5 toolchains
15973 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15980 openbsd* | bitrig*)
15981 if test -f /usr/libexec/ld.so; then
15982 hardcode_direct_CXX=yes
15983 hardcode_shlibpath_var_CXX=no
15984 hardcode_direct_absolute_CXX=yes
15985 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15986 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15987 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15988 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15989 export_dynamic_flag_spec_CXX='$wl-E'
15990 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15992 output_verbose_link_cmd=func_echo_all
15998 osf3* | osf4* | osf5*)
15999 case $cc_basename in
16001 # Kuck and Associates, Inc. (KAI) C++ Compiler
16003 # KCC will only create a shared library if the output file
16004 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16005 # to its proper name (with version) after linking.
16006 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'
16008 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16009 hardcode_libdir_separator_CXX=:
16011 # Archives containing C++ object files must be created using
16012 # the KAI C++ compiler.
16014 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16015 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16019 # Rational C++ 2.4.1
16020 # FIXME: insert proper C++ library support
16026 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16027 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'
16028 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16031 allow_undefined_flag_CXX=' -expect_unresolved \*'
16032 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'
16033 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16034 echo "-hidden">> $lib.exp~
16035 $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~
16037 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16041 hardcode_libdir_separator_CXX=:
16043 # Commands to make compiler produce verbose output that lists
16044 # what "hidden" libraries, object files and flags are used when
16045 # linking a shared library.
16047 # There doesn't appear to be a way to prevent this compiler from
16048 # explicitly linking system object files so we need to strip them
16049 # from the output so that they don't get included in the library
16051 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"'
16054 if test yes,no = "$GXX,$with_gnu_ld"; then
16055 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16058 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'
16061 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'
16065 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16066 hardcode_libdir_separator_CXX=:
16068 # Commands to make compiler produce verbose output that lists
16069 # what "hidden" libraries, object files and flags are used when
16070 # linking a shared library.
16071 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16074 # FIXME: insert proper C++ library support
16082 # FIXME: insert proper C++ library support
16087 case $cc_basename in
16090 # FIXME: insert proper C++ library support
16095 # FIXME: insert proper C++ library support
16099 # FIXME: insert proper C++ library support
16106 case $cc_basename in
16108 # Sun C++ 4.2, 5.x and Centerline C++
16109 archive_cmds_need_lc_CXX=yes
16110 no_undefined_flag_CXX=' -zdefs'
16111 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16112 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16113 $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'
16115 hardcode_libdir_flag_spec_CXX='-R$libdir'
16116 hardcode_shlibpath_var_CXX=no
16118 solaris2.[0-5] | solaris2.[0-5].*) ;;
16120 # The compiler driver will combine and reorder linker options,
16121 # but understands '-z linker_flag'.
16122 # Supported since Solaris 2.6 (maybe 2.5.1?)
16123 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16126 link_all_deplibs_CXX=yes
16128 output_verbose_link_cmd='func_echo_all'
16130 # Archives containing C++ object files must be created using
16131 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16132 # necessary to make sure instantiated templates are included
16134 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16137 # Green Hills C++ Compiler
16138 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16140 # The C++ compiler must be used to create the archive.
16141 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16144 # GNU C++ compiler with Solaris linker
16145 if test yes,no = "$GXX,$with_gnu_ld"; then
16146 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16147 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16148 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16149 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16150 $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'
16152 # Commands to make compiler produce verbose output that lists
16153 # what "hidden" libraries, object files and flags are used when
16154 # linking a shared library.
16155 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16157 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16159 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16160 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16161 $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'
16163 # Commands to make compiler produce verbose output that lists
16164 # what "hidden" libraries, object files and flags are used when
16165 # linking a shared library.
16166 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16169 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16171 solaris2.[0-5] | solaris2.[0-5].*) ;;
16173 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16181 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16182 no_undefined_flag_CXX='$wl-z,text'
16183 archive_cmds_need_lc_CXX=no
16184 hardcode_shlibpath_var_CXX=no
16185 runpath_var='LD_RUN_PATH'
16187 case $cc_basename in
16189 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16190 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16193 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16194 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16199 sysv5* | sco3.2v5* | sco5v6*)
16200 # Note: We CANNOT use -z defs as we might desire, because we do not
16201 # link with -lc, and that would cause any symbols used from libc to
16202 # always be unresolved, which means just about no library would
16203 # ever link correctly. If we're not using GNU ld we use -z text
16204 # though, which does catch some bad symbols but isn't as heavy-handed
16206 no_undefined_flag_CXX='$wl-z,text'
16207 allow_undefined_flag_CXX='$wl-z,nodefs'
16208 archive_cmds_need_lc_CXX=no
16209 hardcode_shlibpath_var_CXX=no
16210 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16211 hardcode_libdir_separator_CXX=':'
16212 link_all_deplibs_CXX=yes
16213 export_dynamic_flag_spec_CXX='$wl-Bexport'
16214 runpath_var='LD_RUN_PATH'
16216 case $cc_basename in
16218 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16219 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16220 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16221 '"$old_archive_cmds_CXX"
16222 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16223 '"$reload_cmds_CXX"
16226 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16227 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16233 case $cc_basename in
16235 # NonStop-UX NCC 3.20
16236 # FIXME: insert proper C++ library support
16240 # FIXME: insert proper C++ library support
16247 # FIXME: insert proper C++ library support
16252 # FIXME: insert proper C++ library support
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16258 $as_echo "$ld_shlibs_CXX" >&6; }
16259 test no = "$ld_shlibs_CXX" && can_build_shared=no
16265 ## There is no encapsulation within the following macros, do not change
16266 ## the running order or otherwise move them around unless you know exactly
16267 ## what you are doing...
16268 # Dependencies to place before and after the object being linked:
16269 predep_objects_CXX=
16270 postdep_objects_CXX=
16273 compiler_lib_search_path_CXX=
16275 cat > conftest.$ac_ext <<_LT_EOF
16279 Foo (void) { a = 0; }
16286 _lt_libdeps_save_CFLAGS=$CFLAGS
16287 case "$CC $CFLAGS " in #(
16288 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16289 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16290 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16294 (eval $ac_compile) 2>&5
16296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16297 test $ac_status = 0; }; then
16298 # Parse the compiler output and extract the necessary
16299 # objects, libraries and library flags.
16301 # Sentinel used to keep track of whether or not we are before
16302 # the conftest object file.
16303 pre_test_object_deps_done=no
16305 for p in `eval "$output_verbose_link_cmd"`; do
16309 # Some compilers place space between "-{L,R}" and the path.
16310 # Remove the space.
16311 if test x-L = "$p" ||
16312 test x-R = "$p"; then
16317 # Expand the sysroot to ease extracting the directories later.
16318 if test -z "$prev"; then
16320 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16321 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16322 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16326 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16328 if test no = "$pre_test_object_deps_done"; then
16331 # Internal compiler library paths should come after those
16332 # provided the user. The postdeps already come after the
16333 # user supplied libs so there is no need to process them.
16334 if test -z "$compiler_lib_search_path_CXX"; then
16335 compiler_lib_search_path_CXX=$prev$p
16337 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16340 # The "-l" case would never come before the object being
16341 # linked, so don't bother handling this case.
16344 if test -z "$postdeps_CXX"; then
16345 postdeps_CXX=$prev$p
16347 postdeps_CXX="${postdeps_CXX} $prev$p"
16353 *.lto.$objext) ;; # Ignore GCC LTO objects
16355 # This assumes that the test object file only shows up
16356 # once in the compiler output.
16357 if test "$p" = "conftest.$objext"; then
16358 pre_test_object_deps_done=yes
16362 if test no = "$pre_test_object_deps_done"; then
16363 if test -z "$predep_objects_CXX"; then
16364 predep_objects_CXX=$p
16366 predep_objects_CXX="$predep_objects_CXX $p"
16369 if test -z "$postdep_objects_CXX"; then
16370 postdep_objects_CXX=$p
16372 postdep_objects_CXX="$postdep_objects_CXX $p"
16377 *) ;; # Ignore the rest.
16385 echo "libtool.m4: error: problem compiling CXX test program"
16388 $RM -f confest.$objext
16389 CFLAGS=$_lt_libdeps_save_CFLAGS
16391 # PORTME: override above test on systems where it is broken
16394 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16395 # hack all around it, let's just trust "g++" to DTRT.
16396 predep_objects_CXX=
16397 postdep_objects_CXX=
16403 case " $postdeps_CXX " in
16404 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16406 compiler_lib_search_dirs_CXX=
16407 if test -n "${compiler_lib_search_path_CXX}"; then
16408 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16441 lt_prog_compiler_wl_CXX=
16442 lt_prog_compiler_pic_CXX=
16443 lt_prog_compiler_static_CXX=
16446 # C++ specific cases for pic, static, wl, etc.
16447 if test yes = "$GXX"; then
16448 lt_prog_compiler_wl_CXX='-Wl,'
16449 lt_prog_compiler_static_CXX='-static'
16453 # All AIX code is PIC.
16454 if test ia64 = "$host_cpu"; then
16455 # AIX 5 now supports IA64 processor
16456 lt_prog_compiler_static_CXX='-Bstatic'
16458 lt_prog_compiler_pic_CXX='-fPIC'
16464 # see comment about AmigaOS4 .so support
16465 lt_prog_compiler_pic_CXX='-fPIC'
16468 # FIXME: we need at least 68020 code to build shared libraries, but
16469 # adding the '-m68020' flag to GCC prevents building anything better,
16471 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16476 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16477 # PIC is the default for these OSes.
16479 mingw* | cygwin* | os2* | pw32* | cegcc*)
16480 # This hack is so that the source file can tell whether it is being
16481 # built for inclusion in a dll (and should export symbols for example).
16482 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16483 # (--disable-auto-import) libraries
16484 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16487 lt_prog_compiler_static_CXX='$wl-static'
16491 darwin* | rhapsody*)
16492 # PIC is the default on this platform
16493 # Common symbols not allowed in MH_DYLIB files
16494 lt_prog_compiler_pic_CXX='-fno-common'
16497 # DJGPP does not support shared libraries at all
16498 lt_prog_compiler_pic_CXX=
16501 # PIC is the default for Haiku.
16502 # The "-static" flag exists, but is broken.
16503 lt_prog_compiler_static_CXX=
16506 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16507 # Instead, we relocate shared libraries at runtime.
16510 if test -d /usr/nec; then
16511 lt_prog_compiler_pic_CXX=-Kconform_pic
16515 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16516 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16517 # sets the default TLS model and affects inlining.
16522 lt_prog_compiler_pic_CXX='-fPIC'
16527 # QNX uses GNU C++, but need to define -shared option too, otherwise
16528 # it will coredump.
16529 lt_prog_compiler_pic_CXX='-fPIC -shared'
16532 lt_prog_compiler_pic_CXX='-fPIC'
16538 # All AIX code is PIC.
16539 if test ia64 = "$host_cpu"; then
16540 # AIX 5 now supports IA64 processor
16541 lt_prog_compiler_static_CXX='-Bstatic'
16543 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16547 case $cc_basename in
16549 # Green Hills C++ Compiler
16550 # _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"
16554 mingw* | cygwin* | os2* | pw32* | cegcc*)
16555 # This hack is so that the source file can tell whether it is being
16556 # built for inclusion in a dll (and should export symbols for example).
16557 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16560 case $cc_basename in
16562 lt_prog_compiler_pic_CXX='-KPIC'
16565 # Green Hills C++ Compiler
16566 lt_prog_compiler_pic_CXX='-pic'
16572 freebsd* | dragonfly*)
16573 # FreeBSD uses GNU C++
16575 hpux9* | hpux10* | hpux11*)
16576 case $cc_basename in
16578 lt_prog_compiler_wl_CXX='-Wl,'
16579 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16580 if test ia64 != "$host_cpu"; then
16581 lt_prog_compiler_pic_CXX='+Z'
16585 lt_prog_compiler_wl_CXX='-Wl,'
16586 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16592 lt_prog_compiler_pic_CXX='+Z'
16601 # This is c89, which is MS Visual C++ (no shared libs)
16602 # Anyone wants to do a port?
16604 irix5* | irix6* | nonstopux*)
16605 case $cc_basename in
16607 lt_prog_compiler_wl_CXX='-Wl,'
16608 lt_prog_compiler_static_CXX='-non_shared'
16609 # CC pic flag -KPIC is the default.
16615 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16616 case $cc_basename in
16619 lt_prog_compiler_wl_CXX='--backend -Wl,'
16620 lt_prog_compiler_pic_CXX='-fPIC'
16623 # old Intel C++ for x86_64, which still supported -KPIC.
16624 lt_prog_compiler_wl_CXX='-Wl,'
16625 lt_prog_compiler_pic_CXX='-KPIC'
16626 lt_prog_compiler_static_CXX='-static'
16629 # Intel C++, used to be incompatible with GCC.
16630 # ICC 10 doesn't accept -KPIC any more.
16631 lt_prog_compiler_wl_CXX='-Wl,'
16632 lt_prog_compiler_pic_CXX='-fPIC'
16633 lt_prog_compiler_static_CXX='-static'
16636 # Portland Group C++ compiler
16637 lt_prog_compiler_wl_CXX='-Wl,'
16638 lt_prog_compiler_pic_CXX='-fpic'
16639 lt_prog_compiler_static_CXX='-Bstatic'
16643 # Make sure the PIC flag is empty. It appears that all Alpha
16644 # Linux and Compaq Tru64 Unix objects are PIC.
16645 lt_prog_compiler_pic_CXX=
16646 lt_prog_compiler_static_CXX='-non_shared'
16648 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16649 # IBM XL 8.0, 9.0 on PPC and BlueGene
16650 lt_prog_compiler_wl_CXX='-Wl,'
16651 lt_prog_compiler_pic_CXX='-qpic'
16652 lt_prog_compiler_static_CXX='-qstaticlink'
16655 case `$CC -V 2>&1 | sed 5q` in
16658 lt_prog_compiler_pic_CXX='-KPIC'
16659 lt_prog_compiler_static_CXX='-Bstatic'
16660 lt_prog_compiler_wl_CXX='-Qoption ld '
16671 case $cc_basename in
16673 lt_prog_compiler_pic_CXX='-W c,exportall'
16679 netbsd* | netbsdelf*-gnu)
16682 # QNX uses GNU C++, but need to define -shared option too, otherwise
16683 # it will coredump.
16684 lt_prog_compiler_pic_CXX='-fPIC -shared'
16686 osf3* | osf4* | osf5*)
16687 case $cc_basename in
16689 lt_prog_compiler_wl_CXX='--backend -Wl,'
16692 # Rational C++ 2.4.1
16693 lt_prog_compiler_pic_CXX='-pic'
16696 # Digital/Compaq C++
16697 lt_prog_compiler_wl_CXX='-Wl,'
16698 # Make sure the PIC flag is empty. It appears that all Alpha
16699 # Linux and Compaq Tru64 Unix objects are PIC.
16700 lt_prog_compiler_pic_CXX=
16701 lt_prog_compiler_static_CXX='-non_shared'
16710 case $cc_basename in
16712 # Sun C++ 4.2, 5.x and Centerline C++
16713 lt_prog_compiler_pic_CXX='-KPIC'
16714 lt_prog_compiler_static_CXX='-Bstatic'
16715 lt_prog_compiler_wl_CXX='-Qoption ld '
16718 # Green Hills C++ Compiler
16719 lt_prog_compiler_pic_CXX='-PIC'
16726 case $cc_basename in
16729 lt_prog_compiler_pic_CXX='-pic'
16730 lt_prog_compiler_static_CXX='-Bstatic'
16734 lt_prog_compiler_pic_CXX='-pic'
16740 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16741 case $cc_basename in
16743 lt_prog_compiler_wl_CXX='-Wl,'
16744 lt_prog_compiler_pic_CXX='-KPIC'
16745 lt_prog_compiler_static_CXX='-Bstatic'
16750 case $cc_basename in
16752 # NonStop-UX NCC 3.20
16753 lt_prog_compiler_pic_CXX='-KPIC'
16762 lt_prog_compiler_can_build_shared_CXX=no
16768 # For platforms that do not support PIC, -DPIC is meaningless:
16770 lt_prog_compiler_pic_CXX=
16773 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16778 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16779 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16780 $as_echo_n "(cached) " >&6
16782 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16785 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16786 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16789 # Check to make sure the PIC flag actually works.
16791 if test -n "$lt_prog_compiler_pic_CXX"; then
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16793 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16794 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16795 $as_echo_n "(cached) " >&6
16797 lt_cv_prog_compiler_pic_works_CXX=no
16798 ac_outfile=conftest.$ac_objext
16799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16800 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16801 # Insert the option either (1) after the last *FLAGS variable, or
16802 # (2) before a word containing "conftest.", or (3) at the end.
16803 # Note that $ac_compile itself does not contain backslashes and begins
16804 # with a dollar sign (not a hyphen), so the echo should work correctly.
16805 # The option is referenced via a variable to avoid confusing sed.
16806 lt_compile=`echo "$ac_compile" | $SED \
16807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16809 -e 's:$: $lt_compiler_flag:'`
16810 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16811 (eval "$lt_compile" 2>conftest.err)
16813 cat conftest.err >&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 if (exit $ac_status) && test -s "$ac_outfile"; then
16816 # The compiler can only warn and ignore the option if not recognized
16817 # So say no if there are warnings other than the usual output.
16818 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16820 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16821 lt_cv_prog_compiler_pic_works_CXX=yes
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16828 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16830 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16831 case $lt_prog_compiler_pic_CXX in
16833 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16836 lt_prog_compiler_pic_CXX=
16837 lt_prog_compiler_can_build_shared_CXX=no
16847 # Check to make sure the static flag actually works.
16849 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16851 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16852 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16853 $as_echo_n "(cached) " >&6
16855 lt_cv_prog_compiler_static_works_CXX=no
16856 save_LDFLAGS=$LDFLAGS
16857 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16858 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16859 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16860 # The linker can only warn and ignore the option if not recognized
16861 # So say no if there are warnings
16862 if test -s conftest.err; then
16863 # Append any errors to the config.log.
16864 cat conftest.err 1>&5
16865 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16867 if diff conftest.exp conftest.er2 >/dev/null; then
16868 lt_cv_prog_compiler_static_works_CXX=yes
16871 lt_cv_prog_compiler_static_works_CXX=yes
16875 LDFLAGS=$save_LDFLAGS
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16879 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16881 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16884 lt_prog_compiler_static_CXX=
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16891 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16892 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16893 $as_echo_n "(cached) " >&6
16895 lt_cv_prog_compiler_c_o_CXX=no
16896 $RM -r conftest 2>/dev/null
16900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16902 lt_compiler_flag="-o out/conftest2.$ac_objext"
16903 # Insert the option either (1) after the last *FLAGS variable, or
16904 # (2) before a word containing "conftest.", or (3) at the end.
16905 # Note that $ac_compile itself does not contain backslashes and begins
16906 # with a dollar sign (not a hyphen), so the echo should work correctly.
16907 lt_compile=`echo "$ac_compile" | $SED \
16908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16910 -e 's:$: $lt_compiler_flag:'`
16911 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16912 (eval "$lt_compile" 2>out/conftest.err)
16914 cat out/conftest.err >&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16918 # The compiler can only warn and ignore the option if not recognized
16919 # So say no if there are warnings
16920 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16921 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16922 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16923 lt_cv_prog_compiler_c_o_CXX=yes
16928 # SGI C++ compiler will create directory out/ii_files/ for
16929 # template instantiation
16930 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16931 $RM out/* && rmdir out
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16938 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16943 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16944 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16945 $as_echo_n "(cached) " >&6
16947 lt_cv_prog_compiler_c_o_CXX=no
16948 $RM -r conftest 2>/dev/null
16952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16954 lt_compiler_flag="-o out/conftest2.$ac_objext"
16955 # Insert the option either (1) after the last *FLAGS variable, or
16956 # (2) before a word containing "conftest.", or (3) at the end.
16957 # Note that $ac_compile itself does not contain backslashes and begins
16958 # with a dollar sign (not a hyphen), so the echo should work correctly.
16959 lt_compile=`echo "$ac_compile" | $SED \
16960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16962 -e 's:$: $lt_compiler_flag:'`
16963 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16964 (eval "$lt_compile" 2>out/conftest.err)
16966 cat out/conftest.err >&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16970 # The compiler can only warn and ignore the option if not recognized
16971 # So say no if there are warnings
16972 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16973 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16974 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16975 lt_cv_prog_compiler_c_o_CXX=yes
16980 # SGI C++ compiler will create directory out/ii_files/ for
16981 # template instantiation
16982 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16983 $RM out/* && rmdir out
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16990 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16995 hard_links=nottested
16996 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16997 # do not overwrite the value of need_locks provided by the user
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16999 $as_echo_n "checking if we can lock with hard links... " >&6; }
17002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17004 ln conftest.a conftest.b 2>&5 || hard_links=no
17005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17007 $as_echo "$hard_links" >&6; }
17008 if test no = "$hard_links"; then
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17010 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17020 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17022 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17023 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17026 # If we're using GNU nm, then we don't want the "-C" option.
17027 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17028 # Without the "-l" option, or with the "-B" option, AIX nm treats
17029 # weak defined symbols like other global defined symbols, whereas
17030 # GNU nm marks them as "W".
17031 # While the 'weak' keyword is ignored in the Export File, we need
17032 # it in the Import File for the 'aix-soname' feature, so we have
17033 # to replace the "-B" option with "-P" for AIX nm.
17034 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17035 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'
17037 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17041 export_symbols_cmds_CXX=$ltdll_cmds
17043 cygwin* | mingw* | cegcc*)
17044 case $cc_basename in
17046 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17049 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'
17050 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17054 linux* | k*bsd*-gnu | gnu*)
17055 link_all_deplibs_CXX=no
17058 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17063 $as_echo "$ld_shlibs_CXX" >&6; }
17064 test no = "$ld_shlibs_CXX" && can_build_shared=no
17066 with_gnu_ld_CXX=$with_gnu_ld
17074 # Do we need to explicitly link libc?
17076 case "x$archive_cmds_need_lc_CXX" in
17078 # Assume -lc should be added
17079 archive_cmds_need_lc_CXX=yes
17081 if test yes,yes = "$GCC,$enable_shared"; then
17082 case $archive_cmds_CXX in
17084 # FIXME: we may have to deal with multi-command sequences.
17087 # Test whether the compiler implicitly links with -lc since on some
17088 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17089 # to ld, don't add -lc before -lgcc.
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17091 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17092 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17093 $as_echo_n "(cached) " >&6
17096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17099 (eval $ac_compile) 2>&5
17101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17102 test $ac_status = 0; } 2>conftest.err; then
17105 libobjs=conftest.$ac_objext
17107 wl=$lt_prog_compiler_wl_CXX
17108 pic_flag=$lt_prog_compiler_pic_CXX
17114 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17115 allow_undefined_flag_CXX=
17116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17117 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17120 test $ac_status = 0; }
17122 lt_cv_archive_cmds_need_lc_CXX=no
17124 lt_cv_archive_cmds_need_lc_CXX=yes
17126 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17128 cat conftest.err 1>&5
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17134 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17135 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17204 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17206 library_names_spec=
17207 libname_spec='lib$name'
17211 postuninstall_cmds=
17215 shlibpath_overrides_runpath=unknown
17217 dynamic_linker="$host_os ld.so"
17218 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17219 need_lib_prefix=unknown
17220 hardcode_into_libs=no
17222 # when you set need_version to no, make sure it does not cause -set_version
17223 # flags to be left without arguments
17224 need_version=unknown
17230 version_type=linux # correct to gnu/linux during the next big refactor
17231 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17232 shlibpath_var=LIBPATH
17234 # AIX 3 has no versioning support, so we append a major version to the name.
17235 soname_spec='$libname$release$shared_ext$major'
17239 version_type=linux # correct to gnu/linux during the next big refactor
17242 hardcode_into_libs=yes
17243 if test ia64 = "$host_cpu"; then
17244 # AIX 5 supports IA64
17245 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17246 shlibpath_var=LD_LIBRARY_PATH
17248 # With GCC up to 2.95.x, collect2 would create an import file
17249 # for dependence libraries. The import file would start with
17250 # the line '#! .'. This would cause the generated library to
17251 # depend on '.', always an invalid library. This was fixed in
17252 # development snapshots of GCC prior to 3.0.
17254 aix4 | aix4.[01] | aix4.[01].*)
17255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17257 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17260 can_build_shared=no
17264 # Using Import Files as archive members, it is possible to support
17265 # filename-based versioning of shared library archives on AIX. While
17266 # this would work for both with and without runtime linking, it will
17267 # prevent static linking of such archives. So we do filename-based
17268 # shared library versioning with .so extension only, which is used
17269 # when both runtime linking and shared linking is enabled.
17270 # Unfortunately, runtime linking may impact performance, so we do
17271 # not want this to be the default eventually. Also, we use the
17272 # versioned .so libs for executables only if there is the -brtl
17273 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17274 # To allow for filename-based versioning support, we need to create
17275 # libNAME.so.V as an archive file, containing:
17276 # *) an Import File, referring to the versioned filename of the
17277 # archive as well as the shared archive member, telling the
17278 # bitwidth (32 or 64) of that shared object, and providing the
17279 # list of exported symbols of that shared object, eventually
17280 # decorated with the 'weak' keyword
17281 # *) the shared object with the F_LOADONLY flag set, to really avoid
17282 # it being seen by the linker.
17283 # At run time we better use the real file rather than another symlink,
17284 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17286 case $with_aix_soname,$aix_use_runtimelinking in
17287 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17288 # soname into executable. Probably we can add versioning support to
17289 # collect2, so additional links can be useful in future.
17290 aix,yes) # traditional libtool
17291 dynamic_linker='AIX unversionable lib.so'
17292 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17293 # instead of lib<name>.a to let people know that these are not
17294 # typical AIX shared libraries.
17295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17297 aix,no) # traditional AIX only
17298 dynamic_linker='AIX lib.a(lib.so.V)'
17299 # We preserve .a as extension for shared libraries through AIX4.2
17300 # and later when we are not doing run time linking.
17301 library_names_spec='$libname$release.a $libname.a'
17302 soname_spec='$libname$release$shared_ext$major'
17304 svr4,*) # full svr4 only
17305 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17306 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17307 # We do not specify a path in Import Files, so LIBPATH fires.
17308 shlibpath_overrides_runpath=yes
17310 *,yes) # both, prefer svr4
17311 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17312 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17313 # unpreferred sharedlib libNAME.a needs extra handling
17314 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"'
17315 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"'
17316 # We do not specify a path in Import Files, so LIBPATH fires.
17317 shlibpath_overrides_runpath=yes
17319 *,no) # both, prefer aix
17320 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17321 library_names_spec='$libname$release.a $libname.a'
17322 soname_spec='$libname$release$shared_ext$major'
17323 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17324 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)'
17325 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"'
17328 shlibpath_var=LIBPATH
17335 # Since July 2007 AmigaOS4 officially supports .so libraries.
17336 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17340 library_names_spec='$libname.ixlibrary $libname.a'
17341 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17342 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'
17348 library_names_spec='$libname$shared_ext'
17349 dynamic_linker="$host_os ld.so"
17350 shlibpath_var=LIBRARY_PATH
17354 version_type=linux # correct to gnu/linux during the next big refactor
17356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17357 soname_spec='$libname$release$shared_ext$major'
17358 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17359 shlibpath_var=LD_LIBRARY_PATH
17360 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17361 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17362 # the default ld.so.conf also contains /usr/contrib/lib and
17363 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17364 # libtool to hard-code these into programs
17367 cygwin* | mingw* | pw32* | cegcc*)
17368 version_type=windows
17373 case $GCC,$cc_basename in
17376 library_names_spec='$libname.dll.a'
17377 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17378 postinstall_cmds='base_file=`basename \$file`~
17379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17380 dldir=$destdir/`dirname \$dlpath`~
17381 test -d \$dldir || mkdir -p \$dldir~
17382 $install_prog $dir/$dlname \$dldir/$dlname~
17383 chmod a+x \$dldir/$dlname~
17384 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17385 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17388 dlpath=$dir/\$dldll~
17390 shlibpath_overrides_runpath=yes
17394 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17395 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17399 # MinGW DLLs use traditional 'lib' prefix
17400 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17403 # pw32 DLLs use 'pw' prefix rather than 'lib'
17404 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17407 dynamic_linker='Win32 ld.exe'
17412 libname_spec='$name'
17413 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17414 library_names_spec='$libname.dll.lib'
17418 sys_lib_search_path_spec=
17421 for lt_path in $LIB
17424 # Let DOS variable expansion print the short 8.3 style file name.
17425 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17426 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17429 # Convert to MSYS style.
17430 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17433 # Convert to unix form, then to dos form, then back to unix form
17434 # but this time dos style (no spaces!) so that the unix form looks
17435 # like /cygdrive/c/PROGRA~1:/cygdr...
17436 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17437 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17438 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17441 sys_lib_search_path_spec=$LIB
17442 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17443 # It is most probably a Windows format PATH.
17444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17446 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17448 # FIXME: find the short name or the path components, as spaces are
17449 # common. (e.g. "Program Files" -> "PROGRA~1")
17453 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17454 postinstall_cmds='base_file=`basename \$file`~
17455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17456 dldir=$destdir/`dirname \$dlpath`~
17457 test -d \$dldir || mkdir -p \$dldir~
17458 $install_prog $dir/$dlname \$dldir/$dlname'
17459 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17460 dlpath=$dir/\$dldll~
17462 shlibpath_overrides_runpath=yes
17463 dynamic_linker='Win32 link.exe'
17467 # Assume MSVC wrapper
17468 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17469 dynamic_linker='Win32 ld.exe'
17472 # FIXME: first we should search . and the directory the executable is in
17476 darwin* | rhapsody*)
17477 dynamic_linker="$host_os dyld"
17478 version_type=darwin
17481 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17482 soname_spec='$libname$release$major$shared_ext'
17483 shlibpath_overrides_runpath=yes
17484 shlibpath_var=DYLD_LIBRARY_PATH
17485 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17487 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17491 version_type=linux # correct to gnu/linux during the next big refactor
17494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17495 soname_spec='$libname$release$shared_ext$major'
17496 shlibpath_var=LD_LIBRARY_PATH
17499 freebsd* | dragonfly*)
17500 # DragonFly does not have aout. When/if they implement a new
17501 # versioning mechanism, adjust this.
17502 if test -x /usr/bin/objformat; then
17503 objformat=`/usr/bin/objformat`
17506 freebsd[23].*) objformat=aout ;;
17507 *) objformat=elf ;;
17510 version_type=freebsd-$objformat
17511 case $version_type in
17513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17514 soname_spec='$libname$release$shared_ext$major'
17519 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17523 shlibpath_var=LD_LIBRARY_PATH
17526 shlibpath_overrides_runpath=yes
17528 freebsd3.[01]* | freebsdelf3.[01]*)
17529 shlibpath_overrides_runpath=yes
17530 hardcode_into_libs=yes
17532 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17533 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17534 shlibpath_overrides_runpath=no
17535 hardcode_into_libs=yes
17537 *) # from 4.6 on, and DragonFly
17538 shlibpath_overrides_runpath=yes
17539 hardcode_into_libs=yes
17545 version_type=linux # correct to gnu/linux during the next big refactor
17548 dynamic_linker="$host_os runtime_loader"
17549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17550 soname_spec='$libname$release$shared_ext$major'
17551 shlibpath_var=LIBRARY_PATH
17552 shlibpath_overrides_runpath=no
17553 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17554 hardcode_into_libs=yes
17557 hpux9* | hpux10* | hpux11*)
17558 # Give a soname corresponding to the major version so that dld.sl refuses to
17559 # link against other versions.
17566 hardcode_into_libs=yes
17567 dynamic_linker="$host_os dld.so"
17568 shlibpath_var=LD_LIBRARY_PATH
17569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17571 soname_spec='$libname$release$shared_ext$major'
17572 if test 32 = "$HPUX_IA64_MODE"; then
17573 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17574 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17576 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17577 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17582 hardcode_into_libs=yes
17583 dynamic_linker="$host_os dld.sl"
17584 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17585 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
17588 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17593 dynamic_linker="$host_os dld.sl"
17594 shlibpath_var=SHLIB_PATH
17595 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17597 soname_spec='$libname$release$shared_ext$major'
17600 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17601 postinstall_cmds='chmod 555 $lib'
17602 # or fails outright, so override atomically:
17603 install_override_mode=555
17607 version_type=linux # correct to gnu/linux during the next big refactor
17610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17611 soname_spec='$libname$release$shared_ext$major'
17612 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17613 shlibpath_var=LD_LIBRARY_PATH
17614 shlibpath_overrides_runpath=no
17615 hardcode_into_libs=yes
17618 irix5* | irix6* | nonstopux*)
17620 nonstopux*) version_type=nonstopux ;;
17622 if test yes = "$lt_cv_prog_gnu_ld"; then
17623 version_type=linux # correct to gnu/linux during the next big refactor
17630 soname_spec='$libname$release$shared_ext$major'
17631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17633 irix5* | nonstopux*)
17634 libsuff= shlibsuff=
17637 case $LD in # libtool.m4 will add one of these switches to LD
17638 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17639 libsuff= shlibsuff= libmagic=32-bit;;
17640 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17641 libsuff=32 shlibsuff=N32 libmagic=N32;;
17642 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17643 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17644 *) libsuff= shlibsuff= libmagic=never-match;;
17648 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17649 shlibpath_overrides_runpath=no
17650 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17651 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17652 hardcode_into_libs=yes
17655 # No shared lib support for Linux oldld, aout, or coff.
17656 linux*oldld* | linux*aout* | linux*coff*)
17661 version_type=none # Android doesn't support versioned libraries.
17664 library_names_spec='$libname$release$shared_ext'
17665 soname_spec='$libname$release$shared_ext'
17667 shlibpath_var=LD_LIBRARY_PATH
17668 shlibpath_overrides_runpath=yes
17670 # This implies no fast_install, which is unacceptable.
17671 # Some rework will be needed to allow for fast_install
17672 # before this can be enabled.
17673 hardcode_into_libs=yes
17675 dynamic_linker='Android linker'
17676 # Don't embed -rpath directories since the linker doesn't support them.
17677 hardcode_libdir_flag_spec_CXX='-L$libdir'
17680 # This must be glibc/ELF.
17681 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17682 version_type=linux # correct to gnu/linux during the next big refactor
17685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17686 soname_spec='$libname$release$shared_ext$major'
17687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17688 shlibpath_var=LD_LIBRARY_PATH
17689 shlibpath_overrides_runpath=no
17691 # Some binutils ld are patched to set DT_RUNPATH
17692 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17693 $as_echo_n "(cached) " >&6
17695 lt_cv_shlibpath_overrides_runpath=no
17696 save_LDFLAGS=$LDFLAGS
17697 save_libdir=$libdir
17698 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17699 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17701 /* end confdefs.h. */
17711 if ac_fn_cxx_try_link "$LINENO"; then :
17712 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17713 lt_cv_shlibpath_overrides_runpath=yes
17716 rm -f core conftest.err conftest.$ac_objext \
17717 conftest$ac_exeext conftest.$ac_ext
17718 LDFLAGS=$save_LDFLAGS
17719 libdir=$save_libdir
17723 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17725 # This implies no fast_install, which is unacceptable.
17726 # Some rework will be needed to allow for fast_install
17727 # before this can be enabled.
17728 hardcode_into_libs=yes
17730 # Ideally, we could use ldconfig to report *all* directores which are
17731 # searched for libraries, however this is still not possible. Aside from not
17732 # being certain /sbin/ldconfig is available, command
17733 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17734 # even though it is searched at run-time. Try to do the best guess by
17735 # appending ld.so.conf contents (and includes) to the search path.
17736 if test -f /etc/ld.so.conf; then
17737 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' ' '`
17738 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17741 # We used to test for /lib/ld.so.1 and disable shared libraries on
17742 # powerpc, because MkLinux only supported shared libraries with the
17743 # GNU dynamic linker. Since this was broken with cross compilers,
17744 # most powerpc-linux boxes support dynamic linking these days and
17745 # people can always --disable-shared, the test was removed, and we
17746 # assume the GNU/Linux dynamic linker is in use.
17747 dynamic_linker='GNU/Linux ld.so'
17754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17755 soname_spec='${libname}${release}${shared_ext}$major'
17756 shlibpath_var=LD_LIBRARY_PATH
17757 shlibpath_overrides_runpath=no
17758 hardcode_into_libs=yes
17759 dynamic_linker='NetBSD ld.elf_so'
17766 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17767 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17769 dynamic_linker='NetBSD (a.out) ld.so'
17771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17772 soname_spec='$libname$release$shared_ext$major'
17773 dynamic_linker='NetBSD ld.elf_so'
17775 shlibpath_var=LD_LIBRARY_PATH
17776 shlibpath_overrides_runpath=yes
17777 hardcode_into_libs=yes
17781 version_type=linux # correct to gnu/linux during the next big refactor
17782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17783 shlibpath_var=LD_LIBRARY_PATH
17784 shlibpath_overrides_runpath=yes
17791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17792 soname_spec='$libname$release$shared_ext$major'
17793 shlibpath_var=LD_LIBRARY_PATH
17794 shlibpath_overrides_runpath=no
17795 hardcode_into_libs=yes
17796 dynamic_linker='ldqnx.so'
17799 openbsd* | bitrig*)
17801 sys_lib_dlsearch_path_spec=/usr/lib
17803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17808 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17810 shlibpath_var=LD_LIBRARY_PATH
17811 shlibpath_overrides_runpath=yes
17815 libname_spec='$name'
17816 version_type=windows
17820 # OS/2 can only load a DLL with a base name of 8 characters or less.
17821 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17822 v=$($ECHO $release$versuffix | tr -d .-);
17823 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17824 $ECHO $n$v`$shared_ext'
17825 library_names_spec='${libname}_dll.$libext'
17826 dynamic_linker='OS/2 ld.exe'
17827 shlibpath_var=BEGINLIBPATH
17828 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17830 postinstall_cmds='base_file=`basename \$file`~
17831 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17832 dldir=$destdir/`dirname \$dlpath`~
17833 test -d \$dldir || mkdir -p \$dldir~
17834 $install_prog $dir/$dlname \$dldir/$dlname~
17835 chmod a+x \$dldir/$dlname~
17836 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17837 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17840 dlpath=$dir/\$dldll~
17844 osf3* | osf4* | osf5*)
17848 soname_spec='$libname$release$shared_ext$major'
17849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17850 shlibpath_var=LD_LIBRARY_PATH
17851 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17860 version_type=linux # correct to gnu/linux during the next big refactor
17863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17864 soname_spec='$libname$release$shared_ext$major'
17865 shlibpath_var=LD_LIBRARY_PATH
17866 shlibpath_overrides_runpath=yes
17867 hardcode_into_libs=yes
17868 # ldd complains unless libraries are executable
17869 postinstall_cmds='chmod +x $lib'
17874 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17875 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17876 shlibpath_var=LD_LIBRARY_PATH
17877 shlibpath_overrides_runpath=yes
17878 if test yes = "$with_gnu_ld"; then
17885 version_type=linux # correct to gnu/linux during the next big refactor
17886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17887 soname_spec='$libname$release$shared_ext$major'
17888 shlibpath_var=LD_LIBRARY_PATH
17889 case $host_vendor in
17891 shlibpath_overrides_runpath=no
17893 runpath_var=LD_RUN_PATH
17901 shlibpath_overrides_runpath=no
17902 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17908 if test -d /usr/nec; then
17909 version_type=linux # correct to gnu/linux during the next big refactor
17910 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17911 soname_spec='$libname$shared_ext.$major'
17912 shlibpath_var=LD_LIBRARY_PATH
17916 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17921 soname_spec='$libname$release$shared_ext$major'
17922 shlibpath_var=LD_LIBRARY_PATH
17923 shlibpath_overrides_runpath=yes
17924 hardcode_into_libs=yes
17925 if test yes = "$with_gnu_ld"; then
17926 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17928 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17931 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17935 sys_lib_dlsearch_path_spec='/usr/lib'
17939 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17940 version_type=linux # correct to gnu/linux during the next big refactor
17943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17944 shlibpath_var=LD_LIBRARY_PATH
17945 shlibpath_overrides_runpath=no
17946 hardcode_into_libs=yes
17950 version_type=linux # correct to gnu/linux during the next big refactor
17951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17952 soname_spec='$libname$release$shared_ext$major'
17953 shlibpath_var=LD_LIBRARY_PATH
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17961 $as_echo "$dynamic_linker" >&6; }
17962 test no = "$dynamic_linker" && can_build_shared=no
17964 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17965 if test yes = "$GCC"; then
17966 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17969 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17970 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17973 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17974 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17977 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17978 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17980 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17981 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17983 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17984 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18026 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18027 hardcode_action_CXX=
18028 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18029 test -n "$runpath_var_CXX" ||
18030 test yes = "$hardcode_automatic_CXX"; then
18032 # We can hardcode non-existent directories.
18033 if test no != "$hardcode_direct_CXX" &&
18034 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18035 # have to relink, otherwise we might link with an installed library
18036 # when we should be linking with a yet-to-be-installed one
18037 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18038 test no != "$hardcode_minus_L_CXX"; then
18039 # Linking always hardcodes the temporary library directory.
18040 hardcode_action_CXX=relink
18042 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18043 hardcode_action_CXX=immediate
18046 # We cannot hardcode anything, or else we can only hardcode existing
18048 hardcode_action_CXX=unsupported
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18051 $as_echo "$hardcode_action_CXX" >&6; }
18053 if test relink = "$hardcode_action_CXX" ||
18054 test yes = "$inherit_rpath_CXX"; then
18055 # Fast installation is not supported
18056 enable_fast_install=no
18057 elif test yes = "$shlibpath_overrides_runpath" ||
18058 test no = "$enable_shared"; then
18059 # Fast installation is not necessary
18060 enable_fast_install=needless
18069 fi # test -n "$compiler"
18072 CFLAGS=$lt_save_CFLAGS
18076 with_gnu_ld=$lt_save_with_gnu_ld
18077 lt_cv_path_LDCXX=$lt_cv_path_LD
18078 lt_cv_path_LD=$lt_save_path_LD
18079 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18080 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18081 fi # test yes != "$_lt_caught_CXX_error"
18084 ac_cpp='$CPP $CPPFLAGS'
18085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18090 # Check whether --enable-largefile was given.
18091 if test "${enable_largefile+set}" = set; then :
18092 enableval=$enable_largefile;
18095 if test "$enable_largefile" != no; then
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18098 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18099 if ${ac_cv_sys_largefile_CC+:} false; then :
18100 $as_echo_n "(cached) " >&6
18102 ac_cv_sys_largefile_CC=no
18103 if test "$GCC" != yes; then
18106 # IRIX 6.2 and later do not support large files by default,
18107 # so use the C compiler's -n32 option if that helps.
18108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18109 /* end confdefs.h. */
18110 #include <sys/types.h>
18111 /* Check that off_t can represent 2**63 - 1 correctly.
18112 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18113 since some C++ compilers masquerading as C compilers
18114 incorrectly reject 9223372036854775807. */
18115 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18116 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18117 && LARGE_OFF_T % 2147483647 == 1)
18127 if ac_fn_c_try_compile "$LINENO"; then :
18130 rm -f core conftest.err conftest.$ac_objext
18132 if ac_fn_c_try_compile "$LINENO"; then :
18133 ac_cv_sys_largefile_CC=' -n32'; break
18135 rm -f core conftest.err conftest.$ac_objext
18139 rm -f conftest.$ac_ext
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18143 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18144 if test "$ac_cv_sys_largefile_CC" != no; then
18145 CC=$CC$ac_cv_sys_largefile_CC
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18149 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18150 if ${ac_cv_sys_file_offset_bits+:} false; then :
18151 $as_echo_n "(cached) " >&6
18154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18155 /* end confdefs.h. */
18156 #include <sys/types.h>
18157 /* Check that off_t can represent 2**63 - 1 correctly.
18158 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18159 since some C++ compilers masquerading as C compilers
18160 incorrectly reject 9223372036854775807. */
18161 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18162 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18163 && LARGE_OFF_T % 2147483647 == 1)
18173 if ac_fn_c_try_compile "$LINENO"; then :
18174 ac_cv_sys_file_offset_bits=no; break
18176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18178 /* end confdefs.h. */
18179 #define _FILE_OFFSET_BITS 64
18180 #include <sys/types.h>
18181 /* Check that off_t can represent 2**63 - 1 correctly.
18182 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18183 since some C++ compilers masquerading as C compilers
18184 incorrectly reject 9223372036854775807. */
18185 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18186 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18187 && LARGE_OFF_T % 2147483647 == 1)
18197 if ac_fn_c_try_compile "$LINENO"; then :
18198 ac_cv_sys_file_offset_bits=64; break
18200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18201 ac_cv_sys_file_offset_bits=unknown
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18206 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18207 case $ac_cv_sys_file_offset_bits in #(
18210 cat >>confdefs.h <<_ACEOF
18211 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18216 if test $ac_cv_sys_file_offset_bits = unknown; then
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18218 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18219 if ${ac_cv_sys_large_files+:} false; then :
18220 $as_echo_n "(cached) " >&6
18223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h. */
18225 #include <sys/types.h>
18226 /* Check that off_t can represent 2**63 - 1 correctly.
18227 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18228 since some C++ compilers masquerading as C compilers
18229 incorrectly reject 9223372036854775807. */
18230 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18231 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18232 && LARGE_OFF_T % 2147483647 == 1)
18242 if ac_fn_c_try_compile "$LINENO"; then :
18243 ac_cv_sys_large_files=no; break
18245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h. */
18248 #define _LARGE_FILES 1
18249 #include <sys/types.h>
18250 /* Check that off_t can represent 2**63 - 1 correctly.
18251 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18252 since some C++ compilers masquerading as C compilers
18253 incorrectly reject 9223372036854775807. */
18254 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18255 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18256 && LARGE_OFF_T % 2147483647 == 1)
18266 if ac_fn_c_try_compile "$LINENO"; then :
18267 ac_cv_sys_large_files=1; break
18269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18270 ac_cv_sys_large_files=unknown
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18275 $as_echo "$ac_cv_sys_large_files" >&6; }
18276 case $ac_cv_sys_large_files in #(
18279 cat >>confdefs.h <<_ACEOF
18280 #define _LARGE_FILES $ac_cv_sys_large_files
18292 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18293 if test -n "$ac_tool_prefix"; then
18294 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18295 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18297 $as_echo_n "checking for $ac_word... " >&6; }
18298 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18299 $as_echo_n "(cached) " >&6
18301 case $PKG_CONFIG in
18303 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18307 for as_dir in $PATH
18310 test -z "$as_dir" && as_dir=.
18311 for ac_exec_ext in '' $ac_executable_extensions; do
18312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18313 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18324 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18325 if test -n "$PKG_CONFIG"; then
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18327 $as_echo "$PKG_CONFIG" >&6; }
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18330 $as_echo "no" >&6; }
18335 if test -z "$ac_cv_path_PKG_CONFIG"; then
18336 ac_pt_PKG_CONFIG=$PKG_CONFIG
18337 # Extract the first word of "pkg-config", so it can be a program name with args.
18338 set dummy pkg-config; ac_word=$2
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18340 $as_echo_n "checking for $ac_word... " >&6; }
18341 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18342 $as_echo_n "(cached) " >&6
18344 case $ac_pt_PKG_CONFIG in
18346 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18350 for as_dir in $PATH
18353 test -z "$as_dir" && as_dir=.
18354 for ac_exec_ext in '' $ac_executable_extensions; do
18355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18356 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18367 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18368 if test -n "$ac_pt_PKG_CONFIG"; then
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18370 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18373 $as_echo "no" >&6; }
18376 if test "x$ac_pt_PKG_CONFIG" = x; then
18379 case $cross_compiling:$ac_tool_warned in
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18383 ac_tool_warned=yes ;;
18385 PKG_CONFIG=$ac_pt_PKG_CONFIG
18388 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18392 if test -n "$PKG_CONFIG"; then
18393 _pkg_min_version=0.20
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18395 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18396 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18398 $as_echo "yes" >&6; }
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18401 $as_echo "no" >&6; }
18407 RAGEL=${RAGEL-"${am_missing_run}ragel"}
18410 GIT=${GIT-"${am_missing_run}git"}
18432 HB_LIBTOOL_VERSION_INFO=10706:0:10706
18436 # Check whether --with-libstdc++ was given.
18437 if test "${with_libstdc__+set}" = set; then :
18438 withval=$with_libstdc__; with_libstdcxx=$withval
18443 if test "x$with_libstdcxx" = "xyes"; then
18444 WITH_LIBSTDCXX_TRUE=
18445 WITH_LIBSTDCXX_FALSE='#'
18447 WITH_LIBSTDCXX_TRUE='#'
18448 WITH_LIBSTDCXX_FALSE=
18458 gtk_doc_requires="gtk-doc >= 1.15"
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
18460 $as_echo_n "checking for gtk-doc... " >&6; }
18461 if test -n "$PKG_CONFIG" && \
18462 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
18463 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
18465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18466 test $ac_status = 0; }; then
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
18472 $as_echo "$have_gtk_doc" >&6; }
18474 if test "$have_gtk_doc" = "no"; then
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18476 You will not be able to create source packages with 'make dist'
18477 because $gtk_doc_requires is not found." >&5
18478 $as_echo "$as_me: WARNING:
18479 You will not be able to create source packages with 'make dist'
18480 because $gtk_doc_requires is not found." >&2;}
18483 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18484 set dummy gtkdoc-check; ac_word=$2
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18486 $as_echo_n "checking for $ac_word... " >&6; }
18487 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
18488 $as_echo_n "(cached) " >&6
18490 if test -n "$GTKDOC_CHECK"; then
18491 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
18493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18494 for as_dir in $PATH
18497 test -z "$as_dir" && as_dir=.
18498 for ac_exec_ext in '' $ac_executable_extensions; do
18499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18500 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
18501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18510 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
18511 if test -n "$GTKDOC_CHECK"; then
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
18513 $as_echo "$GTKDOC_CHECK" >&6; }
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18516 $as_echo "no" >&6; }
18520 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18521 set dummy gtkdoc-check; ac_word=$2
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18523 $as_echo_n "checking for $ac_word... " >&6; }
18524 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
18525 $as_echo_n "(cached) " >&6
18527 case $GTKDOC_CHECK_PATH in
18529 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
18532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18533 for as_dir in $PATH
18536 test -z "$as_dir" && as_dir=.
18537 for ac_exec_ext in '' $ac_executable_extensions; do
18538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18539 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
18540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18550 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
18551 if test -n "$GTKDOC_CHECK_PATH"; then
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
18553 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18556 $as_echo "no" >&6; }
18560 for ac_prog in gtkdoc-rebase
18562 # Extract the first word of "$ac_prog", so it can be a program name with args.
18563 set dummy $ac_prog; ac_word=$2
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18565 $as_echo_n "checking for $ac_word... " >&6; }
18566 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
18567 $as_echo_n "(cached) " >&6
18569 case $GTKDOC_REBASE in
18571 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
18574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18575 for as_dir in $PATH
18578 test -z "$as_dir" && as_dir=.
18579 for ac_exec_ext in '' $ac_executable_extensions; do
18580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18581 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
18582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18592 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
18593 if test -n "$GTKDOC_REBASE"; then
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
18595 $as_echo "$GTKDOC_REBASE" >&6; }
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18598 $as_echo "no" >&6; }
18602 test -n "$GTKDOC_REBASE" && break
18604 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
18606 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
18607 set dummy gtkdoc-mkpdf; ac_word=$2
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18609 $as_echo_n "checking for $ac_word... " >&6; }
18610 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
18611 $as_echo_n "(cached) " >&6
18613 case $GTKDOC_MKPDF in
18615 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
18618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18619 for as_dir in $PATH
18622 test -z "$as_dir" && as_dir=.
18623 for ac_exec_ext in '' $ac_executable_extensions; do
18624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18625 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
18626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18636 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
18637 if test -n "$GTKDOC_MKPDF"; then
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
18639 $as_echo "$GTKDOC_MKPDF" >&6; }
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18642 $as_echo "no" >&6; }
18648 # Check whether --with-html-dir was given.
18649 if test "${with_html_dir+set}" = set; then :
18650 withval=$with_html_dir;
18652 with_html_dir='${datadir}/gtk-doc/html'
18655 HTML_DIR="$with_html_dir"
18658 # Check whether --enable-gtk-doc was given.
18659 if test "${enable_gtk_doc+set}" = set; then :
18660 enableval=$enable_gtk_doc;
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
18667 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
18669 $as_echo "$enable_gtk_doc" >&6; }
18671 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
18673 You must have $gtk_doc_requires installed to build documentation for
18674 $PACKAGE_NAME. Please install gtk-doc or disable building the
18675 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
18678 if test "x$PACKAGE_NAME" != "xglib"; then
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
18682 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
18684 if test -n "$PKG_CONFIG"; then
18685 if test -n "$GTKDOC_DEPS_CFLAGS"; then
18686 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
18688 if test -n "$PKG_CONFIG" && \
18689 { { $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
18690 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
18692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18693 test $ac_status = 0; }; then
18694 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
18702 if test -n "$PKG_CONFIG"; then
18703 if test -n "$GTKDOC_DEPS_LIBS"; then
18704 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
18706 if test -n "$PKG_CONFIG" && \
18707 { { $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
18708 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
18710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18711 test $ac_status = 0; }; then
18712 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
18723 if test $pkg_failed = yes; then
18725 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18726 _pkg_short_errors_supported=yes
18728 _pkg_short_errors_supported=no
18730 if test $_pkg_short_errors_supported = yes; then
18731 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0"`
18733 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0"`
18735 # Put the nasty error message in config.log where it belongs
18736 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18739 $as_echo "no" >&6; }
18741 elif test $pkg_failed = untried; then
18744 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
18745 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18747 $as_echo "yes" >&6; }
18752 # Check whether --enable-gtk-doc-html was given.
18753 if test "${enable_gtk_doc_html+set}" = set; then :
18754 enableval=$enable_gtk_doc_html;
18756 enable_gtk_doc_html=yes
18759 # Check whether --enable-gtk-doc-pdf was given.
18760 if test "${enable_gtk_doc_pdf+set}" = set; then :
18761 enableval=$enable_gtk_doc_pdf;
18763 enable_gtk_doc_pdf=no
18767 if test -z "$GTKDOC_MKPDF"; then
18768 enable_gtk_doc_pdf=no
18771 if test -z "$AM_DEFAULT_VERBOSITY"; then
18772 AM_DEFAULT_VERBOSITY=1
18776 if test x$have_gtk_doc = xyes; then
18778 HAVE_GTK_DOC_FALSE='#'
18780 HAVE_GTK_DOC_TRUE='#'
18781 HAVE_GTK_DOC_FALSE=
18784 if test x$enable_gtk_doc = xyes; then
18785 ENABLE_GTK_DOC_TRUE=
18786 ENABLE_GTK_DOC_FALSE='#'
18788 ENABLE_GTK_DOC_TRUE='#'
18789 ENABLE_GTK_DOC_FALSE=
18792 if test x$enable_gtk_doc_html = xyes; then
18793 GTK_DOC_BUILD_HTML_TRUE=
18794 GTK_DOC_BUILD_HTML_FALSE='#'
18796 GTK_DOC_BUILD_HTML_TRUE='#'
18797 GTK_DOC_BUILD_HTML_FALSE=
18800 if test x$enable_gtk_doc_pdf = xyes; then
18801 GTK_DOC_BUILD_PDF_TRUE=
18802 GTK_DOC_BUILD_PDF_FALSE='#'
18804 GTK_DOC_BUILD_PDF_TRUE='#'
18805 GTK_DOC_BUILD_PDF_FALSE=
18808 if test -n "$LIBTOOL"; then
18809 GTK_DOC_USE_LIBTOOL_TRUE=
18810 GTK_DOC_USE_LIBTOOL_FALSE='#'
18812 GTK_DOC_USE_LIBTOOL_TRUE='#'
18813 GTK_DOC_USE_LIBTOOL_FALSE=
18816 if test -n "$GTKDOC_REBASE"; then
18817 GTK_DOC_USE_REBASE_TRUE=
18818 GTK_DOC_USE_REBASE_FALSE='#'
18820 GTK_DOC_USE_REBASE_TRUE='#'
18821 GTK_DOC_USE_REBASE_FALSE=
18825 if test "x$enable_gtk_doc" = xyes; then
18830 # Functions, and headers
18831 for ac_func in atexit mprotect sysconf getpagesize mmap isatty newlocale strtod_l setlinebuf
18833 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18834 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18835 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18836 cat >>confdefs.h <<_ACEOF
18837 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18843 for ac_header in unistd.h sys/mman.h xlocale.h
18845 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18846 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18847 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18848 cat >>confdefs.h <<_ACEOF
18849 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18859 # The cast to long int works around a bug in the HP C Compiler,
18860 # see AC_CHECK_SIZEOF for more information.
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
18862 $as_echo_n "checking alignment of struct{char;}... " >&6; }
18863 if ${ac_cv_alignof_struct_char__+:} false; then :
18864 $as_echo_n "(cached) " >&6
18866 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__" "$ac_includes_default
18868 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
18870 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
18873 if test "$ac_cv_type_struct_char__" = yes; then
18874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18876 as_fn_error 77 "cannot compute alignment of struct{char;}
18877 See \`config.log' for more details" "$LINENO" 5; }
18879 ac_cv_alignof_struct_char__=0
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
18885 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
18889 cat >>confdefs.h <<_ACEOF
18890 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
18894 if test "x$GCC" = "xyes"; then
18896 # Make symbols link locally
18897 LDFLAGS="$LDFLAGS -Bsymbolic-functions"
18899 # Assorted warnings
18900 CXXFLAGS="$CXXFLAGS -Wcast-align"
18906 # Hide inline methods
18907 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
18913 if test "x$ac_cv_alignof_struct_char__" != x1; then
18914 # Request byte alignment
18915 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
18921 if test "x$GCC" = "xyes"; then
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
18932 $as_echo_n "checking for native Win32... " >&6; }
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
18939 $as_echo "$hb_os_win32" >&6; }
18940 if test "$hb_os_win32" = "yes"; then
18950 if test "$hb_os_win32" = no; then
18956 ac_cpp='$CPP $CPPFLAGS'
18957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18963 # We used to check for pthread.h first, but this fails if pthread.h
18964 # requires special compiler flags (e.g. on Tru64 or Sequent).
18965 # It gets checked for in the link test anyway.
18967 # First of all, check if the user has set any of the PTHREAD_LIBS,
18968 # etcetera environment variables, and if threads linking works using
18970 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
18971 ax_pthread_save_CC="$CC"
18972 ax_pthread_save_CFLAGS="$CFLAGS"
18973 ax_pthread_save_LIBS="$LIBS"
18974 if test "x$PTHREAD_CC" != "x"; then :
18977 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18978 LIBS="$PTHREAD_LIBS $LIBS"
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
18980 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
18981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18982 /* end confdefs.h. */
18984 /* Override any GCC internal prototype to avoid an error.
18985 Use char because int might match the return type of a GCC
18986 builtin and then its argument prototype would still apply. */
18990 char pthread_join ();
18994 return pthread_join ();
18999 if ac_fn_c_try_link "$LINENO"; then :
19002 rm -f core conftest.err conftest.$ac_objext \
19003 conftest$ac_exeext conftest.$ac_ext
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19005 $as_echo "$ax_pthread_ok" >&6; }
19006 if test "x$ax_pthread_ok" = "xno"; then
19010 CC="$ax_pthread_save_CC"
19011 CFLAGS="$ax_pthread_save_CFLAGS"
19012 LIBS="$ax_pthread_save_LIBS"
19015 # We must check for the threads library under a number of different
19016 # names; the ordering is very important because some systems
19017 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19018 # libraries is broken (non-POSIX).
19020 # Create a list of thread flags to try. Items starting with a "-" are
19021 # C compiler flags, and other items are library names, except for "none"
19022 # which indicates that we try without any flags at all, and "pthread-config"
19023 # which is a program returning the flags for the Pth emulation library.
19025 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19027 # The ordering *is* (sometimes) important. Some notes on the
19028 # individual items follow:
19030 # pthreads: AIX (must check this before -lpthread)
19031 # none: in case threads are in libc; should be tried before -Kthread and
19032 # other compiler flags to prevent continual compiler warnings
19033 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19034 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19035 # (Note: HP C rejects this with "bad form for `-t' option")
19036 # -pthreads: Solaris/gcc (Note: HP C also rejects)
19037 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19038 # doesn't hurt to check since this sometimes defines pthreads and
19039 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
19040 # is present but should not be used directly; and before -mthreads,
19041 # because the compiler interprets this as "-mt" + "-hreads")
19042 # -mthreads: Mingw32/gcc, Lynx/gcc
19043 # pthread: Linux, etcetera
19044 # --thread-safe: KAI C++
19045 # pthread-config: use pthread-config program (for GNU Pth library)
19051 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19052 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19054 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
19059 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19060 # multi-threading and also sets -lpthread."
19062 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19067 # IBM z/OS requires a feature-test macro to be defined in order to
19068 # enable POSIX threads at all, so give the user a hint if this is
19069 # not set. (We don't define these ourselves, as they can affect
19070 # other portions of the system API in unpredictable ways.)
19072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19073 /* end confdefs.h. */
19075 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19076 AX_PTHREAD_ZOS_MISSING
19080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19081 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19083 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19091 # On Solaris (at least, for some versions), libc contains stubbed
19092 # (non-functional) versions of the pthreads routines, so link-based
19093 # tests will erroneously succeed. (N.B.: The stubs are missing
19094 # pthread_cleanup_push, or rather a function called by this macro,
19095 # so we could check for that, but who knows whether they'll stub
19096 # that too in a future libc.) So we'll check first for the
19097 # standard Solaris way of linking pthreads (-mt -lpthread).
19099 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
19103 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
19105 if test "x$GCC" = "xyes"; then :
19106 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
19109 # The presence of a feature test macro requesting re-entrant function
19110 # definitions is, on some systems, a strong hint that pthreads support is
19111 # correctly enabled
19114 darwin* | hpux* | linux* | osf* | solaris*)
19115 ax_pthread_check_macro="_REENTRANT"
19119 ax_pthread_check_macro="_THREAD_SAFE"
19123 ax_pthread_check_macro="--"
19126 if test "x$ax_pthread_check_macro" = "x--"; then :
19127 ax_pthread_check_cond=0
19129 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
19132 # Are we compiling with Clang?
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
19135 $as_echo_n "checking whether $CC is Clang... " >&6; }
19136 if ${ax_cv_PTHREAD_CLANG+:} false; then :
19137 $as_echo_n "(cached) " >&6
19139 ax_cv_PTHREAD_CLANG=no
19140 # Note that Autoconf sets GCC=yes for Clang as well as GCC
19141 if test "x$GCC" = "xyes"; then
19142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19143 /* end confdefs.h. */
19144 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
19145 # if defined(__clang__) && defined(__llvm__)
19146 AX_PTHREAD_CC_IS_CLANG
19150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19151 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
19152 ax_cv_PTHREAD_CLANG=yes
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
19160 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
19161 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
19163 ax_pthread_clang_warning=no
19165 # Clang needs special handling, because older versions handle the -pthread
19166 # option in a rather... idiosyncratic way
19168 if test "x$ax_pthread_clang" = "xyes"; then
19170 # Clang takes -pthread; it has never supported any other flag
19172 # (Note 1: This will need to be revisited if a system that Clang
19173 # supports has POSIX threads in a separate library. This tends not
19174 # to be the way of modern systems, but it's conceivable.)
19176 # (Note 2: On some systems, notably Darwin, -pthread is not needed
19177 # to get POSIX threads support; the API is always present and
19178 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
19179 # -pthread does define _REENTRANT, and while the Darwin headers
19180 # ignore this macro, third-party headers might not.)
19182 PTHREAD_CFLAGS="-pthread"
19187 # However, older versions of Clang make a point of warning the user
19188 # that, in an invocation where only linking and no compilation is
19189 # taking place, the -pthread option has no effect ("argument unused
19190 # during compilation"). They expect -pthread to be passed in only
19191 # when source code is being compiled.
19193 # Problem is, this is at odds with the way Automake and most other
19194 # C build frameworks function, which is that the same flags used in
19195 # compilation (CFLAGS) are also used in linking. Many systems
19196 # supported by AX_PTHREAD require exactly this for POSIX threads
19197 # support, and in fact it is often not straightforward to specify a
19198 # flag that is used only in the compilation phase and not in
19199 # linking. Such a scenario is extremely rare in practice.
19201 # Even though use of the -pthread flag in linking would only print
19202 # a warning, this can be a nuisance for well-run software projects
19203 # that build with -Werror. So if the active version of Clang has
19204 # this misfeature, we search for an option to squash it.
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
19207 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
19208 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
19209 $as_echo_n "(cached) " >&6
19211 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
19212 # Create an alternate version of $ac_link that compiles and
19213 # links in two steps (.c -> .o, .o -> exe) instead of one
19214 # (.c -> exe), because the warning occurs only in the second
19216 ax_pthread_save_ac_link="$ac_link"
19217 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
19218 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
19219 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
19220 ax_pthread_save_CFLAGS="$CFLAGS"
19221 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
19222 if test "x$ax_pthread_try" = "xunknown"; then :
19225 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
19226 ac_link="$ax_pthread_save_ac_link"
19227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19228 /* end confdefs.h. */
19229 int main(void){return 0;}
19231 if ac_fn_c_try_link "$LINENO"; then :
19232 ac_link="$ax_pthread_2step_ac_link"
19233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19234 /* end confdefs.h. */
19235 int main(void){return 0;}
19237 if ac_fn_c_try_link "$LINENO"; then :
19240 rm -f core conftest.err conftest.$ac_objext \
19241 conftest$ac_exeext conftest.$ac_ext
19244 rm -f core conftest.err conftest.$ac_objext \
19245 conftest$ac_exeext conftest.$ac_ext
19247 ac_link="$ax_pthread_save_ac_link"
19248 CFLAGS="$ax_pthread_save_CFLAGS"
19249 if test "x$ax_pthread_try" = "x"; then :
19252 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
19256 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
19258 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
19260 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
19263 fi # $ax_pthread_clang = yes
19265 if test "x$ax_pthread_ok" = "xno"; then
19266 for ax_pthread_try_flag in $ax_pthread_flags; do
19268 case $ax_pthread_try_flag in
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19271 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
19276 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
19277 PTHREAD_CFLAGS="-mt"
19278 PTHREAD_LIBS="-lpthread"
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
19283 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
19284 PTHREAD_CFLAGS="$ax_pthread_try_flag"
19288 # Extract the first word of "pthread-config", so it can be a program name with args.
19289 set dummy pthread-config; ac_word=$2
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19291 $as_echo_n "checking for $ac_word... " >&6; }
19292 if ${ac_cv_prog_ax_pthread_config+:} false; then :
19293 $as_echo_n "(cached) " >&6
19295 if test -n "$ax_pthread_config"; then
19296 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19299 for as_dir in $PATH
19302 test -z "$as_dir" && as_dir=.
19303 for ac_exec_ext in '' $ac_executable_extensions; do
19304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19305 ac_cv_prog_ax_pthread_config="yes"
19306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19313 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19316 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19317 if test -n "$ax_pthread_config"; then
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19319 $as_echo "$ax_pthread_config" >&6; }
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19322 $as_echo "no" >&6; }
19326 if test "x$ax_pthread_config" = "xno"; then :
19329 PTHREAD_CFLAGS="`pthread-config --cflags`"
19330 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
19335 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
19336 PTHREAD_LIBS="-l$ax_pthread_try_flag"
19340 ax_pthread_save_CFLAGS="$CFLAGS"
19341 ax_pthread_save_LIBS="$LIBS"
19342 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19343 LIBS="$PTHREAD_LIBS $LIBS"
19345 # Check for various functions. We must include pthread.h,
19346 # since some functions may be macros. (On the Sequent, we
19347 # need a special flag -Kthread to make this header compile.)
19348 # We check for pthread_join because it is in -lpthread on IRIX
19349 # while pthread_create is in libc. We check for pthread_attr_init
19350 # due to DEC craziness with -lpthreads. We check for
19351 # pthread_cleanup_push because it is one of the few pthread
19352 # functions on Solaris that doesn't have a non-functional libc stub.
19353 # We try pthread_create on general principles.
19355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19356 /* end confdefs.h. */
19357 #include <pthread.h>
19358 # if $ax_pthread_check_cond
19359 # error "$ax_pthread_check_macro must be defined"
19361 static void routine(void *a) { a = 0; }
19362 static void *start_routine(void *a) { return a; }
19366 pthread_t th; pthread_attr_t attr;
19367 pthread_create(&th, 0, start_routine, 0);
19368 pthread_join(th, 0);
19369 pthread_attr_init(&attr);
19370 pthread_cleanup_push(routine, 0);
19371 pthread_cleanup_pop(0) /* ; */
19376 if ac_fn_c_try_link "$LINENO"; then :
19379 rm -f core conftest.err conftest.$ac_objext \
19380 conftest$ac_exeext conftest.$ac_ext
19382 CFLAGS="$ax_pthread_save_CFLAGS"
19383 LIBS="$ax_pthread_save_LIBS"
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19386 $as_echo "$ax_pthread_ok" >&6; }
19387 if test "x$ax_pthread_ok" = "xyes"; then :
19396 # Various other checks:
19397 if test "x$ax_pthread_ok" = "xyes"; then
19398 ax_pthread_save_CFLAGS="$CFLAGS"
19399 ax_pthread_save_LIBS="$LIBS"
19400 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19401 LIBS="$PTHREAD_LIBS $LIBS"
19403 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19405 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19406 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
19407 $as_echo_n "(cached) " >&6
19409 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19410 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19412 /* end confdefs.h. */
19413 #include <pthread.h>
19417 int attr = $ax_pthread_attr; return attr /* ; */
19422 if ac_fn_c_try_link "$LINENO"; then :
19423 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
19425 rm -f core conftest.err conftest.$ac_objext \
19426 conftest$ac_exeext conftest.$ac_ext
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19431 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19432 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
19433 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
19434 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
19436 cat >>confdefs.h <<_ACEOF
19437 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
19440 ax_pthread_joinable_attr_defined=yes
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
19445 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
19446 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
19447 $as_echo_n "(cached) " >&6
19449 ax_cv_PTHREAD_SPECIAL_FLAGS=no
19452 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19458 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19459 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19460 test "x$ax_pthread_special_flags_added" != "xyes"; then :
19461 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19462 ax_pthread_special_flags_added=yes
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19466 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19467 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19468 $as_echo_n "(cached) " >&6
19470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19471 /* end confdefs.h. */
19472 #include <pthread.h>
19476 int i = PTHREAD_PRIO_INHERIT;
19481 if ac_fn_c_try_link "$LINENO"; then :
19482 ax_cv_PTHREAD_PRIO_INHERIT=yes
19484 ax_cv_PTHREAD_PRIO_INHERIT=no
19486 rm -f core conftest.err conftest.$ac_objext \
19487 conftest$ac_exeext conftest.$ac_ext
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19491 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19492 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
19493 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
19495 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19497 ax_pthread_prio_inherit_defined=yes
19501 CFLAGS="$ax_pthread_save_CFLAGS"
19502 LIBS="$ax_pthread_save_LIBS"
19504 # More AIX lossage: compile with *_r variant
19505 if test "x$GCC" != "xyes"; then
19509 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19510 #handle absolute path differently from PATH based program lookup
19513 if as_fn_executable_p ${CC}_r; then :
19514 PTHREAD_CC="${CC}_r"
19517 for ac_prog in ${CC}_r
19519 # Extract the first word of "$ac_prog", so it can be a program name with args.
19520 set dummy $ac_prog; ac_word=$2
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19522 $as_echo_n "checking for $ac_word... " >&6; }
19523 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19524 $as_echo_n "(cached) " >&6
19526 if test -n "$PTHREAD_CC"; then
19527 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19530 for as_dir in $PATH
19533 test -z "$as_dir" && as_dir=.
19534 for ac_exec_ext in '' $ac_executable_extensions; do
19535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19536 ac_cv_prog_PTHREAD_CC="$ac_prog"
19537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19546 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19547 if test -n "$PTHREAD_CC"; then
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19549 $as_echo "$PTHREAD_CC" >&6; }
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19552 $as_echo "no" >&6; }
19556 test -n "$PTHREAD_CC" && break
19558 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19569 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19575 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19576 if test "x$ax_pthread_ok" = "xyes"; then
19584 ac_cpp='$CPP $CPPFLAGS'
19585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19591 if $have_pthread; then
19593 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19596 if $have_pthread; then
19598 HAVE_PTHREAD_FALSE='#'
19600 HAVE_PTHREAD_TRUE='#'
19601 HAVE_PTHREAD_FALSE=
19609 $as_echo "#define HAVE_OT 1" >>confdefs.h
19622 if $have_fallback; then
19624 $as_echo "#define HAVE_FALLBACK 1" >>confdefs.h
19627 if $have_fallback; then
19628 HAVE_FALLBACK_TRUE=
19629 HAVE_FALLBACK_FALSE='#'
19631 HAVE_FALLBACK_TRUE='#'
19632 HAVE_FALLBACK_FALSE=
19638 # Check whether --with-glib was given.
19639 if test "${with_glib+set}" = set; then :
19640 withval=$with_glib;
19646 GLIB_DEPS="glib-2.0 >= 2.19.1"
19648 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
19652 $as_echo_n "checking for GLIB... " >&6; }
19654 if test -n "$PKG_CONFIG"; then
19655 if test -n "$GLIB_CFLAGS"; then
19656 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
19658 if test -n "$PKG_CONFIG" && \
19659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
19660 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
19662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19663 test $ac_status = 0; }; then
19664 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
19672 if test -n "$PKG_CONFIG"; then
19673 if test -n "$GLIB_LIBS"; then
19674 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
19676 if test -n "$PKG_CONFIG" && \
19677 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
19678 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
19680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19681 test $ac_status = 0; }; then
19682 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
19693 if test $pkg_failed = yes; then
19695 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19696 _pkg_short_errors_supported=yes
19698 _pkg_short_errors_supported=no
19700 if test $_pkg_short_errors_supported = yes; then
19701 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GLIB_DEPS"`
19703 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GLIB_DEPS"`
19705 # Put the nasty error message in config.log where it belongs
19706 echo "$GLIB_PKG_ERRORS" >&5
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19709 $as_echo "no" >&6; }
19711 elif test $pkg_failed = untried; then
19714 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
19715 GLIB_LIBS=$pkg_cv_GLIB_LIBS
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19717 $as_echo "yes" >&6; }
19721 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
19722 as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
19724 if $have_glib; then
19726 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
19729 if $have_glib; then
19731 HAVE_GLIB_FALSE='#'
19740 # Check whether --with-gobject was given.
19741 if test "${with_gobject+set}" = set; then :
19742 withval=$with_gobject;
19748 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
19752 $as_echo_n "checking for GOBJECT... " >&6; }
19754 if test -n "$PKG_CONFIG"; then
19755 if test -n "$GOBJECT_CFLAGS"; then
19756 pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
19758 if test -n "$PKG_CONFIG" && \
19759 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
19760 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
19762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19763 test $ac_status = 0; }; then
19764 pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
19772 if test -n "$PKG_CONFIG"; then
19773 if test -n "$GOBJECT_LIBS"; then
19774 pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
19776 if test -n "$PKG_CONFIG" && \
19777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
19778 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
19780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19781 test $ac_status = 0; }; then
19782 pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
19793 if test $pkg_failed = yes; then
19795 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19796 _pkg_short_errors_supported=yes
19798 _pkg_short_errors_supported=no
19800 if test $_pkg_short_errors_supported = yes; then
19801 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
19803 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
19805 # Put the nasty error message in config.log where it belongs
19806 echo "$GOBJECT_PKG_ERRORS" >&5
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19809 $as_echo "no" >&6; }
19811 elif test $pkg_failed = untried; then
19814 GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
19815 GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19817 $as_echo "yes" >&6; }
19821 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
19822 as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
19824 if $have_gobject; then
19826 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
19828 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
19831 if $have_gobject; then
19833 HAVE_GOBJECT_FALSE='#'
19835 HAVE_GOBJECT_TRUE='#'
19836 HAVE_GOBJECT_FALSE=
19843 # Gobject-Introspection
19844 have_introspection=false
19846 if $have_gobject; then
19850 # Check whether --enable-introspection was given.
19851 if test "${enable_introspection+set}" = set; then :
19852 enableval=$enable_introspection;
19854 enable_introspection=auto
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
19859 $as_echo_n "checking for gobject-introspection... " >&6; }
19861 case $enable_introspection in #(
19863 found_introspection="no (disabled, use --enable-introspection to enable)"
19866 if test -n "$PKG_CONFIG" && \
19867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
19868 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
19870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19871 test $ac_status = 0; }; then
19874 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
19876 if test -n "$PKG_CONFIG" && \
19877 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
19878 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
19880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19881 test $ac_status = 0; }; then
19882 found_introspection=yes
19884 as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
19888 if test -n "$PKG_CONFIG" && \
19889 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
19890 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
19892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19893 test $ac_status = 0; }; then
19894 found_introspection=yes
19896 found_introspection=no
19898 enable_introspection=$found_introspection
19901 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
19905 $as_echo "$found_introspection" >&6; }
19907 INTROSPECTION_SCANNER=
19908 INTROSPECTION_COMPILER=
19909 INTROSPECTION_GENERATE=
19910 INTROSPECTION_GIRDIR=
19911 INTROSPECTION_TYPELIBDIR=
19912 if test "x$found_introspection" = "xyes"; then
19913 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
19914 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
19915 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
19916 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
19917 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
19918 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
19919 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
19920 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
19931 if test "x$found_introspection" = "xyes"; then
19932 HAVE_INTROSPECTION_TRUE=
19933 HAVE_INTROSPECTION_FALSE='#'
19935 HAVE_INTROSPECTION_TRUE='#'
19936 HAVE_INTROSPECTION_FALSE=
19941 if test "x$found_introspection" = xyes; then
19942 have_introspection=true
19946 HAVE_INTROSPECTION_TRUE=
19947 HAVE_INTROSPECTION_FALSE='#'
19949 HAVE_INTROSPECTION_TRUE='#'
19950 HAVE_INTROSPECTION_FALSE=
19958 # Check whether --with-cairo was given.
19959 if test "${with_cairo+set}" = set; then :
19960 withval=$with_cairo;
19966 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
19970 $as_echo_n "checking for CAIRO... " >&6; }
19972 if test -n "$PKG_CONFIG"; then
19973 if test -n "$CAIRO_CFLAGS"; then
19974 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
19976 if test -n "$PKG_CONFIG" && \
19977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
19978 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
19980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19981 test $ac_status = 0; }; then
19982 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
19990 if test -n "$PKG_CONFIG"; then
19991 if test -n "$CAIRO_LIBS"; then
19992 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
19994 if test -n "$PKG_CONFIG" && \
19995 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
19996 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
19998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19999 test $ac_status = 0; }; then
20000 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
20011 if test $pkg_failed = yes; then
20013 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20014 _pkg_short_errors_supported=yes
20016 _pkg_short_errors_supported=no
20018 if test $_pkg_short_errors_supported = yes; then
20019 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo >= 1.8.0"`
20021 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.8.0"`
20023 # Put the nasty error message in config.log where it belongs
20024 echo "$CAIRO_PKG_ERRORS" >&5
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20027 $as_echo "no" >&6; }
20029 elif test $pkg_failed = untried; then
20032 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
20033 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20035 $as_echo "yes" >&6; }
20039 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
20040 as_fn_error $? "cairo support requested but not found" "$LINENO" 5
20042 if $have_cairo; then
20044 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
20047 if $have_cairo; then
20049 HAVE_CAIRO_FALSE='#'
20051 HAVE_CAIRO_TRUE='#'
20056 have_cairo_ft=false
20057 if $have_cairo; then
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
20061 $as_echo_n "checking for CAIRO_FT... " >&6; }
20063 if test -n "$PKG_CONFIG"; then
20064 if test -n "$CAIRO_FT_CFLAGS"; then
20065 pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
20067 if test -n "$PKG_CONFIG" && \
20068 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20069 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20072 test $ac_status = 0; }; then
20073 pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
20081 if test -n "$PKG_CONFIG"; then
20082 if test -n "$CAIRO_FT_LIBS"; then
20083 pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
20085 if test -n "$PKG_CONFIG" && \
20086 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20087 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20090 test $ac_status = 0; }; then
20091 pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
20102 if test $pkg_failed = yes; then
20104 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20105 _pkg_short_errors_supported=yes
20107 _pkg_short_errors_supported=no
20109 if test $_pkg_short_errors_supported = yes; then
20110 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-ft"`
20112 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-ft"`
20114 # Put the nasty error message in config.log where it belongs
20115 echo "$CAIRO_FT_PKG_ERRORS" >&5
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20118 $as_echo "no" >&6; }
20120 elif test $pkg_failed = untried; then
20123 CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
20124 CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20126 $as_echo "yes" >&6; }
20130 if $have_cairo_ft; then
20132 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
20135 if $have_cairo_ft; then
20136 HAVE_CAIRO_FT_TRUE=
20137 HAVE_CAIRO_FT_FALSE='#'
20139 HAVE_CAIRO_FT_TRUE='#'
20140 HAVE_CAIRO_FT_FALSE=
20146 # Check whether --with-fontconfig was given.
20147 if test "${with_fontconfig+set}" = set; then :
20148 withval=$with_fontconfig;
20150 with_fontconfig=auto
20153 have_fontconfig=false
20154 if test "x$with_fontconfig" = "xyes" -o "x$with_fontconfig" = "xauto"; then
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
20158 $as_echo_n "checking for FONTCONFIG... " >&6; }
20160 if test -n "$PKG_CONFIG"; then
20161 if test -n "$FONTCONFIG_CFLAGS"; then
20162 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
20164 if test -n "$PKG_CONFIG" && \
20165 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
20166 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
20168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20169 test $ac_status = 0; }; then
20170 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
20178 if test -n "$PKG_CONFIG"; then
20179 if test -n "$FONTCONFIG_LIBS"; then
20180 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
20182 if test -n "$PKG_CONFIG" && \
20183 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
20184 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
20186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20187 test $ac_status = 0; }; then
20188 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
20199 if test $pkg_failed = yes; then
20201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20202 _pkg_short_errors_supported=yes
20204 _pkg_short_errors_supported=no
20206 if test $_pkg_short_errors_supported = yes; then
20207 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fontconfig"`
20209 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
20211 # Put the nasty error message in config.log where it belongs
20212 echo "$FONTCONFIG_PKG_ERRORS" >&5
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20215 $as_echo "no" >&6; }
20217 elif test $pkg_failed = untried; then
20220 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
20221 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20223 $as_echo "yes" >&6; }
20224 have_fontconfig=true
20227 if test "x$with_fontconfig" = "xyes" -a "x$have_fontconfig" != "xtrue"; then
20228 as_fn_error $? "fontconfig support requested but not found" "$LINENO" 5
20230 if $have_fontconfig; then
20232 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
20235 if $have_fontconfig; then
20236 HAVE_FONTCONFIG_TRUE=
20237 HAVE_FONTCONFIG_FALSE='#'
20239 HAVE_FONTCONFIG_TRUE='#'
20240 HAVE_FONTCONFIG_FALSE=
20246 # Check whether --with-icu was given.
20247 if test "${with_icu+set}" = set; then :
20254 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
20258 $as_echo_n "checking for ICU... " >&6; }
20260 if test -n "$PKG_CONFIG"; then
20261 if test -n "$ICU_CFLAGS"; then
20262 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
20264 if test -n "$PKG_CONFIG" && \
20265 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
20266 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
20268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20269 test $ac_status = 0; }; then
20270 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
20278 if test -n "$PKG_CONFIG"; then
20279 if test -n "$ICU_LIBS"; then
20280 pkg_cv_ICU_LIBS="$ICU_LIBS"
20282 if test -n "$PKG_CONFIG" && \
20283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
20284 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
20286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20287 test $ac_status = 0; }; then
20288 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
20299 if test $pkg_failed = yes; then
20301 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20302 _pkg_short_errors_supported=yes
20304 _pkg_short_errors_supported=no
20306 if test $_pkg_short_errors_supported = yes; then
20307 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "icu-uc"`
20309 ICU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "icu-uc"`
20311 # Put the nasty error message in config.log where it belongs
20312 echo "$ICU_PKG_ERRORS" >&5
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20315 $as_echo "no" >&6; }
20317 elif test $pkg_failed = untried; then
20320 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
20321 ICU_LIBS=$pkg_cv_ICU_LIBS
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20323 $as_echo "yes" >&6; }
20327 if test "$have_icu" != "true"; then
20328 if test -n "$ac_tool_prefix"; then
20329 # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
20330 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20332 $as_echo_n "checking for $ac_word... " >&6; }
20333 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
20334 $as_echo_n "(cached) " >&6
20336 if test -n "$ICU_CONFIG"; then
20337 ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
20339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20340 for as_dir in $PATH
20343 test -z "$as_dir" && as_dir=.
20344 for ac_exec_ext in '' $ac_executable_extensions; do
20345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20346 ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
20347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20356 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
20357 if test -n "$ICU_CONFIG"; then
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
20359 $as_echo "$ICU_CONFIG" >&6; }
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20362 $as_echo "no" >&6; }
20367 if test -z "$ac_cv_prog_ICU_CONFIG"; then
20368 ac_ct_ICU_CONFIG=$ICU_CONFIG
20369 # Extract the first word of "icu-config", so it can be a program name with args.
20370 set dummy icu-config; ac_word=$2
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20372 $as_echo_n "checking for $ac_word... " >&6; }
20373 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
20374 $as_echo_n "(cached) " >&6
20376 if test -n "$ac_ct_ICU_CONFIG"; then
20377 ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
20379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20380 for as_dir in $PATH
20383 test -z "$as_dir" && as_dir=.
20384 for ac_exec_ext in '' $ac_executable_extensions; do
20385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20386 ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
20387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20396 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
20397 if test -n "$ac_ct_ICU_CONFIG"; then
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
20399 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20402 $as_echo "no" >&6; }
20405 if test "x$ac_ct_ICU_CONFIG" = x; then
20408 case $cross_compiling:$ac_tool_warned in
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20412 ac_tool_warned=yes ;;
20414 ICU_CONFIG=$ac_ct_ICU_CONFIG
20417 ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
20421 $as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
20422 if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
20424 # We don't use --cflags as this gives us a lot of things that we don't
20425 # necessarily want, like debugging and optimization flags
20426 # See man (1) icu-config for more info.
20427 ICU_CFLAGS=`$ICU_CONFIG --cppflags`
20428 ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20432 $as_echo "yes" >&6; }
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20435 $as_echo "no" >&6; }
20439 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
20440 as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
20444 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
20446 $as_echo "#define HAVE_ICU 1" >>confdefs.h
20448 if test "x$with_icu" = "xbuiltin"; then
20450 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
20462 if $have_icu && test "x$with_icu" = "xbuiltin"; then
20463 HAVE_ICU_BUILTIN_TRUE=
20464 HAVE_ICU_BUILTIN_FALSE='#'
20466 HAVE_ICU_BUILTIN_TRUE='#'
20467 HAVE_ICU_BUILTIN_FALSE=
20473 # Check whether --with-ucdn was given.
20474 if test "${with_ucdn+set}" = set; then :
20475 withval=$with_ucdn;
20481 if test "x$with_ucdn" = "xyes"; then
20484 if $have_ucdn; then
20486 $as_echo "#define HAVE_UCDN 1" >>confdefs.h
20489 if $have_ucdn; then
20491 HAVE_UCDN_FALSE='#'
20500 # Check whether --with-graphite2 was given.
20501 if test "${with_graphite2+set}" = set; then :
20502 withval=$with_graphite2;
20507 have_graphite2=false
20508 GRAPHITE2_DEPS="graphite2"
20510 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
20514 $as_echo_n "checking for GRAPHITE2... " >&6; }
20516 if test -n "$PKG_CONFIG"; then
20517 if test -n "$GRAPHITE2_CFLAGS"; then
20518 pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
20520 if test -n "$PKG_CONFIG" && \
20521 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
20522 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
20524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20525 test $ac_status = 0; }; then
20526 pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
20534 if test -n "$PKG_CONFIG"; then
20535 if test -n "$GRAPHITE2_LIBS"; then
20536 pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
20538 if test -n "$PKG_CONFIG" && \
20539 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
20540 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
20542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20543 test $ac_status = 0; }; then
20544 pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
20555 if test $pkg_failed = yes; then
20557 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20558 _pkg_short_errors_supported=yes
20560 _pkg_short_errors_supported=no
20562 if test $_pkg_short_errors_supported = yes; then
20563 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GRAPHITE2_DEPS"`
20565 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GRAPHITE2_DEPS"`
20567 # Put the nasty error message in config.log where it belongs
20568 echo "$GRAPHITE2_PKG_ERRORS" >&5
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20571 $as_echo "no" >&6; }
20573 elif test $pkg_failed = untried; then
20576 GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
20577 GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20579 $as_echo "yes" >&6; }
20580 have_graphite2=true
20582 if test "x$have_graphite2" != "xtrue"; then
20583 # If pkg-config is not available, graphite2 can still be there
20584 ac_save_CFLAGS="$CFLAGS"
20585 ac_save_CPPFLAGS="$CPPFLAGS"
20586 CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS"
20587 CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS"
20588 ac_fn_c_check_header_mongrel "$LINENO" "graphite2/Segment.h" "ac_cv_header_graphite2_Segment_h" "$ac_includes_default"
20589 if test "x$ac_cv_header_graphite2_Segment_h" = xyes; then :
20590 have_graphite2=true
20596 CPPFLAGS="$ac_save_CPPFLAGS"
20597 CFLAGS="$ac_save_CFLAGS"
20600 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
20601 as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
20603 if $have_graphite2; then
20605 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
20608 if $have_graphite2; then
20609 HAVE_GRAPHITE2_TRUE=
20610 HAVE_GRAPHITE2_FALSE='#'
20612 HAVE_GRAPHITE2_TRUE='#'
20613 HAVE_GRAPHITE2_FALSE=
20619 # Check whether --with-freetype was given.
20620 if test "${with_freetype+set}" = set; then :
20621 withval=$with_freetype;
20626 have_freetype=false
20627 FREETYPE_DEPS="freetype2 >= 12.0.6"
20629 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
20630 # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
20634 $as_echo_n "checking for FREETYPE... " >&6; }
20636 if test -n "$PKG_CONFIG"; then
20637 if test -n "$FREETYPE_CFLAGS"; then
20638 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
20640 if test -n "$PKG_CONFIG" && \
20641 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
20642 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
20644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20645 test $ac_status = 0; }; then
20646 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
20654 if test -n "$PKG_CONFIG"; then
20655 if test -n "$FREETYPE_LIBS"; then
20656 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
20658 if test -n "$PKG_CONFIG" && \
20659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
20660 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
20662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20663 test $ac_status = 0; }; then
20664 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
20675 if test $pkg_failed = yes; then
20677 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20678 _pkg_short_errors_supported=yes
20680 _pkg_short_errors_supported=no
20682 if test $_pkg_short_errors_supported = yes; then
20683 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$FREETYPE_DEPS"`
20685 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$FREETYPE_DEPS"`
20687 # Put the nasty error message in config.log where it belongs
20688 echo "$FREETYPE_PKG_ERRORS" >&5
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20691 $as_echo "no" >&6; }
20693 elif test $pkg_failed = untried; then
20696 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
20697 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20699 $as_echo "yes" >&6; }
20703 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
20704 as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
20706 if $have_freetype; then
20708 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
20711 LIBS="$LIBS $FREETYPE_LIBS"
20712 for ac_func in FT_Get_Var_Blend_Coordinates FT_Set_Var_Blend_Coordinates FT_Done_MM_Var
20714 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20715 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20716 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20717 cat >>confdefs.h <<_ACEOF
20718 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20726 if $have_freetype; then
20727 HAVE_FREETYPE_TRUE=
20728 HAVE_FREETYPE_FALSE='#'
20730 HAVE_FREETYPE_TRUE='#'
20731 HAVE_FREETYPE_FALSE=
20737 # Check whether --with-uniscribe was given.
20738 if test "${with_uniscribe+set}" = set; then :
20739 withval=$with_uniscribe;
20744 have_uniscribe=false
20745 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
20746 for ac_header in usp10.h windows.h
20748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20749 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20750 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20751 cat >>confdefs.h <<_ACEOF
20752 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20754 have_uniscribe=true
20760 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
20761 as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
20763 if $have_uniscribe; then
20765 UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
20769 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
20772 if $have_uniscribe; then
20773 HAVE_UNISCRIBE_TRUE=
20774 HAVE_UNISCRIBE_FALSE='#'
20776 HAVE_UNISCRIBE_TRUE='#'
20777 HAVE_UNISCRIBE_FALSE=
20783 # Check whether --with-directwrite was given.
20784 if test "${with_directwrite+set}" = set; then :
20785 withval=$with_directwrite;
20787 with_directwrite=no
20790 have_directwrite=false
20792 ac_cpp='$CXXCPP $CPPFLAGS'
20793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20797 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
20799 for ac_header in dwrite.h
20801 ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
20802 if test "x$ac_cv_header_dwrite_h" = xyes; then :
20803 cat >>confdefs.h <<_ACEOF
20804 #define HAVE_DWRITE_H 1
20806 have_directwrite=true
20813 ac_cpp='$CPP $CPPFLAGS'
20814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20818 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
20819 as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
20821 if $have_directwrite; then
20822 DIRECTWRITE_CXXFLAGS=
20823 DIRECTWRITE_LIBS="-ldwrite"
20827 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
20830 if $have_directwrite; then
20831 HAVE_DIRECTWRITE_TRUE=
20832 HAVE_DIRECTWRITE_FALSE='#'
20834 HAVE_DIRECTWRITE_TRUE='#'
20835 HAVE_DIRECTWRITE_FALSE=
20841 # Check whether --with-coretext was given.
20842 if test "${with_coretext+set}" = set; then :
20843 withval=$with_coretext;
20848 have_coretext=false
20849 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
20850 ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
20852 if test "x$ac_cv_type_CTFontRef" = xyes; then :
20857 if $have_coretext; then
20859 CORETEXT_LIBS="-framework ApplicationServices"
20863 # On iOS CoreText and CoreGraphics are stand-alone frameworks
20864 if test "x$have_coretext" != "xtrue"; then
20865 # Check for a different symbol to avoid getting cached result.
20866 ac_fn_c_check_type "$LINENO" "CTRunRef" "ac_cv_type_CTRunRef" "#include <CoreText/CoreText.h>
20868 if test "x$ac_cv_type_CTRunRef" = xyes; then :
20874 if $have_coretext; then
20876 CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation"
20882 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
20883 as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
20885 if $have_coretext; then
20887 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
20890 if $have_coretext; then
20891 HAVE_CORETEXT_TRUE=
20892 HAVE_CORETEXT_FALSE='#'
20894 HAVE_CORETEXT_TRUE='#'
20895 HAVE_CORETEXT_FALSE=
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
20901 $as_echo_n "checking for Intel atomic primitives... " >&6; }
20902 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
20903 $as_echo_n "(cached) " >&6
20906 hb_cv_have_intel_atomic_primitives=false
20907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20908 /* end confdefs.h. */
20910 void memory_barrier (void) { __sync_synchronize (); }
20911 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
20912 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
20913 void mutex_unlock (int *m) { __sync_lock_release (m); }
20923 if ac_fn_c_try_link "$LINENO"; then :
20924 hb_cv_have_intel_atomic_primitives=true
20927 rm -f core conftest.err conftest.$ac_objext \
20928 conftest$ac_exeext conftest.$ac_ext
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
20932 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
20933 if $hb_cv_have_intel_atomic_primitives; then
20935 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
20940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
20941 $as_echo_n "checking for Solaris atomic operations... " >&6; }
20942 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
20943 $as_echo_n "(cached) " >&6
20946 hb_cv_have_solaris_atomic_ops=false
20947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20948 /* end confdefs.h. */
20950 #include <atomic.h>
20951 /* This requires Solaris Studio 12.2 or newer: */
20952 #include <mbarrier.h>
20953 void memory_barrier (void) { __machine_rw_barrier (); }
20954 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
20955 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
20965 if ac_fn_c_try_link "$LINENO"; then :
20966 hb_cv_have_solaris_atomic_ops=true
20969 rm -f core conftest.err conftest.$ac_objext \
20970 conftest$ac_exeext conftest.$ac_ext
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
20974 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
20975 if $hb_cv_have_solaris_atomic_ops; then
20977 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
20981 if test "$os_win32" = no && ! $have_pthread; then
20982 for ac_header in sched.h
20984 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
20985 if test "x$ac_cv_header_sched_h" = xyes; then :
20986 cat >>confdefs.h <<_ACEOF
20987 #define HAVE_SCHED_H 1
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
20995 $as_echo_n "checking for library containing sched_yield... " >&6; }
20996 if ${ac_cv_search_sched_yield+:} false; then :
20997 $as_echo_n "(cached) " >&6
20999 ac_func_search_save_LIBS=$LIBS
21000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21001 /* end confdefs.h. */
21003 /* Override any GCC internal prototype to avoid an error.
21004 Use char because int might match the return type of a GCC
21005 builtin and then its argument prototype would still apply. */
21009 char sched_yield ();
21013 return sched_yield ();
21018 for ac_lib in '' rt; do
21019 if test -z "$ac_lib"; then
21020 ac_res="none required"
21023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21025 if ac_fn_c_try_link "$LINENO"; then :
21026 ac_cv_search_sched_yield=$ac_res
21028 rm -f core conftest.err conftest.$ac_objext \
21030 if ${ac_cv_search_sched_yield+:} false; then :
21034 if ${ac_cv_search_sched_yield+:} false; then :
21037 ac_cv_search_sched_yield=no
21039 rm conftest.$ac_ext
21040 LIBS=$ac_func_search_save_LIBS
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
21043 $as_echo "$ac_cv_search_sched_yield" >&6; }
21044 ac_res=$ac_cv_search_sched_yield
21045 if test "$ac_res" != no; then :
21046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21048 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
21055 ac_config_files="$ac_config_files Makefile src/Makefile src/hb-version.h 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/in-house/Makefile test/shaping/data/text-rendering-tests/Makefile test/subset/Makefile test/subset/data/Makefile docs/Makefile docs/version.xml"
21058 cat >confcache <<\_ACEOF
21059 # This file is a shell script that caches the results of configure
21060 # tests run on this system so they can be shared between configure
21061 # scripts and configure runs, see configure's option --config-cache.
21062 # It is not useful on other systems. If it contains results you don't
21063 # want to keep, you may remove or edit it.
21065 # config.status only pays attention to the cache file if you give it
21066 # the --recheck option to rerun configure.
21068 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21069 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21070 # following values.
21074 # The following way of writing the cache mishandles newlines in values,
21075 # but we know of no workaround that is simple, portable, and efficient.
21076 # So, we kill variables containing newlines.
21077 # Ultrix sh set writes to stderr and can't be redirected directly,
21078 # and sets the high bit in the cache file unless we assign to the vars.
21080 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21081 eval ac_val=\$$ac_var
21085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21086 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21089 _ | IFS | as_nl) ;; #(
21090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21091 *) { eval $ac_var=; unset $ac_var;} ;;
21097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21098 *${as_nl}ac_space=\ *)
21099 # `set' does not quote correctly, so add quotes: double-quote
21100 # substitution turns \\\\ into \\, and sed turns \\ into \.
21103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21106 # `set' quotes correctly as required by POSIX, so do not add quotes.
21107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21120 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21121 if test -w "$cache_file"; then
21122 if test "x$cache_file" != "x/dev/null"; then
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21124 $as_echo "$as_me: updating cache $cache_file" >&6;}
21125 if test ! -f "$cache_file" || test -h "$cache_file"; then
21126 cat confcache >"$cache_file"
21128 case $cache_file in #(
21130 mv -f confcache "$cache_file"$$ &&
21131 mv -f "$cache_file"$$ "$cache_file" ;; #(
21133 mv -f confcache "$cache_file" ;;
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21139 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21144 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21145 # Let make expand exec_prefix.
21146 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21148 DEFS=-DHAVE_CONFIG_H
21153 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21154 # 1. Remove the extension, and $U if already installed.
21155 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21156 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21157 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21158 # will be set to the directory where LIBOBJS objects are built.
21159 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21160 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21162 LIBOBJS=$ac_libobjs
21164 LTLIBOBJS=$ac_ltlibobjs
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21168 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21169 if test -n "$am_sleep_pid"; then
21170 # Hide warnings about reused PIDs.
21171 wait $am_sleep_pid 2>/dev/null
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21174 $as_echo "done" >&6; }
21175 if test -n "$EXEEXT"; then
21177 am__EXEEXT_FALSE='#'
21179 am__EXEEXT_TRUE='#'
21183 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
21184 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
21185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21187 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21188 as_fn_error $? "conditional \"AMDEP\" was never defined.
21189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21191 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21192 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21195 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21196 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21199 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21200 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21203 if test -z "${WITH_LIBSTDCXX_TRUE}" && test -z "${WITH_LIBSTDCXX_FALSE}"; then
21204 as_fn_error $? "conditional \"WITH_LIBSTDCXX\" was never defined.
21205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21207 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
21208 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
21209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21211 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
21212 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
21213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21215 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
21216 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
21217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21219 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
21220 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
21221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21223 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
21224 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
21225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21227 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
21228 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
21229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21231 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
21232 as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
21233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21235 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
21236 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
21237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21239 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
21240 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
21241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21243 if test -z "${HAVE_OT_TRUE}" && test -z "${HAVE_OT_FALSE}"; then
21244 as_fn_error $? "conditional \"HAVE_OT\" was never defined.
21245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21247 if test -z "${HAVE_FALLBACK_TRUE}" && test -z "${HAVE_FALLBACK_FALSE}"; then
21248 as_fn_error $? "conditional \"HAVE_FALLBACK\" was never defined.
21249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21251 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
21252 as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
21253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21255 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
21256 as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
21257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21259 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
21260 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
21261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21263 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
21264 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
21265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21267 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
21268 as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
21269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21271 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
21272 as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
21273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21275 if test -z "${HAVE_FONTCONFIG_TRUE}" && test -z "${HAVE_FONTCONFIG_FALSE}"; then
21276 as_fn_error $? "conditional \"HAVE_FONTCONFIG\" was never defined.
21277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21279 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
21280 as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
21281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21283 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
21284 as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
21285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21287 if test -z "${HAVE_UCDN_TRUE}" && test -z "${HAVE_UCDN_FALSE}"; then
21288 as_fn_error $? "conditional \"HAVE_UCDN\" was never defined.
21289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21291 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
21292 as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
21293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21295 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
21296 as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
21297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21299 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
21300 as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
21301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21303 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
21304 as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
21305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21307 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
21308 as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
21309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21312 : "${CONFIG_STATUS=./config.status}"
21314 ac_clean_files_save=$ac_clean_files
21315 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21317 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21319 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21321 # Generated by $as_me.
21322 # Run this file to recreate the current configuration.
21323 # Compiler output produced by configure, useful for debugging
21324 # configure, is in config.log if it exists.
21327 ac_cs_recheck=false
21330 SHELL=\${CONFIG_SHELL-$SHELL}
21333 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21334 ## -------------------- ##
21335 ## M4sh Initialization. ##
21336 ## -------------------- ##
21338 # Be more Bourne compatible
21339 DUALCASE=1; export DUALCASE # for MKS sh
21340 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21343 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21344 # is contrary to our usage. Disable this feature.
21345 alias -g '${1+"$@"}'='"$@"'
21346 setopt NO_GLOB_SUBST
21348 case `(set -o) 2>/dev/null` in #(
21360 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21361 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21362 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21363 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21364 # Prefer a ksh shell builtin over an external printf program on Solaris,
21365 # but without wasting forks for bash or zsh.
21366 if test -z "$BASH_VERSION$ZSH_VERSION" \
21367 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21368 as_echo='print -r --'
21369 as_echo_n='print -rn --'
21370 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21371 as_echo='printf %s\n'
21372 as_echo_n='printf %s'
21374 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21375 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21376 as_echo_n='/usr/ucb/echo -n'
21378 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21379 as_echo_n_body='eval
21383 expr "X$arg" : "X\\(.*\\)$as_nl";
21384 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21386 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21388 export as_echo_n_body
21389 as_echo_n='sh -c $as_echo_n_body as_echo'
21391 export as_echo_body
21392 as_echo='sh -c $as_echo_body as_echo'
21395 # The user is always right.
21396 if test "${PATH_SEPARATOR+set}" != set; then
21398 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21399 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21406 # We need space, tab and new line, in precisely that order. Quoting is
21407 # there to prevent editors from complaining about space-tab.
21408 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21409 # splitting by setting IFS to empty value.)
21412 # Find who we are. Look in the path if we contain no directory separator.
21415 *[\\/]* ) as_myself=$0 ;;
21416 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21417 for as_dir in $PATH
21420 test -z "$as_dir" && as_dir=.
21421 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21427 # We did not find ourselves, most probably we were run as `sh COMMAND'
21428 # in which case we are not to be found in the path.
21429 if test "x$as_myself" = x; then
21432 if test ! -f "$as_myself"; then
21433 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21437 # Unset variables that we do not need and which cause bugs (e.g. in
21438 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21439 # suppresses any "Segmentation fault" message there. '((' could
21440 # trigger a bug in pdksh 5.2.14.
21441 for as_var in BASH_ENV ENV MAIL MAILPATH
21442 do eval test x\${$as_var+set} = xset \
21443 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21456 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21459 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21460 # ----------------------------------------
21461 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21462 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21463 # script with STATUS, using 1 if that was 0.
21466 as_status=$1; test $as_status -eq 0 && as_status=1
21468 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21469 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21471 $as_echo "$as_me: error: $2" >&2
21472 as_fn_exit $as_status
21476 # as_fn_set_status STATUS
21477 # -----------------------
21478 # Set $? to STATUS, without forking.
21479 as_fn_set_status ()
21482 } # as_fn_set_status
21484 # as_fn_exit STATUS
21485 # -----------------
21486 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21490 as_fn_set_status $1
21496 # Portably unset VAR.
21499 { eval $1=; unset $1;}
21501 as_unset=as_fn_unset
21502 # as_fn_append VAR VALUE
21503 # ----------------------
21504 # Append the text in VALUE to the end of the definition contained in VAR. Take
21505 # advantage of any shell optimizations that allow amortized linear growth over
21506 # repeated appends, instead of the typical quadratic growth present in naive
21508 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21509 eval 'as_fn_append ()
21520 # as_fn_arith ARG...
21521 # ------------------
21522 # Perform arithmetic evaluation on the ARGs, and store the result in the
21523 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21524 # must be portable across $(()) and expr.
21525 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21526 eval 'as_fn_arith ()
21533 as_val=`expr "$@" || test $? -eq 1`
21538 if expr a : '\(a\)' >/dev/null 2>&1 &&
21539 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21545 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21546 as_basename=basename
21551 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21557 as_me=`$as_basename -- "$0" ||
21558 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21559 X"$0" : 'X\(//\)$' \| \
21560 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21562 sed '/^.*\/\([^/][^/]*\)\/*$/{
21576 # Avoid depending upon Character Ranges.
21577 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21578 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21579 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21580 as_cr_digits='0123456789'
21581 as_cr_alnum=$as_cr_Letters$as_cr_digits
21583 ECHO_C= ECHO_N= ECHO_T=
21584 case `echo -n x` in #(((((
21586 case `echo 'xy\c'` in
21587 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21589 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21596 rm -f conf$$ conf$$.exe conf$$.file
21597 if test -d conf$$.dir; then
21598 rm -f conf$$.dir/conf$$.file
21601 mkdir conf$$.dir 2>/dev/null
21603 if (echo >conf$$.file) 2>/dev/null; then
21604 if ln -s conf$$.file conf$$ 2>/dev/null; then
21606 # ... but there are two gotchas:
21607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21609 # In both cases, we have to default to `cp -pR'.
21610 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21612 elif ln conf$$.file conf$$ 2>/dev/null; then
21620 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21621 rmdir conf$$.dir 2>/dev/null
21626 # Create "$as_dir" as a directory, including parents if necessary.
21631 -*) as_dir=./$as_dir;;
21633 test -d "$as_dir" || eval $as_mkdir_p || {
21637 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21638 *) as_qdir=$as_dir;;
21640 as_dirs="'$as_qdir' $as_dirs"
21641 as_dir=`$as_dirname -- "$as_dir" ||
21642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21643 X"$as_dir" : 'X\(//\)[^/]' \| \
21644 X"$as_dir" : 'X\(//\)$' \| \
21645 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21646 $as_echo X"$as_dir" |
21647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21651 /^X\(\/\/\)[^/].*/{
21664 test -d "$as_dir" && break
21666 test -z "$as_dirs" || eval "mkdir $as_dirs"
21667 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21671 if mkdir -p . 2>/dev/null; then
21672 as_mkdir_p='mkdir -p "$as_dir"'
21674 test -d ./-p && rmdir ./-p
21679 # as_fn_executable_p FILE
21680 # -----------------------
21681 # Test if FILE is an executable regular file.
21682 as_fn_executable_p ()
21684 test -f "$1" && test -x "$1"
21685 } # as_fn_executable_p
21686 as_test_x='test -x'
21687 as_executable_p=as_fn_executable_p
21689 # Sed expression to map a string onto a valid CPP name.
21690 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21692 # Sed expression to map a string onto a valid variable name.
21693 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21697 ## ----------------------------------- ##
21698 ## Main body of $CONFIG_STATUS script. ##
21699 ## ----------------------------------- ##
21701 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21704 # Save the log message, to keep $0 and so on meaningful, and to
21705 # report actual input values of CONFIG_FILES etc. instead of their
21706 # values after options handling.
21708 This file was extended by HarfBuzz $as_me 1.7.6, which was
21709 generated by GNU Autoconf 2.69. Invocation command line was
21711 CONFIG_FILES = $CONFIG_FILES
21712 CONFIG_HEADERS = $CONFIG_HEADERS
21713 CONFIG_LINKS = $CONFIG_LINKS
21714 CONFIG_COMMANDS = $CONFIG_COMMANDS
21717 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21722 case $ac_config_files in *"
21723 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21726 case $ac_config_headers in *"
21727 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21732 # Files that config.status was made for.
21733 config_files="$ac_config_files"
21734 config_headers="$ac_config_headers"
21735 config_commands="$ac_config_commands"
21739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21741 \`$as_me' instantiates files and other configuration actions
21742 from templates according to the current configuration. Unless the files
21743 and actions are specified as TAGs, all are instantiated by default.
21745 Usage: $0 [OPTION]... [TAG]...
21747 -h, --help print this help, then exit
21748 -V, --version print version number and configuration settings, then exit
21749 --config print configuration, then exit
21750 -q, --quiet, --silent
21751 do not print progress messages
21752 -d, --debug don't remove temporary files
21753 --recheck update $as_me by reconfiguring in the same conditions
21754 --file=FILE[:TEMPLATE]
21755 instantiate the configuration file FILE
21756 --header=FILE[:TEMPLATE]
21757 instantiate the configuration header FILE
21759 Configuration files:
21762 Configuration headers:
21765 Configuration commands:
21768 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
21769 HarfBuzz home page: <http://harfbuzz.org/>."
21772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21773 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21775 HarfBuzz config.status 1.7.6
21776 configured by $0, generated by GNU Autoconf 2.69,
21777 with options \\"\$ac_cs_config\\"
21779 Copyright (C) 2012 Free Software Foundation, Inc.
21780 This config.status script is free software; the Free Software Foundation
21781 gives unlimited permission to copy, distribute and modify it."
21788 test -n "\$AWK" || AWK=awk
21791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21792 # The default lists apply if the user does not specify any file.
21798 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21799 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21803 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21815 # Handling of the options.
21816 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21818 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21819 $as_echo "$ac_cs_version"; exit ;;
21820 --config | --confi | --conf | --con | --co | --c )
21821 $as_echo "$ac_cs_config"; exit ;;
21822 --debug | --debu | --deb | --de | --d | -d )
21824 --file | --fil | --fi | --f )
21827 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21828 '') as_fn_error $? "missing file argument" ;;
21830 as_fn_append CONFIG_FILES " '$ac_optarg'"
21831 ac_need_defaults=false;;
21832 --header | --heade | --head | --hea )
21835 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21837 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21838 ac_need_defaults=false;;
21840 # Conflict between --help and --header
21841 as_fn_error $? "ambiguous option: \`$1'
21842 Try \`$0 --help' for more information.";;
21843 --help | --hel | -h )
21844 $as_echo "$ac_cs_usage"; exit ;;
21845 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21846 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21849 # This is an error.
21850 -*) as_fn_error $? "unrecognized option: \`$1'
21851 Try \`$0 --help' for more information." ;;
21853 *) as_fn_append ac_config_targets " $1"
21854 ac_need_defaults=false ;;
21860 ac_configure_extra_args=
21862 if $ac_cs_silent; then
21864 ac_configure_extra_args="$ac_configure_extra_args --silent"
21868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21869 if \$ac_cs_recheck; then
21870 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21872 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21873 CONFIG_SHELL='$SHELL'
21874 export CONFIG_SHELL
21879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21883 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21884 ## Running $as_me. ##
21890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21894 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21897 # The HP-UX ksh and POSIX shell print the target directory to stdout
21898 # if CDPATH is set.
21899 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21901 sed_quote_subst='$sed_quote_subst'
21902 double_quote_subst='$double_quote_subst'
21903 delay_variable_subst='$delay_variable_subst'
21904 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21905 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21906 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21907 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21908 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21909 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21910 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21911 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21912 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21913 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21914 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21915 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21916 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21917 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21918 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21919 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21920 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21921 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21922 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21923 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21924 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21925 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21926 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21927 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21928 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21929 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21930 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21931 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21932 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21933 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21934 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21935 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21936 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21937 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21938 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21939 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21940 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21941 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21942 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21943 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21944 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21945 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21946 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21947 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21948 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21949 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21950 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21951 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21952 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21953 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21954 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21955 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21956 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21957 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21958 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21959 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21960 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21961 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21962 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"`'
21963 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21964 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21965 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21966 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21967 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21968 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21969 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21970 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21971 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21972 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21973 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21974 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21975 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21976 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21977 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21978 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21979 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21980 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21981 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21982 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21983 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21984 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21985 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21986 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21987 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21988 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21989 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21990 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21991 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21992 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21993 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21994 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21995 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21996 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21997 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21998 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21999 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22000 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22001 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22002 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22003 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22004 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22005 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22006 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22007 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22008 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22009 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22010 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22011 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22012 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22013 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22014 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22015 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22016 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22017 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22018 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22019 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22020 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22021 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22022 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22023 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22024 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22025 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22026 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22027 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22028 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22029 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22030 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22031 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22032 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22033 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22034 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22035 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22036 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22037 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22038 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22039 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22040 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22041 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22042 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22043 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22044 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22045 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22046 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22047 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22048 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22049 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22050 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22051 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22052 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22053 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22054 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22055 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22056 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22057 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22058 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22059 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22060 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22061 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22062 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22063 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22064 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22065 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22066 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22067 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22068 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22069 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22070 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22071 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22072 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22073 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22074 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22075 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22076 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22077 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22078 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22079 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22080 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22081 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22082 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22083 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22084 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22085 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22086 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22087 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22088 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22089 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22090 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22091 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22092 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22095 LTCFLAGS='$LTCFLAGS'
22096 compiler='$compiler_DEFAULT'
22098 # A function that is used when there is no print builtin or printf.
22099 func_fallback_echo ()
22101 eval 'cat <<_LTECHO_EOF
22106 # Quote evaled strings.
22121 deplibs_check_method \
22126 sharedlib_from_linklib_cmd \
22129 archiver_list_spec \
22135 lt_cv_sys_global_symbol_pipe \
22136 lt_cv_sys_global_symbol_to_cdecl \
22137 lt_cv_sys_global_symbol_to_import \
22138 lt_cv_sys_global_symbol_to_c_name_address \
22139 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22140 lt_cv_nm_interface \
22141 nm_file_list_spec \
22142 lt_cv_truncate_bin \
22143 lt_prog_compiler_no_builtin_flag \
22144 lt_prog_compiler_pic \
22145 lt_prog_compiler_wl \
22146 lt_prog_compiler_static \
22147 lt_cv_prog_compiler_c_o \
22156 export_dynamic_flag_spec \
22157 whole_archive_flag_spec \
22158 compiler_needs_object \
22160 allow_undefined_flag \
22161 no_undefined_flag \
22162 hardcode_libdir_flag_spec \
22163 hardcode_libdir_separator \
22167 variables_saved_for_relink \
22169 library_names_spec \
22171 install_override_mode \
22175 compiler_lib_search_dirs \
22180 compiler_lib_search_path \
22184 lt_prog_compiler_no_builtin_flag_CXX \
22185 lt_prog_compiler_pic_CXX \
22186 lt_prog_compiler_wl_CXX \
22187 lt_prog_compiler_static_CXX \
22188 lt_cv_prog_compiler_c_o_CXX \
22189 export_dynamic_flag_spec_CXX \
22190 whole_archive_flag_spec_CXX \
22191 compiler_needs_object_CXX \
22193 allow_undefined_flag_CXX \
22194 no_undefined_flag_CXX \
22195 hardcode_libdir_flag_spec_CXX \
22196 hardcode_libdir_separator_CXX \
22197 exclude_expsyms_CXX \
22198 include_expsyms_CXX \
22199 file_list_spec_CXX \
22200 compiler_lib_search_dirs_CXX \
22201 predep_objects_CXX \
22202 postdep_objects_CXX \
22205 compiler_lib_search_path_CXX; do
22206 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22207 *[\\\\\\\`\\"\\\$]*)
22208 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22211 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22216 # Double-quote double-evaled strings.
22217 for var in reload_cmds \
22218 old_postinstall_cmds \
22219 old_postuninstall_cmds \
22221 extract_expsyms_cmds \
22222 old_archive_from_new_cmds \
22223 old_archive_from_expsyms_cmds \
22225 archive_expsym_cmds \
22227 module_expsym_cmds \
22228 export_symbols_cmds \
22232 postuninstall_cmds \
22234 sys_lib_search_path_spec \
22235 configure_time_dlsearch_path \
22236 configure_time_lt_sys_library_path \
22238 old_archive_cmds_CXX \
22239 old_archive_from_new_cmds_CXX \
22240 old_archive_from_expsyms_cmds_CXX \
22242 archive_expsym_cmds_CXX \
22244 module_expsym_cmds_CXX \
22245 export_symbols_cmds_CXX \
22247 postlink_cmds_CXX; do
22248 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22249 *[\\\\\\\`\\"\\\$]*)
22250 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22253 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22258 ac_aux_dir='$ac_aux_dir'
22260 # See if we are running on zsh, and set the options that allow our
22261 # commands through without removal of \ escapes INIT.
22262 if test -n "\${ZSH_VERSION+set}"; then
22263 setopt NO_GLOB_SUBST
22279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22281 # Handling of arguments.
22282 for ac_config_target in $ac_config_targets
22284 case $ac_config_target in
22285 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22286 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22287 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22288 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22289 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22290 "src/hb-version.h") CONFIG_FILES="$CONFIG_FILES src/hb-version.h" ;;
22291 "src/harfbuzz-config.cmake") CONFIG_FILES="$CONFIG_FILES src/harfbuzz-config.cmake" ;;
22292 "src/hb-ucdn/Makefile") CONFIG_FILES="$CONFIG_FILES src/hb-ucdn/Makefile" ;;
22293 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
22294 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22295 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
22296 "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
22297 "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
22298 "test/shaping/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/Makefile" ;;
22299 "test/shaping/data/in-house/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/in-house/Makefile" ;;
22300 "test/shaping/data/text-rendering-tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/text-rendering-tests/Makefile" ;;
22301 "test/subset/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/Makefile" ;;
22302 "test/subset/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/Makefile" ;;
22303 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
22304 "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
22306 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22311 # If the user did not use the arguments to specify the items to instantiate,
22312 # then the envvar interface is used. Set only those that are not.
22313 # We use the long form for the default assignment because of an extremely
22314 # bizarre bug on SunOS 4.1.3.
22315 if $ac_need_defaults; then
22316 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22317 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22318 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22321 # Have a temporary directory for convenience. Make it in the build tree
22322 # simply because there is no reason against having it here, and in addition,
22323 # creating and moving files from /tmp can sometimes cause problems.
22324 # Hook for its removal unless debugging.
22325 # Note that there is a small window in which the directory will not be cleaned:
22326 # after its creation but before its name has been assigned to `$tmp'.
22330 trap 'exit_status=$?
22331 : "${ac_tmp:=$tmp}"
22332 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22334 trap 'as_fn_exit 1' 1 2 13 15
22336 # Create a (secure) tmp directory for tmp files.
22339 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22343 tmp=./conf$$-$RANDOM
22344 (umask 077 && mkdir "$tmp")
22345 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22348 # Set up the scripts for CONFIG_FILES section.
22349 # No need to generate them if there are no CONFIG_FILES.
22350 # This happens for instance with `./config.status config.h'.
22351 if test -n "$CONFIG_FILES"; then
22354 ac_cr=`echo X | tr X '\015'`
22355 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22356 # But we know of no other shell where ac_cr would be empty at this
22357 # point, so we can use a bashism as a fallback.
22358 if test "x$ac_cr" = x; then
22359 eval ac_cr=\$\'\\r\'
22361 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22362 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22365 ac_cs_awk_cr=$ac_cr
22368 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22373 echo "cat >conf$$subs.awk <<_ACEOF" &&
22374 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22376 } >conf$$subs.sh ||
22377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22378 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22380 for ac_last_try in false false false false false :; do
22381 . ./conf$$subs.sh ||
22382 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22384 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22385 if test $ac_delim_n = $ac_delim_num; then
22387 elif $ac_last_try; then
22388 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22390 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22393 rm -f conf$$subs.sh
22395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22396 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22400 s/^/S["/; s/!.*/"]=/
22410 s/\(.\{148\}\)..*/\1/
22412 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22417 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22424 s/\(.\{148\}\)..*/\1/
22426 s/["\\]/\\&/g; s/^/"/; s/$/"/
22430 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22435 ' <conf$$subs.awk | sed '
22440 ' >>$CONFIG_STATUS || ac_write_fail=1
22441 rm -f conf$$subs.awk
22442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22444 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22445 for (key in S) S_is_set[key] = 1
22451 nfields = split(line, field, "@")
22453 len = length(field[1])
22454 for (i = 2; i < nfields; i++) {
22456 keylen = length(key)
22457 if (S_is_set[key]) {
22459 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22460 len += length(value) + length(field[++i])
22471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22472 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22473 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22476 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22477 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22480 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22481 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22482 # trailing colons and then remove the whole line if VPATH becomes empty
22483 # (actually we leave an empty line to preserve line numbers).
22484 if test "x$srcdir" = x.; then
22485 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22504 fi # test -n "$CONFIG_FILES"
22506 # Set up the scripts for CONFIG_HEADERS section.
22507 # No need to generate them if there are no CONFIG_HEADERS.
22508 # This happens for instance with `./config.status Makefile'.
22509 if test -n "$CONFIG_HEADERS"; then
22510 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22514 # Transform confdefs.h into an awk script `defines.awk', embedded as
22515 # here-document in config.status, that substitutes the proper values into
22516 # config.h.in to produce config.h.
22518 # Create a delimiter string that does not exist in confdefs.h, to ease
22519 # handling of long lines.
22521 for ac_last_try in false false :; do
22522 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22523 if test -z "$ac_tt"; then
22525 elif $ac_last_try; then
22526 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22528 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22532 # For the awk script, D is an array of macro values keyed by name,
22533 # likewise P contains macro parameters if any. Preserve backslash
22534 # newline sequences.
22536 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22538 s/.\{148\}/&'"$ac_delim"'/g
22541 s/^[ ]*#[ ]*define[ ][ ]*/ /
22548 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22550 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22554 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22555 D["\1"]=" \3\\\\\\n"\\/p
22557 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22562 s/.\{148\}/&'"$ac_delim"'/g
22567 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22570 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22572 ' <confdefs.h | sed '
22573 s/'"$ac_delim"'/"\\\
22574 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22577 for (key in D) D_is_set[key] = 1
22580 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22582 split(line, arg, " ")
22583 if (arg[1] == "#") {
22587 defundef = substr(arg[1], 2)
22590 split(mac1, mac2, "(") #)
22592 prefix = substr(line, 1, index(line, defundef) - 1)
22593 if (D_is_set[macro]) {
22594 # Preserve the white space surrounding the "#".
22595 print prefix "define", macro P[macro] D[macro]
22598 # Replace #undef with comments. This is necessary, for example,
22599 # in the case of _POSIX_SOURCE, which is predefined and required
22600 # on some systems where configure will not decide to define it.
22601 if (defundef == "undef") {
22602 print "/*", prefix defundef, macro, "*/"
22610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22611 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22612 fi # test -n "$CONFIG_HEADERS"
22615 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22620 :[FHLC]) ac_mode=$ac_tag; continue;;
22622 case $ac_mode$ac_tag in
22624 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22625 :[FH]-) ac_tag=-:-;;
22626 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22643 -) ac_f="$ac_tmp/stdin";;
22644 *) # Look for the file first in the build tree, then in the source tree
22645 # (if the path is not absolute). The absolute path cannot be DOS-style,
22646 # because $ac_f cannot contain `:'.
22650 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22652 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22654 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22655 as_fn_append ac_file_inputs " '$ac_f'"
22658 # Let's still pretend it is `configure' which instantiates (i.e., don't
22659 # use $as_me), people would be surprised to read:
22660 # /* config.h. Generated by config.status. */
22661 configure_input='Generated from '`
22662 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22664 if test x"$ac_file" != x-; then
22665 configure_input="$ac_file. $configure_input"
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22667 $as_echo "$as_me: creating $ac_file" >&6;}
22669 # Neutralize special characters interpreted by sed in replacement strings.
22670 case $configure_input in #(
22671 *\&* | *\|* | *\\* )
22672 ac_sed_conf_input=`$as_echo "$configure_input" |
22673 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22674 *) ac_sed_conf_input=$configure_input;;
22678 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22684 ac_dir=`$as_dirname -- "$ac_file" ||
22685 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22686 X"$ac_file" : 'X\(//\)[^/]' \| \
22687 X"$ac_file" : 'X\(//\)$' \| \
22688 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22689 $as_echo X"$ac_file" |
22690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22694 /^X\(\/\/\)[^/].*/{
22707 as_dir="$ac_dir"; as_fn_mkdir_p
22711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22714 # A ".." for each directory in $ac_dir_suffix.
22715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22716 case $ac_top_builddir_sub in
22717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22721 ac_abs_top_builddir=$ac_pwd
22722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22723 # for backward compatibility:
22724 ac_top_builddir=$ac_top_build_prefix
22727 .) # We are building in place.
22729 ac_top_srcdir=$ac_top_builddir_sub
22730 ac_abs_top_srcdir=$ac_pwd ;;
22731 [\\/]* | ?:[\\/]* ) # Absolute name.
22732 ac_srcdir=$srcdir$ac_dir_suffix;
22733 ac_top_srcdir=$srcdir
22734 ac_abs_top_srcdir=$srcdir ;;
22735 *) # Relative name.
22736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22737 ac_top_srcdir=$ac_top_build_prefix$srcdir
22738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22750 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22751 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22753 ac_MKDIR_P=$MKDIR_P
22755 [\\/$]* | ?:[\\/]* ) ;;
22756 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22761 # If the template does not know about datarootdir, expand it.
22762 # FIXME: This hack should be removed a few years after 2.60.
22763 ac_datarootdir_hack=; ac_datarootdir_seen=
22774 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22775 *datarootdir*) ac_datarootdir_seen=yes;;
22776 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22778 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22781 ac_datarootdir_hack='
22782 s&@datadir@&$datadir&g
22783 s&@docdir@&$docdir&g
22784 s&@infodir@&$infodir&g
22785 s&@localedir@&$localedir&g
22786 s&@mandir@&$mandir&g
22787 s&\\\${datarootdir}&$datarootdir&g' ;;
22791 # Neutralize VPATH when `$srcdir' = `.'.
22792 # Shell code in configure.ac might set extrasub.
22793 # FIXME: do we really want to maintain this feature?
22794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22795 ac_sed_extra="$ac_vpsub
22798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22801 s|@configure_input@|$ac_sed_conf_input|;t t
22802 s&@top_builddir@&$ac_top_builddir_sub&;t t
22803 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22804 s&@srcdir@&$ac_srcdir&;t t
22805 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22806 s&@top_srcdir@&$ac_top_srcdir&;t t
22807 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22808 s&@builddir@&$ac_builddir&;t t
22809 s&@abs_builddir@&$ac_abs_builddir&;t t
22810 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22811 s&@INSTALL@&$ac_INSTALL&;t t
22812 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22813 $ac_datarootdir_hack
22815 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22816 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22818 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22819 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22820 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22821 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22823 which seems to be undefined. Please make sure it is defined" >&5
22824 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22825 which seems to be undefined. Please make sure it is defined" >&2;}
22827 rm -f "$ac_tmp/stdin"
22829 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22830 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22838 if test x"$ac_file" != x-; then
22840 $as_echo "/* $configure_input */" \
22841 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22842 } >"$ac_tmp/config.h" \
22843 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22844 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22846 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22849 mv "$ac_tmp/config.h" "$ac_file" \
22850 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22853 $as_echo "/* $configure_input */" \
22854 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22855 || as_fn_error $? "could not create -" "$LINENO" 5
22857 # Compute "$ac_file"'s index in $config_headers.
22860 for _am_header in $config_headers :; do
22861 case $_am_header in
22862 $_am_arg | $_am_arg:* )
22865 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22868 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22869 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22870 X"$_am_arg" : 'X\(//\)[^/]' \| \
22871 X"$_am_arg" : 'X\(//\)$' \| \
22872 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22873 $as_echo X"$_am_arg" |
22874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22878 /^X\(\/\/\)[^/].*/{
22890 s/.*/./; q'`/stamp-h$_am_stamp_count
22893 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22894 $as_echo "$as_me: executing $ac_file commands" >&6;}
22899 case $ac_file$ac_mode in
22900 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22901 # Older Autoconf quotes --file arguments for eval, but not when files
22902 # are listed without --file. Let's play safe and only enable the eval
22903 # if we detect the quoting.
22904 case $CONFIG_FILES in
22905 *\'*) eval set x "$CONFIG_FILES" ;;
22906 *) set x $CONFIG_FILES ;;
22911 # Strip MF so we end up with the name of the file.
22912 mf=`echo "$mf" | sed -e 's/:.*$//'`
22913 # Check whether this is an Automake generated Makefile or not.
22914 # We used to match only the files named 'Makefile.in', but
22915 # some people rename them; so instead we look at the file content.
22916 # Grep'ing the first line is not enough: some people post-process
22917 # each Makefile.in and add a new line on top of each file to say so.
22918 # Grep'ing the whole file is not good either: AIX grep has a line
22919 # limit of 2048, but all sed's we know have understand at least 4000.
22920 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22921 dirpart=`$as_dirname -- "$mf" ||
22922 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22923 X"$mf" : 'X\(//\)[^/]' \| \
22924 X"$mf" : 'X\(//\)$' \| \
22925 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22931 /^X\(\/\/\)[^/].*/{
22947 # Extract the definition of DEPDIR, am__include, and am__quote
22948 # from the Makefile without running 'make'.
22949 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22950 test -z "$DEPDIR" && continue
22951 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22952 test -z "$am__include" && continue
22953 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22954 # Find all dependency output files, they are included files with
22955 # $(DEPDIR) in their names. We invoke sed twice because it is the
22956 # simplest approach to changing $(DEPDIR) to its actual value in the
22958 for file in `sed -n "
22959 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22960 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22961 # Make sure the directory exists.
22962 test -f "$dirpart/$file" && continue
22963 fdir=`$as_dirname -- "$file" ||
22964 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22965 X"$file" : 'X\(//\)[^/]' \| \
22966 X"$file" : 'X\(//\)$' \| \
22967 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22968 $as_echo X"$file" |
22969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22973 /^X\(\/\/\)[^/].*/{
22986 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22987 # echo "creating $dirpart/$file"
22988 echo '# dummy' > "$dirpart/$file"
22995 # See if we are running on zsh, and set the options that allow our
22996 # commands through without removal of \ escapes.
22997 if test -n "${ZSH_VERSION+set}"; then
22998 setopt NO_GLOB_SUBST
23002 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23005 cat <<_LT_EOF >> "$cfgfile"
23007 # Generated automatically by $as_me ($PACKAGE) $VERSION
23008 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23010 # Provide generalized library-building support services.
23011 # Written by Gordon Matzigkeit, 1996
23013 # Copyright (C) 2014 Free Software Foundation, Inc.
23014 # This is free software; see the source for copying conditions. There is NO
23015 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23017 # GNU Libtool is free software; you can redistribute it and/or modify
23018 # it under the terms of the GNU General Public License as published by
23019 # the Free Software Foundation; either version 2 of of the License, or
23020 # (at your option) any later version.
23022 # As a special exception to the GNU General Public License, if you
23023 # distribute this file as part of a program or library that is built
23024 # using GNU Libtool, you may include this file under the same
23025 # distribution terms that you use for the rest of that program.
23027 # GNU Libtool is distributed in the hope that it will be useful, but
23028 # WITHOUT ANY WARRANTY; without even the implied warranty of
23029 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23030 # GNU General Public License for more details.
23032 # You should have received a copy of the GNU General Public License
23033 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23036 # The names of the tagged configurations supported by this script.
23037 available_tags='CXX '
23039 # Configured defaults for sys_lib_dlsearch_path munging.
23040 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23042 # ### BEGIN LIBTOOL CONFIG
23044 # Which release of libtool.m4 was used?
23045 macro_version=$macro_version
23046 macro_revision=$macro_revision
23048 # Whether or not to build static libraries.
23049 build_old_libs=$enable_static
23051 # Whether or not to build shared libraries.
23052 build_libtool_libs=$enable_shared
23054 # What type of objects to build.
23057 # Whether or not to optimize for fast installation.
23058 fast_install=$enable_fast_install
23060 # Shared archive member basename,for filename based shared library versioning on AIX.
23061 shared_archive_member_spec=$shared_archive_member_spec
23063 # Shell to use when invoking shell scripts.
23066 # An echo program that protects backslashes.
23069 # The PATH separator for the build system.
23070 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23073 host_alias=$host_alias
23077 # The build system.
23078 build_alias=$build_alias
23082 # A sed program that does not truncate output.
23085 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23086 Xsed="\$SED -e 1s/^X//"
23088 # A grep program that handles long lines.
23094 # A literal string matcher.
23097 # A BSD- or MS-compatible name lister.
23100 # Whether we need soft or hard links.
23103 # What is the maximum length of a command?
23104 max_cmd_len=$max_cmd_len
23106 # Object file suffix (normally "o").
23109 # Executable file suffix (normally "").
23112 # whether the shell understands "unset".
23115 # turn spaces into newlines.
23118 # turn newlines into spaces.
23121 # convert \$build file names to \$host format.
23122 to_host_file_cmd=$lt_cv_to_host_file_cmd
23124 # convert \$build files to toolchain format.
23125 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23127 # An object symbol dumper.
23128 OBJDUMP=$lt_OBJDUMP
23130 # Method to check whether dependent libraries are shared objects.
23131 deplibs_check_method=$lt_deplibs_check_method
23133 # Command to use when deplibs_check_method = "file_magic".
23134 file_magic_cmd=$lt_file_magic_cmd
23136 # How to find potential files when deplibs_check_method = "file_magic".
23137 file_magic_glob=$lt_file_magic_glob
23139 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23140 want_nocaseglob=$lt_want_nocaseglob
23142 # DLL creation program.
23143 DLLTOOL=$lt_DLLTOOL
23145 # Command to associate shared and link libraries.
23146 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23151 # Flags to create an archive.
23152 AR_FLAGS=$lt_AR_FLAGS
23154 # How to feed a file listing to the archiver.
23155 archiver_list_spec=$lt_archiver_list_spec
23157 # A symbol stripping program.
23160 # Commands used to install an old-style archive.
23162 old_postinstall_cmds=$lt_old_postinstall_cmds
23163 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23165 # Whether to use a lock for old archive extraction.
23166 lock_old_archive_extraction=$lock_old_archive_extraction
23171 # LTCC compiler flags.
23172 LTCFLAGS=$lt_CFLAGS
23174 # Take the output of nm and produce a listing of raw symbols and C names.
23175 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23177 # Transform the output of nm in a proper C declaration.
23178 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23180 # Transform the output of nm into a list of symbols to manually relocate.
23181 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23183 # Transform the output of nm in a C name address pair.
23184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23186 # Transform the output of nm in a C name address pair when lib prefix is needed.
23187 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23189 # The name lister interface.
23190 nm_interface=$lt_lt_cv_nm_interface
23192 # Specify filename containing input files for \$NM.
23193 nm_file_list_spec=$lt_nm_file_list_spec
23195 # The root where to search for dependent libraries,and where our libraries should be installed.
23196 lt_sysroot=$lt_sysroot
23198 # Command to truncate a binary pipe.
23199 lt_truncate_bin=$lt_lt_cv_truncate_bin
23201 # The name of the directory that contains temporary libtool files.
23204 # Used to examine libraries when file_magic_cmd begins with "file".
23205 MAGIC_CMD=$MAGIC_CMD
23207 # Must we lock files when doing compilation?
23208 need_locks=$lt_need_locks
23211 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23213 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23214 DSYMUTIL=$lt_DSYMUTIL
23216 # Tool to change global to local symbols on Mac OS X.
23219 # Tool to manipulate fat objects and archives on Mac OS X.
23222 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23225 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23226 OTOOL64=$lt_OTOOL64
23228 # Old archive suffix (normally "a").
23231 # Shared library suffix (normally ".so").
23232 shrext_cmds=$lt_shrext_cmds
23234 # The commands to extract the exported symbol list from a shared archive.
23235 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23237 # Variables whose values should be saved in libtool wrapper scripts and
23238 # restored at link time.
23239 variables_saved_for_relink=$lt_variables_saved_for_relink
23241 # Do we need the "lib" prefix for modules?
23242 need_lib_prefix=$need_lib_prefix
23244 # Do we need a version for libraries?
23245 need_version=$need_version
23247 # Library versioning type.
23248 version_type=$version_type
23250 # Shared library runtime path variable.
23251 runpath_var=$runpath_var
23253 # Shared library path variable.
23254 shlibpath_var=$shlibpath_var
23256 # Is shlibpath searched before the hard-coded library search path?
23257 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23259 # Format of library name prefix.
23260 libname_spec=$lt_libname_spec
23262 # List of archive names. First name is the real one, the rest are links.
23263 # The last name is the one that the linker finds with -lNAME
23264 library_names_spec=$lt_library_names_spec
23266 # The coded name of the library, if different from the real name.
23267 soname_spec=$lt_soname_spec
23269 # Permission mode override for installation of shared libraries.
23270 install_override_mode=$lt_install_override_mode
23272 # Command to use after installation of a shared archive.
23273 postinstall_cmds=$lt_postinstall_cmds
23275 # Command to use after uninstallation of a shared archive.
23276 postuninstall_cmds=$lt_postuninstall_cmds
23278 # Commands used to finish a libtool library installation in a directory.
23279 finish_cmds=$lt_finish_cmds
23281 # As "finish_cmds", except a single script fragment to be evaled but
23283 finish_eval=$lt_finish_eval
23285 # Whether we should hardcode library paths into libraries.
23286 hardcode_into_libs=$hardcode_into_libs
23288 # Compile-time system search path for libraries.
23289 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23291 # Detected run-time system search path for libraries.
23292 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23294 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23295 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23297 # Whether dlopen is supported.
23298 dlopen_support=$enable_dlopen
23300 # Whether dlopen of programs is supported.
23301 dlopen_self=$enable_dlopen_self
23303 # Whether dlopen of statically linked programs is supported.
23304 dlopen_self_static=$enable_dlopen_self_static
23306 # Commands to strip libraries.
23307 old_striplib=$lt_old_striplib
23308 striplib=$lt_striplib
23311 # The linker used to build libraries.
23314 # How to create reloadable object files.
23315 reload_flag=$lt_reload_flag
23316 reload_cmds=$lt_reload_cmds
23318 # Commands used to build an old-style archive.
23319 old_archive_cmds=$lt_old_archive_cmds
23321 # A language specific compiler.
23324 # Is the compiler the GNU compiler?
23327 # Compiler flag to turn off builtin functions.
23328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23330 # Additional compiler flags for building library objects.
23331 pic_flag=$lt_lt_prog_compiler_pic
23333 # How to pass a linker flag through the compiler.
23334 wl=$lt_lt_prog_compiler_wl
23336 # Compiler flag to prevent dynamic linking.
23337 link_static_flag=$lt_lt_prog_compiler_static
23339 # Does compiler simultaneously support -c and -o options?
23340 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23342 # Whether or not to add -lc for building shared libraries.
23343 build_libtool_need_lc=$archive_cmds_need_lc
23345 # Whether or not to disallow shared libs when runtime libs are static.
23346 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23348 # Compiler flag to allow reflexive dlopens.
23349 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23351 # Compiler flag to generate shared objects directly from archives.
23352 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23354 # Whether the compiler copes with passing no objects directly.
23355 compiler_needs_object=$lt_compiler_needs_object
23357 # Create an old-style archive from a shared archive.
23358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23360 # Create a temporary old-style archive to link instead of a shared archive.
23361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23363 # Commands used to build a shared archive.
23364 archive_cmds=$lt_archive_cmds
23365 archive_expsym_cmds=$lt_archive_expsym_cmds
23367 # Commands used to build a loadable module if different from building
23368 # a shared archive.
23369 module_cmds=$lt_module_cmds
23370 module_expsym_cmds=$lt_module_expsym_cmds
23372 # Whether we are building with GNU ld or not.
23373 with_gnu_ld=$lt_with_gnu_ld
23375 # Flag that allows shared libraries with undefined symbols to be built.
23376 allow_undefined_flag=$lt_allow_undefined_flag
23378 # Flag that enforces no undefined symbols.
23379 no_undefined_flag=$lt_no_undefined_flag
23381 # Flag to hardcode \$libdir into a binary during linking.
23382 # This must work even if \$libdir does not exist
23383 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23385 # Whether we need a single "-rpath" flag with a separated argument.
23386 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23388 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23389 # DIR into the resulting binary.
23390 hardcode_direct=$hardcode_direct
23392 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23393 # DIR into the resulting binary and the resulting library dependency is
23394 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23395 # library is relocated.
23396 hardcode_direct_absolute=$hardcode_direct_absolute
23398 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23399 # into the resulting binary.
23400 hardcode_minus_L=$hardcode_minus_L
23402 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23403 # into the resulting binary.
23404 hardcode_shlibpath_var=$hardcode_shlibpath_var
23406 # Set to "yes" if building a shared library automatically hardcodes DIR
23407 # into the library and all subsequent libraries and executables linked
23409 hardcode_automatic=$hardcode_automatic
23411 # Set to yes if linker adds runtime paths of dependent libraries
23412 # to runtime path list.
23413 inherit_rpath=$inherit_rpath
23415 # Whether libtool must link a program against all its dependency libraries.
23416 link_all_deplibs=$link_all_deplibs
23418 # Set to "yes" if exported symbols are required.
23419 always_export_symbols=$always_export_symbols
23421 # The commands to list exported symbols.
23422 export_symbols_cmds=$lt_export_symbols_cmds
23424 # Symbols that should not be listed in the preloaded symbols.
23425 exclude_expsyms=$lt_exclude_expsyms
23427 # Symbols that must always be exported.
23428 include_expsyms=$lt_include_expsyms
23430 # Commands necessary for linking programs (against libraries) with templates.
23431 prelink_cmds=$lt_prelink_cmds
23433 # Commands necessary for finishing linking programs.
23434 postlink_cmds=$lt_postlink_cmds
23436 # Specify filename containing input files.
23437 file_list_spec=$lt_file_list_spec
23439 # How to hardcode a shared library path into an executable.
23440 hardcode_action=$hardcode_action
23442 # The directories searched by this compiler when creating a shared library.
23443 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23445 # Dependencies to place before and after the objects being linked to
23446 # create a shared library.
23447 predep_objects=$lt_predep_objects
23448 postdep_objects=$lt_postdep_objects
23449 predeps=$lt_predeps
23450 postdeps=$lt_postdeps
23452 # The library search path used internally by the compiler when linking
23453 # a shared library.
23454 compiler_lib_search_path=$lt_compiler_lib_search_path
23456 # ### END LIBTOOL CONFIG
23460 cat <<'_LT_EOF' >> "$cfgfile"
23462 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23464 # func_munge_path_list VARIABLE PATH
23465 # -----------------------------------
23466 # VARIABLE is name of variable containing _space_ separated list of
23467 # directories to be munged by the contents of PATH, which is string
23470 # string "DIR[ DIR]" will be prepended to VARIABLE
23472 # string "DIR[ DIR]" will be appended to VARIABLE
23473 # "DIRP[:DIRP]::[DIRA:]DIRA"
23474 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23475 # "DIRA[ DIRA]" will be appended to VARIABLE
23477 # VARIABLE will be replaced by "DIR[ DIR]"
23478 func_munge_path_list ()
23484 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23487 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23490 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23491 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23494 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23500 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23501 func_cc_basename ()
23503 for cc_temp in $*""; do
23505 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23506 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23511 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23515 # ### END FUNCTIONS SHARED WITH CONFIGURE
23521 cat <<\_LT_EOF >> "$cfgfile"
23522 # AIX sometimes has problems with the GCC collect2 program. For some
23523 # reason, if we set the COLLECT_NAMES environment variable, the problems
23524 # vanish in a puff of smoke.
23525 if test set != "${COLLECT_NAMES+set}"; then
23527 export COLLECT_NAMES
23534 ltmain=$ac_aux_dir/ltmain.sh
23537 # We use sed instead of cat because bash on DJGPP gets confused if
23538 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23539 # text mode, it properly converts lines to CR/LF. This bash problem
23540 # is reportedly fixed, but why not run on old versions too?
23541 sed '$q' "$ltmain" >> "$cfgfile" \
23542 || (rm -f "$cfgfile"; exit 1)
23544 mv -f "$cfgfile" "$ofile" ||
23545 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23549 cat <<_LT_EOF >> "$ofile"
23551 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23553 # The linker used to build libraries.
23556 # How to create reloadable object files.
23557 reload_flag=$lt_reload_flag_CXX
23558 reload_cmds=$lt_reload_cmds_CXX
23560 # Commands used to build an old-style archive.
23561 old_archive_cmds=$lt_old_archive_cmds_CXX
23563 # A language specific compiler.
23564 CC=$lt_compiler_CXX
23566 # Is the compiler the GNU compiler?
23569 # Compiler flag to turn off builtin functions.
23570 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23572 # Additional compiler flags for building library objects.
23573 pic_flag=$lt_lt_prog_compiler_pic_CXX
23575 # How to pass a linker flag through the compiler.
23576 wl=$lt_lt_prog_compiler_wl_CXX
23578 # Compiler flag to prevent dynamic linking.
23579 link_static_flag=$lt_lt_prog_compiler_static_CXX
23581 # Does compiler simultaneously support -c and -o options?
23582 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23584 # Whether or not to add -lc for building shared libraries.
23585 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23587 # Whether or not to disallow shared libs when runtime libs are static.
23588 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23590 # Compiler flag to allow reflexive dlopens.
23591 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23593 # Compiler flag to generate shared objects directly from archives.
23594 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23596 # Whether the compiler copes with passing no objects directly.
23597 compiler_needs_object=$lt_compiler_needs_object_CXX
23599 # Create an old-style archive from a shared archive.
23600 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23602 # Create a temporary old-style archive to link instead of a shared archive.
23603 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23605 # Commands used to build a shared archive.
23606 archive_cmds=$lt_archive_cmds_CXX
23607 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23609 # Commands used to build a loadable module if different from building
23610 # a shared archive.
23611 module_cmds=$lt_module_cmds_CXX
23612 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23614 # Whether we are building with GNU ld or not.
23615 with_gnu_ld=$lt_with_gnu_ld_CXX
23617 # Flag that allows shared libraries with undefined symbols to be built.
23618 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23620 # Flag that enforces no undefined symbols.
23621 no_undefined_flag=$lt_no_undefined_flag_CXX
23623 # Flag to hardcode \$libdir into a binary during linking.
23624 # This must work even if \$libdir does not exist
23625 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23627 # Whether we need a single "-rpath" flag with a separated argument.
23628 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23630 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23631 # DIR into the resulting binary.
23632 hardcode_direct=$hardcode_direct_CXX
23634 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23635 # DIR into the resulting binary and the resulting library dependency is
23636 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23637 # library is relocated.
23638 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23640 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23641 # into the resulting binary.
23642 hardcode_minus_L=$hardcode_minus_L_CXX
23644 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23645 # into the resulting binary.
23646 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23648 # Set to "yes" if building a shared library automatically hardcodes DIR
23649 # into the library and all subsequent libraries and executables linked
23651 hardcode_automatic=$hardcode_automatic_CXX
23653 # Set to yes if linker adds runtime paths of dependent libraries
23654 # to runtime path list.
23655 inherit_rpath=$inherit_rpath_CXX
23657 # Whether libtool must link a program against all its dependency libraries.
23658 link_all_deplibs=$link_all_deplibs_CXX
23660 # Set to "yes" if exported symbols are required.
23661 always_export_symbols=$always_export_symbols_CXX
23663 # The commands to list exported symbols.
23664 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23666 # Symbols that should not be listed in the preloaded symbols.
23667 exclude_expsyms=$lt_exclude_expsyms_CXX
23669 # Symbols that must always be exported.
23670 include_expsyms=$lt_include_expsyms_CXX
23672 # Commands necessary for linking programs (against libraries) with templates.
23673 prelink_cmds=$lt_prelink_cmds_CXX
23675 # Commands necessary for finishing linking programs.
23676 postlink_cmds=$lt_postlink_cmds_CXX
23678 # Specify filename containing input files.
23679 file_list_spec=$lt_file_list_spec_CXX
23681 # How to hardcode a shared library path into an executable.
23682 hardcode_action=$hardcode_action_CXX
23684 # The directories searched by this compiler when creating a shared library.
23685 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23687 # Dependencies to place before and after the objects being linked to
23688 # create a shared library.
23689 predep_objects=$lt_predep_objects_CXX
23690 postdep_objects=$lt_postdep_objects_CXX
23691 predeps=$lt_predeps_CXX
23692 postdeps=$lt_postdeps_CXX
23694 # The library search path used internally by the compiler when linking
23695 # a shared library.
23696 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23698 # ### END LIBTOOL TAG CONFIG: CXX
23709 ac_clean_files=$ac_clean_files_save
23711 test $ac_write_fail = 0 ||
23712 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23715 # configure is writing to config.log, and then calls config.status.
23716 # config.status does its own redirection, appending to config.log.
23717 # Unfortunately, on DOS this fails, as config.log is still kept open
23718 # by configure, so config.status won't be able to write to it; its
23719 # output is simply discarded. So we exec the FD to /dev/null,
23720 # effectively closing config.log, so it can be properly (re)opened and
23721 # appended to by config.status. When coming back to configure, we
23722 # need to make the FD available again.
23723 if test "$no_create" != yes; then
23725 ac_config_status_args=
23726 test "$silent" = yes &&
23727 ac_config_status_args="$ac_config_status_args --quiet"
23729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23731 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23732 # would make configure fail if this is the last instruction.
23733 $ac_cs_success || as_fn_exit 1
23735 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23737 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23741 { $as_echo "$as_me:${as_lineno-$LINENO}:
23743 Build configuration:
23745 Unicode callbacks (you want at least one):
23746 Builtin (UCDN): ${have_ucdn}
23750 Font callbacks (the more the merrier):
23751 FreeType: ${have_freetype}
23753 Tools used for command-line utilities:
23754 Cairo: ${have_cairo}
23755 Fontconfig: ${have_fontconfig}
23757 Additional shapers (the more the merrier):
23758 Graphite2: ${have_graphite2}
23760 Platform shapers (not normally needed):
23761 CoreText: ${have_coretext}
23762 Uniscribe: ${have_uniscribe}
23763 DirectWrite: ${have_directwrite}
23766 Documentation: ${enable_gtk_doc}
23767 GObject bindings: ${have_gobject}
23768 Introspection: ${have_introspection}
23772 Build configuration:
23774 Unicode callbacks (you want at least one):
23775 Builtin (UCDN): ${have_ucdn}
23779 Font callbacks (the more the merrier):
23780 FreeType: ${have_freetype}
23782 Tools used for command-line utilities:
23783 Cairo: ${have_cairo}
23784 Fontconfig: ${have_fontconfig}
23786 Additional shapers (the more the merrier):
23787 Graphite2: ${have_graphite2}
23789 Platform shapers (not normally needed):
23790 CoreText: ${have_coretext}
23791 Uniscribe: ${have_uniscribe}
23792 DirectWrite: ${have_directwrite}
23795 Documentation: ${enable_gtk_doc}
23796 GObject bindings: ${have_gobject}
23797 Introspection: ${have_introspection}