2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for HarfBuzz 2.6.7.
5 # Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://github.com/harfbuzz/harfbuzz/issues/new about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='HarfBuzz'
592 PACKAGE_TARNAME='harfbuzz'
593 PACKAGE_VERSION='2.6.7'
594 PACKAGE_STRING='HarfBuzz 2.6.7'
595 PACKAGE_BUGREPORT='https://github.com/harfbuzz/harfbuzz/issues/new'
596 PACKAGE_URL='http://harfbuzz.org/'
598 ac_unique_file="src/harfbuzz.pc.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
643 HAVE_DIRECTWRITE_FALSE
644 HAVE_DIRECTWRITE_TRUE
665 HAVE_ICU_BUILTIN_FALSE
666 HAVE_ICU_BUILTIN_TRUE
672 HAVE_FONTCONFIG_FALSE
684 HAVE_INTROSPECTION_FALSE
685 HAVE_INTROSPECTION_TRUE
686 INTROSPECTION_MAKEFILE
689 INTROSPECTION_TYPELIBDIR
691 INTROSPECTION_GENERATE
692 INTROSPECTION_COMPILER
693 INTROSPECTION_SCANNER
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
803 CODE_COVERAGE_LDFLAGS
805 CODE_COVERAGE_CXXFLAGS
807 CODE_COVERAGE_CPPFLAGS
811 CODE_COVERAGE_ENABLED
812 CODE_COVERAGE_ENABLED_FALSE
813 CODE_COVERAGE_ENABLED_TRUE
827 INSTALL_STRIP_PROGRAM
869 program_transform_name
883 enable_option_checking
887 enable_dependency_tracking
915 ac_precious_vars='build_alias
952 # Initialize some variables set by options.
954 ac_init_version=false
955 ac_unrecognized_opts=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
966 program_transform_name=s,x,x,
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
991 infodir='${datarootdir}/info'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\$ac_option
1012 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1019 case $ac_dashdash$ac_option in
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1043 -datadir | --datadir | --datadi | --datad)
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1055 -disable-* | --disable-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error $? "invalid feature name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1064 "enable_$ac_useropt"
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1069 eval enable_$ac_useropt=no ;;
1071 -docdir | --docdir | --docdi | --doc | --do)
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1081 -enable-* | --enable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error $? "invalid feature name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "enable_$ac_useropt"
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1095 eval enable_$ac_useropt=\$ac_optarg ;;
1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099 | --exec | --exe | --ex)
1100 ac_prev=exec_prefix ;;
1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103 | --exec=* | --exe=* | --ex=*)
1104 exec_prefix=$ac_optarg ;;
1106 -gas | --gas | --ga | --g)
1107 # Obsolete; use --with-gas.
1110 -help | --help | --hel | --he | -h)
1111 ac_init_help=long ;;
1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113 ac_init_help=recursive ;;
1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115 ac_init_help=short ;;
1117 -host | --host | --hos | --ho)
1118 ac_prev=host_alias ;;
1119 -host=* | --host=* | --hos=* | --ho=*)
1120 host_alias=$ac_optarg ;;
1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1126 htmldir=$ac_optarg ;;
1128 -includedir | --includedir | --includedi | --included | --include \
1129 | --includ | --inclu | --incl | --inc)
1130 ac_prev=includedir ;;
1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132 | --includ=* | --inclu=* | --incl=* | --inc=*)
1133 includedir=$ac_optarg ;;
1135 -infodir | --infodir | --infodi | --infod | --info | --inf)
1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138 infodir=$ac_optarg ;;
1140 -libdir | --libdir | --libdi | --libd)
1142 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143 libdir=$ac_optarg ;;
1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146 | --libexe | --libex | --libe)
1147 ac_prev=libexecdir ;;
1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149 | --libexe=* | --libex=* | --libe=*)
1150 libexecdir=$ac_optarg ;;
1152 -localedir | --localedir | --localedi | --localed | --locale)
1153 ac_prev=localedir ;;
1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155 localedir=$ac_optarg ;;
1157 -localstatedir | --localstatedir | --localstatedi | --localstated \
1158 | --localstate | --localstat | --localsta | --localst | --locals)
1159 ac_prev=localstatedir ;;
1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162 localstatedir=$ac_optarg ;;
1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167 mandir=$ac_optarg ;;
1169 -nfp | --nfp | --nf)
1170 # Obsolete; use --without-fp.
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174 | --no-cr | --no-c | -n)
1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183 | --oldin | --oldi | --old | --ol | --o)
1184 ac_prev=oldincludedir ;;
1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188 oldincludedir=$ac_optarg ;;
1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193 prefix=$ac_optarg ;;
1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196 | --program-pre | --program-pr | --program-p)
1197 ac_prev=program_prefix ;;
1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200 program_prefix=$ac_optarg ;;
1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203 | --program-suf | --program-su | --program-s)
1204 ac_prev=program_suffix ;;
1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207 program_suffix=$ac_optarg ;;
1209 -program-transform-name | --program-transform-name \
1210 | --program-transform-nam | --program-transform-na \
1211 | --program-transform-n | --program-transform- \
1212 | --program-transform | --program-transfor \
1213 | --program-transfo | --program-transf \
1214 | --program-trans | --program-tran \
1215 | --progr-tra | --program-tr | --program-t)
1216 ac_prev=program_transform_name ;;
1217 -program-transform-name=* | --program-transform-name=* \
1218 | --program-transform-nam=* | --program-transform-na=* \
1219 | --program-transform-n=* | --program-transform-=* \
1220 | --program-transform=* | --program-transfor=* \
1221 | --program-transfo=* | --program-transf=* \
1222 | --program-trans=* | --program-tran=* \
1223 | --progr-tra=* | --program-tr=* | --program-t=*)
1224 program_transform_name=$ac_optarg ;;
1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229 pdfdir=$ac_optarg ;;
1231 -psdir | --psdir | --psdi | --psd | --ps)
1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1240 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1242 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1244 sbindir=$ac_optarg ;;
1246 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248 | --sharedst | --shareds | --shared | --share | --shar \
1250 ac_prev=sharedstatedir ;;
1251 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1255 sharedstatedir=$ac_optarg ;;
1257 -site | --site | --sit)
1259 -site=* | --site=* | --sit=*)
1262 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1264 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265 srcdir=$ac_optarg ;;
1267 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268 | --syscon | --sysco | --sysc | --sys | --sy)
1269 ac_prev=sysconfdir ;;
1270 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272 sysconfdir=$ac_optarg ;;
1274 -target | --target | --targe | --targ | --tar | --ta | --t)
1275 ac_prev=target_alias ;;
1276 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277 target_alias=$ac_optarg ;;
1279 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1282 -version | --version | --versio | --versi | --vers | -V)
1283 ac_init_version=: ;;
1286 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error $? "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1299 eval with_$ac_useropt=\$ac_optarg ;;
1301 -without-* | --without-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 as_fn_error $? "invalid package name: $ac_useropt"
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1315 eval with_$ac_useropt=no ;;
1318 # Obsolete; use --with-x.
1321 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322 | --x-incl | --x-inc | --x-in | --x-i)
1323 ac_prev=x_includes ;;
1324 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326 x_includes=$ac_optarg ;;
1328 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330 ac_prev=x_libraries ;;
1331 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333 x_libraries=$ac_optarg ;;
1335 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1336 Try \`$0 --help' for more information"
1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 case $ac_envvar in #(
1343 '' | [0-9]* | *[!_$as_cr_alnum]* )
1344 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1346 eval $ac_envvar=\$ac_optarg
1347 export $ac_envvar ;;
1350 # FIXME: should be removed in autoconf 3.0.
1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1360 if test -n "$ac_prev"; then
1361 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362 as_fn_error $? "missing argument to $ac_option"
1365 if test -n "$ac_unrecognized_opts"; then
1366 case $enable_option_checking in
1368 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1369 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1373 # Check all directory arguments for consistency.
1374 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375 datadir sysconfdir sharedstatedir localstatedir includedir \
1376 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377 libdir localedir mandir
1379 eval ac_val=\$$ac_var
1380 # Remove trailing slashes.
1383 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384 eval $ac_var=\$ac_val;;
1386 # Be sure to have absolute directory names.
1388 [\\/$]* | ?:[\\/]* ) continue;;
1389 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1391 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1399 target=$target_alias
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403 if test "x$build_alias" = x; then
1404 cross_compiling=maybe
1405 elif test "x$build_alias" != "x$host_alias"; then
1411 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1413 test "$silent" = yes && exec 6>/dev/null
1416 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1417 ac_ls_di=`ls -di .` &&
1418 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1419 as_fn_error $? "working directory cannot be determined"
1420 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1421 as_fn_error $? "pwd does not report name of working directory"
1424 # Find the source files, if location was not specified.
1425 if test -z "$srcdir"; then
1426 ac_srcdir_defaulted=yes
1427 # Try the directory containing this script, then the parent directory.
1428 ac_confdir=`$as_dirname -- "$as_myself" ||
1429 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430 X"$as_myself" : 'X\(//\)[^/]' \| \
1431 X"$as_myself" : 'X\(//\)$' \| \
1432 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433 $as_echo X"$as_myself" |
1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1456 ac_srcdir_defaulted=no
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1460 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1462 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1464 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1466 # When building in place, set srcdir=.
1467 if test "$ac_abs_confdir" = "$ac_pwd"; then
1470 # Remove unnecessary trailing slashes from srcdir.
1471 # Double slashes in file names in object file debugging info
1472 # mess up M-x gdb in Emacs.
1474 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1476 for ac_var in $ac_precious_vars; do
1477 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_env_${ac_var}_value=\$${ac_var}
1479 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1484 # Report the --help message.
1486 if test "$ac_init_help" = "long"; then
1487 # Omit some internal or obsolete options to make the list less imposing.
1488 # This message is too long to be a string in the A/UX 3.1 sh.
1490 \`configure' configures HarfBuzz 2.6.7 to adapt to many kinds of systems.
1492 Usage: $0 [OPTION]... [VAR=VALUE]...
1494 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495 VAR=VALUE. See below for descriptions of some of the useful variables.
1497 Defaults for the options are specified in brackets.
1500 -h, --help display this help and exit
1501 --help=short display options specific to this package
1502 --help=recursive display the short help of all the included packages
1503 -V, --version display version information and exit
1504 -q, --quiet, --silent do not print \`checking ...' messages
1505 --cache-file=FILE cache test results in FILE [disabled]
1506 -C, --config-cache alias for \`--cache-file=config.cache'
1507 -n, --no-create do not create output files
1508 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1510 Installation directories:
1511 --prefix=PREFIX install architecture-independent files in PREFIX
1512 [$ac_default_prefix]
1513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1516 By default, \`make install' will install all the files in
1517 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1518 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519 for instance \`--prefix=\$HOME'.
1521 For better control, use the options below.
1523 Fine tuning of the installation directories:
1524 --bindir=DIR user executables [EPREFIX/bin]
1525 --sbindir=DIR system admin executables [EPREFIX/sbin]
1526 --libexecdir=DIR program executables [EPREFIX/libexec]
1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1530 --libdir=DIR object code libraries [EPREFIX/lib]
1531 --includedir=DIR C header files [PREFIX/include]
1532 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1535 --infodir=DIR info documentation [DATAROOTDIR/info]
1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1537 --mandir=DIR man documentation [DATAROOTDIR/man]
1538 --docdir=DIR documentation root [DATAROOTDIR/doc/harfbuzz]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
1548 --program-prefix=PREFIX prepend PREFIX to installed program names
1549 --program-suffix=SUFFIX append SUFFIX to installed program names
1550 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1553 --build=BUILD configure for building on BUILD [guessed]
1554 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1558 if test -n "$ac_init_help"; then
1559 case $ac_init_help in
1560 short | recursive ) echo "Configuration of HarfBuzz 2.6.7:";;
1565 --disable-option-checking ignore unrecognized --enable/--with options
1566 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1567 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1568 --enable-silent-rules less verbose build output (undo: "make V=1")
1569 --disable-silent-rules verbose build output (undo: "make V=0")
1570 --enable-code-coverage Whether to enable code coverage support
1571 --enable-dependency-tracking
1572 do not reject slow dependency extractors
1573 --disable-dependency-tracking
1574 speeds up one-time build
1575 --enable-static[=PKGS] build static libraries [default=no]
1576 --enable-shared[=PKGS] build shared libraries [default=yes]
1577 --enable-fast-install[=PKGS]
1578 optimize for fast installation [default=yes]
1579 --disable-libtool-lock avoid locking (might break parallel builds)
1580 --disable-largefile omit support for large files
1581 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1582 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1583 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1584 --enable-introspection=[no/auto/yes]
1585 Enable introspection for this build
1588 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1589 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1590 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1591 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1593 --with-aix-soname=aix|svr4|both
1594 shared library versioning (aka "SONAME") variant to
1595 provide on AIX, [default=aix].
1596 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1597 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1598 compiler's sysroot if not specified).
1599 --with-libstdc++=[yes/no]
1600 Allow linking with libstdc++ [default=no]
1601 --with-html-dir=PATH path to installed docs
1602 --with-glib=[yes/no/auto]
1603 Use glib [default=auto]
1604 --with-gobject=[yes/no/auto]
1605 Use gobject [default=no]
1606 --with-cairo=[yes/no/auto]
1607 Use cairo [default=auto]
1608 --with-fontconfig=[yes/no/auto]
1609 Use fontconfig [default=auto]
1610 --with-icu=[yes/no/builtin/auto]
1611 Use ICU [default=auto]
1612 --with-graphite2=[yes/no/auto]
1613 Use the graphite2 library [default=no]
1614 --with-freetype=[yes/no/auto]
1615 Use the FreeType library [default=auto]
1616 --with-uniscribe=[yes/no/auto]
1617 Use the Uniscribe library [default=no]
1618 --with-gdi=[yes/no/auto]
1619 Provide GDI integration helpers [default=no]
1620 --with-directwrite=[yes/no/auto]
1621 Use the DirectWrite library (experimental)
1623 --with-coretext=[yes/no/auto]
1624 Use CoreText [default=no]
1626 Some influential environment variables:
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1635 User-defined run-time library search path.
1637 CXX C++ compiler command
1638 CXXFLAGS C++ compiler flags
1639 CXXCPP C++ preprocessor
1640 PKG_CONFIG path to pkg-config utility
1642 directories to add to pkg-config's search path
1644 path overriding pkg-config's built-in search path
1646 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1648 linker flags for GTKDOC_DEPS, overriding pkg-config
1649 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1650 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1652 C compiler flags for GOBJECT, overriding pkg-config
1654 linker flags for GOBJECT, overriding pkg-config
1656 C compiler flags for CAIRO, overriding pkg-config
1657 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1659 C compiler flags for CAIRO_FT, overriding pkg-config
1661 linker flags for CAIRO_FT, overriding pkg-config
1663 C compiler flags for FONTCONFIG, overriding pkg-config
1665 linker flags for FONTCONFIG, overriding pkg-config
1666 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1667 ICU_LIBS linker flags for ICU, overriding pkg-config
1669 C compiler flags for GRAPHITE2, overriding pkg-config
1671 linker flags for GRAPHITE2, overriding pkg-config
1673 C compiler flags for FREETYPE, overriding pkg-config
1675 linker flags for FREETYPE, overriding pkg-config
1677 Use these variables to override the choices made by `configure' or to help
1678 it to find libraries and programs with nonstandard names/locations.
1680 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
1681 HarfBuzz home page: <http://harfbuzz.org/>.
1686 if test "$ac_init_help" = "recursive"; then
1687 # If there are subdirs, report their specific --help.
1688 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1689 test -d "$ac_dir" ||
1690 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1698 # A ".." for each directory in $ac_dir_suffix.
1699 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1700 case $ac_top_builddir_sub in
1701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1705 ac_abs_top_builddir=$ac_pwd
1706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1707 # for backward compatibility:
1708 ac_top_builddir=$ac_top_build_prefix
1711 .) # We are building in place.
1713 ac_top_srcdir=$ac_top_builddir_sub
1714 ac_abs_top_srcdir=$ac_pwd ;;
1715 [\\/]* | ?:[\\/]* ) # Absolute name.
1716 ac_srcdir=$srcdir$ac_dir_suffix;
1717 ac_top_srcdir=$srcdir
1718 ac_abs_top_srcdir=$srcdir ;;
1720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1721 ac_top_srcdir=$ac_top_build_prefix$srcdir
1722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1726 cd "$ac_dir" || { ac_status=$?; continue; }
1727 # Check for guested configure.
1728 if test -f "$ac_srcdir/configure.gnu"; then
1730 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1731 elif test -f "$ac_srcdir/configure"; then
1733 $SHELL "$ac_srcdir/configure" --help=recursive
1735 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1737 cd "$ac_pwd" || { ac_status=$?; break; }
1741 test -n "$ac_init_help" && exit $ac_status
1742 if $ac_init_version; then
1744 HarfBuzz configure 2.6.7
1745 generated by GNU Autoconf 2.69
1747 Copyright (C) 2012 Free Software Foundation, Inc.
1748 This configure script is free software; the Free Software Foundation
1749 gives unlimited permission to copy, distribute and modify it.
1754 ## ------------------------ ##
1755 ## Autoconf initialization. ##
1756 ## ------------------------ ##
1758 # ac_fn_c_try_compile LINENO
1759 # --------------------------
1760 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_compile ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1794 } # ac_fn_c_try_compile
1796 # ac_fn_c_try_link LINENO
1797 # -----------------------
1798 # Try to link conftest.$ac_ext, and return whether this succeeded.
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext conftest$ac_exeext
1803 if { { ac_try="$ac_link"
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_link") 2>conftest.err
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_c_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest$ac_exeext && {
1822 test "$cross_compiling" = yes ||
1823 test -x conftest$ac_exeext
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1832 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1833 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1834 # interfere with the next link command; also delete a directory that is
1835 # left behind by Apple's compiler. We do this before executing the actions.
1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1840 } # ac_fn_c_try_link
1842 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1843 # -------------------------------------------------------
1844 # Tests whether HEADER exists and can be compiled using the include files in
1845 # INCLUDES, setting the cache variable VAR accordingly.
1846 ac_fn_c_check_header_compile ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1859 if ac_fn_c_try_compile "$LINENO"; then :
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 } # ac_fn_c_check_header_compile
1873 # ac_fn_c_try_cpp LINENO
1874 # ----------------------
1875 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 if { { ac_try="$ac_cpp conftest.$ac_ext"
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } > conftest.i && {
1895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1896 test ! -s conftest.err
1900 $as_echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1910 # ac_fn_c_try_run LINENO
1911 # ----------------------
1912 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1913 # that executables *can* be run.
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 if { { ac_try="$ac_link"
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_link") 2>&5
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1928 { { case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_try") 2>&5
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; }; }; then :
1940 $as_echo "$as_me: program exited with status $ac_status" >&5
1941 $as_echo "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1944 ac_retval=$ac_status
1946 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 as_fn_set_status $ac_retval
1952 # ac_fn_c_check_func LINENO FUNC VAR
1953 # ----------------------------------
1954 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1955 ac_fn_c_check_func ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1967 #define $2 innocuous_$2
1969 /* System header to define __stub macros and hopefully few prototypes,
1970 which can conflict with char $2 (); below.
1971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1972 <limits.h> exists even on freestanding compilers. */
1975 # include <limits.h>
1977 # include <assert.h>
1982 /* Override any GCC internal prototype to avoid an error.
1983 Use char because int might match the return type of a GCC
1984 builtin and then its argument prototype would still apply. */
1989 /* The GNU C library defines this for functions which it implements
1990 to always fail with ENOSYS. Some functions are actually named
1991 something starting with __ and the normal name is an alias. */
1992 #if defined __stub_$2 || defined __stub___$2
2004 if ac_fn_c_try_link "$LINENO"; then :
2009 rm -f core conftest.err conftest.$ac_objext \
2010 conftest$ac_exeext conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017 } # ac_fn_c_check_func
2019 # ac_fn_cxx_try_compile LINENO
2020 # ----------------------------
2021 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2022 ac_fn_cxx_try_compile ()
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 rm -f conftest.$ac_objext
2026 if { { ac_try="$ac_compile"
2028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2029 *) ac_try_echo=$ac_try;;
2031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2032 $as_echo "$ac_try_echo"; } >&5
2033 (eval "$ac_compile") 2>conftest.err
2035 if test -s conftest.err; then
2036 grep -v '^ *+' conftest.err >conftest.er1
2037 cat conftest.er1 >&5
2038 mv -f conftest.er1 conftest.err
2040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2041 test $ac_status = 0; } && {
2042 test -z "$ac_cxx_werror_flag" ||
2043 test ! -s conftest.err
2044 } && test -s conftest.$ac_objext; then :
2047 $as_echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 as_fn_set_status $ac_retval
2055 } # ac_fn_cxx_try_compile
2057 # ac_fn_cxx_try_cpp LINENO
2058 # ------------------------
2059 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2060 ac_fn_cxx_try_cpp ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 if { { ac_try="$ac_cpp conftest.$ac_ext"
2065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066 *) ac_try_echo=$ac_try;;
2068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069 $as_echo "$ac_try_echo"; } >&5
2070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2072 if test -s conftest.err; then
2073 grep -v '^ *+' conftest.err >conftest.er1
2074 cat conftest.er1 >&5
2075 mv -f conftest.er1 conftest.err
2077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078 test $ac_status = 0; } > conftest.i && {
2079 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2080 test ! -s conftest.err
2084 $as_echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 as_fn_set_status $ac_retval
2092 } # ac_fn_cxx_try_cpp
2094 # ac_fn_cxx_try_link LINENO
2095 # -------------------------
2096 # Try to link conftest.$ac_ext, and return whether this succeeded.
2097 ac_fn_cxx_try_link ()
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 rm -f conftest.$ac_objext conftest$ac_exeext
2101 if { { ac_try="$ac_link"
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 $as_echo "$ac_try_echo"; } >&5
2108 (eval "$ac_link") 2>conftest.err
2110 if test -s conftest.err; then
2111 grep -v '^ *+' conftest.err >conftest.er1
2112 cat conftest.er1 >&5
2113 mv -f conftest.er1 conftest.err
2115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116 test $ac_status = 0; } && {
2117 test -z "$ac_cxx_werror_flag" ||
2118 test ! -s conftest.err
2119 } && test -s conftest$ac_exeext && {
2120 test "$cross_compiling" = yes ||
2121 test -x conftest$ac_exeext
2125 $as_echo "$as_me: failed program was:" >&5
2126 sed 's/^/| /' conftest.$ac_ext >&5
2130 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2131 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2132 # interfere with the next link command; also delete a directory that is
2133 # left behind by Apple's compiler. We do this before executing the actions.
2134 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 as_fn_set_status $ac_retval
2138 } # ac_fn_cxx_try_link
2140 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2141 # -------------------------------------------------------
2142 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2143 # the include files in INCLUDES and setting the cache variable VAR
2145 ac_fn_c_check_header_mongrel ()
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if eval \${$3+:} false; then :
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150 $as_echo_n "checking for $2... " >&6; }
2151 if eval \${$3+:} false; then :
2152 $as_echo_n "(cached) " >&6
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2158 # Is the header compilable?
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2160 $as_echo_n "checking $2 usability... " >&6; }
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167 ac_header_compiler=yes
2169 ac_header_compiler=no
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2173 $as_echo "$ac_header_compiler" >&6; }
2175 # Is the header present?
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2177 $as_echo_n "checking $2 presence... " >&6; }
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2182 if ac_fn_c_try_cpp "$LINENO"; then :
2183 ac_header_preproc=yes
2185 ac_header_preproc=no
2187 rm -f conftest.err conftest.i conftest.$ac_ext
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2189 $as_echo "$ac_header_preproc" >&6; }
2191 # So? What about this header?
2192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2195 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2197 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2201 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2203 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2205 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2207 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2210 ( $as_echo "## -------------------------------------------------------------- ##
2211 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2212 ## -------------------------------------------------------------- ##"
2213 ) | sed "s/^/$as_me: WARNING: /" >&2
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2217 $as_echo_n "checking for $2... " >&6; }
2218 if eval \${$3+:} false; then :
2219 $as_echo_n "(cached) " >&6
2221 eval "$3=\$ac_header_compiler"
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 } # ac_fn_c_check_header_mongrel
2231 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2232 # --------------------------------------------
2233 # Tries to find the compile-time value of EXPR in a program that includes
2234 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2236 ac_fn_c_compute_int ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 if test "$cross_compiling" = yes; then
2240 # Depending upon the size, compute the lo and hi bounds.
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2247 static int test_array [1 - 2 * !(($2) >= 0)];
2249 return test_array [0];
2255 if ac_fn_c_try_compile "$LINENO"; then :
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2264 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2266 return test_array [0];
2272 if ac_fn_c_try_compile "$LINENO"; then :
2273 ac_hi=$ac_mid; break
2275 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2276 if test $ac_lo -le $ac_mid; then
2280 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2291 static int test_array [1 - 2 * !(($2) < 0)];
2293 return test_array [0];
2299 if ac_fn_c_try_compile "$LINENO"; then :
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2308 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2310 return test_array [0];
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317 ac_lo=$ac_mid; break
2319 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2320 if test $ac_mid -le $ac_hi; then
2324 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 # Binary search between lo and hi bounds.
2335 while test "x$ac_lo" != "x$ac_hi"; do
2336 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2343 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2345 return test_array [0];
2351 if ac_fn_c_try_compile "$LINENO"; then :
2354 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2366 static long int longval () { return $2; }
2367 static unsigned long int ulongval () { return $2; }
2374 FILE *f = fopen ("conftest.val", "w");
2379 long int i = longval ();
2382 fprintf (f, "%ld", i);
2386 unsigned long int i = ulongval ();
2389 fprintf (f, "%lu", i);
2391 /* Do not output a trailing newline, as this causes \r\n confusion
2392 on some platforms. */
2393 return ferror (f) || fclose (f) != 0;
2399 if ac_fn_c_try_run "$LINENO"; then :
2400 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2405 conftest.$ac_objext conftest.beam conftest.$ac_ext
2409 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410 as_fn_set_status $ac_retval
2412 } # ac_fn_c_compute_int
2414 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2415 # ---------------------------------------------------------
2416 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2417 # the include files in INCLUDES and setting the cache variable VAR
2419 ac_fn_cxx_check_header_mongrel ()
2421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422 if eval \${$3+:} false; then :
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2424 $as_echo_n "checking for $2... " >&6; }
2425 if eval \${$3+:} false; then :
2426 $as_echo_n "(cached) " >&6
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2430 $as_echo "$ac_res" >&6; }
2432 # Is the header compilable?
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2434 $as_echo_n "checking $2 usability... " >&6; }
2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h. */
2440 if ac_fn_cxx_try_compile "$LINENO"; then :
2441 ac_header_compiler=yes
2443 ac_header_compiler=no
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2447 $as_echo "$ac_header_compiler" >&6; }
2449 # Is the header present?
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2451 $as_echo_n "checking $2 presence... " >&6; }
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2456 if ac_fn_cxx_try_cpp "$LINENO"; then :
2457 ac_header_preproc=yes
2459 ac_header_preproc=no
2461 rm -f conftest.err conftest.i conftest.$ac_ext
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2463 $as_echo "$ac_header_preproc" >&6; }
2465 # So? What about this header?
2466 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2469 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2471 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2475 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2477 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2479 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2481 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2483 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2484 ( $as_echo "## -------------------------------------------------------------- ##
2485 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2486 ## -------------------------------------------------------------- ##"
2487 ) | sed "s/^/$as_me: WARNING: /" >&2
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2491 $as_echo_n "checking for $2... " >&6; }
2492 if eval \${$3+:} false; then :
2493 $as_echo_n "(cached) " >&6
2495 eval "$3=\$ac_header_compiler"
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2499 $as_echo "$ac_res" >&6; }
2501 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2503 } # ac_fn_cxx_check_header_mongrel
2505 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2506 # -------------------------------------------
2507 # Tests whether TYPE exists after having included INCLUDES, setting cache
2508 # variable VAR accordingly.
2509 ac_fn_c_check_type ()
2511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2513 $as_echo_n "checking for $2... " >&6; }
2514 if eval \${$3+:} false; then :
2515 $as_echo_n "(cached) " >&6
2518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h. */
2530 if ac_fn_c_try_compile "$LINENO"; then :
2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h. */
2543 if ac_fn_c_try_compile "$LINENO"; then :
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2557 } # ac_fn_c_check_type
2558 cat >config.log <<_ACEOF
2559 This file contains any messages produced by compilers while
2560 running configure, to aid debugging if configure makes a mistake.
2562 It was created by HarfBuzz $as_me 2.6.7, which was
2563 generated by GNU Autoconf 2.69. Invocation command line was
2575 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2576 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2577 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2578 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2579 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2581 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2582 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2584 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2585 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2586 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2587 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2588 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2589 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2590 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 $as_echo "PATH: $as_dir"
2615 # Keep a trace of the command line.
2616 # Strip out --no-create and --no-recursion so they do not pile up.
2617 # Strip out --silent because we don't want to record it for future runs.
2618 # Also quote any args containing shell meta-characters.
2619 # Make two passes to allow for proper duplicate-argument suppression.
2623 ac_must_keep_next=false
2629 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2630 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2631 | -silent | --silent | --silen | --sile | --sil)
2634 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2637 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2639 as_fn_append ac_configure_args1 " '$ac_arg'"
2640 if test $ac_must_keep_next = true; then
2641 ac_must_keep_next=false # Got value, back to normal.
2644 *=* | --config-cache | -C | -disable-* | --disable-* \
2645 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2646 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2647 | -with-* | --with-* | -without-* | --without-* | --x)
2648 case "$ac_configure_args0 " in
2649 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2652 -* ) ac_must_keep_next=true ;;
2655 as_fn_append ac_configure_args " '$ac_arg'"
2660 { ac_configure_args0=; unset ac_configure_args0;}
2661 { ac_configure_args1=; unset ac_configure_args1;}
2663 # When interrupted or exit'd, cleanup temporary files, and complete
2664 # config.log. We remove comments because anyway the quotes in there
2665 # would cause problems or look ugly.
2666 # WARNING: Use '\'' to represent an apostrophe within the trap.
2667 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2668 trap 'exit_status=$?
2669 # Save into config.log some information that might help in debugging.
2673 $as_echo "## ---------------- ##
2674 ## Cache variables. ##
2675 ## ---------------- ##"
2677 # The following way of writing the cache mishandles newlines in values,
2679 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2680 eval ac_val=\$$ac_var
2684 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2685 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2688 _ | IFS | as_nl) ;; #(
2689 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2690 *) { eval $ac_var=; unset $ac_var;} ;;
2695 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2696 *${as_nl}ac_space=\ *)
2698 "s/'\''/'\''\\\\'\'''\''/g;
2699 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2709 $as_echo "## ----------------- ##
2710 ## Output variables. ##
2711 ## ----------------- ##"
2713 for ac_var in $ac_subst_vars
2715 eval ac_val=\$$ac_var
2717 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2719 $as_echo "$ac_var='\''$ac_val'\''"
2723 if test -n "$ac_subst_files"; then
2724 $as_echo "## ------------------- ##
2725 ## File substitutions. ##
2726 ## ------------------- ##"
2728 for ac_var in $ac_subst_files
2730 eval ac_val=\$$ac_var
2732 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2734 $as_echo "$ac_var='\''$ac_val'\''"
2739 if test -s confdefs.h; then
2740 $as_echo "## ----------- ##
2747 test "$ac_signal" != 0 &&
2748 $as_echo "$as_me: caught signal $ac_signal"
2749 $as_echo "$as_me: exit $exit_status"
2751 rm -f core *.core core.conftest.* &&
2752 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2755 for ac_signal in 1 2 13 15; do
2756 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2761 rm -f -r conftest* confdefs.h
2763 $as_echo "/* confdefs.h */" > confdefs.h
2765 # Predefined preprocessor variables.
2767 cat >>confdefs.h <<_ACEOF
2768 #define PACKAGE_NAME "$PACKAGE_NAME"
2771 cat >>confdefs.h <<_ACEOF
2772 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2775 cat >>confdefs.h <<_ACEOF
2776 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2779 cat >>confdefs.h <<_ACEOF
2780 #define PACKAGE_STRING "$PACKAGE_STRING"
2783 cat >>confdefs.h <<_ACEOF
2784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2787 cat >>confdefs.h <<_ACEOF
2788 #define PACKAGE_URL "$PACKAGE_URL"
2792 # Let the site file select an alternate cache file if it wants to.
2793 # Prefer an explicitly selected file to automatically selected ones.
2796 if test -n "$CONFIG_SITE"; then
2797 # We do not want a PATH search for config.site.
2798 case $CONFIG_SITE in #((
2799 -*) ac_site_file1=./$CONFIG_SITE;;
2800 */*) ac_site_file1=$CONFIG_SITE;;
2801 *) ac_site_file1=./$CONFIG_SITE;;
2803 elif test "x$prefix" != xNONE; then
2804 ac_site_file1=$prefix/share/config.site
2805 ac_site_file2=$prefix/etc/config.site
2807 ac_site_file1=$ac_default_prefix/share/config.site
2808 ac_site_file2=$ac_default_prefix/etc/config.site
2810 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2812 test "x$ac_site_file" = xNONE && continue
2813 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2815 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2816 sed 's/^/| /' "$ac_site_file" >&5
2818 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820 as_fn_error $? "failed to load site script $ac_site_file
2821 See \`config.log' for more details" "$LINENO" 5; }
2825 if test -r "$cache_file"; then
2826 # Some versions of bash will fail to source /dev/null (special files
2827 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2828 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2830 $as_echo "$as_me: loading cache $cache_file" >&6;}
2832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2833 *) . "./$cache_file";;
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2838 $as_echo "$as_me: creating cache $cache_file" >&6;}
2842 # Check that the precious variables saved in the cache have kept the same
2844 ac_cache_corrupted=false
2845 for ac_var in $ac_precious_vars; do
2846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2847 eval ac_new_set=\$ac_env_${ac_var}_set
2848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2849 eval ac_new_val=\$ac_env_${ac_var}_value
2850 case $ac_old_set,$ac_new_set in
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2853 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2854 ac_cache_corrupted=: ;;
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2857 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2858 ac_cache_corrupted=: ;;
2861 if test "x$ac_old_val" != "x$ac_new_val"; then
2862 # differences in whitespace do not lead to failure.
2863 ac_old_val_w=`echo x $ac_old_val`
2864 ac_new_val_w=`echo x $ac_new_val`
2865 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2867 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2868 ac_cache_corrupted=:
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2871 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2872 eval $ac_var=\$ac_old_val
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2875 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2877 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2880 # Pass precious variables to config.status.
2881 if test "$ac_new_set" = set; then
2883 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2884 *) ac_arg=$ac_var=$ac_new_val ;;
2886 case " $ac_configure_args " in
2887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2888 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2892 if $ac_cache_corrupted; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2896 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2897 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2899 ## -------------------- ##
2900 ## Main body of script. ##
2901 ## -------------------- ##
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913 ac_config_headers="$ac_config_headers config.h"
2916 am__api_version='1.16'
2919 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2920 if test -f "$ac_dir/install-sh"; then
2922 ac_install_sh="$ac_aux_dir/install-sh -c"
2924 elif test -f "$ac_dir/install.sh"; then
2926 ac_install_sh="$ac_aux_dir/install.sh -c"
2928 elif test -f "$ac_dir/shtool"; then
2930 ac_install_sh="$ac_aux_dir/shtool install -c"
2934 if test -z "$ac_aux_dir"; then
2935 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2938 # These three variables are undocumented and unsupported,
2939 # and are intended to be withdrawn in a future Autoconf release.
2940 # They can cause serious problems if a builder's source tree is in a directory
2941 # whose full name contains unusual characters.
2942 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2943 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2944 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2947 # Find a good install program. We prefer a C program (faster),
2948 # so one script is as good as another. But avoid the broken or
2949 # incompatible versions:
2950 # SysV /etc/install, /usr/sbin/install
2951 # SunOS /usr/etc/install
2952 # IRIX /sbin/install
2954 # AmigaOS /C/install, which installs bootblocks on floppy discs
2955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2958 # OS/2's system install, which has a completely different semantic
2959 # ./install, which can be erroneously created by make from ./install.sh.
2960 # Reject install programs that cannot install multiple files.
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2962 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2963 if test -z "$INSTALL"; then
2964 if ${ac_cv_path_install+:} false; then :
2965 $as_echo_n "(cached) " >&6
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 test -z "$as_dir" && as_dir=.
2972 # Account for people who put trailing slashes in PATH elements.
2973 case $as_dir/ in #((
2974 ./ | .// | /[cC]/* | \
2975 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2976 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2979 # OSF1 and SCO ODT 3.0 have their own names for install.
2980 # Don't use installbsd from OSF since it installs stuff as root
2982 for ac_prog in ginstall scoinst install; do
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2985 if test $ac_prog = install &&
2986 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2987 # AIX install. It has an incompatible calling convention.
2989 elif test $ac_prog = install &&
2990 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2991 # program-specific install script used by HP pwplus--don't use.
2994 rm -rf conftest.one conftest.two conftest.dir
2995 echo one > conftest.one
2996 echo two > conftest.two
2998 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2999 test -s conftest.one && test -s conftest.two &&
3000 test -s conftest.dir/conftest.one &&
3001 test -s conftest.dir/conftest.two
3003 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3016 rm -rf conftest.one conftest.two conftest.dir
3019 if test "${ac_cv_path_install+set}" = set; then
3020 INSTALL=$ac_cv_path_install
3022 # As a last resort, use the slow shell script. Don't cache a
3023 # value for INSTALL within a source directory, because that will
3024 # break other packages using the cache if that directory is
3025 # removed, or if the value is a relative name.
3026 INSTALL=$ac_install_sh
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3030 $as_echo "$INSTALL" >&6; }
3032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3033 # It thinks the first close brace ends the variable substitution.
3034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3041 $as_echo_n "checking whether build environment is sane... " >&6; }
3042 # Reject unsafe characters in $srcdir or the absolute working directory
3043 # name. Accept space and tab only in the latter.
3047 *[\\\"\#\$\&\'\`$am_lf]*)
3048 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3051 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3052 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3055 # Do 'set' in a subshell so we don't clobber the current shell's
3056 # arguments. Must try -L first in case configure is actually a
3057 # symlink; some systems play weird games with the mod time of symlinks
3058 # (eg FreeBSD returns the mod time of the symlink's containing
3062 for am_try in 1 2; do
3063 echo "timestamp, slept: $am_has_slept" > conftest.file
3064 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3065 if test "$*" = "X"; then
3067 set X `ls -t "$srcdir/configure" conftest.file`
3069 if test "$*" != "X $srcdir/configure conftest.file" \
3070 && test "$*" != "X conftest.file $srcdir/configure"; then
3072 # If neither matched, then we have a broken ls. This can happen
3073 # if, for instance, CONFIG_SHELL is bash and it inherits a
3074 # broken ls alias from the environment. This has actually
3075 # happened. Such a system could not be considered "sane".
3076 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3077 alias in your environment" "$LINENO" 5
3079 if test "$2" = conftest.file || test $am_try -eq 2; then
3086 test "$2" = conftest.file
3092 as_fn_error $? "newly created file is older than distributed files!
3093 Check your system clock" "$LINENO" 5
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3096 $as_echo "yes" >&6; }
3097 # If we didn't sleep, we still need to ensure time stamps of config.status and
3098 # generated files are strictly newer.
3100 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3107 test "$program_prefix" != NONE &&
3108 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3109 # Use a double $ so make ignores it.
3110 test "$program_suffix" != NONE &&
3111 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3112 # Double any \ or $.
3113 # By default was `s,x,x', remove it if useless.
3114 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3115 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3117 # Expand $ac_aux_dir to an absolute path.
3118 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3120 if test x"${MISSING+set}" != xset; then
3123 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3125 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3128 # Use eval to expand $SHELL
3129 if eval "$MISSING --is-lightweight"; then
3130 am_missing_run="$MISSING "
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3134 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3137 if test x"${install_sh+set}" != xset; then
3140 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3142 install_sh="\${SHELL} $am_aux_dir/install-sh"
3146 # Installed binaries are usually stripped using 'strip' when the user
3147 # run "make install-strip". However 'strip' might not be the right
3148 # tool to use in cross-compilation environments, therefore Automake
3149 # will honor the 'STRIP' environment variable to overrule this program.
3150 if test "$cross_compiling" != no; then
3151 if test -n "$ac_tool_prefix"; then
3152 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3153 set dummy ${ac_tool_prefix}strip; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_STRIP+:} false; then :
3157 $as_echo_n "(cached) " >&6
3159 if test -n "$STRIP"; then
3160 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 STRIP=$ac_cv_prog_STRIP
3180 if test -n "$STRIP"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3182 $as_echo "$STRIP" >&6; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3190 if test -z "$ac_cv_prog_STRIP"; then
3192 # Extract the first word of "strip", so it can be a program name with args.
3193 set dummy strip; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3197 $as_echo_n "(cached) " >&6
3199 if test -n "$ac_ct_STRIP"; then
3200 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_ac_ct_STRIP="strip"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3220 if test -n "$ac_ct_STRIP"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3222 $as_echo "$ac_ct_STRIP" >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3228 if test "x$ac_ct_STRIP" = x; then
3231 case $cross_compiling:$ac_tool_warned in
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3240 STRIP="$ac_cv_prog_STRIP"
3244 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3247 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3248 if test -z "$MKDIR_P"; then
3249 if ${ac_cv_path_mkdir+:} false; then :
3250 $as_echo_n "(cached) " >&6
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3256 test -z "$as_dir" && as_dir=.
3257 for ac_prog in mkdir gmkdir; do
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3260 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3261 'mkdir (GNU coreutils) '* | \
3262 'mkdir (coreutils) '* | \
3263 'mkdir (fileutils) '4.1*)
3264 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3274 test -d ./--version && rmdir ./--version
3275 if test "${ac_cv_path_mkdir+set}" = set; then
3276 MKDIR_P="$ac_cv_path_mkdir -p"
3278 # As a last resort, use the slow shell script. Don't cache a
3279 # value for MKDIR_P within a source directory, because that will
3280 # break other packages using the cache if that directory is
3281 # removed, or if the value is a relative name.
3282 MKDIR_P="$ac_install_sh -d"
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3286 $as_echo "$MKDIR_P" >&6; }
3288 for ac_prog in gawk mawk nawk awk
3290 # Extract the first word of "$ac_prog", so it can be a program name with args.
3291 set dummy $ac_prog; ac_word=$2
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 $as_echo_n "checking for $ac_word... " >&6; }
3294 if ${ac_cv_prog_AWK+:} false; then :
3295 $as_echo_n "(cached) " >&6
3297 if test -n "$AWK"; then
3298 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307 ac_cv_prog_AWK="$ac_prog"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 if test -n "$AWK"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3320 $as_echo "$AWK" >&6; }
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3327 test -n "$AWK" && break
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3331 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3333 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3334 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3335 $as_echo_n "(cached) " >&6
3337 cat >conftest.make <<\_ACEOF
3340 @echo '@@@%%%=$(MAKE)=@@@%%%'
3342 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3343 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3345 eval ac_cv_prog_make_${ac_make}_set=yes;;
3347 eval ac_cv_prog_make_${ac_make}_set=no;;
3351 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3353 $as_echo "yes" >&6; }
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3358 SET_MAKE="MAKE=${MAKE-make}"
3361 rm -rf .tst 2>/dev/null
3362 mkdir .tst 2>/dev/null
3363 if test -d .tst; then
3368 rmdir .tst 2>/dev/null
3370 # Check whether --enable-silent-rules was given.
3371 if test "${enable_silent_rules+set}" = set; then :
3372 enableval=$enable_silent_rules;
3375 case $enable_silent_rules in # (((
3376 yes) AM_DEFAULT_VERBOSITY=0;;
3377 no) AM_DEFAULT_VERBOSITY=1;;
3378 *) AM_DEFAULT_VERBOSITY=1;;
3380 am_make=${MAKE-make}
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3382 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3383 if ${am_cv_make_support_nested_variables+:} false; then :
3384 $as_echo_n "(cached) " >&6
3386 if $as_echo 'TRUE=$(BAR$(V))
3392 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3393 am_cv_make_support_nested_variables=yes
3395 am_cv_make_support_nested_variables=no
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3399 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3400 if test $am_cv_make_support_nested_variables = yes; then
3402 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3404 AM_V=$AM_DEFAULT_VERBOSITY
3405 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3409 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3410 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3411 # is not polluted with repeated "-I."
3412 am__isrc=' -I$(srcdir)'
3413 # test to see if srcdir already configured
3414 if test -f $srcdir/config.status; then
3415 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3419 # test whether we have cygpath
3420 if test -z "$CYGPATH_W"; then
3421 if (cygpath --version) >/dev/null 2>/dev/null; then
3422 CYGPATH_W='cygpath -w'
3429 # Define the identity of the package.
3434 # Some tools Automake needs.
3436 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3439 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3442 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3445 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3448 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3450 # For better backward compatibility. To be removed once Automake 1.9.x
3451 # dies out for good. For more background, see:
3452 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3453 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3454 mkdir_p='$(MKDIR_P)'
3456 # We need awk for the "check" target (and possibly the TAP driver). The
3457 # system "awk" is bad on some platforms.
3458 # Always define AMTAR for backward compatibility. Yes, it's still used
3459 # in the wild :-( We should find a proper way to deprecate it ...
3463 # We'll loop over all known methods to create a tar archive until one works.
3464 _am_tools='gnutar plaintar pax cpio none'
3466 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3467 # There is notably a 21 bits limit for the UID and the GID. In fact,
3468 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3470 am_max_uid=2097151 # 2^21 - 1
3471 am_max_gid=$am_max_uid
3472 # The $UID and $GID variables are not portable, so we need to resort
3473 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3474 # below are definitely unexpected, so allow the users to see them
3475 # (that is, avoid stderr redirection).
3476 am_uid=`id -u || echo unknown`
3477 am_gid=`id -g || echo unknown`
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3479 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3480 if test $am_uid -le $am_max_uid; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3482 $as_echo "yes" >&6; }
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3489 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3490 if test $am_gid -le $am_max_gid; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3492 $as_echo "yes" >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3500 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3502 # Go ahead even if we have the value already cached. We do so because we
3503 # need to set the values for the 'am__tar' and 'am__untar' variables.
3504 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3506 for _am_tool in $_am_tools; do
3509 for _am_tar in tar gnutar gtar; do
3510 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3511 ($_am_tar --version) >&5 2>&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } && break
3516 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3517 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3518 am__untar="$_am_tar -xf -"
3521 # Must skip GNU tar: if it does not support --format= it doesn't create
3522 # ustar tarball either.
3523 (tar --version) >/dev/null 2>&1 && continue
3524 am__tar='tar chf - "$$tardir"'
3525 am__tar_='tar chf - "$tardir"'
3526 am__untar='tar xf -'
3529 am__tar='pax -L -x ustar -w "$$tardir"'
3530 am__tar_='pax -L -x ustar -w "$tardir"'
3534 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3535 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3536 am__untar='cpio -i -H ustar -d'
3545 # If the value was cached, stop now. We just wanted to have am__tar
3546 # and am__untar set.
3547 test -n "${am_cv_prog_tar_ustar}" && break
3549 # tar/untar a dummy directory, and stop if the command works.
3552 echo GrepMe > conftest.dir/file
3553 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3554 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }
3559 if test -s conftest.tar; then
3560 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3561 ($am__untar <conftest.tar) >&5 2>&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }
3565 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3566 (cat conftest.dir/file) >&5 2>&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }
3570 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3575 if ${am_cv_prog_tar_ustar+:} false; then :
3576 $as_echo_n "(cached) " >&6
3578 am_cv_prog_tar_ustar=$_am_tool
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3582 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3589 # POSIX will say in a future version that running "rm -f" with no argument
3590 # is OK; and we want to be able to make that assumption in our Makefile
3591 # recipes. So use an aggressive probe to check that the usage we want is
3592 # actually supported "in the wild" to an acceptable degree.
3593 # See automake bug#10828.
3594 # To make any issue more visible, cause the running configure to be aborted
3595 # by default if the 'rm' program in use doesn't match our expectations; the
3596 # user can still override this though.
3597 if rm -f && rm -fr && rm -rf; then : OK; else
3601 Your 'rm' program seems unable to run without file operands specified
3602 on the command line, even when the '-f' option is present. This is contrary
3603 to the behaviour of most rm programs out there, and not conforming with
3604 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3606 Please tell bug-automake@gnu.org about your system, including the value
3607 of your $PATH and any error possibly output before this message. This
3608 can help us improve future automake versions.
3611 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3612 echo 'Configuration will proceed anyway, since you have set the' >&2
3613 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3617 Aborting the configuration process, to ensure you take notice of the issue.
3619 You can download and install GNU coreutils to get an 'rm' implementation
3620 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3622 If you want to complete the configuration process using your problematic
3623 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3624 to "yes", and re-run configure.
3627 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3631 # Check whether --enable-silent-rules was given.
3632 if test "${enable_silent_rules+set}" = set; then :
3633 enableval=$enable_silent_rules;
3636 case $enable_silent_rules in # (((
3637 yes) AM_DEFAULT_VERBOSITY=0;;
3638 no) AM_DEFAULT_VERBOSITY=1;;
3639 *) AM_DEFAULT_VERBOSITY=0;;
3641 am_make=${MAKE-make}
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3643 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3644 if ${am_cv_make_support_nested_variables+:} false; then :
3645 $as_echo_n "(cached) " >&6
3647 if $as_echo 'TRUE=$(BAR$(V))
3653 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3654 am_cv_make_support_nested_variables=yes
3656 am_cv_make_support_nested_variables=no
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3660 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3661 if test $am_cv_make_support_nested_variables = yes; then
3663 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3665 AM_V=$AM_DEFAULT_VERBOSITY
3666 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3671 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3672 if ${ac_cv_path_SED+:} false; then :
3673 $as_echo_n "(cached) " >&6
3675 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3676 for ac_i in 1 2 3 4 5 6 7; do
3677 ac_script="$ac_script$as_nl$ac_script"
3679 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3680 { ac_script=; unset ac_script;}
3681 if test -z "$SED"; then
3682 ac_path_SED_found=false
3683 # Loop through the user's path and test for each of PROGNAME-LIST
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 test -z "$as_dir" && as_dir=.
3689 for ac_prog in sed gsed; do
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3692 as_fn_executable_p "$ac_path_SED" || continue
3693 # Check for GNU ac_path_SED and select it if it is found.
3694 # Check for GNU $ac_path_SED
3695 case `"$ac_path_SED" --version 2>&1` in
3697 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3700 $as_echo_n 0123456789 >"conftest.in"
3703 cat "conftest.in" "conftest.in" >"conftest.tmp"
3704 mv "conftest.tmp" "conftest.in"
3705 cp "conftest.in" "conftest.nl"
3706 $as_echo '' >> "conftest.nl"
3707 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3709 as_fn_arith $ac_count + 1 && ac_count=$as_val
3710 if test $ac_count -gt ${ac_path_SED_max-0}; then
3711 # Best one so far, save it but keep looking for a better one
3712 ac_cv_path_SED="$ac_path_SED"
3713 ac_path_SED_max=$ac_count
3715 # 10*(2^10) chars as input seems more than enough
3716 test $ac_count -gt 10 && break
3718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3721 $ac_path_SED_found && break 3
3726 if test -z "$ac_cv_path_SED"; then
3727 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3735 $as_echo "$ac_cv_path_SED" >&6; }
3736 SED="$ac_cv_path_SED"
3742 # allow to override gcov location
3744 # Check whether --with-gcov was given.
3745 if test "${with_gcov+set}" = set; then :
3746 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3748 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3753 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3754 # Check whether --enable-code-coverage was given.
3755 if test "${enable_code_coverage+set}" = set; then :
3756 enableval=$enable_code_coverage;
3758 enable_code_coverage=no
3762 if test x$enable_code_coverage = xyes; then
3763 CODE_COVERAGE_ENABLED_TRUE=
3764 CODE_COVERAGE_ENABLED_FALSE='#'
3766 CODE_COVERAGE_ENABLED_TRUE='#'
3767 CODE_COVERAGE_ENABLED_FALSE=
3770 CODE_COVERAGE_ENABLED=$enable_code_coverage
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3773 $as_echo "$enable_code_coverage" >&6; }
3775 if test "$enable_code_coverage" = "yes" ; then :
3778 if test -n "$ac_tool_prefix"; then
3779 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3780 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if ${ac_cv_prog_GCOV+:} false; then :
3784 $as_echo_n "(cached) " >&6
3786 if test -n "$GCOV"; then
3787 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 test -z "$as_dir" && as_dir=.
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3796 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 GCOV=$ac_cv_prog_GCOV
3807 if test -n "$GCOV"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3809 $as_echo "$GCOV" >&6; }
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3817 if test -z "$ac_cv_prog_GCOV"; then
3819 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3820 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822 $as_echo_n "checking for $ac_word... " >&6; }
3823 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3824 $as_echo_n "(cached) " >&6
3826 if test -n "$ac_ct_GCOV"; then
3827 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 test -z "$as_dir" && as_dir=.
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3836 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3847 if test -n "$ac_ct_GCOV"; then
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3849 $as_echo "$ac_ct_GCOV" >&6; }
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852 $as_echo "no" >&6; }
3855 if test "x$ac_ct_GCOV" = x; then
3858 case $cross_compiling:$ac_tool_warned in
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3862 ac_tool_warned=yes ;;
3867 GCOV="$ac_cv_prog_GCOV"
3870 if test "X$GCOV" = "X:"; then :
3871 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3875 if test "$GCC" = "no" ; then :
3877 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3881 # Extract the first word of "lcov", so it can be a program name with args.
3882 set dummy lcov; ac_word=$2
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if ${ac_cv_prog_LCOV+:} false; then :
3886 $as_echo_n "(cached) " >&6
3888 if test -n "$LCOV"; then
3889 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_LCOV="lcov"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 LCOV=$ac_cv_prog_LCOV
3909 if test -n "$LCOV"; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3911 $as_echo "$LCOV" >&6; }
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3918 # Extract the first word of "genhtml", so it can be a program name with args.
3919 set dummy genhtml; ac_word=$2
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921 $as_echo_n "checking for $ac_word... " >&6; }
3922 if ${ac_cv_prog_GENHTML+:} false; then :
3923 $as_echo_n "(cached) " >&6
3925 if test -n "$GENHTML"; then
3926 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3935 ac_cv_prog_GENHTML="genhtml"
3936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 GENHTML=$ac_cv_prog_GENHTML
3946 if test -n "$GENHTML"; then
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3948 $as_echo "$GENHTML" >&6; }
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3956 if test -z "$LCOV" ; then :
3958 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
3962 if test -z "$GENHTML" ; then :
3964 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3968 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
3969 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3970 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3971 CODE_COVERAGE_LIBS="-lgcov"
3972 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
3980 CODE_COVERAGE_RULES_CHECK='
3981 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
3982 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3984 CODE_COVERAGE_RULES_CAPTURE='
3985 $(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)
3986 $(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)
3987 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3988 $(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)
3989 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
3991 CODE_COVERAGE_RULES_CLEAN='
3992 clean: code-coverage-clean
3993 distclean: code-coverage-clean
3994 code-coverage-clean:
3995 -$(LCOV) --directory $(top_builddir) -z
3996 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3997 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
4002 CODE_COVERAGE_RULES_CHECK='
4003 @echo "Need to reconfigure with --enable-code-coverage"
4005 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
4006 CODE_COVERAGE_RULES_CLEAN=''
4010 CODE_COVERAGE_RULES='
4014 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
4015 # Multiple directories may be specified, separated by whitespace.
4016 # (Default: $(top_builddir))
4017 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
4018 # by lcov for code coverage. (Default:
4019 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
4020 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
4021 # reports to be created. (Default:
4022 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
4023 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
4024 # set to 0 to disable it and leave empty to stay with the default.
4026 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
4027 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4028 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
4029 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4030 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
4031 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
4032 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4033 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
4034 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4035 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
4036 # lcov instance. (Default: empty)
4037 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
4038 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4039 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
4040 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4041 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
4042 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4043 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
4045 # The generated report will be titled using the $(PACKAGE_NAME) and
4046 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
4047 # use the git-version-gen script, available online.
4049 # Optional variables
4050 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
4051 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
4052 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
4053 CODE_COVERAGE_BRANCH_COVERAGE ?=
4054 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4055 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4056 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4057 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
4058 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4059 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4060 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
4061 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4062 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
4063 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4064 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4065 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4066 CODE_COVERAGE_IGNORE_PATTERN ?=
4069 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4071 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
4072 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
4073 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
4074 $(CODE_COVERAGE_OUTPUT_FILE);
4075 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
4076 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
4077 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
4078 $(CODE_COVERAGE_IGNORE_PATTERN);
4079 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
4080 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
4081 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
4082 code_coverage_quiet = $(code_coverage_quiet_$(V))
4083 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
4084 code_coverage_quiet_0 = --quiet
4086 # sanitizes the test-name: replaces with underscores: dashes and dots
4087 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
4089 # Use recursive makes in order to ignore errors during check
4090 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
4092 # Capture code coverage data
4093 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
4095 # Hook rule executed before code-coverage-capture, overridable by the user
4096 code-coverage-capture-hook:
4098 '"$CODE_COVERAGE_RULES_CLEAN"'
4100 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4101 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
4103 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
4110 # Initialize libtool
4111 DEPDIR="${am__leading_dot}deps"
4113 ac_config_commands="$ac_config_commands depfiles"
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4116 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4117 cat > confinc.mk << 'END'
4119 @echo this is the am__doit target >confinc.out
4124 # BSD make does it like this.
4125 echo '.include "confinc.mk" # ignored' > confmf.BSD
4126 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4127 echo 'include confinc.mk # ignored' > confmf.GNU
4129 for s in GNU BSD; do
4130 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4131 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }
4135 case $?:`cat confinc.out 2>/dev/null` in #(
4136 '0:this is the am__doit target') :
4139 am__include='.include' am__quote='"' ;; #(
4141 am__include='include' am__quote='' ;;
4146 if test "$am__include" != "#"; then
4147 _am_result="yes ($s style)"
4151 rm -f confinc.* confmf.*
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4153 $as_echo "${_am_result}" >&6; }
4155 # Check whether --enable-dependency-tracking was given.
4156 if test "${enable_dependency_tracking+set}" = set; then :
4157 enableval=$enable_dependency_tracking;
4160 if test "x$enable_dependency_tracking" != xno; then
4161 am_depcomp="$ac_aux_dir/depcomp"
4165 if test "x$enable_dependency_tracking" != xno; then
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179 if test -n "$ac_tool_prefix"; then
4180 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4181 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 $as_echo_n "checking for $ac_word... " >&6; }
4184 if ${ac_cv_prog_CC+:} false; then :
4185 $as_echo_n "(cached) " >&6
4187 if test -n "$CC"; then
4188 ac_cv_prog_CC="$CC" # Let the user override the test.
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 if test -n "$CC"; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4210 $as_echo "$CC" >&6; }
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4218 if test -z "$ac_cv_prog_CC"; then
4220 # Extract the first word of "gcc", so it can be a program name with args.
4221 set dummy gcc; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4225 $as_echo_n "(cached) " >&6
4227 if test -n "$ac_ct_CC"; then
4228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237 ac_cv_prog_ac_ct_CC="gcc"
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4248 if test -n "$ac_ct_CC"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4250 $as_echo "$ac_ct_CC" >&6; }
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4256 if test "x$ac_ct_CC" = x; then
4259 case $cross_compiling:$ac_tool_warned in
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4263 ac_tool_warned=yes ;;
4271 if test -z "$CC"; then
4272 if test -n "$ac_tool_prefix"; then
4273 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4274 set dummy ${ac_tool_prefix}cc; ac_word=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if ${ac_cv_prog_CC+:} false; then :
4278 $as_echo_n "(cached) " >&6
4280 if test -n "$CC"; then
4281 ac_cv_prog_CC="$CC" # Let the user override the test.
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290 ac_cv_prog_CC="${ac_tool_prefix}cc"
4291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 if test -n "$CC"; then
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4303 $as_echo "$CC" >&6; }
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4312 if test -z "$CC"; then
4313 # Extract the first word of "cc", so it can be a program name with args.
4314 set dummy cc; ac_word=$2
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4316 $as_echo_n "checking for $ac_word... " >&6; }
4317 if ${ac_cv_prog_CC+:} false; then :
4318 $as_echo_n "(cached) " >&6
4320 if test -n "$CC"; then
4321 ac_cv_prog_CC="$CC" # Let the user override the test.
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4332 ac_prog_rejected=yes
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 if test $ac_prog_rejected = yes; then
4344 # We found a bogon in the path, so make sure we never use it.
4345 set dummy $ac_cv_prog_CC
4347 if test $# != 0; then
4348 # We chose a different compiler from the bogus one.
4349 # However, it has the same basename, so the bogon will be chosen
4350 # first if we set CC to just the basename; use the full file name.
4352 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4358 if test -n "$CC"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4360 $as_echo "$CC" >&6; }
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4368 if test -z "$CC"; then
4369 if test -n "$ac_tool_prefix"; then
4370 for ac_prog in cl.exe
4372 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4373 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375 $as_echo_n "checking for $ac_word... " >&6; }
4376 if ${ac_cv_prog_CC+:} false; then :
4377 $as_echo_n "(cached) " >&6
4379 if test -n "$CC"; then
4380 ac_cv_prog_CC="$CC" # Let the user override the test.
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4389 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 if test -n "$CC"; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4402 $as_echo "$CC" >&6; }
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4409 test -n "$CC" && break
4412 if test -z "$CC"; then
4414 for ac_prog in cl.exe
4416 # Extract the first word of "$ac_prog", so it can be a program name with args.
4417 set dummy $ac_prog; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4421 $as_echo_n "(cached) " >&6
4423 if test -n "$ac_ct_CC"; then
4424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433 ac_cv_prog_ac_ct_CC="$ac_prog"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4444 if test -n "$ac_ct_CC"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4446 $as_echo "$ac_ct_CC" >&6; }
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4453 test -n "$ac_ct_CC" && break
4456 if test "x$ac_ct_CC" = x; then
4459 case $cross_compiling:$ac_tool_warned in
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4463 ac_tool_warned=yes ;;
4472 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4474 as_fn_error $? "no acceptable C compiler found in \$PATH
4475 See \`config.log' for more details" "$LINENO" 5; }
4477 # Provide some information about the compiler.
4478 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4481 for ac_option in --version -v -V -qversion; do
4482 { { ac_try="$ac_compiler $ac_option >&5"
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4488 $as_echo "$ac_try_echo"; } >&5
4489 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4491 if test -s conftest.err; then
4493 ... rest of stderr output deleted ...
4494 10q' conftest.err >conftest.er1
4495 cat conftest.er1 >&5
4497 rm -f conftest.er1 conftest.err
4498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4499 test $ac_status = 0; }
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4513 ac_clean_files_save=$ac_clean_files
4514 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4515 # Try to create an executable without -o first, disregard a.out.
4516 # It will help us diagnose broken compilers, and finding out an intuition
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4519 $as_echo_n "checking whether the C compiler works... " >&6; }
4520 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4522 # The possible output files:
4523 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4526 for ac_file in $ac_files
4529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4530 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4535 if { { ac_try="$ac_link_default"
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541 $as_echo "$ac_try_echo"; } >&5
4542 (eval "$ac_link_default") 2>&5
4544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545 test $ac_status = 0; }; then :
4546 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4547 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4548 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4549 # so that the user can short-circuit this test for compilers unknown to
4551 for ac_file in $ac_files ''
4553 test -f "$ac_file" || continue
4555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4558 # We found the default executable, but exeext='' is most
4562 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4564 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4566 # We set ac_cv_exeext here because the later test for it is not
4567 # safe: cross compilers may not add the suffix if given an `-o'
4568 # argument, so we may need to know it at that point already.
4569 # Even if this section looks crufty: it has the advantage of
4576 test "$ac_cv_exeext" = no && ac_cv_exeext=
4581 if test -z "$ac_file"; then :
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583 $as_echo "no" >&6; }
4584 $as_echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4589 as_fn_error 77 "C compiler cannot create executables
4590 See \`config.log' for more details" "$LINENO" 5; }
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4593 $as_echo "yes" >&6; }
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4596 $as_echo_n "checking for C compiler default output file name... " >&6; }
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4598 $as_echo "$ac_file" >&6; }
4599 ac_exeext=$ac_cv_exeext
4601 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4602 ac_clean_files=$ac_clean_files_save
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4604 $as_echo_n "checking for suffix of executables... " >&6; }
4605 if { { ac_try="$ac_link"
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4611 $as_echo "$ac_try_echo"; } >&5
4612 (eval "$ac_link") 2>&5
4614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4615 test $ac_status = 0; }; then :
4616 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4617 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4618 # work properly (i.e., refer to `conftest.exe'), while it won't with
4620 for ac_file in conftest.exe conftest conftest.*; do
4621 test -f "$ac_file" || continue
4623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4624 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4632 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4633 See \`config.log' for more details" "$LINENO" 5; }
4635 rm -f conftest conftest$ac_cv_exeext
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4637 $as_echo "$ac_cv_exeext" >&6; }
4639 rm -f conftest.$ac_ext
4640 EXEEXT=$ac_cv_exeext
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4648 FILE *f = fopen ("conftest.out", "w");
4649 return ferror (f) || fclose (f) != 0;
4655 ac_clean_files="$ac_clean_files conftest.out"
4656 # Check that the compiler produces executables we can run. If not, either
4657 # the compiler is broken, or we cross compile.
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4659 $as_echo_n "checking whether we are cross compiling... " >&6; }
4660 if test "$cross_compiling" != yes; then
4661 { { ac_try="$ac_link"
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4667 $as_echo "$ac_try_echo"; } >&5
4668 (eval "$ac_link") 2>&5
4670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4671 test $ac_status = 0; }
4672 if { ac_try='./conftest$ac_cv_exeext'
4673 { { case "(($ac_try" in
4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675 *) ac_try_echo=$ac_try;;
4677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4678 $as_echo "$ac_try_echo"; } >&5
4679 (eval "$ac_try") 2>&5
4681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4682 test $ac_status = 0; }; }; then
4685 if test "$cross_compiling" = maybe; then
4688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690 as_fn_error $? "cannot run C compiled programs.
4691 If you meant to cross compile, use \`--host'.
4692 See \`config.log' for more details" "$LINENO" 5; }
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4697 $as_echo "$cross_compiling" >&6; }
4699 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4700 ac_clean_files=$ac_clean_files_save
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4702 $as_echo_n "checking for suffix of object files... " >&6; }
4703 if ${ac_cv_objext+:} false; then :
4704 $as_echo_n "(cached) " >&6
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4717 rm -f conftest.o conftest.obj
4718 if { { ac_try="$ac_compile"
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4724 $as_echo "$ac_try_echo"; } >&5
4725 (eval "$ac_compile") 2>&5
4727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4728 test $ac_status = 0; }; then :
4729 for ac_file in conftest.o conftest.obj conftest.*; do
4730 test -f "$ac_file" || continue;
4732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4733 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4738 $as_echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4743 as_fn_error $? "cannot compute suffix of object files: cannot compile
4744 See \`config.log' for more details" "$LINENO" 5; }
4746 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4749 $as_echo "$ac_cv_objext" >&6; }
4750 OBJEXT=$ac_cv_objext
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4753 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4754 if ${ac_cv_c_compiler_gnu+:} false; then :
4755 $as_echo_n "(cached) " >&6
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4771 if ac_fn_c_try_compile "$LINENO"; then :
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4781 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4782 if test $ac_compiler_gnu = yes; then
4787 ac_test_CFLAGS=${CFLAGS+set}
4788 ac_save_CFLAGS=$CFLAGS
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4790 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4791 if ${ac_cv_prog_cc_g+:} false; then :
4792 $as_echo_n "(cached) " >&6
4794 ac_save_c_werror_flag=$ac_c_werror_flag
4795 ac_c_werror_flag=yes
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4809 if ac_fn_c_try_compile "$LINENO"; then :
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4824 if ac_fn_c_try_compile "$LINENO"; then :
4827 ac_c_werror_flag=$ac_save_c_werror_flag
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4840 if ac_fn_c_try_compile "$LINENO"; then :
4843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848 ac_c_werror_flag=$ac_save_c_werror_flag
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4851 $as_echo "$ac_cv_prog_cc_g" >&6; }
4852 if test "$ac_test_CFLAGS" = set; then
4853 CFLAGS=$ac_save_CFLAGS
4854 elif test $ac_cv_prog_cc_g = yes; then
4855 if test "$GCC" = yes; then
4861 if test "$GCC" = yes; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4868 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4869 if ${ac_cv_prog_cc_c89+:} false; then :
4870 $as_echo_n "(cached) " >&6
4872 ac_cv_prog_cc_c89=no
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4879 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4880 struct buf { int x; };
4881 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4882 static char *e (p, i)
4888 static char *f (char * (*g) (char **, int), char **p, ...)
4893 s = g (p, va_arg (v,int));
4898 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4899 function prototypes and stuff, but not '\xHH' hex character constants.
4900 These don't provoke an error unfortunately, instead are silently treated
4901 as 'x'. The following induces an error, until -std is added to get
4902 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4903 array size at least. It's necessary to write '\x00'==0 to get something
4904 that's true only with -std. */
4905 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4907 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4908 inside strings and character constants. */
4910 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4912 int test (int i, double x);
4913 struct s1 {int (*f) (int a);};
4914 struct s2 {int (*f) (double a);};
4915 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4921 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4926 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4927 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4929 CC="$ac_save_CC $ac_arg"
4930 if ac_fn_c_try_compile "$LINENO"; then :
4931 ac_cv_prog_cc_c89=$ac_arg
4933 rm -f core conftest.err conftest.$ac_objext
4934 test "x$ac_cv_prog_cc_c89" != "xno" && break
4936 rm -f conftest.$ac_ext
4941 case "x$ac_cv_prog_cc_c89" in
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4944 $as_echo "none needed" >&6; } ;;
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4947 $as_echo "unsupported" >&6; } ;;
4949 CC="$CC $ac_cv_prog_cc_c89"
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4951 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4953 if test "x$ac_cv_prog_cc_c89" != xno; then :
4958 ac_cpp='$CPP $CPPFLAGS'
4959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4969 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4970 if ${am_cv_prog_cc_c_o+:} false; then :
4971 $as_echo_n "(cached) " >&6
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4984 # Make sure it works both with $CC and with simple cc.
4985 # Following AC_PROG_CC_C_O, we do the test twice because some
4986 # compilers refuse to overwrite an existing .o file with -o,
4987 # though they will create one.
4988 am_cv_prog_cc_c_o=yes
4990 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4991 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } \
4995 && test -f conftest2.$ac_objext; then
4998 am_cv_prog_cc_c_o=no
5002 rm -f core conftest*
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5006 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5007 if test "$am_cv_prog_cc_c_o" != yes; then
5008 # Losing compiler, so override with the script.
5009 # FIXME: It is wrong to rewrite CC.
5010 # But if we don't then we get into trouble of one sort or another.
5011 # A longer-term fix would be to have automake use am__CC in this case,
5012 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5013 CC="$am_aux_dir/compile $CC"
5016 ac_cpp='$CPP $CPPFLAGS'
5017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022 depcc="$CC" am_compiler_list=
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5025 $as_echo_n "checking dependency style of $depcc... " >&6; }
5026 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5027 $as_echo_n "(cached) " >&6
5029 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5030 # We make a subdir and do the tests there. Otherwise we can end up
5031 # making bogus files that we don't know about and never remove. For
5032 # instance it was reported that on HP-UX the gcc test will end up
5033 # making a dummy file named 'D' -- because '-MD' means "put the output
5037 # Copy depcomp to subdir because otherwise we won't find it if we're
5038 # using a relative directory.
5039 cp "$am_depcomp" conftest.dir
5041 # We will build objects and dependencies in a subdirectory because
5042 # it helps to detect inapplicable dependency modes. For instance
5043 # both Tru64's cc and ICC support -MD to output dependencies as a
5044 # side effect of compilation, but ICC will put the dependencies in
5045 # the current directory while Tru64 will put them in the object
5049 am_cv_CC_dependencies_compiler_type=none
5050 if test "$am_compiler_list" = ""; then
5051 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5054 case " $depcc " in #(
5055 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5058 for depmode in $am_compiler_list; do
5059 # Setup a source with many dependencies, because some compilers
5060 # like to wrap large dependency lists on column 80 (with \), and
5061 # we should not choose a depcomp mode which is confused by this.
5063 # We need to recreate these files for each test, as the compiler may
5064 # overwrite some of them when testing with obscure command lines.
5065 # This happens at least with the AIX C compiler.
5067 for i in 1 2 3 4 5 6; do
5068 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5069 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5070 # Solaris 10 /bin/sh.
5071 echo '/* dummy */' > sub/conftst$i.h
5073 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5075 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5076 # mode. It turns out that the SunPro C++ compiler does not properly
5077 # handle '-M -o', and we need to detect this. Also, some Intel
5078 # versions had trouble with output in subdirs.
5079 am__obj=sub/conftest.${OBJEXT-o}
5080 am__minus_obj="-o $am__obj"
5083 # This depmode causes a compiler race in universal mode.
5084 test "$am__universal" = false || continue
5087 # After this tag, mechanisms are not by side-effect, so they'll
5088 # only be used when explicitly requested.
5089 if test "x$enable_dependency_tracking" = xyes; then
5095 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5096 # This compiler won't grok '-c -o', but also, the minuso test has
5097 # not run yet. These depmodes are late enough in the game, and
5098 # so weak that their functioning should not be impacted.
5099 am__obj=conftest.${OBJEXT-o}
5104 if depmode=$depmode \
5105 source=sub/conftest.c object=$am__obj \
5106 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5107 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5108 >/dev/null 2>conftest.err &&
5109 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5110 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5111 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5112 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5113 # icc doesn't choke on unknown options, it will just issue warnings
5114 # or remarks (even with -Werror). So we grep stderr for any message
5115 # that says an option was ignored or not supported.
5116 # When given -MP, icc 7.0 and 7.1 complain thusly:
5117 # icc: Command line warning: ignoring option '-M'; no argument required
5118 # The diagnosis changed in icc 8.0:
5119 # icc: Command line remark: option '-MP' not supported
5120 if (grep 'ignoring option' conftest.err ||
5121 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5122 am_cv_CC_dependencies_compiler_type=$depmode
5131 am_cv_CC_dependencies_compiler_type=none
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5136 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5137 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5140 test "x$enable_dependency_tracking" != xno \
5141 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5143 am__fastdepCC_FALSE='#'
5145 am__fastdepCC_TRUE='#'
5146 am__fastdepCC_FALSE=
5151 if test -n "$ac_tool_prefix"; then
5152 for ac_prog in ar lib "link -lib"
5154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_prog_AR+:} false; then :
5159 $as_echo_n "(cached) " >&6
5161 if test -n "$AR"; then
5162 ac_cv_prog_AR="$AR" # Let the user override the test.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 if test -n "$AR"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5184 $as_echo "$AR" >&6; }
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5191 test -n "$AR" && break
5194 if test -z "$AR"; then
5196 for ac_prog in ar lib "link -lib"
5198 # Extract the first word of "$ac_prog", so it can be a program name with args.
5199 set dummy $ac_prog; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5203 $as_echo_n "(cached) " >&6
5205 if test -n "$ac_ct_AR"; then
5206 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 ac_cv_prog_ac_ct_AR="$ac_prog"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5226 if test -n "$ac_ct_AR"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5228 $as_echo "$ac_ct_AR" >&6; }
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5235 test -n "$ac_ct_AR" && break
5238 if test "x$ac_ct_AR" = x; then
5241 case $cross_compiling:$ac_tool_warned in
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5245 ac_tool_warned=yes ;;
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5254 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5255 if ${am_cv_ar_interface+:} false; then :
5256 $as_echo_n "(cached) " >&6
5259 ac_cpp='$CPP $CPPFLAGS'
5260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5264 am_cv_ar_interface=ar
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5267 int some_variable = 0;
5269 if ac_fn_c_try_compile "$LINENO"; then :
5270 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5272 (eval $am_ar_try) 2>&5
5274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5275 test $ac_status = 0; }
5276 if test "$ac_status" -eq 0; then
5277 am_cv_ar_interface=ar
5279 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5281 (eval $am_ar_try) 2>&5
5283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5284 test $ac_status = 0; }
5285 if test "$ac_status" -eq 0; then
5286 am_cv_ar_interface=lib
5288 am_cv_ar_interface=unknown
5291 rm -f conftest.lib libconftest.a
5294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 ac_cpp='$CPP $CPPFLAGS'
5297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5303 $as_echo "$am_cv_ar_interface" >&6; }
5305 case $am_cv_ar_interface in
5309 # Microsoft lib, so override with the ar-lib wrapper script.
5310 # FIXME: It is wrong to rewrite AR.
5311 # But if we don't then we get into trouble of one sort or another.
5312 # A longer-term fix would be to have automake use am__AR in this case,
5313 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5315 AR="$am_aux_dir/ar-lib $AR"
5318 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5326 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5331 macro_version='2.4.6.42-b88ce-dirty'
5332 macro_revision='2.4.6.42'
5346 ltmain=$ac_aux_dir/ltmain.sh
5348 # Make sure we can run config.sub.
5349 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5350 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5353 $as_echo_n "checking build system type... " >&6; }
5354 if ${ac_cv_build+:} false; then :
5355 $as_echo_n "(cached) " >&6
5357 ac_build_alias=$build_alias
5358 test "x$ac_build_alias" = x &&
5359 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5360 test "x$ac_build_alias" = x &&
5361 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5362 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5363 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5367 $as_echo "$ac_cv_build" >&6; }
5368 case $ac_cv_build in
5370 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5373 ac_save_IFS=$IFS; IFS='-'
5379 # Remember, the first character of IFS is used to create $*,
5380 # except with old shells:
5383 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5387 $as_echo_n "checking host system type... " >&6; }
5388 if ${ac_cv_host+:} false; then :
5389 $as_echo_n "(cached) " >&6
5391 if test "x$host_alias" = x; then
5392 ac_cv_host=$ac_cv_build
5394 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5395 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5400 $as_echo "$ac_cv_host" >&6; }
5403 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5406 ac_save_IFS=$IFS; IFS='-'
5412 # Remember, the first character of IFS is used to create $*,
5413 # except with old shells:
5416 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5419 # Backslashify metacharacters that are still active within
5420 # double-quoted strings.
5421 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5423 # Same as above, but do not quote variable references.
5424 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5426 # Sed substitution to delay expansion of an escaped shell variable in a
5427 # double_quote_subst'ed string.
5428 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5430 # Sed substitution to delay expansion of an escaped single quote.
5431 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5433 # Sed substitution to avoid accidental globbing in evaled expressions
5434 no_glob_subst='s/\*/\\\*/g'
5436 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5437 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5438 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5441 $as_echo_n "checking how to print strings... " >&6; }
5442 # Test print first, because it will be a builtin if present.
5443 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5444 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5446 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5449 # Use this function as a fallback that always works.
5450 func_fallback_echo ()
5452 eval 'cat <<_LTECHO_EOF
5456 ECHO='func_fallback_echo'
5459 # func_echo_all arg...
5460 # Invoke $ECHO with all args, space-separated.
5467 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5468 $as_echo "printf" >&6; } ;;
5469 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5470 $as_echo "print -r" >&6; } ;;
5471 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5472 $as_echo "cat" >&6; } ;;
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5489 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5490 if ${ac_cv_path_SED+:} false; then :
5491 $as_echo_n "(cached) " >&6
5493 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5494 for ac_i in 1 2 3 4 5 6 7; do
5495 ac_script="$ac_script$as_nl$ac_script"
5497 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5498 { ac_script=; unset ac_script;}
5499 if test -z "$SED"; then
5500 ac_path_SED_found=false
5501 # Loop through the user's path and test for each of PROGNAME-LIST
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 test -z "$as_dir" && as_dir=.
5507 for ac_prog in sed gsed; do
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5510 as_fn_executable_p "$ac_path_SED" || continue
5511 # Check for GNU ac_path_SED and select it if it is found.
5512 # Check for GNU $ac_path_SED
5513 case `"$ac_path_SED" --version 2>&1` in
5515 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5518 $as_echo_n 0123456789 >"conftest.in"
5521 cat "conftest.in" "conftest.in" >"conftest.tmp"
5522 mv "conftest.tmp" "conftest.in"
5523 cp "conftest.in" "conftest.nl"
5524 $as_echo '' >> "conftest.nl"
5525 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5527 as_fn_arith $ac_count + 1 && ac_count=$as_val
5528 if test $ac_count -gt ${ac_path_SED_max-0}; then
5529 # Best one so far, save it but keep looking for a better one
5530 ac_cv_path_SED="$ac_path_SED"
5531 ac_path_SED_max=$ac_count
5533 # 10*(2^10) chars as input seems more than enough
5534 test $ac_count -gt 10 && break
5536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5539 $ac_path_SED_found && break 3
5544 if test -z "$ac_cv_path_SED"; then
5545 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5553 $as_echo "$ac_cv_path_SED" >&6; }
5554 SED="$ac_cv_path_SED"
5557 test -z "$SED" && SED=sed
5558 Xsed="$SED -e 1s/^X//"
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5571 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5572 if ${ac_cv_path_GREP+:} false; then :
5573 $as_echo_n "(cached) " >&6
5575 if test -z "$GREP"; then
5576 ac_path_GREP_found=false
5577 # Loop through the user's path and test for each of PROGNAME-LIST
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5582 test -z "$as_dir" && as_dir=.
5583 for ac_prog in grep ggrep; do
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5586 as_fn_executable_p "$ac_path_GREP" || continue
5587 # Check for GNU ac_path_GREP and select it if it is found.
5588 # Check for GNU $ac_path_GREP
5589 case `"$ac_path_GREP" --version 2>&1` in
5591 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5594 $as_echo_n 0123456789 >"conftest.in"
5597 cat "conftest.in" "conftest.in" >"conftest.tmp"
5598 mv "conftest.tmp" "conftest.in"
5599 cp "conftest.in" "conftest.nl"
5600 $as_echo 'GREP' >> "conftest.nl"
5601 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5603 as_fn_arith $ac_count + 1 && ac_count=$as_val
5604 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5605 # Best one so far, save it but keep looking for a better one
5606 ac_cv_path_GREP="$ac_path_GREP"
5607 ac_path_GREP_max=$ac_count
5609 # 10*(2^10) chars as input seems more than enough
5610 test $ac_count -gt 10 && break
5612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5615 $ac_path_GREP_found && break 3
5620 if test -z "$ac_cv_path_GREP"; then
5621 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5624 ac_cv_path_GREP=$GREP
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5629 $as_echo "$ac_cv_path_GREP" >&6; }
5630 GREP="$ac_cv_path_GREP"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5634 $as_echo_n "checking for egrep... " >&6; }
5635 if ${ac_cv_path_EGREP+:} false; then :
5636 $as_echo_n "(cached) " >&6
5638 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5639 then ac_cv_path_EGREP="$GREP -E"
5641 if test -z "$EGREP"; then
5642 ac_path_EGREP_found=false
5643 # Loop through the user's path and test for each of PROGNAME-LIST
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5648 test -z "$as_dir" && as_dir=.
5649 for ac_prog in egrep; do
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5652 as_fn_executable_p "$ac_path_EGREP" || continue
5653 # Check for GNU ac_path_EGREP and select it if it is found.
5654 # Check for GNU $ac_path_EGREP
5655 case `"$ac_path_EGREP" --version 2>&1` in
5657 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5660 $as_echo_n 0123456789 >"conftest.in"
5663 cat "conftest.in" "conftest.in" >"conftest.tmp"
5664 mv "conftest.tmp" "conftest.in"
5665 cp "conftest.in" "conftest.nl"
5666 $as_echo 'EGREP' >> "conftest.nl"
5667 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5668 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5669 as_fn_arith $ac_count + 1 && ac_count=$as_val
5670 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5671 # Best one so far, save it but keep looking for a better one
5672 ac_cv_path_EGREP="$ac_path_EGREP"
5673 ac_path_EGREP_max=$ac_count
5675 # 10*(2^10) chars as input seems more than enough
5676 test $ac_count -gt 10 && break
5678 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5681 $ac_path_EGREP_found && break 3
5686 if test -z "$ac_cv_path_EGREP"; then
5687 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5690 ac_cv_path_EGREP=$EGREP
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5696 $as_echo "$ac_cv_path_EGREP" >&6; }
5697 EGREP="$ac_cv_path_EGREP"
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5701 $as_echo_n "checking for fgrep... " >&6; }
5702 if ${ac_cv_path_FGREP+:} false; then :
5703 $as_echo_n "(cached) " >&6
5705 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5706 then ac_cv_path_FGREP="$GREP -F"
5708 if test -z "$FGREP"; then
5709 ac_path_FGREP_found=false
5710 # Loop through the user's path and test for each of PROGNAME-LIST
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5715 test -z "$as_dir" && as_dir=.
5716 for ac_prog in fgrep; do
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5719 as_fn_executable_p "$ac_path_FGREP" || continue
5720 # Check for GNU ac_path_FGREP and select it if it is found.
5721 # Check for GNU $ac_path_FGREP
5722 case `"$ac_path_FGREP" --version 2>&1` in
5724 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5727 $as_echo_n 0123456789 >"conftest.in"
5730 cat "conftest.in" "conftest.in" >"conftest.tmp"
5731 mv "conftest.tmp" "conftest.in"
5732 cp "conftest.in" "conftest.nl"
5733 $as_echo 'FGREP' >> "conftest.nl"
5734 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5736 as_fn_arith $ac_count + 1 && ac_count=$as_val
5737 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5738 # Best one so far, save it but keep looking for a better one
5739 ac_cv_path_FGREP="$ac_path_FGREP"
5740 ac_path_FGREP_max=$ac_count
5742 # 10*(2^10) chars as input seems more than enough
5743 test $ac_count -gt 10 && break
5745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5748 $ac_path_FGREP_found && break 3
5753 if test -z "$ac_cv_path_FGREP"; then
5754 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5757 ac_cv_path_FGREP=$FGREP
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5763 $as_echo "$ac_cv_path_FGREP" >&6; }
5764 FGREP="$ac_cv_path_FGREP"
5767 test -z "$GREP" && GREP=grep
5787 # Check whether --with-gnu-ld was given.
5788 if test "${with_gnu_ld+set}" = set; then :
5789 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5795 if test yes = "$GCC"; then
5796 # Check if gcc -print-prog-name=ld gives a path.
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5798 $as_echo_n "checking for ld used by $CC... " >&6; }
5801 # gcc leaves a trailing carriage return, which upsets mingw
5802 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5804 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5807 # Accept absolute paths.
5809 re_direlt='/[^/][^/]*/\.\./'
5810 # Canonicalize the pathname of ld
5811 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5812 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5813 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5815 test -z "$LD" && LD=$ac_prog
5818 # If it fails, then pretend we aren't using GCC.
5822 # If it is relative, then search for the first ld in PATH.
5826 elif test yes = "$with_gnu_ld"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5828 $as_echo_n "checking for GNU ld... " >&6; }
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5831 $as_echo_n "checking for non-GNU ld... " >&6; }
5833 if ${lt_cv_path_LD+:} false; then :
5834 $as_echo_n "(cached) " >&6
5836 if test -z "$LD"; then
5837 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5838 for ac_dir in $PATH; do
5840 test -z "$ac_dir" && ac_dir=.
5841 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5842 lt_cv_path_LD=$ac_dir/$ac_prog
5843 # Check to see if the program is GNU ld. I'd rather use --version,
5844 # but apparently some variants of GNU ld only accept -v.
5845 # Break only if it was the GNU/non-GNU ld that we prefer.
5846 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5847 *GNU* | *'with BFD'*)
5848 test no != "$with_gnu_ld" && break
5851 test yes != "$with_gnu_ld" && break
5858 lt_cv_path_LD=$LD # Let the user override the test with a path.
5863 if test -n "$LD"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5865 $as_echo "$LD" >&6; }
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5870 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5872 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5873 if ${lt_cv_prog_gnu_ld+:} false; then :
5874 $as_echo_n "(cached) " >&6
5876 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5877 case `$LD -v 2>&1 </dev/null` in
5878 *GNU* | *'with BFD'*)
5879 lt_cv_prog_gnu_ld=yes
5882 lt_cv_prog_gnu_ld=no
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5887 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5888 with_gnu_ld=$lt_cv_prog_gnu_ld
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5899 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5900 if ${lt_cv_path_NM+:} false; then :
5901 $as_echo_n "(cached) " >&6
5903 if test -n "$NM"; then
5904 # Let the user override the test.
5907 lt_nm_to_check=${ac_tool_prefix}nm
5908 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5909 lt_nm_to_check="$lt_nm_to_check nm"
5911 for lt_tmp_nm in $lt_nm_to_check; do
5912 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5913 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5915 test -z "$ac_dir" && ac_dir=.
5916 tmp_nm=$ac_dir/$lt_tmp_nm
5917 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5918 # Check to see if the nm accepts a BSD-compat flag.
5919 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5920 # nm: unknown option "B" ignored
5921 # Tru64's nm complains that /dev/null is an invalid object file
5922 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5924 mingw*) lt_bad_file=conftest.nm/nofile ;;
5925 *) lt_bad_file=/dev/null ;;
5927 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5928 *$lt_bad_file* | *'Invalid file or object type'*)
5929 lt_cv_path_NM="$tmp_nm -B"
5933 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5935 lt_cv_path_NM="$tmp_nm -p"
5939 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5940 continue # so that we can try to find one that supports BSD flags
5949 : ${lt_cv_path_NM=no}
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5953 $as_echo "$lt_cv_path_NM" >&6; }
5954 if test no != "$lt_cv_path_NM"; then
5957 # Didn't find any BSD compatible name lister, look for dumpbin.
5958 if test -n "$DUMPBIN"; then :
5959 # Let the user override the test.
5961 if test -n "$ac_tool_prefix"; then
5962 for ac_prog in dumpbin "link -dump"
5964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if ${ac_cv_prog_DUMPBIN+:} false; then :
5969 $as_echo_n "(cached) " >&6
5971 if test -n "$DUMPBIN"; then
5972 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5981 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 DUMPBIN=$ac_cv_prog_DUMPBIN
5992 if test -n "$DUMPBIN"; then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5994 $as_echo "$DUMPBIN" >&6; }
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
6001 test -n "$DUMPBIN" && break
6004 if test -z "$DUMPBIN"; then
6005 ac_ct_DUMPBIN=$DUMPBIN
6006 for ac_prog in dumpbin "link -dump"
6008 # Extract the first word of "$ac_prog", so it can be a program name with args.
6009 set dummy $ac_prog; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6013 $as_echo_n "(cached) " >&6
6015 if test -n "$ac_ct_DUMPBIN"; then
6016 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6036 if test -n "$ac_ct_DUMPBIN"; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6038 $as_echo "$ac_ct_DUMPBIN" >&6; }
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6045 test -n "$ac_ct_DUMPBIN" && break
6048 if test "x$ac_ct_DUMPBIN" = x; then
6051 case $cross_compiling:$ac_tool_warned in
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6055 ac_tool_warned=yes ;;
6057 DUMPBIN=$ac_ct_DUMPBIN
6061 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6063 DUMPBIN="$DUMPBIN -symbols -headers"
6071 if test : != "$DUMPBIN"; then
6075 test -z "$NM" && NM=nm
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6083 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6084 if ${lt_cv_nm_interface+:} false; then :
6085 $as_echo_n "(cached) " >&6
6087 lt_cv_nm_interface="BSD nm"
6088 echo "int some_variable = 0;" > conftest.$ac_ext
6089 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6090 (eval "$ac_compile" 2>conftest.err)
6091 cat conftest.err >&5
6092 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6093 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6094 cat conftest.err >&5
6095 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6096 cat conftest.out >&5
6097 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6098 lt_cv_nm_interface="MS dumpbin"
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6103 $as_echo "$lt_cv_nm_interface" >&6; }
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6106 $as_echo_n "checking whether ln -s works... " >&6; }
6108 if test "$LN_S" = "ln -s"; then
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6110 $as_echo "yes" >&6; }
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6113 $as_echo "no, using $LN_S" >&6; }
6116 # find the maximum length of command line arguments
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6118 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6119 if ${lt_cv_sys_max_cmd_len+:} false; then :
6120 $as_echo_n "(cached) " >&6
6127 # On DJGPP, this test can blow up pretty badly due to problems in libc
6128 # (any single argument exceeding 2000 bytes causes a buffer overrun
6129 # during glob expansion). Even if it were fixed, the result of this
6130 # check would be larger than it should be.
6131 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6135 # Under GNU Hurd, this test is not required because there is
6136 # no limit to the length of command line arguments.
6137 # Libtool will interpret -1 as no limit whatsoever
6138 lt_cv_sys_max_cmd_len=-1;
6141 cygwin* | mingw* | cegcc*)
6142 # On Win9x/ME, this test blows up -- it succeeds, but takes
6143 # about 5 minutes as the teststring grows exponentially.
6144 # Worse, since 9x/ME are not pre-emptively multitasking,
6145 # you end up with a "frozen" computer, even though with patience
6146 # the test eventually succeeds (with a max line length of 256k).
6147 # Instead, let's just punt: use the minimum linelength reported by
6148 # all of the supported platforms: 8192 (on NT/2K/XP).
6149 lt_cv_sys_max_cmd_len=8192;
6153 # On MiNT this can take a long time and run out of memory.
6154 lt_cv_sys_max_cmd_len=8192;
6158 # On AmigaOS with pdksh, this test takes hours, literally.
6159 # So we just punt and use a minimum line length of 8192.
6160 lt_cv_sys_max_cmd_len=8192;
6163 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6164 # This has been around since 386BSD, at least. Likely further.
6165 if test -x /sbin/sysctl; then
6166 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6167 elif test -x /usr/sbin/sysctl; then
6168 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6170 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6172 # And add a safety zone
6173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6174 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6178 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6179 lt_cv_sys_max_cmd_len=196608
6183 # The test takes a long time on OS/2.
6184 lt_cv_sys_max_cmd_len=8192
6188 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6189 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6190 # nice to cause kernel panics so lets avoid the loop below.
6191 # First set a reasonable default.
6192 lt_cv_sys_max_cmd_len=16384
6194 if test -x /sbin/sysconfig; then
6195 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6196 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6201 lt_cv_sys_max_cmd_len=102400
6203 sysv5* | sco5v6* | sysv4.2uw2*)
6204 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6205 if test -n "$kargmax"; then
6206 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6208 lt_cv_sys_max_cmd_len=32768
6212 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6213 if test -n "$lt_cv_sys_max_cmd_len" && \
6214 test undefined != "$lt_cv_sys_max_cmd_len"; then
6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6218 # Make teststring a little bigger before we do anything with it.
6219 # a 1K string should be a reasonable start.
6220 for i in 1 2 3 4 5 6 7 8; do
6221 teststring=$teststring$teststring
6223 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6224 # If test is not a shell built-in, we'll probably end up computing a
6225 # maximum length that is only half of the actual maximum length, but
6227 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6228 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6229 test 17 != "$i" # 1/2 MB should be enough
6232 teststring=$teststring$teststring
6234 # Only check the string length outside the loop.
6235 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6237 # Add a significant safety factor because C++ compilers can tack on
6238 # massive amounts of additional arguments before passing them to the
6239 # linker. It appears as though 1/2 is a usable value.
6240 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6247 if test -n "$lt_cv_sys_max_cmd_len"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6249 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6252 $as_echo "none" >&6; }
6254 max_cmd_len=$lt_cv_sys_max_cmd_len
6265 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6275 # test EBCDIC or ASCII
6276 case `echo X|tr X '\101'` in
6277 A) # ASCII based system
6278 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6279 lt_SP2NL='tr \040 \012'
6280 lt_NL2SP='tr \015\012 \040\040'
6282 *) # EBCDIC based system
6283 lt_SP2NL='tr \100 \n'
6284 lt_NL2SP='tr \r\n \100\100'
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6297 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6298 if ${lt_cv_to_host_file_cmd+:} false; then :
6299 $as_echo_n "(cached) " >&6
6304 *-*-mingw* ) # actually msys
6305 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6308 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6310 * ) # otherwise, assume *nix
6311 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6317 *-*-mingw* ) # actually msys
6318 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6321 lt_cv_to_host_file_cmd=func_convert_file_noop
6323 * ) # otherwise, assume *nix
6324 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6328 * ) # unhandled hosts (and "normal" native builds)
6329 lt_cv_to_host_file_cmd=func_convert_file_noop
6335 to_host_file_cmd=$lt_cv_to_host_file_cmd
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6337 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6344 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6345 if ${lt_cv_to_tool_file_cmd+:} false; then :
6346 $as_echo_n "(cached) " >&6
6348 #assume ordinary cross tools, or native build.
6349 lt_cv_to_tool_file_cmd=func_convert_file_noop
6353 *-*-mingw* ) # actually msys
6354 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6362 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6364 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6371 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6372 if ${lt_cv_ld_reload_flag+:} false; then :
6373 $as_echo_n "(cached) " >&6
6375 lt_cv_ld_reload_flag='-r'
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6378 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6379 reload_flag=$lt_cv_ld_reload_flag
6380 case $reload_flag in
6382 *) reload_flag=" $reload_flag" ;;
6384 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6386 cygwin* | mingw* | pw32* | cegcc*)
6387 if test yes != "$GCC"; then
6392 if test yes = "$GCC"; then
6393 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6395 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6408 if test -n "$ac_tool_prefix"; then
6409 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6410 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if ${ac_cv_prog_OBJDUMP+:} false; then :
6414 $as_echo_n "(cached) " >&6
6416 if test -n "$OBJDUMP"; then
6417 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6426 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 OBJDUMP=$ac_cv_prog_OBJDUMP
6437 if test -n "$OBJDUMP"; then
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6439 $as_echo "$OBJDUMP" >&6; }
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 $as_echo "no" >&6; }
6447 if test -z "$ac_cv_prog_OBJDUMP"; then
6448 ac_ct_OBJDUMP=$OBJDUMP
6449 # Extract the first word of "objdump", so it can be a program name with args.
6450 set dummy objdump; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6454 $as_echo_n "(cached) " >&6
6456 if test -n "$ac_ct_OBJDUMP"; then
6457 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 test -z "$as_dir" && as_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6466 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6477 if test -n "$ac_ct_OBJDUMP"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6479 $as_echo "$ac_ct_OBJDUMP" >&6; }
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6485 if test "x$ac_ct_OBJDUMP" = x; then
6488 case $cross_compiling:$ac_tool_warned in
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6492 ac_tool_warned=yes ;;
6494 OBJDUMP=$ac_ct_OBJDUMP
6497 OBJDUMP="$ac_cv_prog_OBJDUMP"
6500 test -z "$OBJDUMP" && OBJDUMP=objdump
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6511 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6512 if ${lt_cv_deplibs_check_method+:} false; then :
6513 $as_echo_n "(cached) " >&6
6515 lt_cv_file_magic_cmd='$MAGIC_CMD'
6516 lt_cv_file_magic_test_file=
6517 lt_cv_deplibs_check_method='unknown'
6518 # Need to set the preceding variable on all platforms that support
6519 # interlibrary dependencies.
6520 # 'none' -- dependencies not supported.
6521 # 'unknown' -- same as none, but documents that we really don't know.
6522 # 'pass_all' -- all dependencies passed with no checks.
6523 # 'test_compile' -- check by making test program.
6524 # 'file_magic [[regex]]' -- check by looking for files in library path
6525 # that responds to the $file_magic_cmd with a given extended regex.
6526 # If you have 'file' or equivalent on your system and you're not sure
6527 # whether 'pass_all' will *always* work, you probably want this one.
6531 lt_cv_deplibs_check_method=pass_all
6535 lt_cv_deplibs_check_method=pass_all
6539 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6540 lt_cv_file_magic_cmd='/usr/bin/file -L'
6541 lt_cv_file_magic_test_file=/shlib/libc.so
6545 # func_win32_libid is a shell function defined in ltmain.sh
6546 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6547 lt_cv_file_magic_cmd='func_win32_libid'
6551 # Base MSYS/MinGW do not provide the 'file' command needed by
6552 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6553 # unless we find 'file', for example because we are cross-compiling.
6554 if ( file / ) >/dev/null 2>&1; then
6555 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6556 lt_cv_file_magic_cmd='func_win32_libid'
6558 # Keep this pattern in sync with the one in func_win32_libid.
6559 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6560 lt_cv_file_magic_cmd='$OBJDUMP -f'
6565 # use the weaker test based on 'objdump'. See mingw*.
6566 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6567 lt_cv_file_magic_cmd='$OBJDUMP -f'
6570 darwin* | rhapsody*)
6571 lt_cv_deplibs_check_method=pass_all
6574 freebsd* | dragonfly*)
6575 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6578 # Not sure whether the presence of OpenBSD here was a mistake.
6579 # Let's accept both of them until this is cleared up.
6580 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6581 lt_cv_file_magic_cmd=/usr/bin/file
6582 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6586 lt_cv_deplibs_check_method=pass_all
6591 lt_cv_deplibs_check_method=pass_all
6594 hpux10.20* | hpux11*)
6595 lt_cv_file_magic_cmd=/usr/bin/file
6598 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6599 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6602 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]'
6603 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6606 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6607 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6613 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6617 irix5* | irix6* | nonstopux*)
6619 *-32|*"-32 ") libmagic=32-bit;;
6620 *-n32|*"-n32 ") libmagic=N32;;
6621 *-64|*"-64 ") libmagic=64-bit;;
6622 *) libmagic=never-match;;
6624 lt_cv_deplibs_check_method=pass_all
6627 # This must be glibc/ELF.
6628 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6629 lt_cv_deplibs_check_method=pass_all
6633 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6642 lt_cv_file_magic_cmd=/usr/bin/file
6643 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6647 lt_cv_deplibs_check_method=pass_all
6651 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6652 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6658 osf3* | osf4* | osf5*)
6659 lt_cv_deplibs_check_method=pass_all
6663 lt_cv_deplibs_check_method=pass_all
6667 lt_cv_deplibs_check_method=pass_all
6670 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6671 lt_cv_deplibs_check_method=pass_all
6675 case $host_vendor in
6677 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]'
6678 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6681 lt_cv_deplibs_check_method=pass_all
6684 lt_cv_file_magic_cmd='/bin/file'
6685 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6688 lt_cv_file_magic_cmd='/bin/file'
6689 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6690 lt_cv_file_magic_test_file=/lib/libc.so
6693 lt_cv_deplibs_check_method=pass_all
6696 lt_cv_deplibs_check_method=pass_all
6702 lt_cv_deplibs_check_method=pass_all
6705 lt_cv_deplibs_check_method=pass_all
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6711 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6715 if test "$build" = "$host"; then
6718 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6721 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6727 file_magic_cmd=$lt_cv_file_magic_cmd
6728 deplibs_check_method=$lt_cv_deplibs_check_method
6729 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6752 if test -n "$ac_tool_prefix"; then
6753 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6754 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if ${ac_cv_prog_DLLTOOL+:} false; then :
6758 $as_echo_n "(cached) " >&6
6760 if test -n "$DLLTOOL"; then
6761 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6770 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 DLLTOOL=$ac_cv_prog_DLLTOOL
6781 if test -n "$DLLTOOL"; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6783 $as_echo "$DLLTOOL" >&6; }
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6791 if test -z "$ac_cv_prog_DLLTOOL"; then
6792 ac_ct_DLLTOOL=$DLLTOOL
6793 # Extract the first word of "dlltool", so it can be a program name with args.
6794 set dummy dlltool; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 if test -n "$ac_ct_DLLTOOL"; then
6801 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6821 if test -n "$ac_ct_DLLTOOL"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6823 $as_echo "$ac_ct_DLLTOOL" >&6; }
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6829 if test "x$ac_ct_DLLTOOL" = x; then
6832 case $cross_compiling:$ac_tool_warned in
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6836 ac_tool_warned=yes ;;
6838 DLLTOOL=$ac_ct_DLLTOOL
6841 DLLTOOL="$ac_cv_prog_DLLTOOL"
6844 test -z "$DLLTOOL" && DLLTOOL=dlltool
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6856 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6857 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6858 $as_echo_n "(cached) " >&6
6860 lt_cv_sharedlib_from_linklib_cmd='unknown'
6863 cygwin* | mingw* | pw32* | cegcc*)
6864 # two different shell functions defined in ltmain.sh;
6865 # decide which one to use based on capabilities of $DLLTOOL
6866 case `$DLLTOOL --help 2>&1` in
6867 *--identify-strict*)
6868 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6871 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6876 # fallback: assume linklib IS sharedlib
6877 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6883 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6884 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6885 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6893 if test -n "$ac_tool_prefix"; then
6896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if ${ac_cv_prog_AR+:} false; then :
6901 $as_echo_n "(cached) " >&6
6903 if test -n "$AR"; then
6904 ac_cv_prog_AR="$AR" # Let the user override the test.
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 if test -n "$AR"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6926 $as_echo "$AR" >&6; }
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6933 test -n "$AR" && break
6936 if test -z "$AR"; then
6940 # Extract the first word of "$ac_prog", so it can be a program name with args.
6941 set dummy $ac_prog; ac_word=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6945 $as_echo_n "(cached) " >&6
6947 if test -n "$ac_ct_AR"; then
6948 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957 ac_cv_prog_ac_ct_AR="$ac_prog"
6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6968 if test -n "$ac_ct_AR"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6970 $as_echo "$ac_ct_AR" >&6; }
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6977 test -n "$ac_ct_AR" && break
6980 if test "x$ac_ct_AR" = x; then
6983 case $cross_compiling:$ac_tool_warned in
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987 ac_tool_warned=yes ;;
7000 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7001 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7002 # higher priority because thats what people were doing historically (setting
7003 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7004 # variable obsoleted/removed.
7006 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7007 lt_ar_flags=$AR_FLAGS
7014 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7015 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7023 $as_echo_n "checking for archiver @FILE support... " >&6; }
7024 if ${lt_cv_ar_at_file+:} false; then :
7025 $as_echo_n "(cached) " >&6
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7039 if ac_fn_c_try_compile "$LINENO"; then :
7040 echo conftest.$ac_objext > conftest.lst
7041 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7043 (eval $lt_ar_try) 2>&5
7045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7046 test $ac_status = 0; }
7047 if test 0 -eq "$ac_status"; then
7048 # Ensure the archiver fails upon bogus file names.
7049 rm -f conftest.$ac_objext libconftest.a
7050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7051 (eval $lt_ar_try) 2>&5
7053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054 test $ac_status = 0; }
7055 if test 0 -ne "$ac_status"; then
7059 rm -f conftest.* libconftest.a
7062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7066 $as_echo "$lt_cv_ar_at_file" >&6; }
7068 if test no = "$lt_cv_ar_at_file"; then
7071 archiver_list_spec=$lt_cv_ar_at_file
7080 if test -n "$ac_tool_prefix"; then
7081 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7082 set dummy ${ac_tool_prefix}strip; ac_word=$2
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084 $as_echo_n "checking for $ac_word... " >&6; }
7085 if ${ac_cv_prog_STRIP+:} false; then :
7086 $as_echo_n "(cached) " >&6
7088 if test -n "$STRIP"; then
7089 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7098 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 STRIP=$ac_cv_prog_STRIP
7109 if test -n "$STRIP"; then
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7111 $as_echo "$STRIP" >&6; }
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114 $as_echo "no" >&6; }
7119 if test -z "$ac_cv_prog_STRIP"; then
7121 # Extract the first word of "strip", so it can be a program name with args.
7122 set dummy strip; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7126 $as_echo_n "(cached) " >&6
7128 if test -n "$ac_ct_STRIP"; then
7129 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138 ac_cv_prog_ac_ct_STRIP="strip"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7149 if test -n "$ac_ct_STRIP"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7151 $as_echo "$ac_ct_STRIP" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7157 if test "x$ac_ct_STRIP" = x; then
7160 case $cross_compiling:$ac_tool_warned in
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7164 ac_tool_warned=yes ;;
7169 STRIP="$ac_cv_prog_STRIP"
7172 test -z "$STRIP" && STRIP=:
7179 if test -n "$ac_tool_prefix"; then
7180 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7181 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_RANLIB+:} false; then :
7185 $as_echo_n "(cached) " >&6
7187 if test -n "$RANLIB"; then
7188 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 RANLIB=$ac_cv_prog_RANLIB
7208 if test -n "$RANLIB"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7210 $as_echo "$RANLIB" >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7218 if test -z "$ac_cv_prog_RANLIB"; then
7219 ac_ct_RANLIB=$RANLIB
7220 # Extract the first word of "ranlib", so it can be a program name with args.
7221 set dummy ranlib; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7225 $as_echo_n "(cached) " >&6
7227 if test -n "$ac_ct_RANLIB"; then
7228 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_ac_ct_RANLIB="ranlib"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7248 if test -n "$ac_ct_RANLIB"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7250 $as_echo "$ac_ct_RANLIB" >&6; }
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7256 if test "x$ac_ct_RANLIB" = x; then
7259 case $cross_compiling:$ac_tool_warned in
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263 ac_tool_warned=yes ;;
7265 RANLIB=$ac_ct_RANLIB
7268 RANLIB="$ac_cv_prog_RANLIB"
7271 test -z "$RANLIB" && RANLIB=:
7278 # Determine commands to create old-style static archives.
7279 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7280 old_postinstall_cmds='chmod 644 $oldlib'
7281 old_postuninstall_cmds=
7283 if test -n "$RANLIB"; then
7286 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7289 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7292 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7297 lock_old_archive_extraction=yes ;;
7299 lock_old_archive_extraction=no ;;
7340 # If no C compiler was specified, use CC.
7343 # If no C compiler flags were specified, use CFLAGS.
7344 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7346 # Allow CC to be a program name with arguments.
7350 # Check for command to grab the raw symbol name followed by C symbol from nm.
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7352 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7353 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7354 $as_echo_n "(cached) " >&6
7357 # These are sane defaults that work on at least a few old systems.
7358 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7360 # Character class describing NM global symbol codes.
7361 symcode='[BCDEGRST]'
7363 # Regexp to match symbols that can be accessed directly from C.
7364 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7366 # Define system-specific variables.
7371 cygwin* | mingw* | pw32* | cegcc*)
7372 symcode='[ABCDGISTW]'
7375 if test ia64 = "$host_cpu"; then
7376 symcode='[ABCDEGRST]'
7380 symcode='[BCDEGRST]'
7383 symcode='[BCDEGQRST]'
7394 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7402 # If we're using GNU nm, then use its standard symbol codes.
7403 case `$NM -V 2>&1` in
7404 *GNU* | *'with BFD'*)
7405 symcode='[ABCDGIRSTW]' ;;
7408 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7409 # Gets list of data symbols to import.
7410 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7411 # Adjust the below global symbol transforms to fixup imported variables.
7412 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7413 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7414 lt_c_name_lib_hook="\
7415 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7416 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7418 # Disable hooks by default.
7419 lt_cv_sys_global_symbol_to_import=
7425 # Transform an extracted symbol line into a proper C declaration.
7426 # Some systems (esp. on ia64) link data and code symbols differently,
7427 # so use this general approach.
7428 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7430 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7431 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7433 # Transform an extracted symbol line into symbol name and symbol address
7434 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7436 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7437 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7439 # Transform an extracted symbol line into symbol name with lib prefix and
7441 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7442 $lt_c_name_lib_hook\
7443 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7444 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7445 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7447 # Handle CRLF in mingw tool chain
7451 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7455 # Try without a prefix underscore, then with it.
7456 for ac_symprfx in "" "_"; do
7458 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7459 symxfrm="\\1 $ac_symprfx\\2 \\2"
7461 # Write the raw and C identifiers.
7462 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7463 # Fake it for dumpbin and say T for any non-static function,
7464 # D for any global variable and I for any imported variable.
7465 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7466 # which start with @ or ?.
7467 lt_cv_sys_global_symbol_pipe="$AWK '"\
7468 " {last_section=section; section=\$ 3};"\
7469 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7470 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7471 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7472 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7473 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7474 " \$ 0!~/External *\|/{next};"\
7475 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7476 " {if(hide[section]) next};"\
7477 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7478 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7479 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7480 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7481 " ' prfx=^$ac_symprfx"
7483 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7485 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7487 # Check to see that the pipe works correctly.
7491 cat > conftest.$ac_ext <<_LT_EOF
7496 void nm_test_func(void);
7497 void nm_test_func(void){}
7501 int main(){nm_test_var='a';nm_test_func();return(0);}
7504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7505 (eval $ac_compile) 2>&5
7507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7508 test $ac_status = 0; }; then
7509 # Now try to grab the symbols.
7511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7512 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7515 test $ac_status = 0; } && test -s "$nlist"; then
7516 # Try sorting and uniquifying the output.
7517 if sort "$nlist" | uniq > "$nlist"T; then
7518 mv -f "$nlist"T "$nlist"
7523 # Make sure that we snagged all the symbols we need.
7524 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7525 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7526 cat <<_LT_EOF > conftest.$ac_ext
7527 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7528 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7529 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7530 relocations are performed -- see ld's documentation on pseudo-relocs. */
7531 # define LT_DLSYM_CONST
7532 #elif defined __osf__
7533 /* This system does not cope well with relocations in const data. */
7534 # define LT_DLSYM_CONST
7536 # define LT_DLSYM_CONST const
7544 # Now generate the symbol file.
7545 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7547 cat <<_LT_EOF >> conftest.$ac_ext
7549 /* The mapping between symbol names and symbols. */
7550 LT_DLSYM_CONST struct {
7554 lt__PROGRAM__LTX_preloaded_symbols[] =
7556 { "@PROGRAM@", (void *) 0 },
7558 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7559 cat <<\_LT_EOF >> conftest.$ac_ext
7563 /* This works around a problem in FreeBSD linker */
7564 #ifdef FREEBSD_WORKAROUND
7565 static const void *lt_preloaded_setup() {
7566 return lt__PROGRAM__LTX_preloaded_symbols;
7574 # Now try linking the two files.
7575 mv conftest.$ac_objext conftstm.$ac_objext
7576 lt_globsym_save_LIBS=$LIBS
7577 lt_globsym_save_CFLAGS=$CFLAGS
7578 LIBS=conftstm.$ac_objext
7579 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7581 (eval $ac_link) 2>&5
7583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7584 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7587 LIBS=$lt_globsym_save_LIBS
7588 CFLAGS=$lt_globsym_save_CFLAGS
7590 echo "cannot find nm_test_func in $nlist" >&5
7593 echo "cannot find nm_test_var in $nlist" >&5
7596 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7599 echo "$progname: failed program was:" >&5
7600 cat conftest.$ac_ext >&5
7602 rm -rf conftest* conftst*
7604 # Do not use the global_symbol_pipe unless it works.
7605 if test yes = "$pipe_works"; then
7608 lt_cv_sys_global_symbol_pipe=
7614 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7615 lt_cv_sys_global_symbol_to_cdecl=
7617 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7619 $as_echo "failed" >&6; }
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7622 $as_echo "ok" >&6; }
7625 # Response file support.
7626 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7627 nm_file_list_spec='@'
7628 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7629 nm_file_list_spec='@'
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7669 $as_echo_n "checking for sysroot... " >&6; }
7671 # Check whether --with-sysroot was given.
7672 if test "${with_sysroot+set}" = set; then :
7673 withval=$with_sysroot;
7680 case $with_sysroot in #(
7682 if test yes = "$GCC"; then
7683 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7687 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7693 $as_echo "$with_sysroot" >&6; }
7694 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7699 $as_echo "${lt_sysroot:-no}" >&6; }
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7706 $as_echo_n "checking for a working dd... " >&6; }
7707 if ${ac_cv_path_lt_DD+:} false; then :
7708 $as_echo_n "(cached) " >&6
7710 printf 0123456789abcdef0123456789abcdef >conftest.i
7711 cat conftest.i conftest.i >conftest2.i
7713 if test -z "$lt_DD"; then
7714 ac_path_lt_DD_found=false
7715 # Loop through the user's path and test for each of PROGNAME-LIST
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 test -z "$as_dir" && as_dir=.
7721 for ac_prog in dd; do
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7724 as_fn_executable_p "$ac_path_lt_DD" || continue
7725 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7726 cmp -s conftest.i conftest.out \
7727 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7729 $ac_path_lt_DD_found && break 3
7734 if test -z "$ac_cv_path_lt_DD"; then
7738 ac_cv_path_lt_DD=$lt_DD
7741 rm -f conftest.i conftest2.i conftest.out
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7744 $as_echo "$ac_cv_path_lt_DD" >&6; }
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7748 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7749 if ${lt_cv_truncate_bin+:} false; then :
7750 $as_echo_n "(cached) " >&6
7752 printf 0123456789abcdef0123456789abcdef >conftest.i
7753 cat conftest.i conftest.i >conftest2.i
7755 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7756 cmp -s conftest.i conftest.out \
7757 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7759 rm -f conftest.i conftest2.i conftest.out
7760 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7763 $as_echo "$lt_cv_truncate_bin" >&6; }
7771 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7774 for cc_temp in $*""; do
7776 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7777 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7782 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7785 # Check whether --enable-libtool-lock was given.
7786 if test "${enable_libtool_lock+set}" = set; then :
7787 enableval=$enable_libtool_lock;
7790 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7792 # Some flags need to be propagated to the compiler or linker for good
7796 # Find out what ABI is being produced by ac_compile, and set mode
7797 # options accordingly.
7798 echo 'int i;' > conftest.$ac_ext
7799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7800 (eval $ac_compile) 2>&5
7802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803 test $ac_status = 0; }; then
7804 case `/usr/bin/file conftest.$ac_objext` in
7816 # Find out what ABI is being produced by ac_compile, and set linker
7817 # options accordingly.
7818 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7820 (eval $ac_compile) 2>&5
7822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7823 test $ac_status = 0; }; then
7824 if test yes = "$lt_cv_prog_gnu_ld"; then
7825 case `/usr/bin/file conftest.$ac_objext` in
7827 LD="${LD-ld} -melf32bsmip"
7830 LD="${LD-ld} -melf32bmipn32"
7833 LD="${LD-ld} -melf64bmip"
7837 case `/usr/bin/file conftest.$ac_objext` in
7854 # Find out what ABI is being produced by ac_compile, and set linker
7855 # options accordingly.
7856 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7858 (eval $ac_compile) 2>&5
7860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7861 test $ac_status = 0; }; then
7863 case `/usr/bin/file conftest.$ac_objext` in
7871 case `/usr/bin/file conftest.$ac_objext` in
7873 emul="${emul}btsmip"
7876 emul="${emul}ltsmip"
7879 case `/usr/bin/file conftest.$ac_objext` in
7884 LD="${LD-ld} -m $emul"
7889 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7890 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7891 # Find out what ABI is being produced by ac_compile, and set linker
7892 # options accordingly. Note that the listed cases only cover the
7893 # situations where additional linker options are needed (such as when
7894 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7895 # vice versa); the common cases where no linker options are needed do
7896 # not appear in the list.
7897 echo 'int i;' > conftest.$ac_ext
7898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7899 (eval $ac_compile) 2>&5
7901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7902 test $ac_status = 0; }; then
7903 case `/usr/bin/file conftest.o` in
7906 x86_64-*kfreebsd*-gnu)
7907 LD="${LD-ld} -m elf_i386_fbsd"
7910 case `/usr/bin/file conftest.o` in
7912 LD="${LD-ld} -m elf32_x86_64"
7915 LD="${LD-ld} -m elf_i386"
7919 powerpc64le-*linux*)
7920 LD="${LD-ld} -m elf32lppclinux"
7923 LD="${LD-ld} -m elf32ppclinux"
7926 LD="${LD-ld} -m elf_s390"
7929 LD="${LD-ld} -m elf32_sparc"
7935 x86_64-*kfreebsd*-gnu)
7936 LD="${LD-ld} -m elf_x86_64_fbsd"
7939 LD="${LD-ld} -m elf_x86_64"
7942 LD="${LD-ld} -m elf64lppc"
7945 LD="${LD-ld} -m elf64ppc"
7947 s390*-*linux*|s390*-*tpf*)
7948 LD="${LD-ld} -m elf64_s390"
7951 LD="${LD-ld} -m elf64_sparc"
7961 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7963 CFLAGS="$CFLAGS -belf"
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7965 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7966 if ${lt_cv_cc_needs_belf+:} false; then :
7967 $as_echo_n "(cached) " >&6
7970 ac_cpp='$CPP $CPPFLAGS'
7971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7986 if ac_fn_c_try_link "$LINENO"; then :
7987 lt_cv_cc_needs_belf=yes
7989 lt_cv_cc_needs_belf=no
7991 rm -f core conftest.err conftest.$ac_objext \
7992 conftest$ac_exeext conftest.$ac_ext
7994 ac_cpp='$CPP $CPPFLAGS'
7995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8001 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8002 if test yes != "$lt_cv_cc_needs_belf"; then
8003 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8008 # Find out what ABI is being produced by ac_compile, and set linker
8009 # options accordingly.
8010 echo 'int i;' > conftest.$ac_ext
8011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8012 (eval $ac_compile) 2>&5
8014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8015 test $ac_status = 0; }; then
8016 case `/usr/bin/file conftest.o` in
8018 case $lt_cv_prog_gnu_ld in
8021 i?86-*-solaris*|x86_64-*-solaris*)
8022 LD="${LD-ld} -m elf_x86_64"
8025 LD="${LD-ld} -m elf64_sparc"
8028 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8029 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8034 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8046 need_locks=$enable_libtool_lock
8048 if test -n "$ac_tool_prefix"; then
8049 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8050 set dummy ${ac_tool_prefix}mt; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8054 $as_echo_n "(cached) " >&6
8056 if test -n "$MANIFEST_TOOL"; then
8057 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8077 if test -n "$MANIFEST_TOOL"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8079 $as_echo "$MANIFEST_TOOL" >&6; }
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8087 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8088 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8089 # Extract the first word of "mt", so it can be a program name with args.
8090 set dummy mt; ac_word=$2
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 $as_echo_n "checking for $ac_word... " >&6; }
8093 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8094 $as_echo_n "(cached) " >&6
8096 if test -n "$ac_ct_MANIFEST_TOOL"; then
8097 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 test -z "$as_dir" && as_dir=.
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8106 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8117 if test -n "$ac_ct_MANIFEST_TOOL"; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8119 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122 $as_echo "no" >&6; }
8125 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8128 case $cross_compiling:$ac_tool_warned in
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8132 ac_tool_warned=yes ;;
8134 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8137 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8140 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8142 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8143 if ${lt_cv_path_mainfest_tool+:} false; then :
8144 $as_echo_n "(cached) " >&6
8146 lt_cv_path_mainfest_tool=no
8147 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8148 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8149 cat conftest.err >&5
8150 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8151 lt_cv_path_mainfest_tool=yes
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8156 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8157 if test yes != "$lt_cv_path_mainfest_tool"; then
8167 rhapsody* | darwin*)
8168 if test -n "$ac_tool_prefix"; then
8169 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8170 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8174 $as_echo_n "(cached) " >&6
8176 if test -n "$DSYMUTIL"; then
8177 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8186 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8197 if test -n "$DSYMUTIL"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8199 $as_echo "$DSYMUTIL" >&6; }
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8207 if test -z "$ac_cv_prog_DSYMUTIL"; then
8208 ac_ct_DSYMUTIL=$DSYMUTIL
8209 # Extract the first word of "dsymutil", so it can be a program name with args.
8210 set dummy dsymutil; ac_word=$2
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8212 $as_echo_n "checking for $ac_word... " >&6; }
8213 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8214 $as_echo_n "(cached) " >&6
8216 if test -n "$ac_ct_DSYMUTIL"; then
8217 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8226 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8237 if test -n "$ac_ct_DSYMUTIL"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8239 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8245 if test "x$ac_ct_DSYMUTIL" = x; then
8248 case $cross_compiling:$ac_tool_warned in
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8252 ac_tool_warned=yes ;;
8254 DSYMUTIL=$ac_ct_DSYMUTIL
8257 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8260 if test -n "$ac_tool_prefix"; then
8261 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8262 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264 $as_echo_n "checking for $ac_word... " >&6; }
8265 if ${ac_cv_prog_NMEDIT+:} false; then :
8266 $as_echo_n "(cached) " >&6
8268 if test -n "$NMEDIT"; then
8269 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 test -z "$as_dir" && as_dir=.
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8278 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 NMEDIT=$ac_cv_prog_NMEDIT
8289 if test -n "$NMEDIT"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8291 $as_echo "$NMEDIT" >&6; }
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8299 if test -z "$ac_cv_prog_NMEDIT"; then
8300 ac_ct_NMEDIT=$NMEDIT
8301 # Extract the first word of "nmedit", so it can be a program name with args.
8302 set dummy nmedit; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8306 $as_echo_n "(cached) " >&6
8308 if test -n "$ac_ct_NMEDIT"; then
8309 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 test -z "$as_dir" && as_dir=.
8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8318 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8328 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8329 if test -n "$ac_ct_NMEDIT"; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8331 $as_echo "$ac_ct_NMEDIT" >&6; }
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8337 if test "x$ac_ct_NMEDIT" = x; then
8340 case $cross_compiling:$ac_tool_warned in
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8344 ac_tool_warned=yes ;;
8346 NMEDIT=$ac_ct_NMEDIT
8349 NMEDIT="$ac_cv_prog_NMEDIT"
8352 if test -n "$ac_tool_prefix"; then
8353 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8354 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 $as_echo_n "checking for $ac_word... " >&6; }
8357 if ${ac_cv_prog_LIPO+:} false; then :
8358 $as_echo_n "(cached) " >&6
8360 if test -n "$LIPO"; then
8361 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 LIPO=$ac_cv_prog_LIPO
8381 if test -n "$LIPO"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8383 $as_echo "$LIPO" >&6; }
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8391 if test -z "$ac_cv_prog_LIPO"; then
8393 # Extract the first word of "lipo", so it can be a program name with args.
8394 set dummy lipo; ac_word=$2
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396 $as_echo_n "checking for $ac_word... " >&6; }
8397 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8398 $as_echo_n "(cached) " >&6
8400 if test -n "$ac_ct_LIPO"; then
8401 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 test -z "$as_dir" && as_dir=.
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8410 ac_cv_prog_ac_ct_LIPO="lipo"
8411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8421 if test -n "$ac_ct_LIPO"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8423 $as_echo "$ac_ct_LIPO" >&6; }
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8429 if test "x$ac_ct_LIPO" = x; then
8432 case $cross_compiling:$ac_tool_warned in
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8436 ac_tool_warned=yes ;;
8441 LIPO="$ac_cv_prog_LIPO"
8444 if test -n "$ac_tool_prefix"; then
8445 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8446 set dummy ${ac_tool_prefix}otool; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if ${ac_cv_prog_OTOOL+:} false; then :
8450 $as_echo_n "(cached) " >&6
8452 if test -n "$OTOOL"; then
8453 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8462 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 OTOOL=$ac_cv_prog_OTOOL
8473 if test -n "$OTOOL"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8475 $as_echo "$OTOOL" >&6; }
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 $as_echo "no" >&6; }
8483 if test -z "$ac_cv_prog_OTOOL"; then
8485 # Extract the first word of "otool", so it can be a program name with args.
8486 set dummy otool; ac_word=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8490 $as_echo_n "(cached) " >&6
8492 if test -n "$ac_ct_OTOOL"; then
8493 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499 test -z "$as_dir" && as_dir=.
8500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8502 ac_cv_prog_ac_ct_OTOOL="otool"
8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8513 if test -n "$ac_ct_OTOOL"; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8515 $as_echo "$ac_ct_OTOOL" >&6; }
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8521 if test "x$ac_ct_OTOOL" = x; then
8524 case $cross_compiling:$ac_tool_warned in
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8528 ac_tool_warned=yes ;;
8533 OTOOL="$ac_cv_prog_OTOOL"
8536 if test -n "$ac_tool_prefix"; then
8537 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8538 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if ${ac_cv_prog_OTOOL64+:} false; then :
8542 $as_echo_n "(cached) " >&6
8544 if test -n "$OTOOL64"; then
8545 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8554 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8564 OTOOL64=$ac_cv_prog_OTOOL64
8565 if test -n "$OTOOL64"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8567 $as_echo "$OTOOL64" >&6; }
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8575 if test -z "$ac_cv_prog_OTOOL64"; then
8576 ac_ct_OTOOL64=$OTOOL64
8577 # Extract the first word of "otool64", so it can be a program name with args.
8578 set dummy otool64; ac_word=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 $as_echo_n "checking for $ac_word... " >&6; }
8581 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8582 $as_echo_n "(cached) " >&6
8584 if test -n "$ac_ct_OTOOL64"; then
8585 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8594 ac_cv_prog_ac_ct_OTOOL64="otool64"
8595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8605 if test -n "$ac_ct_OTOOL64"; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8607 $as_echo "$ac_ct_OTOOL64" >&6; }
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8613 if test "x$ac_ct_OTOOL64" = x; then
8616 case $cross_compiling:$ac_tool_warned in
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8620 ac_tool_warned=yes ;;
8622 OTOOL64=$ac_ct_OTOOL64
8625 OTOOL64="$ac_cv_prog_OTOOL64"
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8655 $as_echo_n "checking for -single_module linker flag... " >&6; }
8656 if ${lt_cv_apple_cc_single_mod+:} false; then :
8657 $as_echo_n "(cached) " >&6
8659 lt_cv_apple_cc_single_mod=no
8660 if test -z "$LT_MULTI_MODULE"; then
8661 # By default we will add the -single_module flag. You can override
8662 # by either setting the environment variable LT_MULTI_MODULE
8663 # non-empty at configure time, or by adding -multi_module to the
8665 rm -rf libconftest.dylib*
8666 echo "int foo(void){return 1;}" > conftest.c
8667 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8668 -dynamiclib -Wl,-single_module conftest.c" >&5
8669 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8670 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8672 # If there is a non-empty error log, and "single_module"
8673 # appears in it, assume the flag caused a linker warning
8674 if test -s conftest.err && $GREP single_module conftest.err; then
8675 cat conftest.err >&5
8676 # Otherwise, if the output was created with a 0 exit code from
8677 # the compiler, it worked.
8678 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8679 lt_cv_apple_cc_single_mod=yes
8681 cat conftest.err >&5
8683 rm -rf libconftest.dylib*
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8688 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8691 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8692 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8693 $as_echo_n "(cached) " >&6
8695 lt_cv_ld_exported_symbols_list=no
8696 save_LDFLAGS=$LDFLAGS
8697 echo "_main" > conftest.sym
8698 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8710 if ac_fn_c_try_link "$LINENO"; then :
8711 lt_cv_ld_exported_symbols_list=yes
8713 lt_cv_ld_exported_symbols_list=no
8715 rm -f core conftest.err conftest.$ac_objext \
8716 conftest$ac_exeext conftest.$ac_ext
8717 LDFLAGS=$save_LDFLAGS
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8721 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8724 $as_echo_n "checking for -force_load linker flag... " >&6; }
8725 if ${lt_cv_ld_force_load+:} false; then :
8726 $as_echo_n "(cached) " >&6
8728 lt_cv_ld_force_load=no
8729 cat > conftest.c << _LT_EOF
8730 int forced_loaded() { return 2;}
8732 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8733 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8734 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8735 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8736 echo "$RANLIB libconftest.a" >&5
8737 $RANLIB libconftest.a 2>&5
8738 cat > conftest.c << _LT_EOF
8739 int main() { return 0;}
8741 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8742 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8744 if test -s conftest.err && $GREP force_load conftest.err; then
8745 cat conftest.err >&5
8746 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8747 lt_cv_ld_force_load=yes
8749 cat conftest.err >&5
8751 rm -f conftest.err libconftest.a conftest conftest.c
8752 rm -rf conftest.dSYM
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8756 $as_echo "$lt_cv_ld_force_load" >&6; }
8758 rhapsody* | darwin1.[012])
8759 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8761 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8762 darwin*) # darwin 5.x on
8763 # if running on 10.5 or later, the deployment target defaults
8764 # to the OS version, if on x86, and 10.4, the deployment
8765 # target defaults to 10.4. Don't you love it?
8766 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8767 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8768 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8770 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8772 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8776 if test yes = "$lt_cv_apple_cc_single_mod"; then
8777 _lt_dar_single_mod='$single_module'
8779 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8780 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8782 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8784 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8785 _lt_dsymutil='~$DSYMUTIL $lib || :'
8792 # func_munge_path_list VARIABLE PATH
8793 # -----------------------------------
8794 # VARIABLE is name of variable containing _space_ separated list of
8795 # directories to be munged by the contents of PATH, which is string
8798 # string "DIR[ DIR]" will be prepended to VARIABLE
8800 # string "DIR[ DIR]" will be appended to VARIABLE
8801 # "DIRP[:DIRP]::[DIRA:]DIRA"
8802 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8803 # "DIRA[ DIRA]" will be appended to VARIABLE
8805 # VARIABLE will be replaced by "DIR[ DIR]"
8806 func_munge_path_list ()
8812 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8815 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8818 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8819 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8822 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8828 ac_cpp='$CPP $CPPFLAGS'
8829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8833 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8834 # On Suns, sometimes $CPP names a directory.
8835 if test -n "$CPP" && test -d "$CPP"; then
8838 if test -z "$CPP"; then
8839 if ${ac_cv_prog_CPP+:} false; then :
8840 $as_echo_n "(cached) " >&6
8842 # Double quotes because CPP needs to be expanded
8843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8846 for ac_c_preproc_warn_flag in '' yes
8848 # Use a header file that comes with gcc, so configuring glibc
8849 # with a fresh cross-compiler works.
8850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8851 # <limits.h> exists even on freestanding compilers.
8852 # On the NeXT, cc -E runs the code through the compiler's parser,
8853 # not just through cpp. "Syntax error" is here to catch this case.
8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855 /* end confdefs.h. */
8857 # include <limits.h>
8859 # include <assert.h>
8863 if ac_fn_c_try_cpp "$LINENO"; then :
8866 # Broken: fails on valid input.
8869 rm -f conftest.err conftest.i conftest.$ac_ext
8871 # OK, works on sane cases. Now check whether nonexistent headers
8872 # can be detected and how.
8873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874 /* end confdefs.h. */
8875 #include <ac_nonexistent.h>
8877 if ac_fn_c_try_cpp "$LINENO"; then :
8878 # Broken: success on invalid input.
8881 # Passes both tests.
8885 rm -f conftest.err conftest.i conftest.$ac_ext
8888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8889 rm -f conftest.i conftest.err conftest.$ac_ext
8890 if $ac_preproc_ok; then :
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8903 $as_echo "$CPP" >&6; }
8905 for ac_c_preproc_warn_flag in '' yes
8907 # Use a header file that comes with gcc, so configuring glibc
8908 # with a fresh cross-compiler works.
8909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8910 # <limits.h> exists even on freestanding compilers.
8911 # On the NeXT, cc -E runs the code through the compiler's parser,
8912 # not just through cpp. "Syntax error" is here to catch this case.
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8916 # include <limits.h>
8918 # include <assert.h>
8922 if ac_fn_c_try_cpp "$LINENO"; then :
8925 # Broken: fails on valid input.
8928 rm -f conftest.err conftest.i conftest.$ac_ext
8930 # OK, works on sane cases. Now check whether nonexistent headers
8931 # can be detected and how.
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8934 #include <ac_nonexistent.h>
8936 if ac_fn_c_try_cpp "$LINENO"; then :
8937 # Broken: success on invalid input.
8940 # Passes both tests.
8944 rm -f conftest.err conftest.i conftest.$ac_ext
8947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8948 rm -f conftest.i conftest.err conftest.$ac_ext
8949 if $ac_preproc_ok; then :
8952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8954 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8955 See \`config.log' for more details" "$LINENO" 5; }
8959 ac_cpp='$CPP $CPPFLAGS'
8960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8966 $as_echo_n "checking for ANSI C header files... " >&6; }
8967 if ${ac_cv_header_stdc+:} false; then :
8968 $as_echo_n "(cached) " >&6
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8985 if ac_fn_c_try_compile "$LINENO"; then :
8986 ac_cv_header_stdc=yes
8988 ac_cv_header_stdc=no
8990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992 if test $ac_cv_header_stdc = yes; then
8993 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9000 $EGREP "memchr" >/dev/null 2>&1; then :
9003 ac_cv_header_stdc=no
9009 if test $ac_cv_header_stdc = yes; then
9010 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h. */
9016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9017 $EGREP "free" >/dev/null 2>&1; then :
9020 ac_cv_header_stdc=no
9026 if test $ac_cv_header_stdc = yes; then
9027 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9028 if test "$cross_compiling" = yes; then :
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9035 #if ((' ' & 0x0FF) == 0x020)
9036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9039 # define ISLOWER(c) \
9040 (('a' <= (c) && (c) <= 'i') \
9041 || ('j' <= (c) && (c) <= 'r') \
9042 || ('s' <= (c) && (c) <= 'z'))
9043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9051 for (i = 0; i < 256; i++)
9052 if (XOR (islower (i), ISLOWER (i))
9053 || toupper (i) != TOUPPER (i))
9058 if ac_fn_c_try_run "$LINENO"; then :
9061 ac_cv_header_stdc=no
9063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9064 conftest.$ac_objext conftest.beam conftest.$ac_ext
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9070 $as_echo "$ac_cv_header_stdc" >&6; }
9071 if test $ac_cv_header_stdc = yes; then
9073 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9077 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9078 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9079 inttypes.h stdint.h unistd.h
9081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9082 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9084 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9085 cat >>confdefs.h <<_ACEOF
9086 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9094 for ac_header in dlfcn.h
9096 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9098 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9099 cat >>confdefs.h <<_ACEOF
9100 #define HAVE_DLFCN_H 1
9112 # Check whether --enable-static was given.
9113 if test "${enable_static+set}" = set; then :
9114 enableval=$enable_static; p=${PACKAGE-default}
9116 yes) enable_static=yes ;;
9117 no) enable_static=no ;;
9120 # Look at the argument we got. We use all the common list separators.
9121 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9122 for pkg in $enableval; do
9124 if test "X$pkg" = "X$p"; then
9150 # Check whether --enable-shared was given.
9151 if test "${enable_shared+set}" = set; then :
9152 enableval=$enable_shared; p=${PACKAGE-default}
9154 yes) enable_shared=yes ;;
9155 no) enable_shared=no ;;
9158 # Look at the argument we got. We use all the common list separators.
9159 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9160 for pkg in $enableval; do
9162 if test "X$pkg" = "X$p"; then
9183 # Check whether --with-pic was given.
9184 if test "${with_pic+set}" = set; then :
9185 withval=$with_pic; lt_p=${PACKAGE-default}
9187 yes|no) pic_mode=$withval ;;
9190 # Look at the argument we got. We use all the common list separators.
9191 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9192 for lt_pkg in $withval; do
9194 if test "X$lt_pkg" = "X$lt_p"; then
9212 # Check whether --enable-fast-install was given.
9213 if test "${enable_fast_install+set}" = set; then :
9214 enableval=$enable_fast_install; p=${PACKAGE-default}
9216 yes) enable_fast_install=yes ;;
9217 no) enable_fast_install=no ;;
9219 enable_fast_install=no
9220 # Look at the argument we got. We use all the common list separators.
9221 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9222 for pkg in $enableval; do
9224 if test "X$pkg" = "X$p"; then
9225 enable_fast_install=yes
9232 enable_fast_install=yes
9242 shared_archive_member_spec=
9243 case $host,$enable_shared in
9244 power*-*-aix[5-9]*,yes)
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9246 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9248 # Check whether --with-aix-soname was given.
9249 if test "${with_aix_soname+set}" = set; then :
9250 withval=$with_aix_soname; case $withval in
9254 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9257 lt_cv_with_aix_soname=$with_aix_soname
9259 if ${lt_cv_with_aix_soname+:} false; then :
9260 $as_echo_n "(cached) " >&6
9262 lt_cv_with_aix_soname=aix
9265 with_aix_soname=$lt_cv_with_aix_soname
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9269 $as_echo "$with_aix_soname" >&6; }
9270 if test aix != "$with_aix_soname"; then
9271 # For the AIX way of multilib, we name the shared archive member
9272 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9273 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9274 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9275 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9276 if test 64 = "${OBJECT_MODE-32}"; then
9277 shared_archive_member_spec=shr_64
9279 shared_archive_member_spec=shr
9297 # This can be used to rebuild libtool when needed
9298 LIBTOOL_DEPS=$ltmain
9300 # Always use our own libtool.
9301 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9332 test -z "$LN_S" && LN_S="ln -s"
9347 if test -n "${ZSH_VERSION+set}"; then
9348 setopt NO_GLOB_SUBST
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9352 $as_echo_n "checking for objdir... " >&6; }
9353 if ${lt_cv_objdir+:} false; then :
9354 $as_echo_n "(cached) " >&6
9356 rm -f .libs 2>/dev/null
9357 mkdir .libs 2>/dev/null
9358 if test -d .libs; then
9361 # MS-DOS does not allow filenames that begin with a dot.
9364 rmdir .libs 2>/dev/null
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9367 $as_echo "$lt_cv_objdir" >&6; }
9368 objdir=$lt_cv_objdir
9374 cat >>confdefs.h <<_ACEOF
9375 #define LT_OBJDIR "$lt_cv_objdir/"
9383 # AIX sometimes has problems with the GCC collect2 program. For some
9384 # reason, if we set the COLLECT_NAMES environment variable, the problems
9385 # vanish in a puff of smoke.
9386 if test set != "${COLLECT_NAMES+set}"; then
9388 export COLLECT_NAMES
9395 can_build_shared=yes
9397 # All known linkers require a '.a' archive for static linking (except MSVC and
9398 # ICC, which need '.lib').
9401 with_gnu_ld=$lt_cv_prog_gnu_ld
9406 # Set sane defaults for various variables
9407 test -z "$CC" && CC=cc
9408 test -z "$LTCC" && LTCC=$CC
9409 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9410 test -z "$LD" && LD=ld
9411 test -z "$ac_objext" && ac_objext=o
9413 func_cc_basename $compiler
9414 cc_basename=$func_cc_basename_result
9417 # Only perform the check for file, if the check method requires it
9418 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9419 case $deplibs_check_method in
9421 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9423 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9424 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9425 $as_echo_n "(cached) " >&6
9429 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9432 lt_save_MAGIC_CMD=$MAGIC_CMD
9433 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9434 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9435 for ac_dir in $ac_dummy; do
9437 test -z "$ac_dir" && ac_dir=.
9438 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9439 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9440 if test -n "$file_magic_test_file"; then
9441 case $deplibs_check_method in
9443 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9444 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9445 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9446 $EGREP "$file_magic_regex" > /dev/null; then
9451 *** Warning: the command libtool uses to detect shared libraries,
9452 *** $file_magic_cmd, produces output that libtool cannot recognize.
9453 *** The result is that libtool may fail to recognize shared libraries
9454 *** as such. This will affect the creation of libtool libraries that
9455 *** depend on shared libraries, but programs linked with such libtool
9456 *** libraries will work regardless of this problem. Nevertheless, you
9457 *** may want to report the problem to your system manager and/or to
9458 *** bug-libtool@gnu.org
9468 MAGIC_CMD=$lt_save_MAGIC_CMD
9473 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9474 if test -n "$MAGIC_CMD"; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9476 $as_echo "$MAGIC_CMD" >&6; }
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 $as_echo "no" >&6; }
9486 if test -z "$lt_cv_path_MAGIC_CMD"; then
9487 if test -n "$ac_tool_prefix"; then
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9489 $as_echo_n "checking for file... " >&6; }
9490 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9491 $as_echo_n "(cached) " >&6
9495 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9498 lt_save_MAGIC_CMD=$MAGIC_CMD
9499 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9500 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9501 for ac_dir in $ac_dummy; do
9503 test -z "$ac_dir" && ac_dir=.
9504 if test -f "$ac_dir/file"; then
9505 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9506 if test -n "$file_magic_test_file"; then
9507 case $deplibs_check_method in
9509 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9510 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9512 $EGREP "$file_magic_regex" > /dev/null; then
9517 *** Warning: the command libtool uses to detect shared libraries,
9518 *** $file_magic_cmd, produces output that libtool cannot recognize.
9519 *** The result is that libtool may fail to recognize shared libraries
9520 *** as such. This will affect the creation of libtool libraries that
9521 *** depend on shared libraries, but programs linked with such libtool
9522 *** libraries will work regardless of this problem. Nevertheless, you
9523 *** may want to report the problem to your system manager and/or to
9524 *** bug-libtool@gnu.org
9534 MAGIC_CMD=$lt_save_MAGIC_CMD
9539 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9540 if test -n "$MAGIC_CMD"; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9542 $as_echo "$MAGIC_CMD" >&6; }
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545 $as_echo "no" >&6; }
9558 # Use C for the default configuration in the libtool script
9562 ac_cpp='$CPP $CPPFLAGS'
9563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9568 # Source file extension for C test sources.
9571 # Object file extension for compiled C test sources.
9575 # Code to be used in simple compile tests
9576 lt_simple_compile_test_code="int some_variable = 0;"
9578 # Code to be used in simple link tests
9579 lt_simple_link_test_code='int main(){return(0);}'
9587 # If no C compiler was specified, use CC.
9590 # If no C compiler flags were specified, use CFLAGS.
9591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9593 # Allow CC to be a program name with arguments.
9596 # Save the default compiler, since it gets overwritten when the other
9597 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9598 compiler_DEFAULT=$CC
9600 # save warnings/boilerplate of simple test code
9601 ac_outfile=conftest.$ac_objext
9602 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9603 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9604 _lt_compiler_boilerplate=`cat conftest.err`
9607 ac_outfile=conftest.$ac_objext
9608 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9609 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9610 _lt_linker_boilerplate=`cat conftest.err`
9615 ## There is no encapsulation within the following macros, do not change
9616 ## the running order or otherwise move them around unless you know exactly
9617 ## what you are doing...
9618 if test -n "$compiler"; then
9620 lt_prog_compiler_no_builtin_flag=
9622 if test yes = "$GCC"; then
9623 case $cc_basename in
9625 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9627 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9631 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9632 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9633 $as_echo_n "(cached) " >&6
9635 lt_cv_prog_compiler_rtti_exceptions=no
9636 ac_outfile=conftest.$ac_objext
9637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9638 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9639 # Insert the option either (1) after the last *FLAGS variable, or
9640 # (2) before a word containing "conftest.", or (3) at the end.
9641 # Note that $ac_compile itself does not contain backslashes and begins
9642 # with a dollar sign (not a hyphen), so the echo should work correctly.
9643 # The option is referenced via a variable to avoid confusing sed.
9644 lt_compile=`echo "$ac_compile" | $SED \
9645 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9647 -e 's:$: $lt_compiler_flag:'`
9648 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9649 (eval "$lt_compile" 2>conftest.err)
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 if (exit $ac_status) && test -s "$ac_outfile"; then
9654 # The compiler can only warn and ignore the option if not recognized
9655 # So say no if there are warnings other than the usual output.
9656 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9657 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9658 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9659 lt_cv_prog_compiler_rtti_exceptions=yes
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9666 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9668 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9669 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9681 lt_prog_compiler_wl=
9682 lt_prog_compiler_pic=
9683 lt_prog_compiler_static=
9686 if test yes = "$GCC"; then
9687 lt_prog_compiler_wl='-Wl,'
9688 lt_prog_compiler_static='-static'
9692 # All AIX code is PIC.
9693 if test ia64 = "$host_cpu"; then
9694 # AIX 5 now supports IA64 processor
9695 lt_prog_compiler_static='-Bstatic'
9697 lt_prog_compiler_pic='-fPIC'
9703 # see comment about AmigaOS4 .so support
9704 lt_prog_compiler_pic='-fPIC'
9707 # FIXME: we need at least 68020 code to build shared libraries, but
9708 # adding the '-m68020' flag to GCC prevents building anything better,
9710 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9715 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9716 # PIC is the default for these OSes.
9719 mingw* | cygwin* | pw32* | os2* | cegcc*)
9720 # This hack is so that the source file can tell whether it is being
9721 # built for inclusion in a dll (and should export symbols for example).
9722 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9723 # (--disable-auto-import) libraries
9724 lt_prog_compiler_pic='-DDLL_EXPORT'
9727 lt_prog_compiler_static='$wl-static'
9732 darwin* | rhapsody*)
9733 # PIC is the default on this platform
9734 # Common symbols not allowed in MH_DYLIB files
9735 lt_prog_compiler_pic='-fno-common'
9739 # PIC is the default for Haiku.
9740 # The "-static" flag exists, but is broken.
9741 lt_prog_compiler_static=
9745 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9746 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9747 # sets the default TLS model and affects inlining.
9753 lt_prog_compiler_pic='-fPIC'
9759 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9760 # Instead, we relocate shared libraries at runtime.
9764 # Just because we use GCC doesn't mean we suddenly get shared libraries
9765 # on systems that don't support them.
9766 lt_prog_compiler_can_build_shared=no
9771 # QNX uses GNU C++, but need to define -shared option too, otherwise
9773 lt_prog_compiler_pic='-fPIC -shared'
9777 if test -d /usr/nec; then
9778 lt_prog_compiler_pic=-Kconform_pic
9783 lt_prog_compiler_pic='-fPIC'
9787 case $cc_basename in
9788 nvcc*) # Cuda Compiler Driver 2.2
9789 lt_prog_compiler_wl='-Xlinker '
9790 if test -n "$lt_prog_compiler_pic"; then
9791 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9796 # PORTME Check for flag to pass linker flags through the system compiler.
9799 lt_prog_compiler_wl='-Wl,'
9800 if test ia64 = "$host_cpu"; then
9801 # AIX 5 now supports IA64 processor
9802 lt_prog_compiler_static='-Bstatic'
9804 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9808 darwin* | rhapsody*)
9809 # PIC is the default on this platform
9810 # Common symbols not allowed in MH_DYLIB files
9811 lt_prog_compiler_pic='-fno-common'
9812 case $cc_basename in
9814 # NAG Fortran compiler
9815 lt_prog_compiler_wl='-Wl,-Wl,,'
9816 lt_prog_compiler_pic='-PIC'
9817 lt_prog_compiler_static='-Bstatic'
9822 mingw* | cygwin* | pw32* | os2* | cegcc*)
9823 # This hack is so that the source file can tell whether it is being
9824 # built for inclusion in a dll (and should export symbols for example).
9825 lt_prog_compiler_pic='-DDLL_EXPORT'
9828 lt_prog_compiler_static='$wl-static'
9833 hpux9* | hpux10* | hpux11*)
9834 lt_prog_compiler_wl='-Wl,'
9835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9842 lt_prog_compiler_pic='+Z'
9845 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9846 lt_prog_compiler_static='$wl-a ${wl}archive'
9849 irix5* | irix6* | nonstopux*)
9850 lt_prog_compiler_wl='-Wl,'
9851 # PIC (with -KPIC) is the default.
9852 lt_prog_compiler_static='-non_shared'
9855 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9856 case $cc_basename in
9857 # old Intel for x86_64, which still supported -KPIC.
9859 lt_prog_compiler_wl='-Wl,'
9860 lt_prog_compiler_pic='-KPIC'
9861 lt_prog_compiler_static='-static'
9863 # icc used to be incompatible with GCC.
9864 # ICC 10 doesn't accept -KPIC any more.
9866 lt_prog_compiler_wl='-Wl,'
9867 lt_prog_compiler_pic='-fPIC'
9868 lt_prog_compiler_static='-static'
9870 # Lahey Fortran 8.1.
9872 lt_prog_compiler_wl='-Wl,'
9873 lt_prog_compiler_pic='--shared'
9874 lt_prog_compiler_static='--static'
9877 # NAG Fortran compiler
9878 lt_prog_compiler_wl='-Wl,-Wl,,'
9879 lt_prog_compiler_pic='-PIC'
9880 lt_prog_compiler_static='-Bstatic'
9883 # Fabrice Bellard et al's Tiny C Compiler
9884 lt_prog_compiler_wl='-Wl,'
9885 lt_prog_compiler_pic='-fPIC'
9886 lt_prog_compiler_static='-static'
9888 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9889 # Portland Group compilers (*not* the Pentium gcc compiler,
9890 # which looks to be a dead project)
9891 lt_prog_compiler_wl='-Wl,'
9892 lt_prog_compiler_pic='-fpic'
9893 lt_prog_compiler_static='-Bstatic'
9896 lt_prog_compiler_wl='-Wl,'
9897 # All Alpha code is PIC.
9898 lt_prog_compiler_static='-non_shared'
9900 xl* | bgxl* | bgf* | mpixl*)
9901 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9902 lt_prog_compiler_wl='-Wl,'
9903 lt_prog_compiler_pic='-qpic'
9904 lt_prog_compiler_static='-qstaticlink'
9907 case `$CC -V 2>&1 | sed 5q` in
9908 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9909 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9910 lt_prog_compiler_pic='-KPIC'
9911 lt_prog_compiler_static='-Bstatic'
9912 lt_prog_compiler_wl=''
9914 *Sun\ F* | *Sun*Fortran*)
9915 lt_prog_compiler_pic='-KPIC'
9916 lt_prog_compiler_static='-Bstatic'
9917 lt_prog_compiler_wl='-Qoption ld '
9921 lt_prog_compiler_pic='-KPIC'
9922 lt_prog_compiler_static='-Bstatic'
9923 lt_prog_compiler_wl='-Wl,'
9925 *Intel*\ [CF]*Compiler*)
9926 lt_prog_compiler_wl='-Wl,'
9927 lt_prog_compiler_pic='-fPIC'
9928 lt_prog_compiler_static='-static'
9931 lt_prog_compiler_wl='-Wl,'
9932 lt_prog_compiler_pic='-fpic'
9933 lt_prog_compiler_static='-Bstatic'
9941 lt_prog_compiler_pic='-KPIC'
9942 lt_prog_compiler_static='-Bstatic'
9946 # QNX uses GNU C++, but need to define -shared option too, otherwise
9948 lt_prog_compiler_pic='-fPIC -shared'
9951 osf3* | osf4* | osf5*)
9952 lt_prog_compiler_wl='-Wl,'
9953 # All OSF/1 code is PIC.
9954 lt_prog_compiler_static='-non_shared'
9958 lt_prog_compiler_static='-non_shared'
9962 lt_prog_compiler_pic='-KPIC'
9963 lt_prog_compiler_static='-Bstatic'
9964 case $cc_basename in
9965 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9966 lt_prog_compiler_wl='-Qoption ld ';;
9968 lt_prog_compiler_wl='-Wl,';;
9973 lt_prog_compiler_wl='-Qoption ld '
9974 lt_prog_compiler_pic='-PIC'
9975 lt_prog_compiler_static='-Bstatic'
9978 sysv4 | sysv4.2uw2* | sysv4.3*)
9979 lt_prog_compiler_wl='-Wl,'
9980 lt_prog_compiler_pic='-KPIC'
9981 lt_prog_compiler_static='-Bstatic'
9985 if test -d /usr/nec; then
9986 lt_prog_compiler_pic='-Kconform_pic'
9987 lt_prog_compiler_static='-Bstatic'
9991 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9992 lt_prog_compiler_wl='-Wl,'
9993 lt_prog_compiler_pic='-KPIC'
9994 lt_prog_compiler_static='-Bstatic'
9998 lt_prog_compiler_wl='-Wl,'
9999 lt_prog_compiler_can_build_shared=no
10003 lt_prog_compiler_pic='-pic'
10004 lt_prog_compiler_static='-Bstatic'
10008 lt_prog_compiler_can_build_shared=no
10014 # For platforms that do not support PIC, -DPIC is meaningless:
10016 lt_prog_compiler_pic=
10019 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10024 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10025 if ${lt_cv_prog_compiler_pic+:} false; then :
10026 $as_echo_n "(cached) " >&6
10028 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10031 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10032 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10035 # Check to make sure the PIC flag actually works.
10037 if test -n "$lt_prog_compiler_pic"; then
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10039 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10040 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10041 $as_echo_n "(cached) " >&6
10043 lt_cv_prog_compiler_pic_works=no
10044 ac_outfile=conftest.$ac_objext
10045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10046 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10047 # Insert the option either (1) after the last *FLAGS variable, or
10048 # (2) before a word containing "conftest.", or (3) at the end.
10049 # Note that $ac_compile itself does not contain backslashes and begins
10050 # with a dollar sign (not a hyphen), so the echo should work correctly.
10051 # The option is referenced via a variable to avoid confusing sed.
10052 lt_compile=`echo "$ac_compile" | $SED \
10053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10055 -e 's:$: $lt_compiler_flag:'`
10056 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10057 (eval "$lt_compile" 2>conftest.err)
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 if (exit $ac_status) && test -s "$ac_outfile"; then
10062 # The compiler can only warn and ignore the option if not recognized
10063 # So say no if there are warnings other than the usual output.
10064 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10066 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10067 lt_cv_prog_compiler_pic_works=yes
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10074 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10076 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10077 case $lt_prog_compiler_pic in
10079 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10082 lt_prog_compiler_pic=
10083 lt_prog_compiler_can_build_shared=no
10099 # Check to make sure the static flag actually works.
10101 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10103 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10104 if ${lt_cv_prog_compiler_static_works+:} false; then :
10105 $as_echo_n "(cached) " >&6
10107 lt_cv_prog_compiler_static_works=no
10108 save_LDFLAGS=$LDFLAGS
10109 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10110 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10111 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10112 # The linker can only warn and ignore the option if not recognized
10113 # So say no if there are warnings
10114 if test -s conftest.err; then
10115 # Append any errors to the config.log.
10116 cat conftest.err 1>&5
10117 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10119 if diff conftest.exp conftest.er2 >/dev/null; then
10120 lt_cv_prog_compiler_static_works=yes
10123 lt_cv_prog_compiler_static_works=yes
10127 LDFLAGS=$save_LDFLAGS
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10131 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10133 if test yes = "$lt_cv_prog_compiler_static_works"; then
10136 lt_prog_compiler_static=
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10146 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10147 if ${lt_cv_prog_compiler_c_o+:} false; then :
10148 $as_echo_n "(cached) " >&6
10150 lt_cv_prog_compiler_c_o=no
10151 $RM -r conftest 2>/dev/null
10155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10157 lt_compiler_flag="-o out/conftest2.$ac_objext"
10158 # Insert the option either (1) after the last *FLAGS variable, or
10159 # (2) before a word containing "conftest.", or (3) at the end.
10160 # Note that $ac_compile itself does not contain backslashes and begins
10161 # with a dollar sign (not a hyphen), so the echo should work correctly.
10162 lt_compile=`echo "$ac_compile" | $SED \
10163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10165 -e 's:$: $lt_compiler_flag:'`
10166 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10167 (eval "$lt_compile" 2>out/conftest.err)
10169 cat out/conftest.err >&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10173 # The compiler can only warn and ignore the option if not recognized
10174 # So say no if there are warnings
10175 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10176 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10177 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10178 lt_cv_prog_compiler_c_o=yes
10183 # SGI C++ compiler will create directory out/ii_files/ for
10184 # template instantiation
10185 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10186 $RM out/* && rmdir out
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10193 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10201 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10202 if ${lt_cv_prog_compiler_c_o+:} false; then :
10203 $as_echo_n "(cached) " >&6
10205 lt_cv_prog_compiler_c_o=no
10206 $RM -r conftest 2>/dev/null
10210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10212 lt_compiler_flag="-o out/conftest2.$ac_objext"
10213 # Insert the option either (1) after the last *FLAGS variable, or
10214 # (2) before a word containing "conftest.", or (3) at the end.
10215 # Note that $ac_compile itself does not contain backslashes and begins
10216 # with a dollar sign (not a hyphen), so the echo should work correctly.
10217 lt_compile=`echo "$ac_compile" | $SED \
10218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10220 -e 's:$: $lt_compiler_flag:'`
10221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10222 (eval "$lt_compile" 2>out/conftest.err)
10224 cat out/conftest.err >&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10228 # The compiler can only warn and ignore the option if not recognized
10229 # So say no if there are warnings
10230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10231 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10232 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10233 lt_cv_prog_compiler_c_o=yes
10238 # SGI C++ compiler will create directory out/ii_files/ for
10239 # template instantiation
10240 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10241 $RM out/* && rmdir out
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10248 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10253 hard_links=nottested
10254 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10255 # do not overwrite the value of need_locks provided by the user
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10257 $as_echo_n "checking if we can lock with hard links... " >&6; }
10260 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10262 ln conftest.a conftest.b 2>&5 || hard_links=no
10263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10265 $as_echo "$hard_links" >&6; }
10266 if test no = "$hard_links"; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10268 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10281 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10284 allow_undefined_flag=
10285 always_export_symbols=no
10287 archive_expsym_cmds=
10288 compiler_needs_object=no
10289 enable_shared_with_static_runtimes=no
10290 export_dynamic_flag_spec=
10291 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10292 hardcode_automatic=no
10294 hardcode_direct_absolute=no
10295 hardcode_libdir_flag_spec=
10296 hardcode_libdir_separator=
10297 hardcode_minus_L=no
10298 hardcode_shlibpath_var=unsupported
10300 link_all_deplibs=unknown
10302 module_expsym_cmds=
10303 old_archive_from_new_cmds=
10304 old_archive_from_expsyms_cmds=
10305 thread_safe_flag_spec=
10306 whole_archive_flag_spec=
10307 # include_expsyms should be a list of space-separated symbols to be *always*
10308 # included in the symbol list
10310 # exclude_expsyms can be an extended regexp of symbols to exclude
10311 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10312 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10313 # as well as any symbol that contains 'd'.
10314 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10315 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10316 # platforms (ab)use it in PIC code, but their linkers get confused if
10317 # the symbol is explicitly referenced. Since portable code cannot
10318 # rely on this symbol name, it's probably fine to never include it in
10319 # preloaded symbol tables.
10320 # Exclude shared library initialization/finalization symbols.
10321 extract_expsyms_cmds=
10324 cygwin* | mingw* | pw32* | cegcc*)
10325 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10326 # When not using gcc, we currently assume that we are using
10327 # Microsoft Visual C++ or Intel C++ Compiler.
10328 if test yes != "$GCC"; then
10333 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10336 openbsd* | bitrig*)
10343 # On some targets, GNU ld is compatible enough with the native linker
10344 # that we're better off using the native interface for both.
10345 lt_use_gnu_ld_interface=no
10346 if test yes = "$with_gnu_ld"; then
10349 # The AIX port of GNU ld has always aspired to compatibility
10350 # with the native linker. However, as the warning in the GNU ld
10351 # block says, versions before 2.19.5* couldn't really create working
10352 # shared libraries, regardless of the interface used.
10353 case `$LD -v 2>&1` in
10354 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10355 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10356 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10358 lt_use_gnu_ld_interface=yes
10363 lt_use_gnu_ld_interface=yes
10368 if test yes = "$lt_use_gnu_ld_interface"; then
10369 # If archive_cmds runs LD, not CC, wlarc should be empty
10372 # Set some defaults for GNU ld with shared library support. These
10373 # are reset later if shared libraries are not supported. Putting them
10374 # here allows them to be overridden if necessary.
10375 runpath_var=LD_RUN_PATH
10376 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10377 export_dynamic_flag_spec='$wl--export-dynamic'
10378 # ancient GNU ld didn't support --whole-archive et. al.
10379 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10380 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10382 whole_archive_flag_spec=
10384 supports_anon_versioning=no
10385 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10386 *GNU\ gold*) supports_anon_versioning=yes ;;
10387 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10388 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10389 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10390 *\ 2.11.*) ;; # other 2.11 versions
10391 *) supports_anon_versioning=yes ;;
10394 # See if GNU ld supports shared libraries.
10397 # On AIX/PPC, the GNU linker is very broken
10398 if test ia64 != "$host_cpu"; then
10402 *** Warning: the GNU linker, at least up to release 2.19, is reported
10403 *** to be unable to reliably create shared libraries on AIX.
10404 *** Therefore, libtool is disabling shared libraries support. If you
10405 *** really care for shared libraries, you may want to install binutils
10406 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10407 *** You will then need to restart the configuration process.
10416 # see comment about AmigaOS4 .so support
10417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10418 archive_expsym_cmds=''
10421 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10422 hardcode_libdir_flag_spec='-L$libdir'
10423 hardcode_minus_L=yes
10429 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10430 allow_undefined_flag=unsupported
10431 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10432 # support --undefined. This deserves some investigation. FIXME
10433 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10439 cygwin* | mingw* | pw32* | cegcc*)
10440 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10441 # as there is no search path for DLLs.
10442 hardcode_libdir_flag_spec='-L$libdir'
10443 export_dynamic_flag_spec='$wl--export-all-symbols'
10444 allow_undefined_flag=unsupported
10445 always_export_symbols=no
10446 enable_shared_with_static_runtimes=yes
10447 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10448 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10450 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10452 # If the export-symbols file already is a .def file, use it as
10453 # is; otherwise, prepend EXPORTS...
10454 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10455 cp $export_symbols $output_objdir/$soname.def;
10457 echo EXPORTS > $output_objdir/$soname.def;
10458 cat $export_symbols >> $output_objdir/$soname.def;
10460 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10468 link_all_deplibs=yes
10472 hardcode_libdir_flag_spec='-L$libdir'
10473 hardcode_minus_L=yes
10474 allow_undefined_flag=unsupported
10476 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10477 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10478 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10479 $ECHO EXPORTS >> $output_objdir/$libname.def~
10480 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10481 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10482 emximp -o $lib $output_objdir/$libname.def'
10483 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10484 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10485 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10486 $ECHO EXPORTS >> $output_objdir/$libname.def~
10487 prefix_cmds="$SED"~
10488 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10489 prefix_cmds="$prefix_cmds -e 1d";
10491 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10492 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10493 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10494 emximp -o $lib $output_objdir/$libname.def'
10495 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10496 enable_shared_with_static_runtimes=yes
10502 hardcode_shlibpath_var=no
10503 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10504 export_dynamic_flag_spec='$wl-E'
10505 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10506 # Instead, shared libraries are loaded at an image base (0x10000000 by
10507 # default) and relocated if they conflict, which is a slow very memory
10508 # consuming and fragmenting process. To avoid this, we pick a random,
10509 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10510 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10511 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10512 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'
10515 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10517 if test linux-dietlibc = "$host_os"; then
10518 case $cc_basename in
10519 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10522 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10523 && test no = "$tmp_diet"
10525 tmp_addflag=' $pic_flag'
10526 tmp_sharedflag='-shared'
10527 case $cc_basename,$host_cpu in
10528 pgcc*) # Portland Group C compiler
10529 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'
10530 tmp_addflag=' $pic_flag'
10532 pgf77* | pgf90* | pgf95* | pgfortran*)
10533 # Portland Group f77 and f90 compilers
10534 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'
10535 tmp_addflag=' $pic_flag -Mnomain' ;;
10536 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10537 tmp_addflag=' -i_dynamic' ;;
10538 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10539 tmp_addflag=' -i_dynamic -nofor_main' ;;
10540 ifc* | ifort*) # Intel Fortran compiler
10541 tmp_addflag=' -nofor_main' ;;
10542 lf95*) # Lahey Fortran 8.1
10543 whole_archive_flag_spec=
10544 tmp_sharedflag='--shared' ;;
10545 nagfor*) # NAGFOR 5.3
10546 tmp_sharedflag='-Wl,-shared' ;;
10547 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10548 tmp_sharedflag='-qmkshrobj'
10550 nvcc*) # Cuda Compiler Driver 2.2
10551 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'
10552 compiler_needs_object=yes
10555 case `$CC -V 2>&1 | sed 5q` in
10556 *Sun\ C*) # Sun C 5.9
10557 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'
10558 compiler_needs_object=yes
10559 tmp_sharedflag='-G' ;;
10560 *Sun\ F*) # Sun Fortran 8.3
10561 tmp_sharedflag='-G' ;;
10563 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10565 if test yes = "$supports_anon_versioning"; then
10566 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10567 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10568 echo "local: *; };" >> $output_objdir/$libname.ver~
10569 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10572 case $cc_basename in
10574 export_dynamic_flag_spec='-rdynamic'
10576 xlf* | bgf* | bgxlf* | mpixlf*)
10577 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10578 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10579 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10580 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10581 if test yes = "$supports_anon_versioning"; then
10582 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10583 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10584 echo "local: *; };" >> $output_objdir/$libname.ver~
10585 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10595 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10596 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10599 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10600 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10605 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10609 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10610 *** create shared libraries on Solaris systems. Therefore, libtool
10611 *** is disabling shared libraries support. We urge you to upgrade GNU
10612 *** binutils to release 2.9.1 or newer. Another option is to modify
10613 *** your PATH or compiler configuration so that the native linker is
10614 *** used, and then restart.
10617 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10618 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10619 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10625 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10626 case `$LD -v 2>&1` in
10627 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10631 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10632 *** reliably create shared libraries on SCO systems. Therefore, libtool
10633 *** is disabling shared libraries support. We urge you to upgrade GNU
10634 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10635 *** your PATH or compiler configuration so that the native linker is
10636 *** used, and then restart.
10641 # For security reasons, it is highly recommended that you always
10642 # use absolute paths for naming shared libraries, and exclude the
10643 # DT_RUNPATH tag from executables and libraries. But doing so
10644 # requires that you compile everything twice, which is a pain.
10645 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10646 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10648 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10657 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10659 hardcode_direct=yes
10660 hardcode_shlibpath_var=no
10664 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10665 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10666 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10673 if test no = "$ld_shlibs"; then
10675 hardcode_libdir_flag_spec=
10676 export_dynamic_flag_spec=
10677 whole_archive_flag_spec=
10680 # PORTME fill in a description of your system's linker (not GNU ld)
10683 allow_undefined_flag=unsupported
10684 always_export_symbols=yes
10685 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'
10686 # Note: this linker hardcodes the directories in LIBPATH if there
10687 # are no directories specified by -L.
10688 hardcode_minus_L=yes
10689 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10690 # Neither direct hardcoding nor static linking is supported with a
10692 hardcode_direct=unsupported
10697 if test ia64 = "$host_cpu"; then
10698 # On IA64, the linker does run time linking by default, so we don't
10699 # have to do anything special.
10700 aix_use_runtimelinking=no
10701 exp_sym_flag='-Bexport'
10704 # If we're using GNU nm, then we don't want the "-C" option.
10705 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10706 # Without the "-l" option, or with the "-B" option, AIX nm treats
10707 # weak defined symbols like other global defined symbols, whereas
10708 # GNU nm marks them as "W".
10709 # While the 'weak' keyword is ignored in the Export File, we need
10710 # it in the Import File for the 'aix-soname' feature, so we have
10711 # to replace the "-B" option with "-P" for AIX nm.
10712 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10713 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'
10715 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10717 aix_use_runtimelinking=no
10719 # Test if we are trying to use run time linking or normal
10720 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10721 # have runtime linking enabled, and use it for executables.
10722 # For shared libraries, we enable/disable runtime linking
10723 # depending on the kind of the shared library created -
10724 # when "with_aix_soname,aix_use_runtimelinking" is:
10725 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10726 # "aix,yes" lib.so shared, rtl:yes, for executables
10727 # lib.a static archive
10728 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10729 # lib.a(lib.so.V) shared, rtl:no, for executables
10730 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10731 # lib.a(lib.so.V) shared, rtl:no
10732 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10733 # lib.a static archive
10734 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10735 for ld_flag in $LDFLAGS; do
10736 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10737 aix_use_runtimelinking=yes
10741 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10742 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10743 # so we don't have lib.a shared libs to link our executables.
10744 # We have to force runtime linking in this case.
10745 aix_use_runtimelinking=yes
10746 LDFLAGS="$LDFLAGS -Wl,-brtl"
10751 exp_sym_flag='-bexport'
10752 no_entry_flag='-bnoentry'
10755 # When large executables or shared objects are built, AIX ld can
10756 # have problems creating the table of contents. If linking a library
10757 # or program results in "error TOC overflow" add -mminimal-toc to
10758 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10759 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10762 hardcode_direct=yes
10763 hardcode_direct_absolute=yes
10764 hardcode_libdir_separator=':'
10765 link_all_deplibs=yes
10766 file_list_spec='$wl-f,'
10767 case $with_aix_soname,$aix_use_runtimelinking in
10768 aix,*) ;; # traditional, no import file
10769 svr4,* | *,yes) # use import file
10770 # The Import File defines what to hardcode.
10772 hardcode_direct_absolute=no
10776 if test yes = "$GCC"; then
10777 case $host_os in aix4.[012]|aix4.[012].*)
10778 # We only want to do this on AIX 4.2 and lower, the check
10779 # below for broken collect2 doesn't work under 4.3+
10780 collect2name=`$CC -print-prog-name=collect2`
10781 if test -f "$collect2name" &&
10782 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10784 # We have reworked collect2
10787 # We have old collect2
10788 hardcode_direct=unsupported
10789 # It fails to find uninstalled libraries when the uninstalled
10790 # path is not listed in the libpath. Setting hardcode_minus_L
10791 # to unsupported forces relinking
10792 hardcode_minus_L=yes
10793 hardcode_libdir_flag_spec='-L$libdir'
10794 hardcode_libdir_separator=
10798 shared_flag='-shared'
10799 if test yes = "$aix_use_runtimelinking"; then
10800 shared_flag="$shared_flag "'$wl-G'
10802 # Need to ensure runtime linking is disabled for the traditional
10803 # shared library, or the linker may eventually find shared libraries
10804 # /with/ Import File - we do not want to mix them.
10805 shared_flag_aix='-shared'
10806 shared_flag_svr4='-shared $wl-G'
10809 if test ia64 = "$host_cpu"; then
10810 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10811 # chokes on -Wl,-G. The following line is correct:
10814 if test yes = "$aix_use_runtimelinking"; then
10815 shared_flag='$wl-G'
10817 shared_flag='$wl-bM:SRE'
10819 shared_flag_aix='$wl-bM:SRE'
10820 shared_flag_svr4='$wl-G'
10824 export_dynamic_flag_spec='$wl-bexpall'
10825 # It seems that -bexpall does not export symbols beginning with
10826 # underscore (_), so it is better to generate a list of symbols to export.
10827 always_export_symbols=yes
10828 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10829 # Warning - without using the other runtime loading flags (-brtl),
10830 # -berok will link without error, but may produce a broken library.
10831 allow_undefined_flag='-berok'
10832 # Determine the default libpath from the value encoded in an
10833 # empty executable.
10834 if test set = "${lt_cv_aix_libpath+set}"; then
10835 aix_libpath=$lt_cv_aix_libpath
10837 if ${lt_cv_aix_libpath_+:} false; then :
10838 $as_echo_n "(cached) " >&6
10840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h. */
10851 if ac_fn_c_try_link "$LINENO"; then :
10853 lt_aix_libpath_sed='
10854 /Import File Strings/,/^$/ {
10856 s/^0 *\([^ ]*\) *$/\1/
10860 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10861 # Check for a 64-bit object if we didn't find anything.
10862 if test -z "$lt_cv_aix_libpath_"; then
10863 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10866 rm -f core conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10868 if test -z "$lt_cv_aix_libpath_"; then
10869 lt_cv_aix_libpath_=/usr/lib:/lib
10874 aix_libpath=$lt_cv_aix_libpath_
10877 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10878 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
10880 if test ia64 = "$host_cpu"; then
10881 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10882 allow_undefined_flag="-z nodefs"
10883 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"
10885 # Determine the default libpath from the value encoded in an
10886 # empty executable.
10887 if test set = "${lt_cv_aix_libpath+set}"; then
10888 aix_libpath=$lt_cv_aix_libpath
10890 if ${lt_cv_aix_libpath_+:} false; then :
10891 $as_echo_n "(cached) " >&6
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10904 if ac_fn_c_try_link "$LINENO"; then :
10906 lt_aix_libpath_sed='
10907 /Import File Strings/,/^$/ {
10909 s/^0 *\([^ ]*\) *$/\1/
10913 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10914 # Check for a 64-bit object if we didn't find anything.
10915 if test -z "$lt_cv_aix_libpath_"; then
10916 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10919 rm -f core conftest.err conftest.$ac_objext \
10920 conftest$ac_exeext conftest.$ac_ext
10921 if test -z "$lt_cv_aix_libpath_"; then
10922 lt_cv_aix_libpath_=/usr/lib:/lib
10927 aix_libpath=$lt_cv_aix_libpath_
10930 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10931 # Warning - without using the other run time loading flags,
10932 # -berok will link without error, but may produce a broken library.
10933 no_undefined_flag=' $wl-bernotok'
10934 allow_undefined_flag=' $wl-berok'
10935 if test yes = "$with_gnu_ld"; then
10936 # We only use this code for GNU lds that support --whole-archive.
10937 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10939 # Exported symbols can be pulled into shared objects from archives
10940 whole_archive_flag_spec='$convenience'
10942 archive_cmds_need_lc=yes
10943 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10944 # -brtl affects multiple linker settings, -berok does not and is overridden later
10945 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10946 if test svr4 != "$with_aix_soname"; then
10947 # This is similar to how AIX traditionally builds its shared libraries.
10948 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'
10950 if test aix != "$with_aix_soname"; then
10951 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'
10953 # used by -dlpreopen to get the symbols
10954 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10956 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10964 # see comment about AmigaOS4 .so support
10965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10966 archive_expsym_cmds=''
10969 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)'
10970 hardcode_libdir_flag_spec='-L$libdir'
10971 hardcode_minus_L=yes
10977 export_dynamic_flag_spec=-rdynamic
10980 cygwin* | mingw* | pw32* | cegcc*)
10981 # When not using gcc, we currently assume that we are using
10982 # Microsoft Visual C++ or Intel C++ Compiler.
10983 # hardcode_libdir_flag_spec is actually meaningless, as there is
10984 # no search path for DLLs.
10985 case $cc_basename in
10987 # Native MSVC or ICC
10988 hardcode_libdir_flag_spec=' '
10989 allow_undefined_flag=unsupported
10990 always_export_symbols=yes
10992 # Tell ltmain to make .lib files, not .a files.
10994 # Tell ltmain to make .dll files, not .so files.
10996 # FIXME: Setting linknames here is a bad hack.
10997 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10998 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10999 cp "$export_symbols" "$output_objdir/$soname.def";
11000 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11002 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11004 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11006 # The linker will not automatically build a static lib if we build a DLL.
11007 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11008 enable_shared_with_static_runtimes=yes
11009 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11010 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11012 old_postinstall_cmds='chmod 644 $oldlib'
11013 postlink_cmds='lt_outputfile="@OUTPUT@"~
11014 lt_tool_outputfile="@TOOL_OUTPUT@"~
11015 case $lt_outputfile in
11018 lt_outputfile=$lt_outputfile.exe
11019 lt_tool_outputfile=$lt_tool_outputfile.exe
11022 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11023 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11024 $RM "$lt_outputfile.manifest";
11028 # Assume MSVC and ICC wrapper
11029 hardcode_libdir_flag_spec=' '
11030 allow_undefined_flag=unsupported
11031 # Tell ltmain to make .lib files, not .a files.
11033 # Tell ltmain to make .dll files, not .so files.
11035 # FIXME: Setting linknames here is a bad hack.
11036 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11037 # The linker will automatically build a .lib file if we build a DLL.
11038 old_archive_from_new_cmds='true'
11039 # FIXME: Should let the user specify the lib program.
11040 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11041 enable_shared_with_static_runtimes=yes
11046 darwin* | rhapsody*)
11049 archive_cmds_need_lc=no
11051 hardcode_automatic=yes
11052 hardcode_shlibpath_var=unsupported
11053 if test yes = "$lt_cv_ld_force_load"; then
11054 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\"`'
11057 whole_archive_flag_spec=''
11059 link_all_deplibs=yes
11060 allow_undefined_flag=$_lt_dar_allow_undefined
11061 case $cc_basename in
11062 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11063 *) _lt_dar_can_shared=$GCC ;;
11065 if test yes = "$_lt_dar_can_shared"; then
11066 output_verbose_link_cmd=func_echo_all
11067 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11068 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11069 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"
11070 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"
11079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11080 hardcode_libdir_flag_spec='-L$libdir'
11081 hardcode_shlibpath_var=no
11084 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11085 # support. Future versions do this automatically, but an explicit c++rt0.o
11086 # does not break anything, and helps significantly (at the cost of a little
11089 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11090 hardcode_libdir_flag_spec='-R$libdir'
11091 hardcode_direct=yes
11092 hardcode_shlibpath_var=no
11095 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11097 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11098 hardcode_direct=yes
11099 hardcode_minus_L=yes
11100 hardcode_shlibpath_var=no
11103 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11104 freebsd* | dragonfly*)
11105 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11106 hardcode_libdir_flag_spec='-R$libdir'
11107 hardcode_direct=yes
11108 hardcode_shlibpath_var=no
11112 if test yes = "$GCC"; then
11113 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'
11115 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'
11117 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11118 hardcode_libdir_separator=:
11119 hardcode_direct=yes
11121 # hardcode_minus_L: Not really in the search PATH,
11122 # but as the default location of the library.
11123 hardcode_minus_L=yes
11124 export_dynamic_flag_spec='$wl-E'
11128 if test yes,no = "$GCC,$with_gnu_ld"; then
11129 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11131 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11133 if test no = "$with_gnu_ld"; then
11134 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11135 hardcode_libdir_separator=:
11136 hardcode_direct=yes
11137 hardcode_direct_absolute=yes
11138 export_dynamic_flag_spec='$wl-E'
11139 # hardcode_minus_L: Not really in the search PATH,
11140 # but as the default location of the library.
11141 hardcode_minus_L=yes
11146 if test yes,no = "$GCC,$with_gnu_ld"; then
11149 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11152 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11155 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11161 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11164 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11168 # Older versions of the 11.00 compiler do not understand -b yet
11169 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11171 $as_echo_n "checking if $CC understands -b... " >&6; }
11172 if ${lt_cv_prog_compiler__b+:} false; then :
11173 $as_echo_n "(cached) " >&6
11175 lt_cv_prog_compiler__b=no
11176 save_LDFLAGS=$LDFLAGS
11177 LDFLAGS="$LDFLAGS -b"
11178 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11179 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11180 # The linker can only warn and ignore the option if not recognized
11181 # So say no if there are warnings
11182 if test -s conftest.err; then
11183 # Append any errors to the config.log.
11184 cat conftest.err 1>&5
11185 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11187 if diff conftest.exp conftest.er2 >/dev/null; then
11188 lt_cv_prog_compiler__b=yes
11191 lt_cv_prog_compiler__b=yes
11195 LDFLAGS=$save_LDFLAGS
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11199 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11201 if test yes = "$lt_cv_prog_compiler__b"; then
11202 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11204 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11210 if test no = "$with_gnu_ld"; then
11211 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11212 hardcode_libdir_separator=:
11217 hardcode_shlibpath_var=no
11220 hardcode_direct=yes
11221 hardcode_direct_absolute=yes
11222 export_dynamic_flag_spec='$wl-E'
11224 # hardcode_minus_L: Not really in the search PATH,
11225 # but as the default location of the library.
11226 hardcode_minus_L=yes
11232 irix5* | irix6* | nonstopux*)
11233 if test yes = "$GCC"; then
11234 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'
11235 # Try to use the -exported_symbol ld option, if it does not
11236 # work, assume that -exports_file does not work either and
11237 # implicitly export all symbols.
11238 # This should be the same for all languages, so no per-tag cache variable.
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11240 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11241 if ${lt_cv_irix_exported_symbol+:} false; then :
11242 $as_echo_n "(cached) " >&6
11244 save_LDFLAGS=$LDFLAGS
11245 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11248 int foo (void) { return 0; }
11250 if ac_fn_c_try_link "$LINENO"; then :
11251 lt_cv_irix_exported_symbol=yes
11253 lt_cv_irix_exported_symbol=no
11255 rm -f core conftest.err conftest.$ac_objext \
11256 conftest$ac_exeext conftest.$ac_ext
11257 LDFLAGS=$save_LDFLAGS
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11260 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11261 if test yes = "$lt_cv_irix_exported_symbol"; then
11262 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'
11265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11268 archive_cmds_need_lc='no'
11269 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11270 hardcode_libdir_separator=:
11272 link_all_deplibs=yes
11276 case $cc_basename in
11278 # Fabrice Bellard et al's Tiny C Compiler
11280 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11287 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11289 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11291 hardcode_libdir_flag_spec='-R$libdir'
11292 hardcode_direct=yes
11293 hardcode_shlibpath_var=no
11297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11298 hardcode_direct=yes
11299 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11300 hardcode_libdir_separator=:
11301 hardcode_shlibpath_var=no
11307 openbsd* | bitrig*)
11308 if test -f /usr/libexec/ld.so; then
11309 hardcode_direct=yes
11310 hardcode_shlibpath_var=no
11311 hardcode_direct_absolute=yes
11312 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11314 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11315 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11316 export_dynamic_flag_spec='$wl-E'
11318 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11319 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11327 hardcode_libdir_flag_spec='-L$libdir'
11328 hardcode_minus_L=yes
11329 allow_undefined_flag=unsupported
11331 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11332 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11333 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11334 $ECHO EXPORTS >> $output_objdir/$libname.def~
11335 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11336 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11337 emximp -o $lib $output_objdir/$libname.def'
11338 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11339 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11340 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11341 $ECHO EXPORTS >> $output_objdir/$libname.def~
11342 prefix_cmds="$SED"~
11343 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11344 prefix_cmds="$prefix_cmds -e 1d";
11346 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11347 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11348 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11349 emximp -o $lib $output_objdir/$libname.def'
11350 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11351 enable_shared_with_static_runtimes=yes
11356 if test yes = "$GCC"; then
11357 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11358 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'
11360 allow_undefined_flag=' -expect_unresolved \*'
11361 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'
11363 archive_cmds_need_lc='no'
11364 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11365 hardcode_libdir_separator=:
11368 osf4* | osf5*) # as osf3* with the addition of -msym flag
11369 if test yes = "$GCC"; then
11370 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11371 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'
11372 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11374 allow_undefined_flag=' -expect_unresolved \*'
11375 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'
11376 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~
11377 $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'
11379 # Both c and cxx compiler support -rpath directly
11380 hardcode_libdir_flag_spec='-rpath $libdir'
11382 archive_cmds_need_lc='no'
11383 hardcode_libdir_separator=:
11387 no_undefined_flag=' -z defs'
11388 if test yes = "$GCC"; then
11390 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11391 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11392 $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'
11394 case `$CC -V 2>&1` in
11397 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11399 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11403 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11404 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11405 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11409 hardcode_libdir_flag_spec='-R$libdir'
11410 hardcode_shlibpath_var=no
11412 solaris2.[0-5] | solaris2.[0-5].*) ;;
11414 # The compiler driver will combine and reorder linker options,
11415 # but understands '-z linker_flag'. GCC discards it without '$wl',
11416 # but is careful enough not to reorder.
11417 # Supported since Solaris 2.6 (maybe 2.5.1?)
11418 if test yes = "$GCC"; then
11419 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11421 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11425 link_all_deplibs=yes
11429 if test sequent = "$host_vendor"; then
11430 # Use $CC to link under sequent, because it throws in some extra .o
11431 # files that make .init and .fini sections work.
11432 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11434 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11436 hardcode_libdir_flag_spec='-L$libdir'
11437 hardcode_direct=yes
11438 hardcode_minus_L=yes
11439 hardcode_shlibpath_var=no
11443 case $host_vendor in
11445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11446 hardcode_direct=yes # is this really true???
11449 ## LD is ld it makes a PLAMLIB
11450 ## CC just makes a GrossModule.
11451 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11452 reload_cmds='$CC -r -o $output$reload_objs'
11456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11457 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11460 runpath_var='LD_RUN_PATH'
11461 hardcode_shlibpath_var=no
11465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11466 hardcode_shlibpath_var=no
11467 export_dynamic_flag_spec='-Bexport'
11471 if test -d /usr/nec; then
11472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11473 hardcode_shlibpath_var=no
11474 runpath_var=LD_RUN_PATH
11475 hardcode_runpath_var=yes
11480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11481 no_undefined_flag='$wl-z,text'
11482 archive_cmds_need_lc=no
11483 hardcode_shlibpath_var=no
11484 runpath_var='LD_RUN_PATH'
11486 if test yes = "$GCC"; then
11487 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11488 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11490 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11491 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11495 sysv5* | sco3.2v5* | sco5v6*)
11496 # Note: We CANNOT use -z defs as we might desire, because we do not
11497 # link with -lc, and that would cause any symbols used from libc to
11498 # always be unresolved, which means just about no library would
11499 # ever link correctly. If we're not using GNU ld we use -z text
11500 # though, which does catch some bad symbols but isn't as heavy-handed
11502 no_undefined_flag='$wl-z,text'
11503 allow_undefined_flag='$wl-z,nodefs'
11504 archive_cmds_need_lc=no
11505 hardcode_shlibpath_var=no
11506 hardcode_libdir_flag_spec='$wl-R,$libdir'
11507 hardcode_libdir_separator=':'
11508 link_all_deplibs=yes
11509 export_dynamic_flag_spec='$wl-Bexport'
11510 runpath_var='LD_RUN_PATH'
11512 if test yes = "$GCC"; then
11513 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11514 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11516 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11517 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11523 hardcode_libdir_flag_spec='-L$libdir'
11524 hardcode_shlibpath_var=no
11532 if test sni = "$host_vendor"; then
11534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11535 export_dynamic_flag_spec='$wl-Blargedynsym'
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11542 $as_echo "$ld_shlibs" >&6; }
11543 test no = "$ld_shlibs" && can_build_shared=no
11545 with_gnu_ld=$with_gnu_ld
11562 # Do we need to explicitly link libc?
11564 case "x$archive_cmds_need_lc" in
11566 # Assume -lc should be added
11567 archive_cmds_need_lc=yes
11569 if test yes,yes = "$GCC,$enable_shared"; then
11570 case $archive_cmds in
11572 # FIXME: we may have to deal with multi-command sequences.
11575 # Test whether the compiler implicitly links with -lc since on some
11576 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11577 # to ld, don't add -lc before -lgcc.
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11579 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11580 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11581 $as_echo_n "(cached) " >&6
11584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11587 (eval $ac_compile) 2>&5
11589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11590 test $ac_status = 0; } 2>conftest.err; then
11593 libobjs=conftest.$ac_objext
11595 wl=$lt_prog_compiler_wl
11596 pic_flag=$lt_prog_compiler_pic
11602 lt_save_allow_undefined_flag=$allow_undefined_flag
11603 allow_undefined_flag=
11604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11605 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11608 test $ac_status = 0; }
11610 lt_cv_archive_cmds_need_lc=no
11612 lt_cv_archive_cmds_need_lc=yes
11614 allow_undefined_flag=$lt_save_allow_undefined_flag
11616 cat conftest.err 1>&5
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11622 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11623 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11782 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11784 if test yes = "$GCC"; then
11786 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11787 *) lt_awk_arg='/^libraries:/' ;;
11790 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11791 *) lt_sed_strip_eq='s|=/|/|g' ;;
11793 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11794 case $lt_search_path_spec in
11796 # if the path contains ";" then we assume it to be the separator
11797 # otherwise default to the standard path separator (i.e. ":") - it is
11798 # assumed that no part of a normal pathname contains ";" but that should
11799 # okay in the real world where ";" in dirpaths is itself problematic.
11800 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11803 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11806 # Ok, now we have the path, separated by spaces, we can step through it
11807 # and add multilib dir if necessary...
11808 lt_tmp_lt_search_path_spec=
11809 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11810 # ...but if some path component already ends with the multilib dir we assume
11811 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11812 case "$lt_multi_os_dir; $lt_search_path_spec " in
11813 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11817 for lt_sys_path in $lt_search_path_spec; do
11818 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11819 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11820 elif test -n "$lt_multi_os_dir"; then
11821 test -d "$lt_sys_path" && \
11822 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11825 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11826 BEGIN {RS = " "; FS = "/|\n";} {
11829 for (lt_i = NF; lt_i > 0; lt_i--) {
11830 if ($lt_i != "" && $lt_i != ".") {
11831 if ($lt_i == "..") {
11834 if (lt_count == 0) {
11835 lt_foo = "/" $lt_i lt_foo;
11842 if (lt_foo != "") { lt_freq[lt_foo]++; }
11843 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11845 # AWK program above erroneously prepends '/' to C:/dos/paths
11848 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11849 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11851 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11853 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11855 library_names_spec=
11856 libname_spec='lib$name'
11860 postuninstall_cmds=
11864 shlibpath_overrides_runpath=unknown
11866 dynamic_linker="$host_os ld.so"
11867 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11868 need_lib_prefix=unknown
11869 hardcode_into_libs=no
11871 # when you set need_version to no, make sure it does not cause -set_version
11872 # flags to be left without arguments
11873 need_version=unknown
11879 version_type=linux # correct to gnu/linux during the next big refactor
11880 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11881 shlibpath_var=LIBPATH
11883 # AIX 3 has no versioning support, so we append a major version to the name.
11884 soname_spec='$libname$release$shared_ext$major'
11888 version_type=linux # correct to gnu/linux during the next big refactor
11891 hardcode_into_libs=yes
11892 if test ia64 = "$host_cpu"; then
11893 # AIX 5 supports IA64
11894 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11895 shlibpath_var=LD_LIBRARY_PATH
11897 # With GCC up to 2.95.x, collect2 would create an import file
11898 # for dependence libraries. The import file would start with
11899 # the line '#! .'. This would cause the generated library to
11900 # depend on '.', always an invalid library. This was fixed in
11901 # development snapshots of GCC prior to 3.0.
11903 aix4 | aix4.[01] | aix4.[01].*)
11904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11906 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11909 can_build_shared=no
11913 # Using Import Files as archive members, it is possible to support
11914 # filename-based versioning of shared library archives on AIX. While
11915 # this would work for both with and without runtime linking, it will
11916 # prevent static linking of such archives. So we do filename-based
11917 # shared library versioning with .so extension only, which is used
11918 # when both runtime linking and shared linking is enabled.
11919 # Unfortunately, runtime linking may impact performance, so we do
11920 # not want this to be the default eventually. Also, we use the
11921 # versioned .so libs for executables only if there is the -brtl
11922 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11923 # To allow for filename-based versioning support, we need to create
11924 # libNAME.so.V as an archive file, containing:
11925 # *) an Import File, referring to the versioned filename of the
11926 # archive as well as the shared archive member, telling the
11927 # bitwidth (32 or 64) of that shared object, and providing the
11928 # list of exported symbols of that shared object, eventually
11929 # decorated with the 'weak' keyword
11930 # *) the shared object with the F_LOADONLY flag set, to really avoid
11931 # it being seen by the linker.
11932 # At run time we better use the real file rather than another symlink,
11933 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11935 case $with_aix_soname,$aix_use_runtimelinking in
11936 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11937 # soname into executable. Probably we can add versioning support to
11938 # collect2, so additional links can be useful in future.
11939 aix,yes) # traditional libtool
11940 dynamic_linker='AIX unversionable lib.so'
11941 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11942 # instead of lib<name>.a to let people know that these are not
11943 # typical AIX shared libraries.
11944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11946 aix,no) # traditional AIX only
11947 dynamic_linker='AIX lib.a(lib.so.V)'
11948 # We preserve .a as extension for shared libraries through AIX4.2
11949 # and later when we are not doing run time linking.
11950 library_names_spec='$libname$release.a $libname.a'
11951 soname_spec='$libname$release$shared_ext$major'
11953 svr4,*) # full svr4 only
11954 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11955 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11956 # We do not specify a path in Import Files, so LIBPATH fires.
11957 shlibpath_overrides_runpath=yes
11959 *,yes) # both, prefer svr4
11960 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11961 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11962 # unpreferred sharedlib libNAME.a needs extra handling
11963 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"'
11964 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"'
11965 # We do not specify a path in Import Files, so LIBPATH fires.
11966 shlibpath_overrides_runpath=yes
11968 *,no) # both, prefer aix
11969 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11970 library_names_spec='$libname$release.a $libname.a'
11971 soname_spec='$libname$release$shared_ext$major'
11972 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11973 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)'
11974 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"'
11977 shlibpath_var=LIBPATH
11984 # Since July 2007 AmigaOS4 officially supports .so libraries.
11985 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11989 library_names_spec='$libname.ixlibrary $libname.a'
11990 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11991 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'
11997 library_names_spec='$libname$shared_ext'
11998 dynamic_linker="$host_os ld.so"
11999 shlibpath_var=LIBRARY_PATH
12003 version_type=linux # correct to gnu/linux during the next big refactor
12005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12006 soname_spec='$libname$release$shared_ext$major'
12007 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12008 shlibpath_var=LD_LIBRARY_PATH
12009 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12010 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12011 # the default ld.so.conf also contains /usr/contrib/lib and
12012 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12013 # libtool to hard-code these into programs
12016 cygwin* | mingw* | pw32* | cegcc*)
12017 version_type=windows
12022 case $GCC,$cc_basename in
12025 library_names_spec='$libname.dll.a'
12026 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12027 postinstall_cmds='base_file=`basename \$file`~
12028 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12029 dldir=$destdir/`dirname \$dlpath`~
12030 test -d \$dldir || mkdir -p \$dldir~
12031 $install_prog $dir/$dlname \$dldir/$dlname~
12032 chmod a+x \$dldir/$dlname~
12033 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12034 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12037 dlpath=$dir/\$dldll~
12039 shlibpath_overrides_runpath=yes
12043 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12044 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12046 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12049 # MinGW DLLs use traditional 'lib' prefix
12050 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12053 # pw32 DLLs use 'pw' prefix rather than 'lib'
12054 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12057 dynamic_linker='Win32 ld.exe'
12061 # Native MSVC or ICC
12062 libname_spec='$name'
12063 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12064 library_names_spec='$libname.dll.lib'
12068 sys_lib_search_path_spec=
12071 for lt_path in $LIB
12074 # Let DOS variable expansion print the short 8.3 style file name.
12075 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12076 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12079 # Convert to MSYS style.
12080 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12083 # Convert to unix form, then to dos form, then back to unix form
12084 # but this time dos style (no spaces!) so that the unix form looks
12085 # like /cygdrive/c/PROGRA~1:/cygdr...
12086 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12087 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12088 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12091 sys_lib_search_path_spec=$LIB
12092 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12093 # It is most probably a Windows format PATH.
12094 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12096 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12098 # FIXME: find the short name or the path components, as spaces are
12099 # common. (e.g. "Program Files" -> "PROGRA~1")
12103 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12104 postinstall_cmds='base_file=`basename \$file`~
12105 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12106 dldir=$destdir/`dirname \$dlpath`~
12107 test -d \$dldir || mkdir -p \$dldir~
12108 $install_prog $dir/$dlname \$dldir/$dlname'
12109 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12110 dlpath=$dir/\$dldll~
12112 shlibpath_overrides_runpath=yes
12113 dynamic_linker='Win32 link.exe'
12117 # Assume MSVC and ICC wrapper
12118 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12119 dynamic_linker='Win32 ld.exe'
12122 # FIXME: first we should search . and the directory the executable is in
12126 darwin* | rhapsody*)
12127 dynamic_linker="$host_os dyld"
12128 version_type=darwin
12131 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12132 soname_spec='$libname$release$major$shared_ext'
12133 shlibpath_overrides_runpath=yes
12134 shlibpath_var=DYLD_LIBRARY_PATH
12135 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12137 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12138 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12142 version_type=linux # correct to gnu/linux during the next big refactor
12145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12146 soname_spec='$libname$release$shared_ext$major'
12147 shlibpath_var=LD_LIBRARY_PATH
12150 freebsd* | dragonfly*)
12151 # DragonFly does not have aout. When/if they implement a new
12152 # versioning mechanism, adjust this.
12153 if test -x /usr/bin/objformat; then
12154 objformat=`/usr/bin/objformat`
12157 freebsd[23].*) objformat=aout ;;
12158 *) objformat=elf ;;
12161 version_type=freebsd-$objformat
12162 case $version_type in
12164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12165 soname_spec='$libname$release$shared_ext$major'
12170 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12174 shlibpath_var=LD_LIBRARY_PATH
12177 shlibpath_overrides_runpath=yes
12179 freebsd3.[01]* | freebsdelf3.[01]*)
12180 shlibpath_overrides_runpath=yes
12181 hardcode_into_libs=yes
12183 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12184 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12185 shlibpath_overrides_runpath=no
12186 hardcode_into_libs=yes
12188 *) # from 4.6 on, and DragonFly
12189 shlibpath_overrides_runpath=yes
12190 hardcode_into_libs=yes
12196 version_type=linux # correct to gnu/linux during the next big refactor
12199 dynamic_linker="$host_os runtime_loader"
12200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12201 soname_spec='$libname$release$shared_ext$major'
12202 shlibpath_var=LIBRARY_PATH
12203 shlibpath_overrides_runpath=no
12204 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12205 hardcode_into_libs=yes
12208 hpux9* | hpux10* | hpux11*)
12209 # Give a soname corresponding to the major version so that dld.sl refuses to
12210 # link against other versions.
12217 hardcode_into_libs=yes
12218 dynamic_linker="$host_os dld.so"
12219 shlibpath_var=LD_LIBRARY_PATH
12220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12222 soname_spec='$libname$release$shared_ext$major'
12223 if test 32 = "$HPUX_IA64_MODE"; then
12224 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12225 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12227 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12228 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12233 hardcode_into_libs=yes
12234 dynamic_linker="$host_os dld.sl"
12235 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12236 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12238 soname_spec='$libname$release$shared_ext$major'
12239 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12244 dynamic_linker="$host_os dld.sl"
12245 shlibpath_var=SHLIB_PATH
12246 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12248 soname_spec='$libname$release$shared_ext$major'
12251 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12252 postinstall_cmds='chmod 555 $lib'
12253 # or fails outright, so override atomically:
12254 install_override_mode=555
12258 version_type=linux # correct to gnu/linux during the next big refactor
12261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12262 soname_spec='$libname$release$shared_ext$major'
12263 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12264 shlibpath_var=LD_LIBRARY_PATH
12265 shlibpath_overrides_runpath=no
12266 hardcode_into_libs=yes
12269 irix5* | irix6* | nonstopux*)
12271 nonstopux*) version_type=nonstopux ;;
12273 if test yes = "$lt_cv_prog_gnu_ld"; then
12274 version_type=linux # correct to gnu/linux during the next big refactor
12281 soname_spec='$libname$release$shared_ext$major'
12282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12284 irix5* | nonstopux*)
12285 libsuff= shlibsuff=
12288 case $LD in # libtool.m4 will add one of these switches to LD
12289 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12290 libsuff= shlibsuff= libmagic=32-bit;;
12291 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12292 libsuff=32 shlibsuff=N32 libmagic=N32;;
12293 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12294 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12295 *) libsuff= shlibsuff= libmagic=never-match;;
12299 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12300 shlibpath_overrides_runpath=no
12301 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12302 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12303 hardcode_into_libs=yes
12306 # No shared lib support for Linux oldld, aout, or coff.
12307 linux*oldld* | linux*aout* | linux*coff*)
12312 version_type=none # Android doesn't support versioned libraries.
12315 library_names_spec='$libname$release$shared_ext'
12316 soname_spec='$libname$release$shared_ext'
12318 shlibpath_var=LD_LIBRARY_PATH
12319 shlibpath_overrides_runpath=yes
12321 # This implies no fast_install, which is unacceptable.
12322 # Some rework will be needed to allow for fast_install
12323 # before this can be enabled.
12324 hardcode_into_libs=yes
12326 dynamic_linker='Android linker'
12327 # Don't embed -rpath directories since the linker doesn't support them.
12328 hardcode_libdir_flag_spec='-L$libdir'
12331 # This must be glibc/ELF.
12332 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12333 version_type=linux # correct to gnu/linux during the next big refactor
12336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12337 soname_spec='$libname$release$shared_ext$major'
12338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12339 shlibpath_var=LD_LIBRARY_PATH
12340 shlibpath_overrides_runpath=no
12342 # Some binutils ld are patched to set DT_RUNPATH
12343 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12344 $as_echo_n "(cached) " >&6
12346 lt_cv_shlibpath_overrides_runpath=no
12347 save_LDFLAGS=$LDFLAGS
12348 save_libdir=$libdir
12349 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12350 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h. */
12362 if ac_fn_c_try_link "$LINENO"; then :
12363 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12364 lt_cv_shlibpath_overrides_runpath=yes
12367 rm -f core conftest.err conftest.$ac_objext \
12368 conftest$ac_exeext conftest.$ac_ext
12369 LDFLAGS=$save_LDFLAGS
12370 libdir=$save_libdir
12374 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12376 # This implies no fast_install, which is unacceptable.
12377 # Some rework will be needed to allow for fast_install
12378 # before this can be enabled.
12379 hardcode_into_libs=yes
12381 # Ideally, we could use ldconfig to report *all* directores which are
12382 # searched for libraries, however this is still not possible. Aside from not
12383 # being certain /sbin/ldconfig is available, command
12384 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12385 # even though it is searched at run-time. Try to do the best guess by
12386 # appending ld.so.conf contents (and includes) to the search path.
12387 if test -f /etc/ld.so.conf; then
12388 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' ' '`
12389 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12392 # We used to test for /lib/ld.so.1 and disable shared libraries on
12393 # powerpc, because MkLinux only supported shared libraries with the
12394 # GNU dynamic linker. Since this was broken with cross compilers,
12395 # most powerpc-linux boxes support dynamic linking these days and
12396 # people can always --disable-shared, the test was removed, and we
12397 # assume the GNU/Linux dynamic linker is in use.
12398 dynamic_linker='GNU/Linux ld.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 -z "$STRIP"; then
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13300 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13301 old_striplib="$STRIP --strip-debug"
13302 striplib="$STRIP --strip-unneeded"
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13304 $as_echo "yes" >&6; }
13308 # FIXME - insert some real tests, host_os isn't really good enough
13309 striplib="$STRIP -x"
13310 old_striplib="$STRIP -S"
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13312 $as_echo "yes" >&6; }
13315 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13316 old_striplib="$STRIP --strip-debug"
13317 striplib="$STRIP --strip-unneeded"
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13319 $as_echo "yes" >&6; }
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322 $as_echo "no" >&6; }
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13344 # Report what library types will actually be built
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13346 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13348 $as_echo "$can_build_shared" >&6; }
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13351 $as_echo_n "checking whether to build shared libraries... " >&6; }
13352 test no = "$can_build_shared" && enable_shared=no
13354 # On AIX, shared libraries and static libraries use the same namespace, and
13355 # are all built from PIC.
13358 test yes = "$enable_shared" && enable_static=no
13359 if test -n "$RANLIB"; then
13360 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13361 postinstall_cmds='$RANLIB $lib'
13366 if test ia64 != "$host_cpu"; then
13367 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13368 yes,aix,yes) ;; # shared object as lib.so file only
13369 yes,svr4,*) ;; # shared object as lib.so archive member only
13370 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13376 $as_echo "$enable_shared" >&6; }
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13379 $as_echo_n "checking whether to build static libraries... " >&6; }
13380 # Make sure either enable_shared or enable_static is yes.
13381 test yes = "$enable_shared" || enable_static=yes
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13383 $as_echo "$enable_static" >&6; }
13390 ac_cpp='$CPP $CPPFLAGS'
13391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13411 ac_config_commands="$ac_config_commands libtool"
13416 # Only expand once:
13420 # Check for programs
13422 ac_cpp='$CPP $CPPFLAGS'
13423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13426 if test -n "$ac_tool_prefix"; then
13427 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13428 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13430 $as_echo_n "checking for $ac_word... " >&6; }
13431 if ${ac_cv_prog_CC+:} false; then :
13432 $as_echo_n "(cached) " >&6
13434 if test -n "$CC"; then
13435 ac_cv_prog_CC="$CC" # Let the user override the test.
13437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438 for as_dir in $PATH
13441 test -z "$as_dir" && as_dir=.
13442 for ac_exec_ext in '' $ac_executable_extensions; do
13443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13444 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13455 if test -n "$CC"; then
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13457 $as_echo "$CC" >&6; }
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460 $as_echo "no" >&6; }
13465 if test -z "$ac_cv_prog_CC"; then
13467 # Extract the first word of "gcc", so it can be a program name with args.
13468 set dummy gcc; ac_word=$2
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13470 $as_echo_n "checking for $ac_word... " >&6; }
13471 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13472 $as_echo_n "(cached) " >&6
13474 if test -n "$ac_ct_CC"; then
13475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in $PATH
13481 test -z "$as_dir" && as_dir=.
13482 for ac_exec_ext in '' $ac_executable_extensions; do
13483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13484 ac_cv_prog_ac_ct_CC="gcc"
13485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13495 if test -n "$ac_ct_CC"; then
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13497 $as_echo "$ac_ct_CC" >&6; }
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500 $as_echo "no" >&6; }
13503 if test "x$ac_ct_CC" = x; then
13506 case $cross_compiling:$ac_tool_warned in
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13510 ac_tool_warned=yes ;;
13515 CC="$ac_cv_prog_CC"
13518 if test -z "$CC"; then
13519 if test -n "$ac_tool_prefix"; then
13520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13521 set dummy ${ac_tool_prefix}cc; ac_word=$2
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13523 $as_echo_n "checking for $ac_word... " >&6; }
13524 if ${ac_cv_prog_CC+:} false; then :
13525 $as_echo_n "(cached) " >&6
13527 if test -n "$CC"; then
13528 ac_cv_prog_CC="$CC" # Let the user override the test.
13530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531 for as_dir in $PATH
13534 test -z "$as_dir" && as_dir=.
13535 for ac_exec_ext in '' $ac_executable_extensions; do
13536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13537 ac_cv_prog_CC="${ac_tool_prefix}cc"
13538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13548 if test -n "$CC"; then
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13550 $as_echo "$CC" >&6; }
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553 $as_echo "no" >&6; }
13559 if test -z "$CC"; then
13560 # Extract the first word of "cc", so it can be a program name with args.
13561 set dummy cc; ac_word=$2
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563 $as_echo_n "checking for $ac_word... " >&6; }
13564 if ${ac_cv_prog_CC+:} false; then :
13565 $as_echo_n "(cached) " >&6
13567 if test -n "$CC"; then
13568 ac_cv_prog_CC="$CC" # Let the user override the test.
13570 ac_prog_rejected=no
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13575 test -z "$as_dir" && as_dir=.
13576 for ac_exec_ext in '' $ac_executable_extensions; do
13577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13579 ac_prog_rejected=yes
13583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13590 if test $ac_prog_rejected = yes; then
13591 # We found a bogon in the path, so make sure we never use it.
13592 set dummy $ac_cv_prog_CC
13594 if test $# != 0; then
13595 # We chose a different compiler from the bogus one.
13596 # However, it has the same basename, so the bogon will be chosen
13597 # first if we set CC to just the basename; use the full file name.
13599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13605 if test -n "$CC"; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13607 $as_echo "$CC" >&6; }
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610 $as_echo "no" >&6; }
13615 if test -z "$CC"; then
13616 if test -n "$ac_tool_prefix"; then
13617 for ac_prog in cl.exe
13619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13622 $as_echo_n "checking for $ac_word... " >&6; }
13623 if ${ac_cv_prog_CC+:} false; then :
13624 $as_echo_n "(cached) " >&6
13626 if test -n "$CC"; then
13627 ac_cv_prog_CC="$CC" # Let the user override the test.
13629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630 for as_dir in $PATH
13633 test -z "$as_dir" && as_dir=.
13634 for ac_exec_ext in '' $ac_executable_extensions; do
13635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13647 if test -n "$CC"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13649 $as_echo "$CC" >&6; }
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13656 test -n "$CC" && break
13659 if test -z "$CC"; then
13661 for ac_prog in cl.exe
13663 # Extract the first word of "$ac_prog", so it can be a program name with args.
13664 set dummy $ac_prog; ac_word=$2
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13666 $as_echo_n "checking for $ac_word... " >&6; }
13667 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13668 $as_echo_n "(cached) " >&6
13670 if test -n "$ac_ct_CC"; then
13671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674 for as_dir in $PATH
13677 test -z "$as_dir" && as_dir=.
13678 for ac_exec_ext in '' $ac_executable_extensions; do
13679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13680 ac_cv_prog_ac_ct_CC="$ac_prog"
13681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13691 if test -n "$ac_ct_CC"; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13693 $as_echo "$ac_ct_CC" >&6; }
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696 $as_echo "no" >&6; }
13700 test -n "$ac_ct_CC" && break
13703 if test "x$ac_ct_CC" = x; then
13706 case $cross_compiling:$ac_tool_warned in
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13710 ac_tool_warned=yes ;;
13719 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13721 as_fn_error $? "no acceptable C compiler found in \$PATH
13722 See \`config.log' for more details" "$LINENO" 5; }
13724 # Provide some information about the compiler.
13725 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13728 for ac_option in --version -v -V -qversion; do
13729 { { ac_try="$ac_compiler $ac_option >&5"
13730 case "(($ac_try" in
13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732 *) ac_try_echo=$ac_try;;
13734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13735 $as_echo "$ac_try_echo"; } >&5
13736 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13738 if test -s conftest.err; then
13740 ... rest of stderr output deleted ...
13741 10q' conftest.err >conftest.er1
13742 cat conftest.er1 >&5
13744 rm -f conftest.er1 conftest.err
13745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13746 test $ac_status = 0; }
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13750 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13751 if ${ac_cv_c_compiler_gnu+:} false; then :
13752 $as_echo_n "(cached) " >&6
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13768 if ac_fn_c_try_compile "$LINENO"; then :
13769 ac_compiler_gnu=yes
13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13778 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13779 if test $ac_compiler_gnu = yes; then
13784 ac_test_CFLAGS=${CFLAGS+set}
13785 ac_save_CFLAGS=$CFLAGS
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13787 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13788 if ${ac_cv_prog_cc_g+:} false; then :
13789 $as_echo_n "(cached) " >&6
13791 ac_save_c_werror_flag=$ac_c_werror_flag
13792 ac_c_werror_flag=yes
13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h. */
13806 if ac_fn_c_try_compile "$LINENO"; then :
13807 ac_cv_prog_cc_g=yes
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13821 if ac_fn_c_try_compile "$LINENO"; then :
13824 ac_c_werror_flag=$ac_save_c_werror_flag
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13837 if ac_fn_c_try_compile "$LINENO"; then :
13838 ac_cv_prog_cc_g=yes
13840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845 ac_c_werror_flag=$ac_save_c_werror_flag
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13848 $as_echo "$ac_cv_prog_cc_g" >&6; }
13849 if test "$ac_test_CFLAGS" = set; then
13850 CFLAGS=$ac_save_CFLAGS
13851 elif test $ac_cv_prog_cc_g = yes; then
13852 if test "$GCC" = yes; then
13858 if test "$GCC" = yes; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13865 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13866 if ${ac_cv_prog_cc_c89+:} false; then :
13867 $as_echo_n "(cached) " >&6
13869 ac_cv_prog_cc_c89=no
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13873 #include <stdarg.h>
13876 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13877 struct buf { int x; };
13878 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13879 static char *e (p, i)
13885 static char *f (char * (*g) (char **, int), char **p, ...)
13890 s = g (p, va_arg (v,int));
13895 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13896 function prototypes and stuff, but not '\xHH' hex character constants.
13897 These don't provoke an error unfortunately, instead are silently treated
13898 as 'x'. The following induces an error, until -std is added to get
13899 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13900 array size at least. It's necessary to write '\x00'==0 to get something
13901 that's true only with -std. */
13902 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13904 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13905 inside strings and character constants. */
13907 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13909 int test (int i, double x);
13910 struct s1 {int (*f) (int a);};
13911 struct s2 {int (*f) (double a);};
13912 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13918 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13923 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13924 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13926 CC="$ac_save_CC $ac_arg"
13927 if ac_fn_c_try_compile "$LINENO"; then :
13928 ac_cv_prog_cc_c89=$ac_arg
13930 rm -f core conftest.err conftest.$ac_objext
13931 test "x$ac_cv_prog_cc_c89" != "xno" && break
13933 rm -f conftest.$ac_ext
13938 case "x$ac_cv_prog_cc_c89" in
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13941 $as_echo "none needed" >&6; } ;;
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13944 $as_echo "unsupported" >&6; } ;;
13946 CC="$CC $ac_cv_prog_cc_c89"
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13948 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13950 if test "x$ac_cv_prog_cc_c89" != xno; then :
13955 ac_cpp='$CPP $CPPFLAGS'
13956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13961 ac_cpp='$CPP $CPPFLAGS'
13962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13966 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13967 if ${am_cv_prog_cc_c_o+:} false; then :
13968 $as_echo_n "(cached) " >&6
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13981 # Make sure it works both with $CC and with simple cc.
13982 # Following AC_PROG_CC_C_O, we do the test twice because some
13983 # compilers refuse to overwrite an existing .o file with -o,
13984 # though they will create one.
13985 am_cv_prog_cc_c_o=yes
13986 for am_i in 1 2; do
13987 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13988 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } \
13992 && test -f conftest2.$ac_objext; then
13995 am_cv_prog_cc_c_o=no
13999 rm -f core conftest*
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14003 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14004 if test "$am_cv_prog_cc_c_o" != yes; then
14005 # Losing compiler, so override with the script.
14006 # FIXME: It is wrong to rewrite CC.
14007 # But if we don't then we get into trouble of one sort or another.
14008 # A longer-term fix would be to have automake use am__CC in this case,
14009 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14010 CC="$am_aux_dir/compile $CC"
14013 ac_cpp='$CPP $CPPFLAGS'
14014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14019 depcc="$CC" am_compiler_list=
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14022 $as_echo_n "checking dependency style of $depcc... " >&6; }
14023 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14024 $as_echo_n "(cached) " >&6
14026 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14027 # We make a subdir and do the tests there. Otherwise we can end up
14028 # making bogus files that we don't know about and never remove. For
14029 # instance it was reported that on HP-UX the gcc test will end up
14030 # making a dummy file named 'D' -- because '-MD' means "put the output
14032 rm -rf conftest.dir
14034 # Copy depcomp to subdir because otherwise we won't find it if we're
14035 # using a relative directory.
14036 cp "$am_depcomp" conftest.dir
14038 # We will build objects and dependencies in a subdirectory because
14039 # it helps to detect inapplicable dependency modes. For instance
14040 # both Tru64's cc and ICC support -MD to output dependencies as a
14041 # side effect of compilation, but ICC will put the dependencies in
14042 # the current directory while Tru64 will put them in the object
14046 am_cv_CC_dependencies_compiler_type=none
14047 if test "$am_compiler_list" = ""; then
14048 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14050 am__universal=false
14051 case " $depcc " in #(
14052 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14055 for depmode in $am_compiler_list; do
14056 # Setup a source with many dependencies, because some compilers
14057 # like to wrap large dependency lists on column 80 (with \), and
14058 # we should not choose a depcomp mode which is confused by this.
14060 # We need to recreate these files for each test, as the compiler may
14061 # overwrite some of them when testing with obscure command lines.
14062 # This happens at least with the AIX C compiler.
14064 for i in 1 2 3 4 5 6; do
14065 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14066 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14067 # Solaris 10 /bin/sh.
14068 echo '/* dummy */' > sub/conftst$i.h
14070 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14072 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14073 # mode. It turns out that the SunPro C++ compiler does not properly
14074 # handle '-M -o', and we need to detect this. Also, some Intel
14075 # versions had trouble with output in subdirs.
14076 am__obj=sub/conftest.${OBJEXT-o}
14077 am__minus_obj="-o $am__obj"
14080 # This depmode causes a compiler race in universal mode.
14081 test "$am__universal" = false || continue
14084 # After this tag, mechanisms are not by side-effect, so they'll
14085 # only be used when explicitly requested.
14086 if test "x$enable_dependency_tracking" = xyes; then
14092 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14093 # This compiler won't grok '-c -o', but also, the minuso test has
14094 # not run yet. These depmodes are late enough in the game, and
14095 # so weak that their functioning should not be impacted.
14096 am__obj=conftest.${OBJEXT-o}
14101 if depmode=$depmode \
14102 source=sub/conftest.c object=$am__obj \
14103 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14104 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14105 >/dev/null 2>conftest.err &&
14106 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14107 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14108 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14109 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14110 # icc doesn't choke on unknown options, it will just issue warnings
14111 # or remarks (even with -Werror). So we grep stderr for any message
14112 # that says an option was ignored or not supported.
14113 # When given -MP, icc 7.0 and 7.1 complain thusly:
14114 # icc: Command line warning: ignoring option '-M'; no argument required
14115 # The diagnosis changed in icc 8.0:
14116 # icc: Command line remark: option '-MP' not supported
14117 if (grep 'ignoring option' conftest.err ||
14118 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14119 am_cv_CC_dependencies_compiler_type=$depmode
14126 rm -rf conftest.dir
14128 am_cv_CC_dependencies_compiler_type=none
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14133 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14134 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14137 test "x$enable_dependency_tracking" != xno \
14138 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14139 am__fastdepCC_TRUE=
14140 am__fastdepCC_FALSE='#'
14142 am__fastdepCC_TRUE='#'
14143 am__fastdepCC_FALSE=
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14148 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14149 if ${ac_cv_prog_cc_c99+:} false; then :
14150 $as_echo_n "(cached) " >&6
14152 ac_cv_prog_cc_c99=no
14154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155 /* end confdefs.h. */
14156 #include <stdarg.h>
14157 #include <stdbool.h>
14158 #include <stdlib.h>
14162 // Check varargs macros. These examples are taken from C99 6.10.3.5.
14163 #define debug(...) fprintf (stderr, __VA_ARGS__)
14164 #define showlist(...) puts (#__VA_ARGS__)
14165 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14167 test_varargs_macros (void)
14172 debug ("X = %d\n", x);
14173 showlist (The first, second, and third items.);
14174 report (x>y, "x is %d but y is %d", x, y);
14177 // Check long long types.
14178 #define BIG64 18446744073709551615ull
14179 #define BIG32 4294967295ul
14180 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14182 your preprocessor is broken;
14186 your preprocessor is broken;
14188 static long long int bignum = -9223372036854775807LL;
14189 static unsigned long long int ubignum = BIG64;
14191 struct incomplete_array
14197 struct named_init {
14199 const wchar_t *name;
14203 typedef const char *ccp;
14206 test_restrict (ccp restrict text)
14208 // See if C++-style comments work.
14209 // Iterate through items via the restricted pointer.
14210 // Also check for declarations in for loops.
14211 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14216 // Check varargs and va_copy.
14218 test_varargs (const char *format, ...)
14221 va_start (args, format);
14223 va_copy (args_copy, args);
14233 case 's': // string
14234 str = va_arg (args_copy, const char *);
14237 number = va_arg (args_copy, int);
14240 fnumber = va_arg (args_copy, double);
14246 va_end (args_copy);
14255 _Bool success = false;
14258 if (test_restrict ("String literal") == 0)
14260 char *restrict newvar = "Another string";
14263 test_varargs ("s, d' f .", "string", 65, 34.234);
14264 test_varargs_macros ();
14266 // Check flexible array members.
14267 struct incomplete_array *ia =
14268 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14270 for (int i = 0; i < ia->datasize; ++i)
14271 ia->data[i] = i * 1.234;
14273 // Check named initializers.
14274 struct named_init ni = {
14276 .name = L"Test wide string",
14277 .average = 543.34343,
14282 int dynamic_array[ni.number];
14283 dynamic_array[ni.number - 1] = 543;
14285 // work around unused variable warnings
14286 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14287 || dynamic_array[ni.number - 1] != 543);
14293 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14295 CC="$ac_save_CC $ac_arg"
14296 if ac_fn_c_try_compile "$LINENO"; then :
14297 ac_cv_prog_cc_c99=$ac_arg
14299 rm -f core conftest.err conftest.$ac_objext
14300 test "x$ac_cv_prog_cc_c99" != "xno" && break
14302 rm -f conftest.$ac_ext
14307 case "x$ac_cv_prog_cc_c99" in
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14310 $as_echo "none needed" >&6; } ;;
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14313 $as_echo "unsupported" >&6; } ;;
14315 CC="$CC $ac_cv_prog_cc_c99"
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14317 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14319 if test "x$ac_cv_prog_cc_c99" != xno; then :
14326 ac_cpp='$CXXCPP $CPPFLAGS'
14327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14330 if test -z "$CXX"; then
14331 if test -n "$CCC"; then
14334 if test -n "$ac_tool_prefix"; then
14335 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14340 $as_echo_n "checking for $ac_word... " >&6; }
14341 if ${ac_cv_prog_CXX+:} false; then :
14342 $as_echo_n "(cached) " >&6
14344 if test -n "$CXX"; then
14345 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14348 for as_dir in $PATH
14351 test -z "$as_dir" && as_dir=.
14352 for ac_exec_ext in '' $ac_executable_extensions; do
14353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14354 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14364 CXX=$ac_cv_prog_CXX
14365 if test -n "$CXX"; then
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14367 $as_echo "$CXX" >&6; }
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370 $as_echo "no" >&6; }
14374 test -n "$CXX" && break
14377 if test -z "$CXX"; then
14379 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14381 # Extract the first word of "$ac_prog", so it can be a program name with args.
14382 set dummy $ac_prog; ac_word=$2
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14384 $as_echo_n "checking for $ac_word... " >&6; }
14385 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14386 $as_echo_n "(cached) " >&6
14388 if test -n "$ac_ct_CXX"; then
14389 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $PATH
14395 test -z "$as_dir" && as_dir=.
14396 for ac_exec_ext in '' $ac_executable_extensions; do
14397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14398 ac_cv_prog_ac_ct_CXX="$ac_prog"
14399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14408 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14409 if test -n "$ac_ct_CXX"; then
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14411 $as_echo "$ac_ct_CXX" >&6; }
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14414 $as_echo "no" >&6; }
14418 test -n "$ac_ct_CXX" && break
14421 if test "x$ac_ct_CXX" = x; then
14424 case $cross_compiling:$ac_tool_warned in
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14428 ac_tool_warned=yes ;;
14436 # Provide some information about the compiler.
14437 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14440 for ac_option in --version -v -V -qversion; do
14441 { { ac_try="$ac_compiler $ac_option >&5"
14442 case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14447 $as_echo "$ac_try_echo"; } >&5
14448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14450 if test -s conftest.err; then
14452 ... rest of stderr output deleted ...
14453 10q' conftest.err >conftest.er1
14454 cat conftest.er1 >&5
14456 rm -f conftest.er1 conftest.err
14457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14458 test $ac_status = 0; }
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14462 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14463 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14464 $as_echo_n "(cached) " >&6
14466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14467 /* end confdefs.h. */
14480 if ac_fn_cxx_try_compile "$LINENO"; then :
14481 ac_compiler_gnu=yes
14485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14486 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14490 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14491 if test $ac_compiler_gnu = yes; then
14496 ac_test_CXXFLAGS=${CXXFLAGS+set}
14497 ac_save_CXXFLAGS=$CXXFLAGS
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14499 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14500 if ${ac_cv_prog_cxx_g+:} false; then :
14501 $as_echo_n "(cached) " >&6
14503 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14504 ac_cxx_werror_flag=yes
14505 ac_cv_prog_cxx_g=no
14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14518 if ac_fn_cxx_try_compile "$LINENO"; then :
14519 ac_cv_prog_cxx_g=yes
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14533 if ac_fn_cxx_try_compile "$LINENO"; then :
14536 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h. */
14549 if ac_fn_cxx_try_compile "$LINENO"; then :
14550 ac_cv_prog_cxx_g=yes
14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14560 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14561 if test "$ac_test_CXXFLAGS" = set; then
14562 CXXFLAGS=$ac_save_CXXFLAGS
14563 elif test $ac_cv_prog_cxx_g = yes; then
14564 if test "$GXX" = yes; then
14570 if test "$GXX" = yes; then
14577 ac_cpp='$CPP $CPPFLAGS'
14578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14582 depcc="$CXX" am_compiler_list=
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14585 $as_echo_n "checking dependency style of $depcc... " >&6; }
14586 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14587 $as_echo_n "(cached) " >&6
14589 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14590 # We make a subdir and do the tests there. Otherwise we can end up
14591 # making bogus files that we don't know about and never remove. For
14592 # instance it was reported that on HP-UX the gcc test will end up
14593 # making a dummy file named 'D' -- because '-MD' means "put the output
14595 rm -rf conftest.dir
14597 # Copy depcomp to subdir because otherwise we won't find it if we're
14598 # using a relative directory.
14599 cp "$am_depcomp" conftest.dir
14601 # We will build objects and dependencies in a subdirectory because
14602 # it helps to detect inapplicable dependency modes. For instance
14603 # both Tru64's cc and ICC support -MD to output dependencies as a
14604 # side effect of compilation, but ICC will put the dependencies in
14605 # the current directory while Tru64 will put them in the object
14609 am_cv_CXX_dependencies_compiler_type=none
14610 if test "$am_compiler_list" = ""; then
14611 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14613 am__universal=false
14614 case " $depcc " in #(
14615 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14618 for depmode in $am_compiler_list; do
14619 # Setup a source with many dependencies, because some compilers
14620 # like to wrap large dependency lists on column 80 (with \), and
14621 # we should not choose a depcomp mode which is confused by this.
14623 # We need to recreate these files for each test, as the compiler may
14624 # overwrite some of them when testing with obscure command lines.
14625 # This happens at least with the AIX C compiler.
14627 for i in 1 2 3 4 5 6; do
14628 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14629 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14630 # Solaris 10 /bin/sh.
14631 echo '/* dummy */' > sub/conftst$i.h
14633 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14635 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14636 # mode. It turns out that the SunPro C++ compiler does not properly
14637 # handle '-M -o', and we need to detect this. Also, some Intel
14638 # versions had trouble with output in subdirs.
14639 am__obj=sub/conftest.${OBJEXT-o}
14640 am__minus_obj="-o $am__obj"
14643 # This depmode causes a compiler race in universal mode.
14644 test "$am__universal" = false || continue
14647 # After this tag, mechanisms are not by side-effect, so they'll
14648 # only be used when explicitly requested.
14649 if test "x$enable_dependency_tracking" = xyes; then
14655 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14656 # This compiler won't grok '-c -o', but also, the minuso test has
14657 # not run yet. These depmodes are late enough in the game, and
14658 # so weak that their functioning should not be impacted.
14659 am__obj=conftest.${OBJEXT-o}
14664 if depmode=$depmode \
14665 source=sub/conftest.c object=$am__obj \
14666 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14667 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14668 >/dev/null 2>conftest.err &&
14669 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14670 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14671 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14672 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14673 # icc doesn't choke on unknown options, it will just issue warnings
14674 # or remarks (even with -Werror). So we grep stderr for any message
14675 # that says an option was ignored or not supported.
14676 # When given -MP, icc 7.0 and 7.1 complain thusly:
14677 # icc: Command line warning: ignoring option '-M'; no argument required
14678 # The diagnosis changed in icc 8.0:
14679 # icc: Command line remark: option '-MP' not supported
14680 if (grep 'ignoring option' conftest.err ||
14681 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14682 am_cv_CXX_dependencies_compiler_type=$depmode
14689 rm -rf conftest.dir
14691 am_cv_CXX_dependencies_compiler_type=none
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14696 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14697 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14700 test "x$enable_dependency_tracking" != xno \
14701 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14702 am__fastdepCXX_TRUE=
14703 am__fastdepCXX_FALSE='#'
14705 am__fastdepCXX_TRUE='#'
14706 am__fastdepCXX_FALSE=
14712 func_stripname_cnf ()
14715 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14716 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14718 } # func_stripname_cnf
14720 if test -n "$CXX" && ( test no != "$CXX" &&
14721 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14722 (test g++ != "$CXX"))); then
14724 ac_cpp='$CXXCPP $CPPFLAGS'
14725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14729 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14730 if test -z "$CXXCPP"; then
14731 if ${ac_cv_prog_CXXCPP+:} false; then :
14732 $as_echo_n "(cached) " >&6
14734 # Double quotes because CXXCPP needs to be expanded
14735 for CXXCPP in "$CXX -E" "/lib/cpp"
14737 ac_preproc_ok=false
14738 for ac_cxx_preproc_warn_flag in '' yes
14740 # Use a header file that comes with gcc, so configuring glibc
14741 # with a fresh cross-compiler works.
14742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14743 # <limits.h> exists even on freestanding compilers.
14744 # On the NeXT, cc -E runs the code through the compiler's parser,
14745 # not just through cpp. "Syntax error" is here to catch this case.
14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h. */
14749 # include <limits.h>
14751 # include <assert.h>
14755 if ac_fn_cxx_try_cpp "$LINENO"; then :
14758 # Broken: fails on valid input.
14761 rm -f conftest.err conftest.i conftest.$ac_ext
14763 # OK, works on sane cases. Now check whether nonexistent headers
14764 # can be detected and how.
14765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766 /* end confdefs.h. */
14767 #include <ac_nonexistent.h>
14769 if ac_fn_cxx_try_cpp "$LINENO"; then :
14770 # Broken: success on invalid input.
14773 # Passes both tests.
14777 rm -f conftest.err conftest.i conftest.$ac_ext
14780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14781 rm -f conftest.i conftest.err conftest.$ac_ext
14782 if $ac_preproc_ok; then :
14787 ac_cv_prog_CXXCPP=$CXXCPP
14790 CXXCPP=$ac_cv_prog_CXXCPP
14792 ac_cv_prog_CXXCPP=$CXXCPP
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14795 $as_echo "$CXXCPP" >&6; }
14796 ac_preproc_ok=false
14797 for ac_cxx_preproc_warn_flag in '' yes
14799 # Use a header file that comes with gcc, so configuring glibc
14800 # with a fresh cross-compiler works.
14801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14802 # <limits.h> exists even on freestanding compilers.
14803 # On the NeXT, cc -E runs the code through the compiler's parser,
14804 # not just through cpp. "Syntax error" is here to catch this case.
14805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14806 /* end confdefs.h. */
14808 # include <limits.h>
14810 # include <assert.h>
14814 if ac_fn_cxx_try_cpp "$LINENO"; then :
14817 # Broken: fails on valid input.
14820 rm -f conftest.err conftest.i conftest.$ac_ext
14822 # OK, works on sane cases. Now check whether nonexistent headers
14823 # can be detected and how.
14824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14825 /* end confdefs.h. */
14826 #include <ac_nonexistent.h>
14828 if ac_fn_cxx_try_cpp "$LINENO"; then :
14829 # Broken: success on invalid input.
14832 # Passes both tests.
14836 rm -f conftest.err conftest.i conftest.$ac_ext
14839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14840 rm -f conftest.i conftest.err conftest.$ac_ext
14841 if $ac_preproc_ok; then :
14844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14846 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14847 See \`config.log' for more details" "$LINENO" 5; }
14851 ac_cpp='$CPP $CPPFLAGS'
14852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14857 _lt_caught_CXX_error=yes
14861 ac_cpp='$CXXCPP $CPPFLAGS'
14862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14866 archive_cmds_need_lc_CXX=no
14867 allow_undefined_flag_CXX=
14868 always_export_symbols_CXX=no
14869 archive_expsym_cmds_CXX=
14870 compiler_needs_object_CXX=no
14871 export_dynamic_flag_spec_CXX=
14872 hardcode_direct_CXX=no
14873 hardcode_direct_absolute_CXX=no
14874 hardcode_libdir_flag_spec_CXX=
14875 hardcode_libdir_separator_CXX=
14876 hardcode_minus_L_CXX=no
14877 hardcode_shlibpath_var_CXX=unsupported
14878 hardcode_automatic_CXX=no
14879 inherit_rpath_CXX=no
14881 module_expsym_cmds_CXX=
14882 link_all_deplibs_CXX=unknown
14883 old_archive_cmds_CXX=$old_archive_cmds
14884 reload_flag_CXX=$reload_flag
14885 reload_cmds_CXX=$reload_cmds
14886 no_undefined_flag_CXX=
14887 whole_archive_flag_spec_CXX=
14888 enable_shared_with_static_runtimes_CXX=no
14890 # Source file extension for C++ test sources.
14893 # Object file extension for compiled C++ test sources.
14897 # No sense in running all these tests if we already determined that
14898 # the CXX compiler isn't working. Some variables (like enable_shared)
14899 # are currently assumed to apply to all compilers on this platform,
14900 # and will be corrupted by setting them based on a non-working compiler.
14901 if test yes != "$_lt_caught_CXX_error"; then
14902 # Code to be used in simple compile tests
14903 lt_simple_compile_test_code="int some_variable = 0;"
14905 # Code to be used in simple link tests
14906 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14908 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14915 # If no C compiler was specified, use CC.
14918 # If no C compiler flags were specified, use CFLAGS.
14919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14921 # Allow CC to be a program name with arguments.
14925 # save warnings/boilerplate of simple test code
14926 ac_outfile=conftest.$ac_objext
14927 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14928 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14929 _lt_compiler_boilerplate=`cat conftest.err`
14932 ac_outfile=conftest.$ac_objext
14933 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14934 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14935 _lt_linker_boilerplate=`cat conftest.err`
14939 # Allow CC to be a program name with arguments.
14941 lt_save_CFLAGS=$CFLAGS
14945 lt_save_with_gnu_ld=$with_gnu_ld
14946 lt_save_path_LD=$lt_cv_path_LD
14947 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14948 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14950 $as_unset lt_cv_prog_gnu_ld
14952 if test -n "${lt_cv_path_LDCXX+set}"; then
14953 lt_cv_path_LD=$lt_cv_path_LDCXX
14955 $as_unset lt_cv_path_LD
14957 test -z "${LDCXX+set}" || LD=$LDCXX
14962 func_cc_basename $compiler
14963 cc_basename=$func_cc_basename_result
14966 if test -n "$compiler"; then
14967 # We don't want -fno-exception when compiling C++ code, so set the
14968 # no_builtin_flag separately
14969 if test yes = "$GXX"; then
14970 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14972 lt_prog_compiler_no_builtin_flag_CXX=
14975 if test yes = "$GXX"; then
14976 # Set up default GNU C++ configuration
14980 # Check whether --with-gnu-ld was given.
14981 if test "${with_gnu_ld+set}" = set; then :
14982 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14988 if test yes = "$GCC"; then
14989 # Check if gcc -print-prog-name=ld gives a path.
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14991 $as_echo_n "checking for ld used by $CC... " >&6; }
14994 # gcc leaves a trailing carriage return, which upsets mingw
14995 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14997 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15000 # Accept absolute paths.
15002 re_direlt='/[^/][^/]*/\.\./'
15003 # Canonicalize the pathname of ld
15004 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15005 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15006 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15008 test -z "$LD" && LD=$ac_prog
15011 # If it fails, then pretend we aren't using GCC.
15015 # If it is relative, then search for the first ld in PATH.
15016 with_gnu_ld=unknown
15019 elif test yes = "$with_gnu_ld"; then
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15021 $as_echo_n "checking for GNU ld... " >&6; }
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15024 $as_echo_n "checking for non-GNU ld... " >&6; }
15026 if ${lt_cv_path_LD+:} false; then :
15027 $as_echo_n "(cached) " >&6
15029 if test -z "$LD"; then
15030 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15031 for ac_dir in $PATH; do
15033 test -z "$ac_dir" && ac_dir=.
15034 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15035 lt_cv_path_LD=$ac_dir/$ac_prog
15036 # Check to see if the program is GNU ld. I'd rather use --version,
15037 # but apparently some variants of GNU ld only accept -v.
15038 # Break only if it was the GNU/non-GNU ld that we prefer.
15039 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15040 *GNU* | *'with BFD'*)
15041 test no != "$with_gnu_ld" && break
15044 test yes != "$with_gnu_ld" && break
15051 lt_cv_path_LD=$LD # Let the user override the test with a path.
15056 if test -n "$LD"; then
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15058 $as_echo "$LD" >&6; }
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15061 $as_echo "no" >&6; }
15063 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15065 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15066 if ${lt_cv_prog_gnu_ld+:} false; then :
15067 $as_echo_n "(cached) " >&6
15069 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15070 case `$LD -v 2>&1 </dev/null` in
15071 *GNU* | *'with BFD'*)
15072 lt_cv_prog_gnu_ld=yes
15075 lt_cv_prog_gnu_ld=no
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15080 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15081 with_gnu_ld=$lt_cv_prog_gnu_ld
15089 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15090 # archiving commands below assume that GNU ld is being used.
15091 if test yes = "$with_gnu_ld"; then
15092 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15093 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15095 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15096 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15098 # If archive_cmds runs LD, not CC, wlarc should be empty
15099 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15100 # investigate it a little bit more. (MM)
15103 # ancient GNU ld didn't support --whole-archive et. al.
15104 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15105 $GREP 'no-whole-archive' > /dev/null; then
15106 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15108 whole_archive_flag_spec_CXX=
15114 # A generic and very simple default shared library creation
15115 # command for GNU C++ for the case where it uses the native
15116 # linker, instead of GNU ld. If possible, this setting should
15117 # overridden to take advantage of the native linker features on
15118 # the platform it is being used on.
15119 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15122 # Commands to make compiler produce verbose output that lists
15123 # what "hidden" libraries, object files and flags are used when
15124 # linking a shared library.
15125 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15133 # PORTME: fill in a description of your system's C++ link characteristics
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15135 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15139 # FIXME: insert proper C++ library support
15143 if test ia64 = "$host_cpu"; then
15144 # On IA64, the linker does run time linking by default, so we don't
15145 # have to do anything special.
15146 aix_use_runtimelinking=no
15147 exp_sym_flag='-Bexport'
15150 aix_use_runtimelinking=no
15152 # Test if we are trying to use run time linking or normal
15153 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15154 # have runtime linking enabled, and use it for executables.
15155 # For shared libraries, we enable/disable runtime linking
15156 # depending on the kind of the shared library created -
15157 # when "with_aix_soname,aix_use_runtimelinking" is:
15158 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15159 # "aix,yes" lib.so shared, rtl:yes, for executables
15160 # lib.a static archive
15161 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15162 # lib.a(lib.so.V) shared, rtl:no, for executables
15163 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15164 # lib.a(lib.so.V) shared, rtl:no
15165 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15166 # lib.a static archive
15167 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15168 for ld_flag in $LDFLAGS; do
15171 aix_use_runtimelinking=yes
15176 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15177 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15178 # so we don't have lib.a shared libs to link our executables.
15179 # We have to force runtime linking in this case.
15180 aix_use_runtimelinking=yes
15181 LDFLAGS="$LDFLAGS -Wl,-brtl"
15186 exp_sym_flag='-bexport'
15187 no_entry_flag='-bnoentry'
15190 # When large executables or shared objects are built, AIX ld can
15191 # have problems creating the table of contents. If linking a library
15192 # or program results in "error TOC overflow" add -mminimal-toc to
15193 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15194 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15196 archive_cmds_CXX=''
15197 hardcode_direct_CXX=yes
15198 hardcode_direct_absolute_CXX=yes
15199 hardcode_libdir_separator_CXX=':'
15200 link_all_deplibs_CXX=yes
15201 file_list_spec_CXX='$wl-f,'
15202 case $with_aix_soname,$aix_use_runtimelinking in
15203 aix,*) ;; # no import file
15204 svr4,* | *,yes) # use import file
15205 # The Import File defines what to hardcode.
15206 hardcode_direct_CXX=no
15207 hardcode_direct_absolute_CXX=no
15211 if test yes = "$GXX"; then
15212 case $host_os in aix4.[012]|aix4.[012].*)
15213 # We only want to do this on AIX 4.2 and lower, the check
15214 # below for broken collect2 doesn't work under 4.3+
15215 collect2name=`$CC -print-prog-name=collect2`
15216 if test -f "$collect2name" &&
15217 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15219 # We have reworked collect2
15222 # We have old collect2
15223 hardcode_direct_CXX=unsupported
15224 # It fails to find uninstalled libraries when the uninstalled
15225 # path is not listed in the libpath. Setting hardcode_minus_L
15226 # to unsupported forces relinking
15227 hardcode_minus_L_CXX=yes
15228 hardcode_libdir_flag_spec_CXX='-L$libdir'
15229 hardcode_libdir_separator_CXX=
15232 shared_flag='-shared'
15233 if test yes = "$aix_use_runtimelinking"; then
15234 shared_flag=$shared_flag' $wl-G'
15236 # Need to ensure runtime linking is disabled for the traditional
15237 # shared library, or the linker may eventually find shared libraries
15238 # /with/ Import File - we do not want to mix them.
15239 shared_flag_aix='-shared'
15240 shared_flag_svr4='-shared $wl-G'
15243 if test ia64 = "$host_cpu"; then
15244 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15245 # chokes on -Wl,-G. The following line is correct:
15248 if test yes = "$aix_use_runtimelinking"; then
15249 shared_flag='$wl-G'
15251 shared_flag='$wl-bM:SRE'
15253 shared_flag_aix='$wl-bM:SRE'
15254 shared_flag_svr4='$wl-G'
15258 export_dynamic_flag_spec_CXX='$wl-bexpall'
15259 # It seems that -bexpall does not export symbols beginning with
15260 # underscore (_), so it is better to generate a list of symbols to
15262 always_export_symbols_CXX=yes
15263 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15264 # Warning - without using the other runtime loading flags (-brtl),
15265 # -berok will link without error, but may produce a broken library.
15266 # The "-G" linker flag allows undefined symbols.
15267 no_undefined_flag_CXX='-bernotok'
15268 # Determine the default libpath from the value encoded in an empty
15270 if test set = "${lt_cv_aix_libpath+set}"; then
15271 aix_libpath=$lt_cv_aix_libpath
15273 if ${lt_cv_aix_libpath__CXX+:} false; then :
15274 $as_echo_n "(cached) " >&6
15276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277 /* end confdefs.h. */
15287 if ac_fn_cxx_try_link "$LINENO"; then :
15289 lt_aix_libpath_sed='
15290 /Import File Strings/,/^$/ {
15292 s/^0 *\([^ ]*\) *$/\1/
15296 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15297 # Check for a 64-bit object if we didn't find anything.
15298 if test -z "$lt_cv_aix_libpath__CXX"; then
15299 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15302 rm -f core conftest.err conftest.$ac_objext \
15303 conftest$ac_exeext conftest.$ac_ext
15304 if test -z "$lt_cv_aix_libpath__CXX"; then
15305 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15310 aix_libpath=$lt_cv_aix_libpath__CXX
15313 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15315 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15317 if test ia64 = "$host_cpu"; then
15318 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15319 allow_undefined_flag_CXX="-z nodefs"
15320 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
15322 # Determine the default libpath from the value encoded in an
15323 # empty executable.
15324 if test set = "${lt_cv_aix_libpath+set}"; then
15325 aix_libpath=$lt_cv_aix_libpath
15327 if ${lt_cv_aix_libpath__CXX+:} false; then :
15328 $as_echo_n "(cached) " >&6
15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15341 if ac_fn_cxx_try_link "$LINENO"; then :
15343 lt_aix_libpath_sed='
15344 /Import File Strings/,/^$/ {
15346 s/^0 *\([^ ]*\) *$/\1/
15350 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15351 # Check for a 64-bit object if we didn't find anything.
15352 if test -z "$lt_cv_aix_libpath__CXX"; then
15353 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15356 rm -f core conftest.err conftest.$ac_objext \
15357 conftest$ac_exeext conftest.$ac_ext
15358 if test -z "$lt_cv_aix_libpath__CXX"; then
15359 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15364 aix_libpath=$lt_cv_aix_libpath__CXX
15367 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15368 # Warning - without using the other run time loading flags,
15369 # -berok will link without error, but may produce a broken library.
15370 no_undefined_flag_CXX=' $wl-bernotok'
15371 allow_undefined_flag_CXX=' $wl-berok'
15372 if test yes = "$with_gnu_ld"; then
15373 # We only use this code for GNU lds that support --whole-archive.
15374 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15376 # Exported symbols can be pulled into shared objects from archives
15377 whole_archive_flag_spec_CXX='$convenience'
15379 archive_cmds_need_lc_CXX=yes
15380 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15381 # -brtl affects multiple linker settings, -berok does not and is overridden later
15382 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15383 if test svr4 != "$with_aix_soname"; then
15384 # This is similar to how AIX traditionally builds its shared
15385 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15386 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15388 if test aix != "$with_aix_soname"; then
15389 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15391 # used by -dlpreopen to get the symbols
15392 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15394 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15400 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15401 allow_undefined_flag_CXX=unsupported
15402 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15403 # support --undefined. This deserves some investigation. FIXME
15404 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15411 case $cc_basename in
15413 # FIXME: insert proper C++ library support
15419 cygwin* | mingw* | pw32* | cegcc*)
15420 case $GXX,$cc_basename in
15421 ,cl* | no,cl* | ,icl* | no,icl*)
15422 # Native MSVC or ICC
15423 # hardcode_libdir_flag_spec is actually meaningless, as there is
15424 # no search path for DLLs.
15425 hardcode_libdir_flag_spec_CXX=' '
15426 allow_undefined_flag_CXX=unsupported
15427 always_export_symbols_CXX=yes
15428 file_list_spec_CXX='@'
15429 # Tell ltmain to make .lib files, not .a files.
15431 # Tell ltmain to make .dll files, not .so files.
15433 # FIXME: Setting linknames here is a bad hack.
15434 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15435 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15436 cp "$export_symbols" "$output_objdir/$soname.def";
15437 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15439 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15441 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15443 # The linker will not automatically build a static lib if we build a DLL.
15444 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15445 enable_shared_with_static_runtimes_CXX=yes
15447 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15448 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15449 lt_tool_outputfile="@TOOL_OUTPUT@"~
15450 case $lt_outputfile in
15453 lt_outputfile=$lt_outputfile.exe
15454 lt_tool_outputfile=$lt_tool_outputfile.exe
15457 func_to_tool_file "$lt_outputfile"~
15458 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15459 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15460 $RM "$lt_outputfile.manifest";
15465 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15466 # as there is no search path for DLLs.
15467 hardcode_libdir_flag_spec_CXX='-L$libdir'
15468 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15469 allow_undefined_flag_CXX=unsupported
15470 always_export_symbols_CXX=no
15471 enable_shared_with_static_runtimes_CXX=yes
15473 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15474 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15475 # If the export-symbols file already is a .def file, use it as
15476 # is; otherwise, prepend EXPORTS...
15477 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15478 cp $export_symbols $output_objdir/$soname.def;
15480 echo EXPORTS > $output_objdir/$soname.def;
15481 cat $export_symbols >> $output_objdir/$soname.def;
15483 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15490 darwin* | rhapsody*)
15493 archive_cmds_need_lc_CXX=no
15494 hardcode_direct_CXX=no
15495 hardcode_automatic_CXX=yes
15496 hardcode_shlibpath_var_CXX=unsupported
15497 if test yes = "$lt_cv_ld_force_load"; then
15498 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15501 whole_archive_flag_spec_CXX=''
15503 link_all_deplibs_CXX=yes
15504 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15505 case $cc_basename in
15506 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15507 *) _lt_dar_can_shared=$GCC ;;
15509 if test yes = "$_lt_dar_can_shared"; then
15510 output_verbose_link_cmd=func_echo_all
15511 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15512 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15513 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
15514 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
15515 if test yes != "$lt_cv_apple_cc_single_mod"; then
15516 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
15517 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
15527 hardcode_libdir_flag_spec_CXX='-L$libdir'
15528 hardcode_minus_L_CXX=yes
15529 allow_undefined_flag_CXX=unsupported
15531 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15532 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15533 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15534 $ECHO EXPORTS >> $output_objdir/$libname.def~
15535 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15536 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15537 emximp -o $lib $output_objdir/$libname.def'
15538 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15539 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15540 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15541 $ECHO EXPORTS >> $output_objdir/$libname.def~
15542 prefix_cmds="$SED"~
15543 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15544 prefix_cmds="$prefix_cmds -e 1d";
15546 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15547 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15548 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15549 emximp -o $lib $output_objdir/$libname.def'
15550 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15551 enable_shared_with_static_runtimes_CXX=yes
15552 file_list_spec_CXX='@'
15556 case $cc_basename in
15558 # FIXME: insert proper C++ library support
15562 # Green Hills C++ Compiler
15563 # FIXME: insert proper C++ library support
15567 # FIXME: insert proper C++ library support
15574 # C++ shared libraries reported to be fairly broken before
15580 archive_cmds_need_lc_CXX=no
15583 freebsd* | dragonfly*)
15584 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15590 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15591 link_all_deplibs_CXX=yes
15595 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15596 hardcode_libdir_separator_CXX=:
15597 export_dynamic_flag_spec_CXX='$wl-E'
15598 hardcode_direct_CXX=yes
15599 hardcode_minus_L_CXX=yes # Not in the search PATH,
15600 # but as the default
15601 # location of the library.
15603 case $cc_basename in
15605 # FIXME: insert proper C++ library support
15609 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'
15610 # Commands to make compiler produce verbose output that lists
15611 # what "hidden" libraries, object files and flags are used when
15612 # linking a shared library.
15614 # There doesn't appear to be a way to prevent this compiler from
15615 # explicitly linking system object files so we need to strip them
15616 # from the output so that they don't get included in the library
15618 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"'
15621 if test yes = "$GXX"; then
15622 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'
15624 # FIXME: insert proper C++ library support
15632 if test no = "$with_gnu_ld"; then
15633 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15634 hardcode_libdir_separator_CXX=:
15640 export_dynamic_flag_spec_CXX='$wl-E'
15646 hardcode_direct_CXX=no
15647 hardcode_shlibpath_var_CXX=no
15650 hardcode_direct_CXX=yes
15651 hardcode_direct_absolute_CXX=yes
15652 hardcode_minus_L_CXX=yes # Not in the search PATH,
15653 # but as the default
15654 # location of the library.
15658 case $cc_basename in
15660 # FIXME: insert proper C++ library support
15666 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15669 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15672 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15675 # Commands to make compiler produce verbose output that lists
15676 # what "hidden" libraries, object files and flags are used when
15677 # linking a shared library.
15679 # There doesn't appear to be a way to prevent this compiler from
15680 # explicitly linking system object files so we need to strip them
15681 # from the output so that they don't get included in the library
15683 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"'
15686 if test yes = "$GXX"; then
15687 if test no = "$with_gnu_ld"; then
15690 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15693 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15696 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'
15701 # FIXME: insert proper C++ library support
15709 hardcode_direct_CXX=no
15710 hardcode_shlibpath_var_CXX=no
15711 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15712 export_dynamic_flag_spec_CXX='$wl-E'
15713 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15714 # Instead, shared libraries are loaded at an image base (0x10000000 by
15715 # default) and relocated if they conflict, which is a slow very memory
15716 # consuming and fragmenting process. To avoid this, we pick a random,
15717 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15718 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15719 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'
15720 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'
15723 case $cc_basename in
15726 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'
15728 # Archives containing C++ object files must be created using
15729 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15730 # necessary to make sure instantiated templates are included
15732 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15735 if test yes = "$GXX"; then
15736 if test no = "$with_gnu_ld"; then
15737 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'
15739 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'
15742 link_all_deplibs_CXX=yes
15745 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15746 hardcode_libdir_separator_CXX=:
15747 inherit_rpath_CXX=yes
15750 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15751 case $cc_basename in
15753 # Kuck and Associates, Inc. (KAI) C++ Compiler
15755 # KCC will only create a shared library if the output file
15756 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15757 # to its proper name (with version) after linking.
15758 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'
15759 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'
15760 # Commands to make compiler produce verbose output that lists
15761 # what "hidden" libraries, object files and flags are used when
15762 # linking a shared library.
15764 # There doesn't appear to be a way to prevent this compiler from
15765 # explicitly linking system object files so we need to strip them
15766 # from the output so that they don't get included in the library
15768 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"'
15770 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15771 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15773 # Archives containing C++ object files must be created using
15774 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15775 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15780 # version 8.0 and above of icpc choke on multiply defined symbols
15781 # if we add $predep_objects and $postdep_objects, however 7.1 and
15782 # earlier do not add the objects themselves.
15783 case `$CC -V 2>&1` in
15785 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15786 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'
15788 *) # Version 8.0 or newer
15791 ia64*) tmp_idyn=' -i_dynamic';;
15793 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15794 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'
15797 archive_cmds_need_lc_CXX=no
15798 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15799 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15800 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15803 # Portland Group C++ compiler
15805 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15806 prelink_cmds_CXX='tpldir=Template.dir~
15808 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15809 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15810 old_archive_cmds_CXX='tpldir=Template.dir~
15812 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15813 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15815 archive_cmds_CXX='tpldir=Template.dir~
15817 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15818 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15819 archive_expsym_cmds_CXX='tpldir=Template.dir~
15821 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15822 $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'
15824 *) # Version 6 and above use weak symbols
15825 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15826 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'
15830 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15831 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15832 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'
15836 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15837 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'
15839 runpath_var=LD_RUN_PATH
15840 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15841 hardcode_libdir_separator_CXX=:
15843 # Commands to make compiler produce verbose output that lists
15844 # what "hidden" libraries, object files and flags are used when
15845 # linking a shared library.
15847 # There doesn't appear to be a way to prevent this compiler from
15848 # explicitly linking system object files so we need to strip them
15849 # from the output so that they don't get included in the library
15851 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'
15853 xl* | mpixl* | bgxl*)
15854 # IBM XL 8.0 on PPC, with GNU ld
15855 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15856 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15857 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15858 if test yes = "$supports_anon_versioning"; then
15859 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15860 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15861 echo "local: *; };" >> $output_objdir/$libname.ver~
15862 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15866 case `$CC -V 2>&1 | sed 5q` in
15869 no_undefined_flag_CXX=' -zdefs'
15870 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15871 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'
15872 hardcode_libdir_flag_spec_CXX='-R$libdir'
15873 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'
15874 compiler_needs_object_CXX=yes
15876 # Not sure whether something based on
15877 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15879 output_verbose_link_cmd='func_echo_all'
15881 # Archives containing C++ object files must be created using
15882 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15883 # necessary to make sure instantiated templates are included
15885 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15893 # FIXME: insert proper C++ library support
15898 # FIXME: insert proper C++ library support
15903 case $cc_basename in
15905 # FIXME: insert proper C++ library support
15909 # FIXME: insert proper C++ library support
15916 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15917 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15919 hardcode_libdir_flag_spec_CXX='-R$libdir'
15920 hardcode_direct_CXX=yes
15921 hardcode_shlibpath_var_CXX=no
15923 # Workaround some broken pre-1.5 toolchains
15924 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15931 openbsd* | bitrig*)
15932 if test -f /usr/libexec/ld.so; then
15933 hardcode_direct_CXX=yes
15934 hardcode_shlibpath_var_CXX=no
15935 hardcode_direct_absolute_CXX=yes
15936 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15937 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15938 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15939 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15940 export_dynamic_flag_spec_CXX='$wl-E'
15941 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15943 output_verbose_link_cmd=func_echo_all
15949 osf3* | osf4* | osf5*)
15950 case $cc_basename in
15952 # Kuck and Associates, Inc. (KAI) C++ Compiler
15954 # KCC will only create a shared library if the output file
15955 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15956 # to its proper name (with version) after linking.
15957 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'
15959 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15960 hardcode_libdir_separator_CXX=:
15962 # Archives containing C++ object files must be created using
15963 # the KAI C++ compiler.
15965 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15966 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15970 # Rational C++ 2.4.1
15971 # FIXME: insert proper C++ library support
15977 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15978 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'
15979 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15982 allow_undefined_flag_CXX=' -expect_unresolved \*'
15983 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'
15984 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15985 echo "-hidden">> $lib.exp~
15986 $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~
15988 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15992 hardcode_libdir_separator_CXX=:
15994 # Commands to make compiler produce verbose output that lists
15995 # what "hidden" libraries, object files and flags are used when
15996 # linking a shared library.
15998 # There doesn't appear to be a way to prevent this compiler from
15999 # explicitly linking system object files so we need to strip them
16000 # from the output so that they don't get included in the library
16002 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"'
16005 if test yes,no = "$GXX,$with_gnu_ld"; then
16006 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16009 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'
16012 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'
16016 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16017 hardcode_libdir_separator_CXX=:
16019 # Commands to make compiler produce verbose output that lists
16020 # what "hidden" libraries, object files and flags are used when
16021 # linking a shared library.
16022 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16025 # FIXME: insert proper C++ library support
16033 # FIXME: insert proper C++ library support
16038 case $cc_basename in
16041 # FIXME: insert proper C++ library support
16046 # FIXME: insert proper C++ library support
16050 # FIXME: insert proper C++ library support
16057 case $cc_basename in
16059 # Sun C++ 4.2, 5.x and Centerline C++
16060 archive_cmds_need_lc_CXX=yes
16061 no_undefined_flag_CXX=' -zdefs'
16062 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16063 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16064 $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'
16066 hardcode_libdir_flag_spec_CXX='-R$libdir'
16067 hardcode_shlibpath_var_CXX=no
16069 solaris2.[0-5] | solaris2.[0-5].*) ;;
16071 # The compiler driver will combine and reorder linker options,
16072 # but understands '-z linker_flag'.
16073 # Supported since Solaris 2.6 (maybe 2.5.1?)
16074 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16077 link_all_deplibs_CXX=yes
16079 output_verbose_link_cmd='func_echo_all'
16081 # Archives containing C++ object files must be created using
16082 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16083 # necessary to make sure instantiated templates are included
16085 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16088 # Green Hills C++ Compiler
16089 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16091 # The C++ compiler must be used to create the archive.
16092 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16095 # GNU C++ compiler with Solaris linker
16096 if test yes,no = "$GXX,$with_gnu_ld"; then
16097 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16098 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16099 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16100 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16101 $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'
16103 # Commands to make compiler produce verbose output that lists
16104 # what "hidden" libraries, object files and flags are used when
16105 # linking a shared library.
16106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16108 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16110 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16111 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16112 $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'
16114 # Commands to make compiler produce verbose output that lists
16115 # what "hidden" libraries, object files and flags are used when
16116 # linking a shared library.
16117 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16120 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16122 solaris2.[0-5] | solaris2.[0-5].*) ;;
16124 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16132 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16133 no_undefined_flag_CXX='$wl-z,text'
16134 archive_cmds_need_lc_CXX=no
16135 hardcode_shlibpath_var_CXX=no
16136 runpath_var='LD_RUN_PATH'
16138 case $cc_basename in
16140 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16141 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16144 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16145 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16150 sysv5* | sco3.2v5* | sco5v6*)
16151 # Note: We CANNOT use -z defs as we might desire, because we do not
16152 # link with -lc, and that would cause any symbols used from libc to
16153 # always be unresolved, which means just about no library would
16154 # ever link correctly. If we're not using GNU ld we use -z text
16155 # though, which does catch some bad symbols but isn't as heavy-handed
16157 no_undefined_flag_CXX='$wl-z,text'
16158 allow_undefined_flag_CXX='$wl-z,nodefs'
16159 archive_cmds_need_lc_CXX=no
16160 hardcode_shlibpath_var_CXX=no
16161 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16162 hardcode_libdir_separator_CXX=':'
16163 link_all_deplibs_CXX=yes
16164 export_dynamic_flag_spec_CXX='$wl-Bexport'
16165 runpath_var='LD_RUN_PATH'
16167 case $cc_basename in
16169 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16170 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16171 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16172 '"$old_archive_cmds_CXX"
16173 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16174 '"$reload_cmds_CXX"
16177 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16178 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16184 case $cc_basename in
16186 # NonStop-UX NCC 3.20
16187 # FIXME: insert proper C++ library support
16191 # FIXME: insert proper C++ library support
16198 # FIXME: insert proper C++ library support
16203 # FIXME: insert proper C++ library support
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16209 $as_echo "$ld_shlibs_CXX" >&6; }
16210 test no = "$ld_shlibs_CXX" && can_build_shared=no
16216 ## There is no encapsulation within the following macros, do not change
16217 ## the running order or otherwise move them around unless you know exactly
16218 ## what you are doing...
16219 # Dependencies to place before and after the object being linked:
16220 predep_objects_CXX=
16221 postdep_objects_CXX=
16224 compiler_lib_search_path_CXX=
16226 cat > conftest.$ac_ext <<_LT_EOF
16230 Foo (void) { a = 0; }
16237 _lt_libdeps_save_CFLAGS=$CFLAGS
16238 case "$CC $CFLAGS " in #(
16239 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16240 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16241 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16245 (eval $ac_compile) 2>&5
16247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16248 test $ac_status = 0; }; then
16249 # Parse the compiler output and extract the necessary
16250 # objects, libraries and library flags.
16252 # Sentinel used to keep track of whether or not we are before
16253 # the conftest object file.
16254 pre_test_object_deps_done=no
16256 for p in `eval "$output_verbose_link_cmd"`; do
16260 # Some compilers place space between "-{L,R}" and the path.
16261 # Remove the space.
16262 if test x-L = "$p" ||
16263 test x-R = "$p"; then
16268 # Expand the sysroot to ease extracting the directories later.
16269 if test -z "$prev"; then
16271 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16272 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16273 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16277 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16279 if test no = "$pre_test_object_deps_done"; then
16282 # Internal compiler library paths should come after those
16283 # provided the user. The postdeps already come after the
16284 # user supplied libs so there is no need to process them.
16285 if test -z "$compiler_lib_search_path_CXX"; then
16286 compiler_lib_search_path_CXX=$prev$p
16288 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16291 # The "-l" case would never come before the object being
16292 # linked, so don't bother handling this case.
16295 if test -z "$postdeps_CXX"; then
16296 postdeps_CXX=$prev$p
16298 postdeps_CXX="${postdeps_CXX} $prev$p"
16304 *.lto.$objext) ;; # Ignore GCC LTO objects
16306 # This assumes that the test object file only shows up
16307 # once in the compiler output.
16308 if test "$p" = "conftest.$objext"; then
16309 pre_test_object_deps_done=yes
16313 if test no = "$pre_test_object_deps_done"; then
16314 if test -z "$predep_objects_CXX"; then
16315 predep_objects_CXX=$p
16317 predep_objects_CXX="$predep_objects_CXX $p"
16320 if test -z "$postdep_objects_CXX"; then
16321 postdep_objects_CXX=$p
16323 postdep_objects_CXX="$postdep_objects_CXX $p"
16328 *) ;; # Ignore the rest.
16336 echo "libtool.m4: error: problem compiling CXX test program"
16339 $RM -f confest.$objext
16340 CFLAGS=$_lt_libdeps_save_CFLAGS
16342 # PORTME: override above test on systems where it is broken
16345 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16346 # hack all around it, let's just trust "g++" to DTRT.
16347 predep_objects_CXX=
16348 postdep_objects_CXX=
16354 case " $postdeps_CXX " in
16355 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16357 compiler_lib_search_dirs_CXX=
16358 if test -n "${compiler_lib_search_path_CXX}"; then
16359 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16392 lt_prog_compiler_wl_CXX=
16393 lt_prog_compiler_pic_CXX=
16394 lt_prog_compiler_static_CXX=
16397 # C++ specific cases for pic, static, wl, etc.
16398 if test yes = "$GXX"; then
16399 lt_prog_compiler_wl_CXX='-Wl,'
16400 lt_prog_compiler_static_CXX='-static'
16404 # All AIX code is PIC.
16405 if test ia64 = "$host_cpu"; then
16406 # AIX 5 now supports IA64 processor
16407 lt_prog_compiler_static_CXX='-Bstatic'
16409 lt_prog_compiler_pic_CXX='-fPIC'
16415 # see comment about AmigaOS4 .so support
16416 lt_prog_compiler_pic_CXX='-fPIC'
16419 # FIXME: we need at least 68020 code to build shared libraries, but
16420 # adding the '-m68020' flag to GCC prevents building anything better,
16422 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16427 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16428 # PIC is the default for these OSes.
16430 mingw* | cygwin* | os2* | pw32* | cegcc*)
16431 # This hack is so that the source file can tell whether it is being
16432 # built for inclusion in a dll (and should export symbols for example).
16433 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16434 # (--disable-auto-import) libraries
16435 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16438 lt_prog_compiler_static_CXX='$wl-static'
16442 darwin* | rhapsody*)
16443 # PIC is the default on this platform
16444 # Common symbols not allowed in MH_DYLIB files
16445 lt_prog_compiler_pic_CXX='-fno-common'
16448 # DJGPP does not support shared libraries at all
16449 lt_prog_compiler_pic_CXX=
16452 # PIC is the default for Haiku.
16453 # The "-static" flag exists, but is broken.
16454 lt_prog_compiler_static_CXX=
16457 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16458 # Instead, we relocate shared libraries at runtime.
16461 if test -d /usr/nec; then
16462 lt_prog_compiler_pic_CXX=-Kconform_pic
16466 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16467 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16468 # sets the default TLS model and affects inlining.
16473 lt_prog_compiler_pic_CXX='-fPIC'
16478 # QNX uses GNU C++, but need to define -shared option too, otherwise
16479 # it will coredump.
16480 lt_prog_compiler_pic_CXX='-fPIC -shared'
16483 lt_prog_compiler_pic_CXX='-fPIC'
16489 # All AIX code is PIC.
16490 if test ia64 = "$host_cpu"; then
16491 # AIX 5 now supports IA64 processor
16492 lt_prog_compiler_static_CXX='-Bstatic'
16494 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16498 case $cc_basename in
16500 # Green Hills C++ Compiler
16501 # _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"
16505 mingw* | cygwin* | os2* | pw32* | cegcc*)
16506 # This hack is so that the source file can tell whether it is being
16507 # built for inclusion in a dll (and should export symbols for example).
16508 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16511 case $cc_basename in
16513 lt_prog_compiler_pic_CXX='-KPIC'
16516 # Green Hills C++ Compiler
16517 lt_prog_compiler_pic_CXX='-pic'
16523 freebsd* | dragonfly*)
16524 # FreeBSD uses GNU C++
16526 hpux9* | hpux10* | hpux11*)
16527 case $cc_basename in
16529 lt_prog_compiler_wl_CXX='-Wl,'
16530 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16531 if test ia64 != "$host_cpu"; then
16532 lt_prog_compiler_pic_CXX='+Z'
16536 lt_prog_compiler_wl_CXX='-Wl,'
16537 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16543 lt_prog_compiler_pic_CXX='+Z'
16552 # This is c89, which is MS Visual C++ (no shared libs)
16553 # Anyone wants to do a port?
16555 irix5* | irix6* | nonstopux*)
16556 case $cc_basename in
16558 lt_prog_compiler_wl_CXX='-Wl,'
16559 lt_prog_compiler_static_CXX='-non_shared'
16560 # CC pic flag -KPIC is the default.
16566 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16567 case $cc_basename in
16570 lt_prog_compiler_wl_CXX='--backend -Wl,'
16571 lt_prog_compiler_pic_CXX='-fPIC'
16574 # old Intel C++ for x86_64, which still supported -KPIC.
16575 lt_prog_compiler_wl_CXX='-Wl,'
16576 lt_prog_compiler_pic_CXX='-KPIC'
16577 lt_prog_compiler_static_CXX='-static'
16580 # Intel C++, used to be incompatible with GCC.
16581 # ICC 10 doesn't accept -KPIC any more.
16582 lt_prog_compiler_wl_CXX='-Wl,'
16583 lt_prog_compiler_pic_CXX='-fPIC'
16584 lt_prog_compiler_static_CXX='-static'
16587 # Portland Group C++ compiler
16588 lt_prog_compiler_wl_CXX='-Wl,'
16589 lt_prog_compiler_pic_CXX='-fpic'
16590 lt_prog_compiler_static_CXX='-Bstatic'
16594 # Make sure the PIC flag is empty. It appears that all Alpha
16595 # Linux and Compaq Tru64 Unix objects are PIC.
16596 lt_prog_compiler_pic_CXX=
16597 lt_prog_compiler_static_CXX='-non_shared'
16599 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16600 # IBM XL 8.0, 9.0 on PPC and BlueGene
16601 lt_prog_compiler_wl_CXX='-Wl,'
16602 lt_prog_compiler_pic_CXX='-qpic'
16603 lt_prog_compiler_static_CXX='-qstaticlink'
16606 case `$CC -V 2>&1 | sed 5q` in
16609 lt_prog_compiler_pic_CXX='-KPIC'
16610 lt_prog_compiler_static_CXX='-Bstatic'
16611 lt_prog_compiler_wl_CXX='-Qoption ld '
16622 case $cc_basename in
16624 lt_prog_compiler_pic_CXX='-W c,exportall'
16633 # QNX uses GNU C++, but need to define -shared option too, otherwise
16634 # it will coredump.
16635 lt_prog_compiler_pic_CXX='-fPIC -shared'
16637 osf3* | osf4* | osf5*)
16638 case $cc_basename in
16640 lt_prog_compiler_wl_CXX='--backend -Wl,'
16643 # Rational C++ 2.4.1
16644 lt_prog_compiler_pic_CXX='-pic'
16647 # Digital/Compaq C++
16648 lt_prog_compiler_wl_CXX='-Wl,'
16649 # Make sure the PIC flag is empty. It appears that all Alpha
16650 # Linux and Compaq Tru64 Unix objects are PIC.
16651 lt_prog_compiler_pic_CXX=
16652 lt_prog_compiler_static_CXX='-non_shared'
16661 case $cc_basename in
16663 # Sun C++ 4.2, 5.x and Centerline C++
16664 lt_prog_compiler_pic_CXX='-KPIC'
16665 lt_prog_compiler_static_CXX='-Bstatic'
16666 lt_prog_compiler_wl_CXX='-Qoption ld '
16669 # Green Hills C++ Compiler
16670 lt_prog_compiler_pic_CXX='-PIC'
16677 case $cc_basename in
16680 lt_prog_compiler_pic_CXX='-pic'
16681 lt_prog_compiler_static_CXX='-Bstatic'
16685 lt_prog_compiler_pic_CXX='-pic'
16691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16692 case $cc_basename in
16694 lt_prog_compiler_wl_CXX='-Wl,'
16695 lt_prog_compiler_pic_CXX='-KPIC'
16696 lt_prog_compiler_static_CXX='-Bstatic'
16701 case $cc_basename in
16703 # NonStop-UX NCC 3.20
16704 lt_prog_compiler_pic_CXX='-KPIC'
16713 lt_prog_compiler_can_build_shared_CXX=no
16719 # For platforms that do not support PIC, -DPIC is meaningless:
16721 lt_prog_compiler_pic_CXX=
16724 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16729 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16730 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16731 $as_echo_n "(cached) " >&6
16733 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16736 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16737 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16740 # Check to make sure the PIC flag actually works.
16742 if test -n "$lt_prog_compiler_pic_CXX"; then
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16744 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16745 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16746 $as_echo_n "(cached) " >&6
16748 lt_cv_prog_compiler_pic_works_CXX=no
16749 ac_outfile=conftest.$ac_objext
16750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16751 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16752 # Insert the option either (1) after the last *FLAGS variable, or
16753 # (2) before a word containing "conftest.", or (3) at the end.
16754 # Note that $ac_compile itself does not contain backslashes and begins
16755 # with a dollar sign (not a hyphen), so the echo should work correctly.
16756 # The option is referenced via a variable to avoid confusing sed.
16757 lt_compile=`echo "$ac_compile" | $SED \
16758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16760 -e 's:$: $lt_compiler_flag:'`
16761 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16762 (eval "$lt_compile" 2>conftest.err)
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 if (exit $ac_status) && test -s "$ac_outfile"; then
16767 # The compiler can only warn and ignore the option if not recognized
16768 # So say no if there are warnings other than the usual output.
16769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16772 lt_cv_prog_compiler_pic_works_CXX=yes
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16779 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16781 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16782 case $lt_prog_compiler_pic_CXX in
16784 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16787 lt_prog_compiler_pic_CXX=
16788 lt_prog_compiler_can_build_shared_CXX=no
16798 # Check to make sure the static flag actually works.
16800 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16802 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16803 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16804 $as_echo_n "(cached) " >&6
16806 lt_cv_prog_compiler_static_works_CXX=no
16807 save_LDFLAGS=$LDFLAGS
16808 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16809 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16810 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16811 # The linker can only warn and ignore the option if not recognized
16812 # So say no if there are warnings
16813 if test -s conftest.err; then
16814 # Append any errors to the config.log.
16815 cat conftest.err 1>&5
16816 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16818 if diff conftest.exp conftest.er2 >/dev/null; then
16819 lt_cv_prog_compiler_static_works_CXX=yes
16822 lt_cv_prog_compiler_static_works_CXX=yes
16826 LDFLAGS=$save_LDFLAGS
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16830 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16832 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16835 lt_prog_compiler_static_CXX=
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16842 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16843 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16844 $as_echo_n "(cached) " >&6
16846 lt_cv_prog_compiler_c_o_CXX=no
16847 $RM -r conftest 2>/dev/null
16851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16853 lt_compiler_flag="-o out/conftest2.$ac_objext"
16854 # Insert the option either (1) after the last *FLAGS variable, or
16855 # (2) before a word containing "conftest.", or (3) at the end.
16856 # Note that $ac_compile itself does not contain backslashes and begins
16857 # with a dollar sign (not a hyphen), so the echo should work correctly.
16858 lt_compile=`echo "$ac_compile" | $SED \
16859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16861 -e 's:$: $lt_compiler_flag:'`
16862 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16863 (eval "$lt_compile" 2>out/conftest.err)
16865 cat out/conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16869 # The compiler can only warn and ignore the option if not recognized
16870 # So say no if there are warnings
16871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16872 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16873 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16874 lt_cv_prog_compiler_c_o_CXX=yes
16879 # SGI C++ compiler will create directory out/ii_files/ for
16880 # template instantiation
16881 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16882 $RM out/* && rmdir out
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16889 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16894 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16895 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16896 $as_echo_n "(cached) " >&6
16898 lt_cv_prog_compiler_c_o_CXX=no
16899 $RM -r conftest 2>/dev/null
16903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16905 lt_compiler_flag="-o out/conftest2.$ac_objext"
16906 # Insert the option either (1) after the last *FLAGS variable, or
16907 # (2) before a word containing "conftest.", or (3) at the end.
16908 # Note that $ac_compile itself does not contain backslashes and begins
16909 # with a dollar sign (not a hyphen), so the echo should work correctly.
16910 lt_compile=`echo "$ac_compile" | $SED \
16911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16913 -e 's:$: $lt_compiler_flag:'`
16914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16915 (eval "$lt_compile" 2>out/conftest.err)
16917 cat out/conftest.err >&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16921 # The compiler can only warn and ignore the option if not recognized
16922 # So say no if there are warnings
16923 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16924 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16925 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16926 lt_cv_prog_compiler_c_o_CXX=yes
16931 # SGI C++ compiler will create directory out/ii_files/ for
16932 # template instantiation
16933 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16934 $RM out/* && rmdir out
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16941 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16946 hard_links=nottested
16947 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16948 # do not overwrite the value of need_locks provided by the user
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16950 $as_echo_n "checking if we can lock with hard links... " >&6; }
16953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16955 ln conftest.a conftest.b 2>&5 || hard_links=no
16956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16958 $as_echo "$hard_links" >&6; }
16959 if test no = "$hard_links"; then
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16961 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16971 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16973 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16974 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16977 # If we're using GNU nm, then we don't want the "-C" option.
16978 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16979 # Without the "-l" option, or with the "-B" option, AIX nm treats
16980 # weak defined symbols like other global defined symbols, whereas
16981 # GNU nm marks them as "W".
16982 # While the 'weak' keyword is ignored in the Export File, we need
16983 # it in the Import File for the 'aix-soname' feature, so we have
16984 # to replace the "-B" option with "-P" for AIX nm.
16985 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16986 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'
16988 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16992 export_symbols_cmds_CXX=$ltdll_cmds
16994 cygwin* | mingw* | cegcc*)
16995 case $cc_basename in
16997 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17000 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'
17001 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17006 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17011 $as_echo "$ld_shlibs_CXX" >&6; }
17012 test no = "$ld_shlibs_CXX" && can_build_shared=no
17014 with_gnu_ld_CXX=$with_gnu_ld
17022 # Do we need to explicitly link libc?
17024 case "x$archive_cmds_need_lc_CXX" in
17026 # Assume -lc should be added
17027 archive_cmds_need_lc_CXX=yes
17029 if test yes,yes = "$GCC,$enable_shared"; then
17030 case $archive_cmds_CXX in
17032 # FIXME: we may have to deal with multi-command sequences.
17035 # Test whether the compiler implicitly links with -lc since on some
17036 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17037 # to ld, don't add -lc before -lgcc.
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17039 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17040 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17041 $as_echo_n "(cached) " >&6
17044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17047 (eval $ac_compile) 2>&5
17049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17050 test $ac_status = 0; } 2>conftest.err; then
17053 libobjs=conftest.$ac_objext
17055 wl=$lt_prog_compiler_wl_CXX
17056 pic_flag=$lt_prog_compiler_pic_CXX
17062 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17063 allow_undefined_flag_CXX=
17064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17065 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17068 test $ac_status = 0; }
17070 lt_cv_archive_cmds_need_lc_CXX=no
17072 lt_cv_archive_cmds_need_lc_CXX=yes
17074 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17076 cat conftest.err 1>&5
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17082 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17083 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17152 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17154 library_names_spec=
17155 libname_spec='lib$name'
17159 postuninstall_cmds=
17163 shlibpath_overrides_runpath=unknown
17165 dynamic_linker="$host_os ld.so"
17166 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17167 need_lib_prefix=unknown
17168 hardcode_into_libs=no
17170 # when you set need_version to no, make sure it does not cause -set_version
17171 # flags to be left without arguments
17172 need_version=unknown
17178 version_type=linux # correct to gnu/linux during the next big refactor
17179 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17180 shlibpath_var=LIBPATH
17182 # AIX 3 has no versioning support, so we append a major version to the name.
17183 soname_spec='$libname$release$shared_ext$major'
17187 version_type=linux # correct to gnu/linux during the next big refactor
17190 hardcode_into_libs=yes
17191 if test ia64 = "$host_cpu"; then
17192 # AIX 5 supports IA64
17193 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17194 shlibpath_var=LD_LIBRARY_PATH
17196 # With GCC up to 2.95.x, collect2 would create an import file
17197 # for dependence libraries. The import file would start with
17198 # the line '#! .'. This would cause the generated library to
17199 # depend on '.', always an invalid library. This was fixed in
17200 # development snapshots of GCC prior to 3.0.
17202 aix4 | aix4.[01] | aix4.[01].*)
17203 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17205 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17208 can_build_shared=no
17212 # Using Import Files as archive members, it is possible to support
17213 # filename-based versioning of shared library archives on AIX. While
17214 # this would work for both with and without runtime linking, it will
17215 # prevent static linking of such archives. So we do filename-based
17216 # shared library versioning with .so extension only, which is used
17217 # when both runtime linking and shared linking is enabled.
17218 # Unfortunately, runtime linking may impact performance, so we do
17219 # not want this to be the default eventually. Also, we use the
17220 # versioned .so libs for executables only if there is the -brtl
17221 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17222 # To allow for filename-based versioning support, we need to create
17223 # libNAME.so.V as an archive file, containing:
17224 # *) an Import File, referring to the versioned filename of the
17225 # archive as well as the shared archive member, telling the
17226 # bitwidth (32 or 64) of that shared object, and providing the
17227 # list of exported symbols of that shared object, eventually
17228 # decorated with the 'weak' keyword
17229 # *) the shared object with the F_LOADONLY flag set, to really avoid
17230 # it being seen by the linker.
17231 # At run time we better use the real file rather than another symlink,
17232 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17234 case $with_aix_soname,$aix_use_runtimelinking in
17235 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17236 # soname into executable. Probably we can add versioning support to
17237 # collect2, so additional links can be useful in future.
17238 aix,yes) # traditional libtool
17239 dynamic_linker='AIX unversionable lib.so'
17240 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17241 # instead of lib<name>.a to let people know that these are not
17242 # typical AIX shared libraries.
17243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17245 aix,no) # traditional AIX only
17246 dynamic_linker='AIX lib.a(lib.so.V)'
17247 # We preserve .a as extension for shared libraries through AIX4.2
17248 # and later when we are not doing run time linking.
17249 library_names_spec='$libname$release.a $libname.a'
17250 soname_spec='$libname$release$shared_ext$major'
17252 svr4,*) # full svr4 only
17253 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17254 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17255 # We do not specify a path in Import Files, so LIBPATH fires.
17256 shlibpath_overrides_runpath=yes
17258 *,yes) # both, prefer svr4
17259 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17260 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17261 # unpreferred sharedlib libNAME.a needs extra handling
17262 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"'
17263 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"'
17264 # We do not specify a path in Import Files, so LIBPATH fires.
17265 shlibpath_overrides_runpath=yes
17267 *,no) # both, prefer aix
17268 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17269 library_names_spec='$libname$release.a $libname.a'
17270 soname_spec='$libname$release$shared_ext$major'
17271 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17272 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)'
17273 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"'
17276 shlibpath_var=LIBPATH
17283 # Since July 2007 AmigaOS4 officially supports .so libraries.
17284 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17288 library_names_spec='$libname.ixlibrary $libname.a'
17289 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17290 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'
17296 library_names_spec='$libname$shared_ext'
17297 dynamic_linker="$host_os ld.so"
17298 shlibpath_var=LIBRARY_PATH
17302 version_type=linux # correct to gnu/linux during the next big refactor
17304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17305 soname_spec='$libname$release$shared_ext$major'
17306 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17307 shlibpath_var=LD_LIBRARY_PATH
17308 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17309 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17310 # the default ld.so.conf also contains /usr/contrib/lib and
17311 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17312 # libtool to hard-code these into programs
17315 cygwin* | mingw* | pw32* | cegcc*)
17316 version_type=windows
17321 case $GCC,$cc_basename in
17324 library_names_spec='$libname.dll.a'
17325 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17326 postinstall_cmds='base_file=`basename \$file`~
17327 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17328 dldir=$destdir/`dirname \$dlpath`~
17329 test -d \$dldir || mkdir -p \$dldir~
17330 $install_prog $dir/$dlname \$dldir/$dlname~
17331 chmod a+x \$dldir/$dlname~
17332 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17333 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17335 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17336 dlpath=$dir/\$dldll~
17338 shlibpath_overrides_runpath=yes
17342 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17343 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17347 # MinGW DLLs use traditional 'lib' prefix
17348 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17351 # pw32 DLLs use 'pw' prefix rather than 'lib'
17352 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17355 dynamic_linker='Win32 ld.exe'
17359 # Native MSVC or ICC
17360 libname_spec='$name'
17361 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17362 library_names_spec='$libname.dll.lib'
17366 sys_lib_search_path_spec=
17369 for lt_path in $LIB
17372 # Let DOS variable expansion print the short 8.3 style file name.
17373 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17374 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17377 # Convert to MSYS style.
17378 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17381 # Convert to unix form, then to dos form, then back to unix form
17382 # but this time dos style (no spaces!) so that the unix form looks
17383 # like /cygdrive/c/PROGRA~1:/cygdr...
17384 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17385 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17386 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17389 sys_lib_search_path_spec=$LIB
17390 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17391 # It is most probably a Windows format PATH.
17392 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17394 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17396 # FIXME: find the short name or the path components, as spaces are
17397 # common. (e.g. "Program Files" -> "PROGRA~1")
17401 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17402 postinstall_cmds='base_file=`basename \$file`~
17403 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17404 dldir=$destdir/`dirname \$dlpath`~
17405 test -d \$dldir || mkdir -p \$dldir~
17406 $install_prog $dir/$dlname \$dldir/$dlname'
17407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17408 dlpath=$dir/\$dldll~
17410 shlibpath_overrides_runpath=yes
17411 dynamic_linker='Win32 link.exe'
17415 # Assume MSVC and ICC wrapper
17416 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17417 dynamic_linker='Win32 ld.exe'
17420 # FIXME: first we should search . and the directory the executable is in
17424 darwin* | rhapsody*)
17425 dynamic_linker="$host_os dyld"
17426 version_type=darwin
17429 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17430 soname_spec='$libname$release$major$shared_ext'
17431 shlibpath_overrides_runpath=yes
17432 shlibpath_var=DYLD_LIBRARY_PATH
17433 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17435 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17439 version_type=linux # correct to gnu/linux during the next big refactor
17442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17443 soname_spec='$libname$release$shared_ext$major'
17444 shlibpath_var=LD_LIBRARY_PATH
17447 freebsd* | dragonfly*)
17448 # DragonFly does not have aout. When/if they implement a new
17449 # versioning mechanism, adjust this.
17450 if test -x /usr/bin/objformat; then
17451 objformat=`/usr/bin/objformat`
17454 freebsd[23].*) objformat=aout ;;
17455 *) objformat=elf ;;
17458 version_type=freebsd-$objformat
17459 case $version_type in
17461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17462 soname_spec='$libname$release$shared_ext$major'
17467 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17471 shlibpath_var=LD_LIBRARY_PATH
17474 shlibpath_overrides_runpath=yes
17476 freebsd3.[01]* | freebsdelf3.[01]*)
17477 shlibpath_overrides_runpath=yes
17478 hardcode_into_libs=yes
17480 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17481 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17482 shlibpath_overrides_runpath=no
17483 hardcode_into_libs=yes
17485 *) # from 4.6 on, and DragonFly
17486 shlibpath_overrides_runpath=yes
17487 hardcode_into_libs=yes
17493 version_type=linux # correct to gnu/linux during the next big refactor
17496 dynamic_linker="$host_os runtime_loader"
17497 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17498 soname_spec='$libname$release$shared_ext$major'
17499 shlibpath_var=LIBRARY_PATH
17500 shlibpath_overrides_runpath=no
17501 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17502 hardcode_into_libs=yes
17505 hpux9* | hpux10* | hpux11*)
17506 # Give a soname corresponding to the major version so that dld.sl refuses to
17507 # link against other versions.
17514 hardcode_into_libs=yes
17515 dynamic_linker="$host_os dld.so"
17516 shlibpath_var=LD_LIBRARY_PATH
17517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17519 soname_spec='$libname$release$shared_ext$major'
17520 if test 32 = "$HPUX_IA64_MODE"; then
17521 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17522 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17524 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17525 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17530 hardcode_into_libs=yes
17531 dynamic_linker="$host_os dld.sl"
17532 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17535 soname_spec='$libname$release$shared_ext$major'
17536 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17541 dynamic_linker="$host_os dld.sl"
17542 shlibpath_var=SHLIB_PATH
17543 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17545 soname_spec='$libname$release$shared_ext$major'
17548 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17549 postinstall_cmds='chmod 555 $lib'
17550 # or fails outright, so override atomically:
17551 install_override_mode=555
17555 version_type=linux # correct to gnu/linux during the next big refactor
17558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17559 soname_spec='$libname$release$shared_ext$major'
17560 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17561 shlibpath_var=LD_LIBRARY_PATH
17562 shlibpath_overrides_runpath=no
17563 hardcode_into_libs=yes
17566 irix5* | irix6* | nonstopux*)
17568 nonstopux*) version_type=nonstopux ;;
17570 if test yes = "$lt_cv_prog_gnu_ld"; then
17571 version_type=linux # correct to gnu/linux during the next big refactor
17578 soname_spec='$libname$release$shared_ext$major'
17579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17581 irix5* | nonstopux*)
17582 libsuff= shlibsuff=
17585 case $LD in # libtool.m4 will add one of these switches to LD
17586 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17587 libsuff= shlibsuff= libmagic=32-bit;;
17588 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17589 libsuff=32 shlibsuff=N32 libmagic=N32;;
17590 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17591 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17592 *) libsuff= shlibsuff= libmagic=never-match;;
17596 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17597 shlibpath_overrides_runpath=no
17598 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17599 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17600 hardcode_into_libs=yes
17603 # No shared lib support for Linux oldld, aout, or coff.
17604 linux*oldld* | linux*aout* | linux*coff*)
17609 version_type=none # Android doesn't support versioned libraries.
17612 library_names_spec='$libname$release$shared_ext'
17613 soname_spec='$libname$release$shared_ext'
17615 shlibpath_var=LD_LIBRARY_PATH
17616 shlibpath_overrides_runpath=yes
17618 # This implies no fast_install, which is unacceptable.
17619 # Some rework will be needed to allow for fast_install
17620 # before this can be enabled.
17621 hardcode_into_libs=yes
17623 dynamic_linker='Android linker'
17624 # Don't embed -rpath directories since the linker doesn't support them.
17625 hardcode_libdir_flag_spec_CXX='-L$libdir'
17628 # This must be glibc/ELF.
17629 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17630 version_type=linux # correct to gnu/linux during the next big refactor
17633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17634 soname_spec='$libname$release$shared_ext$major'
17635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17636 shlibpath_var=LD_LIBRARY_PATH
17637 shlibpath_overrides_runpath=no
17639 # Some binutils ld are patched to set DT_RUNPATH
17640 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17641 $as_echo_n "(cached) " >&6
17643 lt_cv_shlibpath_overrides_runpath=no
17644 save_LDFLAGS=$LDFLAGS
17645 save_libdir=$libdir
17646 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17647 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17649 /* end confdefs.h. */
17659 if ac_fn_cxx_try_link "$LINENO"; then :
17660 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17661 lt_cv_shlibpath_overrides_runpath=yes
17664 rm -f core conftest.err conftest.$ac_objext \
17665 conftest$ac_exeext conftest.$ac_ext
17666 LDFLAGS=$save_LDFLAGS
17667 libdir=$save_libdir
17671 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17673 # This implies no fast_install, which is unacceptable.
17674 # Some rework will be needed to allow for fast_install
17675 # before this can be enabled.
17676 hardcode_into_libs=yes
17678 # Ideally, we could use ldconfig to report *all* directores which are
17679 # searched for libraries, however this is still not possible. Aside from not
17680 # being certain /sbin/ldconfig is available, command
17681 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17682 # even though it is searched at run-time. Try to do the best guess by
17683 # appending ld.so.conf contents (and includes) to the search path.
17684 if test -f /etc/ld.so.conf; then
17685 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' ' '`
17686 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17689 # We used to test for /lib/ld.so.1 and disable shared libraries on
17690 # powerpc, because MkLinux only supported shared libraries with the
17691 # GNU dynamic linker. Since this was broken with cross compilers,
17692 # most powerpc-linux boxes support dynamic linking these days and
17693 # people can always --disable-shared, the test was removed, and we
17694 # assume the GNU/Linux dynamic linker is in use.
17695 dynamic_linker='GNU/Linux ld.so'
17702 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17703 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17705 dynamic_linker='NetBSD (a.out) ld.so'
17707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17708 soname_spec='$libname$release$shared_ext$major'
17709 dynamic_linker='NetBSD ld.elf_so'
17711 shlibpath_var=LD_LIBRARY_PATH
17712 shlibpath_overrides_runpath=yes
17713 hardcode_into_libs=yes
17717 version_type=linux # correct to gnu/linux during the next big refactor
17718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17719 shlibpath_var=LD_LIBRARY_PATH
17720 shlibpath_overrides_runpath=yes
17727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17728 soname_spec='$libname$release$shared_ext$major'
17729 shlibpath_var=LD_LIBRARY_PATH
17730 shlibpath_overrides_runpath=no
17731 hardcode_into_libs=yes
17732 dynamic_linker='ldqnx.so'
17735 openbsd* | bitrig*)
17737 sys_lib_dlsearch_path_spec=/usr/lib
17739 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17744 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17746 shlibpath_var=LD_LIBRARY_PATH
17747 shlibpath_overrides_runpath=yes
17751 libname_spec='$name'
17752 version_type=windows
17756 # OS/2 can only load a DLL with a base name of 8 characters or less.
17757 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17758 v=$($ECHO $release$versuffix | tr -d .-);
17759 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17760 $ECHO $n$v`$shared_ext'
17761 library_names_spec='${libname}_dll.$libext'
17762 dynamic_linker='OS/2 ld.exe'
17763 shlibpath_var=BEGINLIBPATH
17764 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17765 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17766 postinstall_cmds='base_file=`basename \$file`~
17767 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17768 dldir=$destdir/`dirname \$dlpath`~
17769 test -d \$dldir || mkdir -p \$dldir~
17770 $install_prog $dir/$dlname \$dldir/$dlname~
17771 chmod a+x \$dldir/$dlname~
17772 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17773 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17775 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17776 dlpath=$dir/\$dldll~
17780 osf3* | osf4* | osf5*)
17784 soname_spec='$libname$release$shared_ext$major'
17785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17786 shlibpath_var=LD_LIBRARY_PATH
17787 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17796 version_type=linux # correct to gnu/linux during the next big refactor
17799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17800 soname_spec='$libname$release$shared_ext$major'
17801 shlibpath_var=LD_LIBRARY_PATH
17802 shlibpath_overrides_runpath=yes
17803 hardcode_into_libs=yes
17804 # ldd complains unless libraries are executable
17805 postinstall_cmds='chmod +x $lib'
17810 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17811 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17812 shlibpath_var=LD_LIBRARY_PATH
17813 shlibpath_overrides_runpath=yes
17814 if test yes = "$with_gnu_ld"; then
17821 version_type=linux # correct to gnu/linux during the next big refactor
17822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17823 soname_spec='$libname$release$shared_ext$major'
17824 shlibpath_var=LD_LIBRARY_PATH
17825 case $host_vendor in
17827 shlibpath_overrides_runpath=no
17829 runpath_var=LD_RUN_PATH
17837 shlibpath_overrides_runpath=no
17838 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17844 if test -d /usr/nec; then
17845 version_type=linux # correct to gnu/linux during the next big refactor
17846 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17847 soname_spec='$libname$shared_ext.$major'
17848 shlibpath_var=LD_LIBRARY_PATH
17852 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17857 soname_spec='$libname$release$shared_ext$major'
17858 shlibpath_var=LD_LIBRARY_PATH
17859 shlibpath_overrides_runpath=yes
17860 hardcode_into_libs=yes
17861 if test yes = "$with_gnu_ld"; then
17862 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17864 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17867 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17871 sys_lib_dlsearch_path_spec='/usr/lib'
17875 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17876 version_type=linux # correct to gnu/linux during the next big refactor
17879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17880 shlibpath_var=LD_LIBRARY_PATH
17881 shlibpath_overrides_runpath=no
17882 hardcode_into_libs=yes
17886 version_type=linux # correct to gnu/linux during the next big refactor
17887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17888 soname_spec='$libname$release$shared_ext$major'
17889 shlibpath_var=LD_LIBRARY_PATH
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17897 $as_echo "$dynamic_linker" >&6; }
17898 test no = "$dynamic_linker" && can_build_shared=no
17900 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17901 if test yes = "$GCC"; then
17902 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17905 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17906 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17909 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17910 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17913 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17914 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17916 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17917 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17919 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17920 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17962 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17963 hardcode_action_CXX=
17964 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17965 test -n "$runpath_var_CXX" ||
17966 test yes = "$hardcode_automatic_CXX"; then
17968 # We can hardcode non-existent directories.
17969 if test no != "$hardcode_direct_CXX" &&
17970 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17971 # have to relink, otherwise we might link with an installed library
17972 # when we should be linking with a yet-to-be-installed one
17973 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17974 test no != "$hardcode_minus_L_CXX"; then
17975 # Linking always hardcodes the temporary library directory.
17976 hardcode_action_CXX=relink
17978 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17979 hardcode_action_CXX=immediate
17982 # We cannot hardcode anything, or else we can only hardcode existing
17984 hardcode_action_CXX=unsupported
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17987 $as_echo "$hardcode_action_CXX" >&6; }
17989 if test relink = "$hardcode_action_CXX" ||
17990 test yes = "$inherit_rpath_CXX"; then
17991 # Fast installation is not supported
17992 enable_fast_install=no
17993 elif test yes = "$shlibpath_overrides_runpath" ||
17994 test no = "$enable_shared"; then
17995 # Fast installation is not necessary
17996 enable_fast_install=needless
18005 fi # test -n "$compiler"
18008 CFLAGS=$lt_save_CFLAGS
18012 with_gnu_ld=$lt_save_with_gnu_ld
18013 lt_cv_path_LDCXX=$lt_cv_path_LD
18014 lt_cv_path_LD=$lt_save_path_LD
18015 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18016 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18017 fi # test yes != "$_lt_caught_CXX_error"
18020 ac_cpp='$CPP $CPPFLAGS'
18021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18026 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
18028 ac_cpp='$CXXCPP $CPPFLAGS'
18029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
18034 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
18035 if ${ax_cv_cxx_compile_cxx11+:} false; then :
18036 $as_echo_n "(cached) " >&6
18038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18039 /* end confdefs.h. */
18042 // If the compiler admits that it is not ready for C++11, why torture it?
18043 // Hopefully, this will speed up the test.
18045 #ifndef __cplusplus
18047 #error "This is not a C++ compiler"
18049 #elif __cplusplus < 201103L
18051 #error "This is not a C++11 compiler"
18058 namespace test_static_assert
18061 template <typename T>
18064 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18069 namespace test_final_override
18074 virtual void f() {}
18077 struct Derived : public Base
18079 virtual void f() override {}
18084 namespace test_double_right_angle_brackets
18087 template < typename T >
18090 typedef check<void> single_type;
18091 typedef check<check<void>> double_type;
18092 typedef check<check<check<void>>> triple_type;
18093 typedef check<check<check<check<void>>>> quadruple_type;
18097 namespace test_decltype
18110 namespace test_type_deduction
18113 template < typename T1, typename T2 >
18116 static const bool value = false;
18119 template < typename T >
18120 struct is_same<T, T>
18122 static const bool value = true;
18125 template < typename T1, typename T2 >
18127 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18133 test(const int c, volatile int v)
18135 static_assert(is_same<int, decltype(0)>::value == true, "");
18136 static_assert(is_same<int, decltype(c)>::value == false, "");
18137 static_assert(is_same<int, decltype(v)>::value == false, "");
18140 auto sumi = ac + av + 'x';
18141 auto sumf = ac + av + 1.0;
18142 static_assert(is_same<int, decltype(ac)>::value == true, "");
18143 static_assert(is_same<int, decltype(av)>::value == true, "");
18144 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18145 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18146 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18147 return (sumf > 0.0) ? sumi : add(c, v);
18152 namespace test_noexcept
18155 int f() { return 0; }
18156 int g() noexcept { return 0; }
18158 static_assert(noexcept(f()) == false, "");
18159 static_assert(noexcept(g()) == true, "");
18163 namespace test_constexpr
18166 template < typename CharT >
18167 unsigned long constexpr
18168 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18170 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18173 template < typename CharT >
18174 unsigned long constexpr
18175 strlen_c(const CharT *const s) noexcept
18177 return strlen_c_r(s, 0UL);
18180 static_assert(strlen_c("") == 0UL, "");
18181 static_assert(strlen_c("1") == 1UL, "");
18182 static_assert(strlen_c("example") == 7UL, "");
18183 static_assert(strlen_c("another\0example") == 7UL, "");
18187 namespace test_rvalue_references
18193 static constexpr int value = N;
18196 answer<1> f(int&) { return answer<1>(); }
18197 answer<2> f(const int&) { return answer<2>(); }
18198 answer<3> f(int&&) { return answer<3>(); }
18205 static_assert(decltype(f(i))::value == 1, "");
18206 static_assert(decltype(f(c))::value == 2, "");
18207 static_assert(decltype(f(0))::value == 3, "");
18212 namespace test_uniform_initialization
18217 static const int zero {};
18218 static const int one {1};
18221 static_assert(test::zero == 0, "");
18222 static_assert(test::one == 1, "");
18226 namespace test_lambdas
18232 auto lambda1 = [](){};
18233 auto lambda2 = lambda1;
18241 auto a = [](int i, int j){ return i + j; }(1, 2);
18242 auto b = []() -> int { return '0'; }();
18243 auto c = [=](){ return a + b; }();
18244 auto d = [&](){ return c; }();
18245 auto e = [a, &b](int x) mutable {
18246 const auto identity = [](int y){ return y; };
18247 for (auto i = 0; i < a; ++i)
18249 return x + identity(a + b);
18251 return a + b + c + d + e;
18257 const auto nullary = [](){ return 0; };
18258 const auto unary = [](int x){ return x; };
18259 using nullary_t = decltype(nullary);
18260 using unary_t = decltype(unary);
18261 const auto higher1st = [](nullary_t f){ return f(); };
18262 const auto higher2nd = [unary](nullary_t f1){
18263 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18265 return higher1st(nullary) + higher2nd(nullary)(unary);
18270 namespace test_variadic_templates
18276 template <int N0, int... N1toN>
18277 struct sum<N0, N1toN...>
18279 static constexpr auto value = N0 + sum<N1toN...>::value;
18285 static constexpr auto value = 0;
18288 static_assert(sum<>::value == 0, "");
18289 static_assert(sum<1>::value == 1, "");
18290 static_assert(sum<23>::value == 23, "");
18291 static_assert(sum<1, 2>::value == 3, "");
18292 static_assert(sum<5, 5, 11>::value == 21, "");
18293 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18297 // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18298 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18299 // because of this.
18300 namespace test_template_alias_sfinae
18305 template<typename T>
18306 using member = typename T::member_type;
18308 template<typename T>
18311 template<typename T>
18312 void func(member<T>*) {}
18316 void test() { func<foo>(0); }
18320 } // namespace cxx11
18322 #endif // __cplusplus >= 201103L
18327 if ac_fn_cxx_try_compile "$LINENO"; then :
18328 ax_cv_cxx_compile_cxx11=yes
18330 ax_cv_cxx_compile_cxx11=no
18332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18335 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18336 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18340 if test x$ac_success = xno; then
18341 for alternative in ${ax_cxx_compile_alternatives}; do
18342 switch="-std=gnu++${alternative}"
18343 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18345 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18346 if eval \${$cachevar+:} false; then :
18347 $as_echo_n "(cached) " >&6
18351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18352 /* end confdefs.h. */
18355 // If the compiler admits that it is not ready for C++11, why torture it?
18356 // Hopefully, this will speed up the test.
18358 #ifndef __cplusplus
18360 #error "This is not a C++ compiler"
18362 #elif __cplusplus < 201103L
18364 #error "This is not a C++11 compiler"
18371 namespace test_static_assert
18374 template <typename T>
18377 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18382 namespace test_final_override
18387 virtual void f() {}
18390 struct Derived : public Base
18392 virtual void f() override {}
18397 namespace test_double_right_angle_brackets
18400 template < typename T >
18403 typedef check<void> single_type;
18404 typedef check<check<void>> double_type;
18405 typedef check<check<check<void>>> triple_type;
18406 typedef check<check<check<check<void>>>> quadruple_type;
18410 namespace test_decltype
18423 namespace test_type_deduction
18426 template < typename T1, typename T2 >
18429 static const bool value = false;
18432 template < typename T >
18433 struct is_same<T, T>
18435 static const bool value = true;
18438 template < typename T1, typename T2 >
18440 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18446 test(const int c, volatile int v)
18448 static_assert(is_same<int, decltype(0)>::value == true, "");
18449 static_assert(is_same<int, decltype(c)>::value == false, "");
18450 static_assert(is_same<int, decltype(v)>::value == false, "");
18453 auto sumi = ac + av + 'x';
18454 auto sumf = ac + av + 1.0;
18455 static_assert(is_same<int, decltype(ac)>::value == true, "");
18456 static_assert(is_same<int, decltype(av)>::value == true, "");
18457 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18458 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18459 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18460 return (sumf > 0.0) ? sumi : add(c, v);
18465 namespace test_noexcept
18468 int f() { return 0; }
18469 int g() noexcept { return 0; }
18471 static_assert(noexcept(f()) == false, "");
18472 static_assert(noexcept(g()) == true, "");
18476 namespace test_constexpr
18479 template < typename CharT >
18480 unsigned long constexpr
18481 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18483 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18486 template < typename CharT >
18487 unsigned long constexpr
18488 strlen_c(const CharT *const s) noexcept
18490 return strlen_c_r(s, 0UL);
18493 static_assert(strlen_c("") == 0UL, "");
18494 static_assert(strlen_c("1") == 1UL, "");
18495 static_assert(strlen_c("example") == 7UL, "");
18496 static_assert(strlen_c("another\0example") == 7UL, "");
18500 namespace test_rvalue_references
18506 static constexpr int value = N;
18509 answer<1> f(int&) { return answer<1>(); }
18510 answer<2> f(const int&) { return answer<2>(); }
18511 answer<3> f(int&&) { return answer<3>(); }
18518 static_assert(decltype(f(i))::value == 1, "");
18519 static_assert(decltype(f(c))::value == 2, "");
18520 static_assert(decltype(f(0))::value == 3, "");
18525 namespace test_uniform_initialization
18530 static const int zero {};
18531 static const int one {1};
18534 static_assert(test::zero == 0, "");
18535 static_assert(test::one == 1, "");
18539 namespace test_lambdas
18545 auto lambda1 = [](){};
18546 auto lambda2 = lambda1;
18554 auto a = [](int i, int j){ return i + j; }(1, 2);
18555 auto b = []() -> int { return '0'; }();
18556 auto c = [=](){ return a + b; }();
18557 auto d = [&](){ return c; }();
18558 auto e = [a, &b](int x) mutable {
18559 const auto identity = [](int y){ return y; };
18560 for (auto i = 0; i < a; ++i)
18562 return x + identity(a + b);
18564 return a + b + c + d + e;
18570 const auto nullary = [](){ return 0; };
18571 const auto unary = [](int x){ return x; };
18572 using nullary_t = decltype(nullary);
18573 using unary_t = decltype(unary);
18574 const auto higher1st = [](nullary_t f){ return f(); };
18575 const auto higher2nd = [unary](nullary_t f1){
18576 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18578 return higher1st(nullary) + higher2nd(nullary)(unary);
18583 namespace test_variadic_templates
18589 template <int N0, int... N1toN>
18590 struct sum<N0, N1toN...>
18592 static constexpr auto value = N0 + sum<N1toN...>::value;
18598 static constexpr auto value = 0;
18601 static_assert(sum<>::value == 0, "");
18602 static_assert(sum<1>::value == 1, "");
18603 static_assert(sum<23>::value == 23, "");
18604 static_assert(sum<1, 2>::value == 3, "");
18605 static_assert(sum<5, 5, 11>::value == 21, "");
18606 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18610 // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18611 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18612 // because of this.
18613 namespace test_template_alias_sfinae
18618 template<typename T>
18619 using member = typename T::member_type;
18621 template<typename T>
18624 template<typename T>
18625 void func(member<T>*) {}
18629 void test() { func<foo>(0); }
18633 } // namespace cxx11
18635 #endif // __cplusplus >= 201103L
18640 if ac_fn_cxx_try_compile "$LINENO"; then :
18645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18648 eval ac_res=\$$cachevar
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18650 $as_echo "$ac_res" >&6; }
18651 if eval test x\$$cachevar = xyes; then
18653 if test -n "$CXXCPP" ; then
18654 CXXCPP="$CXXCPP $switch"
18662 if test x$ac_success = xno; then
18663 for alternative in ${ax_cxx_compile_alternatives}; do
18664 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
18665 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18667 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18668 if eval \${$cachevar+:} false; then :
18669 $as_echo_n "(cached) " >&6
18673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18674 /* end confdefs.h. */
18677 // If the compiler admits that it is not ready for C++11, why torture it?
18678 // Hopefully, this will speed up the test.
18680 #ifndef __cplusplus
18682 #error "This is not a C++ compiler"
18684 #elif __cplusplus < 201103L
18686 #error "This is not a C++11 compiler"
18693 namespace test_static_assert
18696 template <typename T>
18699 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18704 namespace test_final_override
18709 virtual void f() {}
18712 struct Derived : public Base
18714 virtual void f() override {}
18719 namespace test_double_right_angle_brackets
18722 template < typename T >
18725 typedef check<void> single_type;
18726 typedef check<check<void>> double_type;
18727 typedef check<check<check<void>>> triple_type;
18728 typedef check<check<check<check<void>>>> quadruple_type;
18732 namespace test_decltype
18745 namespace test_type_deduction
18748 template < typename T1, typename T2 >
18751 static const bool value = false;
18754 template < typename T >
18755 struct is_same<T, T>
18757 static const bool value = true;
18760 template < typename T1, typename T2 >
18762 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18768 test(const int c, volatile int v)
18770 static_assert(is_same<int, decltype(0)>::value == true, "");
18771 static_assert(is_same<int, decltype(c)>::value == false, "");
18772 static_assert(is_same<int, decltype(v)>::value == false, "");
18775 auto sumi = ac + av + 'x';
18776 auto sumf = ac + av + 1.0;
18777 static_assert(is_same<int, decltype(ac)>::value == true, "");
18778 static_assert(is_same<int, decltype(av)>::value == true, "");
18779 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18780 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18781 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18782 return (sumf > 0.0) ? sumi : add(c, v);
18787 namespace test_noexcept
18790 int f() { return 0; }
18791 int g() noexcept { return 0; }
18793 static_assert(noexcept(f()) == false, "");
18794 static_assert(noexcept(g()) == true, "");
18798 namespace test_constexpr
18801 template < typename CharT >
18802 unsigned long constexpr
18803 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18805 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18808 template < typename CharT >
18809 unsigned long constexpr
18810 strlen_c(const CharT *const s) noexcept
18812 return strlen_c_r(s, 0UL);
18815 static_assert(strlen_c("") == 0UL, "");
18816 static_assert(strlen_c("1") == 1UL, "");
18817 static_assert(strlen_c("example") == 7UL, "");
18818 static_assert(strlen_c("another\0example") == 7UL, "");
18822 namespace test_rvalue_references
18828 static constexpr int value = N;
18831 answer<1> f(int&) { return answer<1>(); }
18832 answer<2> f(const int&) { return answer<2>(); }
18833 answer<3> f(int&&) { return answer<3>(); }
18840 static_assert(decltype(f(i))::value == 1, "");
18841 static_assert(decltype(f(c))::value == 2, "");
18842 static_assert(decltype(f(0))::value == 3, "");
18847 namespace test_uniform_initialization
18852 static const int zero {};
18853 static const int one {1};
18856 static_assert(test::zero == 0, "");
18857 static_assert(test::one == 1, "");
18861 namespace test_lambdas
18867 auto lambda1 = [](){};
18868 auto lambda2 = lambda1;
18876 auto a = [](int i, int j){ return i + j; }(1, 2);
18877 auto b = []() -> int { return '0'; }();
18878 auto c = [=](){ return a + b; }();
18879 auto d = [&](){ return c; }();
18880 auto e = [a, &b](int x) mutable {
18881 const auto identity = [](int y){ return y; };
18882 for (auto i = 0; i < a; ++i)
18884 return x + identity(a + b);
18886 return a + b + c + d + e;
18892 const auto nullary = [](){ return 0; };
18893 const auto unary = [](int x){ return x; };
18894 using nullary_t = decltype(nullary);
18895 using unary_t = decltype(unary);
18896 const auto higher1st = [](nullary_t f){ return f(); };
18897 const auto higher2nd = [unary](nullary_t f1){
18898 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18900 return higher1st(nullary) + higher2nd(nullary)(unary);
18905 namespace test_variadic_templates
18911 template <int N0, int... N1toN>
18912 struct sum<N0, N1toN...>
18914 static constexpr auto value = N0 + sum<N1toN...>::value;
18920 static constexpr auto value = 0;
18923 static_assert(sum<>::value == 0, "");
18924 static_assert(sum<1>::value == 1, "");
18925 static_assert(sum<23>::value == 23, "");
18926 static_assert(sum<1, 2>::value == 3, "");
18927 static_assert(sum<5, 5, 11>::value == 21, "");
18928 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18932 // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18933 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18934 // because of this.
18935 namespace test_template_alias_sfinae
18940 template<typename T>
18941 using member = typename T::member_type;
18943 template<typename T>
18946 template<typename T>
18947 void func(member<T>*) {}
18951 void test() { func<foo>(0); }
18955 } // namespace cxx11
18957 #endif // __cplusplus >= 201103L
18962 if ac_fn_cxx_try_compile "$LINENO"; then :
18967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18970 eval ac_res=\$$cachevar
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18972 $as_echo "$ac_res" >&6; }
18973 if eval test x\$$cachevar = xyes; then
18975 if test -n "$CXXCPP" ; then
18976 CXXCPP="$CXXCPP $switch"
18982 if test x$ac_success = xyes; then
18988 ac_cpp='$CPP $CPPFLAGS'
18989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18993 if test x$ax_cxx_compile_cxx11_required = xtrue; then
18994 if test x$ac_success = xno; then
18995 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18998 if test x$ac_success = xno; then
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
19001 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
19005 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
19011 # Check whether --enable-largefile was given.
19012 if test "${enable_largefile+set}" = set; then :
19013 enableval=$enable_largefile;
19016 if test "$enable_largefile" != no; then
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
19019 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
19020 if ${ac_cv_sys_largefile_CC+:} false; then :
19021 $as_echo_n "(cached) " >&6
19023 ac_cv_sys_largefile_CC=no
19024 if test "$GCC" != yes; then
19027 # IRIX 6.2 and later do not support large files by default,
19028 # so use the C compiler's -n32 option if that helps.
19029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030 /* end confdefs.h. */
19031 #include <sys/types.h>
19032 /* Check that off_t can represent 2**63 - 1 correctly.
19033 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19034 since some C++ compilers masquerading as C compilers
19035 incorrectly reject 9223372036854775807. */
19036 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19037 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19038 && LARGE_OFF_T % 2147483647 == 1)
19048 if ac_fn_c_try_compile "$LINENO"; then :
19051 rm -f core conftest.err conftest.$ac_objext
19053 if ac_fn_c_try_compile "$LINENO"; then :
19054 ac_cv_sys_largefile_CC=' -n32'; break
19056 rm -f core conftest.err conftest.$ac_objext
19060 rm -f conftest.$ac_ext
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
19064 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
19065 if test "$ac_cv_sys_largefile_CC" != no; then
19066 CC=$CC$ac_cv_sys_largefile_CC
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19070 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19071 if ${ac_cv_sys_file_offset_bits+:} false; then :
19072 $as_echo_n "(cached) " >&6
19075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19076 /* end confdefs.h. */
19077 #include <sys/types.h>
19078 /* Check that off_t can represent 2**63 - 1 correctly.
19079 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19080 since some C++ compilers masquerading as C compilers
19081 incorrectly reject 9223372036854775807. */
19082 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19084 && LARGE_OFF_T % 2147483647 == 1)
19094 if ac_fn_c_try_compile "$LINENO"; then :
19095 ac_cv_sys_file_offset_bits=no; break
19097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19099 /* end confdefs.h. */
19100 #define _FILE_OFFSET_BITS 64
19101 #include <sys/types.h>
19102 /* Check that off_t can represent 2**63 - 1 correctly.
19103 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19104 since some C++ compilers masquerading as C compilers
19105 incorrectly reject 9223372036854775807. */
19106 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19107 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19108 && LARGE_OFF_T % 2147483647 == 1)
19118 if ac_fn_c_try_compile "$LINENO"; then :
19119 ac_cv_sys_file_offset_bits=64; break
19121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19122 ac_cv_sys_file_offset_bits=unknown
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
19127 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
19128 case $ac_cv_sys_file_offset_bits in #(
19131 cat >>confdefs.h <<_ACEOF
19132 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19137 if test $ac_cv_sys_file_offset_bits = unknown; then
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
19139 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19140 if ${ac_cv_sys_large_files+:} false; then :
19141 $as_echo_n "(cached) " >&6
19144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19145 /* end confdefs.h. */
19146 #include <sys/types.h>
19147 /* Check that off_t can represent 2**63 - 1 correctly.
19148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19149 since some C++ compilers masquerading as C compilers
19150 incorrectly reject 9223372036854775807. */
19151 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19153 && LARGE_OFF_T % 2147483647 == 1)
19163 if ac_fn_c_try_compile "$LINENO"; then :
19164 ac_cv_sys_large_files=no; break
19166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19168 /* end confdefs.h. */
19169 #define _LARGE_FILES 1
19170 #include <sys/types.h>
19171 /* Check that off_t can represent 2**63 - 1 correctly.
19172 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19173 since some C++ compilers masquerading as C compilers
19174 incorrectly reject 9223372036854775807. */
19175 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19177 && LARGE_OFF_T % 2147483647 == 1)
19187 if ac_fn_c_try_compile "$LINENO"; then :
19188 ac_cv_sys_large_files=1; break
19190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19191 ac_cv_sys_large_files=unknown
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
19196 $as_echo "$ac_cv_sys_large_files" >&6; }
19197 case $ac_cv_sys_large_files in #(
19200 cat >>confdefs.h <<_ACEOF
19201 #define _LARGE_FILES $ac_cv_sys_large_files
19218 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19219 if test -n "$ac_tool_prefix"; then
19220 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19221 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19223 $as_echo_n "checking for $ac_word... " >&6; }
19224 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19225 $as_echo_n "(cached) " >&6
19227 case $PKG_CONFIG in
19229 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19233 for as_dir in $PATH
19236 test -z "$as_dir" && as_dir=.
19237 for ac_exec_ext in '' $ac_executable_extensions; do
19238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19239 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19250 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19251 if test -n "$PKG_CONFIG"; then
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19253 $as_echo "$PKG_CONFIG" >&6; }
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19256 $as_echo "no" >&6; }
19261 if test -z "$ac_cv_path_PKG_CONFIG"; then
19262 ac_pt_PKG_CONFIG=$PKG_CONFIG
19263 # Extract the first word of "pkg-config", so it can be a program name with args.
19264 set dummy pkg-config; ac_word=$2
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19266 $as_echo_n "checking for $ac_word... " >&6; }
19267 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19268 $as_echo_n "(cached) " >&6
19270 case $ac_pt_PKG_CONFIG in
19272 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19276 for as_dir in $PATH
19279 test -z "$as_dir" && as_dir=.
19280 for ac_exec_ext in '' $ac_executable_extensions; do
19281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19282 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19293 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19294 if test -n "$ac_pt_PKG_CONFIG"; then
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19296 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19299 $as_echo "no" >&6; }
19302 if test "x$ac_pt_PKG_CONFIG" = x; then
19305 case $cross_compiling:$ac_tool_warned in
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19309 ac_tool_warned=yes ;;
19311 PKG_CONFIG=$ac_pt_PKG_CONFIG
19314 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19318 if test -n "$PKG_CONFIG"; then
19319 _pkg_min_version=0.20
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19321 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19322 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19324 $as_echo "yes" >&6; }
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19327 $as_echo "no" >&6; }
19332 RAGEL=${RAGEL-"${am_missing_run}ragel"}
19335 GIT=${GIT-"${am_missing_run}git"}
19357 HB_LIBTOOL_VERSION_INFO=20600:7:20600
19361 # Check whether --with-libstdc++ was given.
19362 if test "${with_libstdc__+set}" = set; then :
19363 withval=$with_libstdc__; with_libstdcxx=$withval
19368 if test "x$with_libstdcxx" = "xyes"; then
19369 WITH_LIBSTDCXX_TRUE=
19370 WITH_LIBSTDCXX_FALSE='#'
19372 WITH_LIBSTDCXX_TRUE='#'
19373 WITH_LIBSTDCXX_FALSE=
19383 gtk_doc_requires="gtk-doc >= 1.15"
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
19385 $as_echo_n "checking for gtk-doc... " >&6; }
19386 if test -n "$PKG_CONFIG" && \
19387 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
19388 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
19390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19391 test $ac_status = 0; }; then
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
19397 $as_echo "$have_gtk_doc" >&6; }
19399 if test "$have_gtk_doc" = "no"; then
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19401 You will not be able to create source packages with 'make dist'
19402 because $gtk_doc_requires is not found." >&5
19403 $as_echo "$as_me: WARNING:
19404 You will not be able to create source packages with 'make dist'
19405 because $gtk_doc_requires is not found." >&2;}
19408 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19409 set dummy gtkdoc-check; ac_word=$2
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19411 $as_echo_n "checking for $ac_word... " >&6; }
19412 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
19413 $as_echo_n "(cached) " >&6
19415 if test -n "$GTKDOC_CHECK"; then
19416 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
19418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19419 for as_dir in $PATH
19422 test -z "$as_dir" && as_dir=.
19423 for ac_exec_ext in '' $ac_executable_extensions; do
19424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19425 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
19426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19435 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
19436 if test -n "$GTKDOC_CHECK"; then
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
19438 $as_echo "$GTKDOC_CHECK" >&6; }
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19441 $as_echo "no" >&6; }
19445 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19446 set dummy gtkdoc-check; ac_word=$2
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19448 $as_echo_n "checking for $ac_word... " >&6; }
19449 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
19450 $as_echo_n "(cached) " >&6
19452 case $GTKDOC_CHECK_PATH in
19454 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
19457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19458 for as_dir in $PATH
19461 test -z "$as_dir" && as_dir=.
19462 for ac_exec_ext in '' $ac_executable_extensions; do
19463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19464 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
19465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19475 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
19476 if test -n "$GTKDOC_CHECK_PATH"; then
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
19478 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19481 $as_echo "no" >&6; }
19485 for ac_prog in gtkdoc-rebase
19487 # Extract the first word of "$ac_prog", so it can be a program name with args.
19488 set dummy $ac_prog; ac_word=$2
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19490 $as_echo_n "checking for $ac_word... " >&6; }
19491 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
19492 $as_echo_n "(cached) " >&6
19494 case $GTKDOC_REBASE in
19496 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
19499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19500 for as_dir in $PATH
19503 test -z "$as_dir" && as_dir=.
19504 for ac_exec_ext in '' $ac_executable_extensions; do
19505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19506 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
19507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19517 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
19518 if test -n "$GTKDOC_REBASE"; then
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
19520 $as_echo "$GTKDOC_REBASE" >&6; }
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19523 $as_echo "no" >&6; }
19527 test -n "$GTKDOC_REBASE" && break
19529 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
19531 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
19532 set dummy gtkdoc-mkpdf; ac_word=$2
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19534 $as_echo_n "checking for $ac_word... " >&6; }
19535 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
19536 $as_echo_n "(cached) " >&6
19538 case $GTKDOC_MKPDF in
19540 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
19543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19544 for as_dir in $PATH
19547 test -z "$as_dir" && as_dir=.
19548 for ac_exec_ext in '' $ac_executable_extensions; do
19549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19550 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
19551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19561 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
19562 if test -n "$GTKDOC_MKPDF"; then
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
19564 $as_echo "$GTKDOC_MKPDF" >&6; }
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19567 $as_echo "no" >&6; }
19573 # Check whether --with-html-dir was given.
19574 if test "${with_html_dir+set}" = set; then :
19575 withval=$with_html_dir;
19577 with_html_dir='${datadir}/gtk-doc/html'
19580 HTML_DIR="$with_html_dir"
19583 # Check whether --enable-gtk-doc was given.
19584 if test "${enable_gtk_doc+set}" = set; then :
19585 enableval=$enable_gtk_doc;
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
19592 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
19594 $as_echo "$enable_gtk_doc" >&6; }
19596 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
19598 You must have $gtk_doc_requires installed to build documentation for
19599 $PACKAGE_NAME. Please install gtk-doc or disable building the
19600 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
19603 if test "x$PACKAGE_NAME" != "xglib"; then
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
19607 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
19609 if test -n "$GTKDOC_DEPS_CFLAGS"; then
19610 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
19611 elif test -n "$PKG_CONFIG"; then
19612 if test -n "$PKG_CONFIG" && \
19613 { { $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
19614 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
19616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19617 test $ac_status = 0; }; then
19618 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
19619 test "x$?" != "x0" && pkg_failed=yes
19626 if test -n "$GTKDOC_DEPS_LIBS"; then
19627 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
19628 elif test -n "$PKG_CONFIG"; then
19629 if test -n "$PKG_CONFIG" && \
19630 { { $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
19631 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
19633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19634 test $ac_status = 0; }; then
19635 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
19636 test "x$?" != "x0" && pkg_failed=yes
19646 if test $pkg_failed = yes; then
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19648 $as_echo "no" >&6; }
19650 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19651 _pkg_short_errors_supported=yes
19653 _pkg_short_errors_supported=no
19655 if test $_pkg_short_errors_supported = yes; then
19656 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
19658 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
19660 # Put the nasty error message in config.log where it belongs
19661 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
19664 elif test $pkg_failed = untried; then
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19666 $as_echo "no" >&6; }
19669 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
19670 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19672 $as_echo "yes" >&6; }
19677 # Check whether --enable-gtk-doc-html was given.
19678 if test "${enable_gtk_doc_html+set}" = set; then :
19679 enableval=$enable_gtk_doc_html;
19681 enable_gtk_doc_html=yes
19684 # Check whether --enable-gtk-doc-pdf was given.
19685 if test "${enable_gtk_doc_pdf+set}" = set; then :
19686 enableval=$enable_gtk_doc_pdf;
19688 enable_gtk_doc_pdf=no
19692 if test -z "$GTKDOC_MKPDF"; then
19693 enable_gtk_doc_pdf=no
19696 if test -z "$AM_DEFAULT_VERBOSITY"; then
19697 AM_DEFAULT_VERBOSITY=1
19701 if test x$have_gtk_doc = xyes; then
19703 HAVE_GTK_DOC_FALSE='#'
19705 HAVE_GTK_DOC_TRUE='#'
19706 HAVE_GTK_DOC_FALSE=
19709 if test x$enable_gtk_doc = xyes; then
19710 ENABLE_GTK_DOC_TRUE=
19711 ENABLE_GTK_DOC_FALSE='#'
19713 ENABLE_GTK_DOC_TRUE='#'
19714 ENABLE_GTK_DOC_FALSE=
19717 if test x$enable_gtk_doc_html = xyes; then
19718 GTK_DOC_BUILD_HTML_TRUE=
19719 GTK_DOC_BUILD_HTML_FALSE='#'
19721 GTK_DOC_BUILD_HTML_TRUE='#'
19722 GTK_DOC_BUILD_HTML_FALSE=
19725 if test x$enable_gtk_doc_pdf = xyes; then
19726 GTK_DOC_BUILD_PDF_TRUE=
19727 GTK_DOC_BUILD_PDF_FALSE='#'
19729 GTK_DOC_BUILD_PDF_TRUE='#'
19730 GTK_DOC_BUILD_PDF_FALSE=
19733 if test -n "$LIBTOOL"; then
19734 GTK_DOC_USE_LIBTOOL_TRUE=
19735 GTK_DOC_USE_LIBTOOL_FALSE='#'
19737 GTK_DOC_USE_LIBTOOL_TRUE='#'
19738 GTK_DOC_USE_LIBTOOL_FALSE=
19741 if test -n "$GTKDOC_REBASE"; then
19742 GTK_DOC_USE_REBASE_TRUE=
19743 GTK_DOC_USE_REBASE_FALSE='#'
19745 GTK_DOC_USE_REBASE_TRUE='#'
19746 GTK_DOC_USE_REBASE_FALSE=
19750 if test "x$enable_gtk_doc" = xyes; then
19755 # Functions and headers
19756 for ac_func in atexit mprotect sysconf getpagesize mmap isatty roundf
19758 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19759 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19760 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19761 cat >>confdefs.h <<_ACEOF
19762 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19768 for ac_header in unistd.h sys/mman.h stdbool.h
19770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19771 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19772 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19773 cat >>confdefs.h <<_ACEOF
19774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19784 # The cast to long int works around a bug in the HP C Compiler,
19785 # see AC_CHECK_SIZEOF for more information.
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
19787 $as_echo_n "checking alignment of struct{char;}... " >&6; }
19788 if ${ac_cv_alignof_struct_char__+:} false; then :
19789 $as_echo_n "(cached) " >&6
19791 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__" "$ac_includes_default
19793 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
19795 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
19798 if test "$ac_cv_type_struct_char__" = yes; then
19799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19801 as_fn_error 77 "cannot compute alignment of struct{char;}
19802 See \`config.log' for more details" "$LINENO" 5; }
19804 ac_cv_alignof_struct_char__=0
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
19810 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
19814 cat >>confdefs.h <<_ACEOF
19815 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
19819 if test "x$GCC" = "xyes"; then
19821 # Make symbols link locally
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Bsymbolic-functions" >&5
19823 $as_echo_n "checking whether the linker accepts -Bsymbolic-functions... " >&6; }
19824 if ${ax_cv_check_ldflags___Bsymbolic_functions+:} false; then :
19825 $as_echo_n "(cached) " >&6
19828 ax_check_save_flags=$LDFLAGS
19829 LDFLAGS="$LDFLAGS -Bsymbolic-functions"
19830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19831 /* end confdefs.h. */
19841 if ac_fn_c_try_link "$LINENO"; then :
19842 ax_cv_check_ldflags___Bsymbolic_functions=yes
19844 ax_cv_check_ldflags___Bsymbolic_functions=no
19846 rm -f core conftest.err conftest.$ac_objext \
19847 conftest$ac_exeext conftest.$ac_ext
19848 LDFLAGS=$ax_check_save_flags
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Bsymbolic_functions" >&5
19851 $as_echo "$ax_cv_check_ldflags___Bsymbolic_functions" >&6; }
19852 if test "x$ax_cv_check_ldflags___Bsymbolic_functions" = xyes; then :
19853 LDFLAGS="$LDFLAGS -Bsymbolic-functions"
19859 # Make it possible to not link to libstdc++
19860 # No threadsafe statics in C++ as we do it ourselves.
19861 # We don't use these features, so it's safe to disable them
19862 # even in the cases where we DO link to libstdc++.
19863 # Put -fno-rtti before $CXXFLAGS such that users can re-enable it
19864 # by overriding CXXFLAGS.
19865 CXXFLAGS="-fno-rtti $CXXFLAGS -fno-exceptions -fno-threadsafe-statics"
19871 # Hide inline methods
19872 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19878 if test "x$ac_cv_alignof_struct_char__" != x1; then
19879 # Request byte alignment
19880 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
19886 if test "x$GCC" = "xyes"; then
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
19897 $as_echo_n "checking for native Win32... " >&6; }
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
19904 $as_echo "$hb_os_win32" >&6; }
19905 if test "$hb_os_win32" = "yes"; then
19920 ac_cpp='$CPP $CPPFLAGS'
19921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19927 # We used to check for pthread.h first, but this fails if pthread.h
19928 # requires special compiler flags (e.g. on Tru64 or Sequent).
19929 # It gets checked for in the link test anyway.
19931 # First of all, check if the user has set any of the PTHREAD_LIBS,
19932 # etcetera environment variables, and if threads linking works using
19934 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19935 ax_pthread_save_CC="$CC"
19936 ax_pthread_save_CFLAGS="$CFLAGS"
19937 ax_pthread_save_LIBS="$LIBS"
19938 if test "x$PTHREAD_CC" != "x"; then :
19941 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19942 LIBS="$PTHREAD_LIBS $LIBS"
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19944 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19946 /* end confdefs.h. */
19948 /* Override any GCC internal prototype to avoid an error.
19949 Use char because int might match the return type of a GCC
19950 builtin and then its argument prototype would still apply. */
19954 char pthread_join ();
19958 return pthread_join ();
19963 if ac_fn_c_try_link "$LINENO"; then :
19966 rm -f core conftest.err conftest.$ac_objext \
19967 conftest$ac_exeext conftest.$ac_ext
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19969 $as_echo "$ax_pthread_ok" >&6; }
19970 if test "x$ax_pthread_ok" = "xno"; then
19974 CC="$ax_pthread_save_CC"
19975 CFLAGS="$ax_pthread_save_CFLAGS"
19976 LIBS="$ax_pthread_save_LIBS"
19979 # We must check for the threads library under a number of different
19980 # names; the ordering is very important because some systems
19981 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19982 # libraries is broken (non-POSIX).
19984 # Create a list of thread flags to try. Items starting with a "-" are
19985 # C compiler flags, and other items are library names, except for "none"
19986 # which indicates that we try without any flags at all, and "pthread-config"
19987 # which is a program returning the flags for the Pth emulation library.
19989 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19991 # The ordering *is* (sometimes) important. Some notes on the
19992 # individual items follow:
19994 # pthreads: AIX (must check this before -lpthread)
19995 # none: in case threads are in libc; should be tried before -Kthread and
19996 # other compiler flags to prevent continual compiler warnings
19997 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19998 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19999 # (Note: HP C rejects this with "bad form for `-t' option")
20000 # -pthreads: Solaris/gcc (Note: HP C also rejects)
20001 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20002 # doesn't hurt to check since this sometimes defines pthreads and
20003 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
20004 # is present but should not be used directly; and before -mthreads,
20005 # because the compiler interprets this as "-mt" + "-hreads")
20006 # -mthreads: Mingw32/gcc, Lynx/gcc
20007 # pthread: Linux, etcetera
20008 # --thread-safe: KAI C++
20009 # pthread-config: use pthread-config program (for GNU Pth library)
20015 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20016 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20018 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
20023 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
20024 # multi-threading and also sets -lpthread."
20026 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
20031 # IBM z/OS requires a feature-test macro to be defined in order to
20032 # enable POSIX threads at all, so give the user a hint if this is
20033 # not set. (We don't define these ourselves, as they can affect
20034 # other portions of the system API in unpredictable ways.)
20036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20037 /* end confdefs.h. */
20039 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
20040 AX_PTHREAD_ZOS_MISSING
20044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20045 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
20047 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
20055 # On Solaris (at least, for some versions), libc contains stubbed
20056 # (non-functional) versions of the pthreads routines, so link-based
20057 # tests will erroneously succeed. (N.B.: The stubs are missing
20058 # pthread_cleanup_push, or rather a function called by this macro,
20059 # so we could check for that, but who knows whether they'll stub
20060 # that too in a future libc.) So we'll check first for the
20061 # standard Solaris way of linking pthreads (-mt -lpthread).
20063 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
20067 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
20069 if test "x$GCC" = "xyes"; then :
20070 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
20073 # The presence of a feature test macro requesting re-entrant function
20074 # definitions is, on some systems, a strong hint that pthreads support is
20075 # correctly enabled
20078 darwin* | hpux* | linux* | osf* | solaris*)
20079 ax_pthread_check_macro="_REENTRANT"
20083 ax_pthread_check_macro="_THREAD_SAFE"
20087 ax_pthread_check_macro="--"
20090 if test "x$ax_pthread_check_macro" = "x--"; then :
20091 ax_pthread_check_cond=0
20093 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
20096 # Are we compiling with Clang?
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
20099 $as_echo_n "checking whether $CC is Clang... " >&6; }
20100 if ${ax_cv_PTHREAD_CLANG+:} false; then :
20101 $as_echo_n "(cached) " >&6
20103 ax_cv_PTHREAD_CLANG=no
20104 # Note that Autoconf sets GCC=yes for Clang as well as GCC
20105 if test "x$GCC" = "xyes"; then
20106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20107 /* end confdefs.h. */
20108 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
20109 # if defined(__clang__) && defined(__llvm__)
20110 AX_PTHREAD_CC_IS_CLANG
20114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20115 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
20116 ax_cv_PTHREAD_CLANG=yes
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
20124 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
20125 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
20127 ax_pthread_clang_warning=no
20129 # Clang needs special handling, because older versions handle the -pthread
20130 # option in a rather... idiosyncratic way
20132 if test "x$ax_pthread_clang" = "xyes"; then
20134 # Clang takes -pthread; it has never supported any other flag
20136 # (Note 1: This will need to be revisited if a system that Clang
20137 # supports has POSIX threads in a separate library. This tends not
20138 # to be the way of modern systems, but it's conceivable.)
20140 # (Note 2: On some systems, notably Darwin, -pthread is not needed
20141 # to get POSIX threads support; the API is always present and
20142 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
20143 # -pthread does define _REENTRANT, and while the Darwin headers
20144 # ignore this macro, third-party headers might not.)
20146 PTHREAD_CFLAGS="-pthread"
20151 # However, older versions of Clang make a point of warning the user
20152 # that, in an invocation where only linking and no compilation is
20153 # taking place, the -pthread option has no effect ("argument unused
20154 # during compilation"). They expect -pthread to be passed in only
20155 # when source code is being compiled.
20157 # Problem is, this is at odds with the way Automake and most other
20158 # C build frameworks function, which is that the same flags used in
20159 # compilation (CFLAGS) are also used in linking. Many systems
20160 # supported by AX_PTHREAD require exactly this for POSIX threads
20161 # support, and in fact it is often not straightforward to specify a
20162 # flag that is used only in the compilation phase and not in
20163 # linking. Such a scenario is extremely rare in practice.
20165 # Even though use of the -pthread flag in linking would only print
20166 # a warning, this can be a nuisance for well-run software projects
20167 # that build with -Werror. So if the active version of Clang has
20168 # this misfeature, we search for an option to squash it.
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
20171 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
20172 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
20173 $as_echo_n "(cached) " >&6
20175 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
20176 # Create an alternate version of $ac_link that compiles and
20177 # links in two steps (.c -> .o, .o -> exe) instead of one
20178 # (.c -> exe), because the warning occurs only in the second
20180 ax_pthread_save_ac_link="$ac_link"
20181 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
20182 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
20183 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
20184 ax_pthread_save_CFLAGS="$CFLAGS"
20185 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
20186 if test "x$ax_pthread_try" = "xunknown"; then :
20189 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
20190 ac_link="$ax_pthread_save_ac_link"
20191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20192 /* end confdefs.h. */
20193 int main(void){return 0;}
20195 if ac_fn_c_try_link "$LINENO"; then :
20196 ac_link="$ax_pthread_2step_ac_link"
20197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20198 /* end confdefs.h. */
20199 int main(void){return 0;}
20201 if ac_fn_c_try_link "$LINENO"; then :
20204 rm -f core conftest.err conftest.$ac_objext \
20205 conftest$ac_exeext conftest.$ac_ext
20208 rm -f core conftest.err conftest.$ac_objext \
20209 conftest$ac_exeext conftest.$ac_ext
20211 ac_link="$ax_pthread_save_ac_link"
20212 CFLAGS="$ax_pthread_save_CFLAGS"
20213 if test "x$ax_pthread_try" = "x"; then :
20216 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
20220 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
20222 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
20224 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
20227 fi # $ax_pthread_clang = yes
20229 if test "x$ax_pthread_ok" = "xno"; then
20230 for ax_pthread_try_flag in $ax_pthread_flags; do
20232 case $ax_pthread_try_flag in
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20235 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
20240 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
20241 PTHREAD_CFLAGS="-mt"
20242 PTHREAD_LIBS="-lpthread"
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
20247 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
20248 PTHREAD_CFLAGS="$ax_pthread_try_flag"
20252 # Extract the first word of "pthread-config", so it can be a program name with args.
20253 set dummy pthread-config; ac_word=$2
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20255 $as_echo_n "checking for $ac_word... " >&6; }
20256 if ${ac_cv_prog_ax_pthread_config+:} false; then :
20257 $as_echo_n "(cached) " >&6
20259 if test -n "$ax_pthread_config"; then
20260 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
20262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20263 for as_dir in $PATH
20266 test -z "$as_dir" && as_dir=.
20267 for ac_exec_ext in '' $ac_executable_extensions; do
20268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20269 ac_cv_prog_ax_pthread_config="yes"
20270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20277 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
20280 ax_pthread_config=$ac_cv_prog_ax_pthread_config
20281 if test -n "$ax_pthread_config"; then
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20283 $as_echo "$ax_pthread_config" >&6; }
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20286 $as_echo "no" >&6; }
20290 if test "x$ax_pthread_config" = "xno"; then :
20293 PTHREAD_CFLAGS="`pthread-config --cflags`"
20294 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
20299 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
20300 PTHREAD_LIBS="-l$ax_pthread_try_flag"
20304 ax_pthread_save_CFLAGS="$CFLAGS"
20305 ax_pthread_save_LIBS="$LIBS"
20306 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20307 LIBS="$PTHREAD_LIBS $LIBS"
20309 # Check for various functions. We must include pthread.h,
20310 # since some functions may be macros. (On the Sequent, we
20311 # need a special flag -Kthread to make this header compile.)
20312 # We check for pthread_join because it is in -lpthread on IRIX
20313 # while pthread_create is in libc. We check for pthread_attr_init
20314 # due to DEC craziness with -lpthreads. We check for
20315 # pthread_cleanup_push because it is one of the few pthread
20316 # functions on Solaris that doesn't have a non-functional libc stub.
20317 # We try pthread_create on general principles.
20319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20320 /* end confdefs.h. */
20321 #include <pthread.h>
20322 # if $ax_pthread_check_cond
20323 # error "$ax_pthread_check_macro must be defined"
20325 static void routine(void *a) { a = 0; }
20326 static void *start_routine(void *a) { return a; }
20330 pthread_t th; pthread_attr_t attr;
20331 pthread_create(&th, 0, start_routine, 0);
20332 pthread_join(th, 0);
20333 pthread_attr_init(&attr);
20334 pthread_cleanup_push(routine, 0);
20335 pthread_cleanup_pop(0) /* ; */
20340 if ac_fn_c_try_link "$LINENO"; then :
20343 rm -f core conftest.err conftest.$ac_objext \
20344 conftest$ac_exeext conftest.$ac_ext
20346 CFLAGS="$ax_pthread_save_CFLAGS"
20347 LIBS="$ax_pthread_save_LIBS"
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20350 $as_echo "$ax_pthread_ok" >&6; }
20351 if test "x$ax_pthread_ok" = "xyes"; then :
20360 # Various other checks:
20361 if test "x$ax_pthread_ok" = "xyes"; then
20362 ax_pthread_save_CFLAGS="$CFLAGS"
20363 ax_pthread_save_LIBS="$LIBS"
20364 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20365 LIBS="$PTHREAD_LIBS $LIBS"
20367 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20369 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20370 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
20371 $as_echo_n "(cached) " >&6
20373 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
20374 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20376 /* end confdefs.h. */
20377 #include <pthread.h>
20381 int attr = $ax_pthread_attr; return attr /* ; */
20386 if ac_fn_c_try_link "$LINENO"; then :
20387 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
20389 rm -f core conftest.err conftest.$ac_objext \
20390 conftest$ac_exeext conftest.$ac_ext
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
20395 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
20396 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
20397 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
20398 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
20400 cat >>confdefs.h <<_ACEOF
20401 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
20404 ax_pthread_joinable_attr_defined=yes
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
20409 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
20410 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
20411 $as_echo_n "(cached) " >&6
20413 ax_cv_PTHREAD_SPECIAL_FLAGS=no
20416 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
20422 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
20423 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
20424 test "x$ax_pthread_special_flags_added" != "xyes"; then :
20425 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
20426 ax_pthread_special_flags_added=yes
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20430 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20431 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
20432 $as_echo_n "(cached) " >&6
20434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20435 /* end confdefs.h. */
20436 #include <pthread.h>
20440 int i = PTHREAD_PRIO_INHERIT;
20445 if ac_fn_c_try_link "$LINENO"; then :
20446 ax_cv_PTHREAD_PRIO_INHERIT=yes
20448 ax_cv_PTHREAD_PRIO_INHERIT=no
20450 rm -f core conftest.err conftest.$ac_objext \
20451 conftest$ac_exeext conftest.$ac_ext
20454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20455 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20456 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
20457 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
20459 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20461 ax_pthread_prio_inherit_defined=yes
20465 CFLAGS="$ax_pthread_save_CFLAGS"
20466 LIBS="$ax_pthread_save_LIBS"
20468 # More AIX lossage: compile with *_r variant
20469 if test "x$GCC" != "xyes"; then
20473 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20474 #handle absolute path differently from PATH based program lookup
20477 if as_fn_executable_p ${CC}_r; then :
20478 PTHREAD_CC="${CC}_r"
20481 for ac_prog in ${CC}_r
20483 # Extract the first word of "$ac_prog", so it can be a program name with args.
20484 set dummy $ac_prog; ac_word=$2
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20486 $as_echo_n "checking for $ac_word... " >&6; }
20487 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20488 $as_echo_n "(cached) " >&6
20490 if test -n "$PTHREAD_CC"; then
20491 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20494 for as_dir in $PATH
20497 test -z "$as_dir" && as_dir=.
20498 for ac_exec_ext in '' $ac_executable_extensions; do
20499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20500 ac_cv_prog_PTHREAD_CC="$ac_prog"
20501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20510 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20511 if test -n "$PTHREAD_CC"; then
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20513 $as_echo "$PTHREAD_CC" >&6; }
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20516 $as_echo "no" >&6; }
20520 test -n "$PTHREAD_CC" && break
20522 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20533 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20539 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20540 if test "x$ax_pthread_ok" = "xyes"; then
20548 ac_cpp='$CPP $CPPFLAGS'
20549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20554 if $have_pthread; then
20556 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20559 if $have_pthread; then
20561 HAVE_PTHREAD_FALSE='#'
20563 HAVE_PTHREAD_TRUE='#'
20564 HAVE_PTHREAD_FALSE=
20570 # Check whether --with-glib was given.
20571 if test "${with_glib+set}" = set; then :
20572 withval=$with_glib;
20578 GLIB_DEPS="glib-2.0 >= 2.19.1"
20580 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
20584 $as_echo_n "checking for GLIB... " >&6; }
20586 if test -n "$GLIB_CFLAGS"; then
20587 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
20588 elif test -n "$PKG_CONFIG"; then
20589 if test -n "$PKG_CONFIG" && \
20590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
20591 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
20593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20594 test $ac_status = 0; }; then
20595 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
20596 test "x$?" != "x0" && pkg_failed=yes
20603 if test -n "$GLIB_LIBS"; then
20604 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
20605 elif test -n "$PKG_CONFIG"; then
20606 if test -n "$PKG_CONFIG" && \
20607 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
20608 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
20610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20611 test $ac_status = 0; }; then
20612 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
20613 test "x$?" != "x0" && pkg_failed=yes
20623 if test $pkg_failed = yes; then
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20625 $as_echo "no" >&6; }
20627 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20628 _pkg_short_errors_supported=yes
20630 _pkg_short_errors_supported=no
20632 if test $_pkg_short_errors_supported = yes; then
20633 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
20635 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
20637 # Put the nasty error message in config.log where it belongs
20638 echo "$GLIB_PKG_ERRORS" >&5
20641 elif test $pkg_failed = untried; then
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20643 $as_echo "no" >&6; }
20646 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
20647 GLIB_LIBS=$pkg_cv_GLIB_LIBS
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20649 $as_echo "yes" >&6; }
20653 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
20654 as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
20656 if $have_glib; then
20658 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
20661 if $have_glib; then
20663 HAVE_GLIB_FALSE='#'
20672 # Check whether --with-gobject was given.
20673 if test "${with_gobject+set}" = set; then :
20674 withval=$with_gobject;
20680 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
20684 $as_echo_n "checking for GOBJECT... " >&6; }
20686 if test -n "$GOBJECT_CFLAGS"; then
20687 pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
20688 elif test -n "$PKG_CONFIG"; then
20689 if test -n "$PKG_CONFIG" && \
20690 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
20691 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
20693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20694 test $ac_status = 0; }; then
20695 pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
20696 test "x$?" != "x0" && pkg_failed=yes
20703 if test -n "$GOBJECT_LIBS"; then
20704 pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
20705 elif test -n "$PKG_CONFIG"; then
20706 if test -n "$PKG_CONFIG" && \
20707 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
20708 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
20710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20711 test $ac_status = 0; }; then
20712 pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
20713 test "x$?" != "x0" && pkg_failed=yes
20723 if test $pkg_failed = yes; then
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20725 $as_echo "no" >&6; }
20727 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20728 _pkg_short_errors_supported=yes
20730 _pkg_short_errors_supported=no
20732 if test $_pkg_short_errors_supported = yes; then
20733 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
20735 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
20737 # Put the nasty error message in config.log where it belongs
20738 echo "$GOBJECT_PKG_ERRORS" >&5
20741 elif test $pkg_failed = untried; then
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20743 $as_echo "no" >&6; }
20746 GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
20747 GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20749 $as_echo "yes" >&6; }
20753 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
20754 as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
20756 if $have_gobject; then
20758 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
20760 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
20763 if $have_gobject; then
20765 HAVE_GOBJECT_FALSE='#'
20767 HAVE_GOBJECT_TRUE='#'
20768 HAVE_GOBJECT_FALSE=
20775 # Gobject-Introspection
20776 have_introspection=false
20778 if $have_gobject; then
20782 # Check whether --enable-introspection was given.
20783 if test "${enable_introspection+set}" = set; then :
20784 enableval=$enable_introspection;
20786 enable_introspection=auto
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
20791 $as_echo_n "checking for gobject-introspection... " >&6; }
20793 case $enable_introspection in #(
20795 found_introspection="no (disabled, use --enable-introspection to enable)"
20798 if test -n "$PKG_CONFIG" && \
20799 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
20800 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
20802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20803 test $ac_status = 0; }; then
20806 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
20808 if test -n "$PKG_CONFIG" && \
20809 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20810 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20813 test $ac_status = 0; }; then
20814 found_introspection=yes
20816 as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
20820 if test -n "$PKG_CONFIG" && \
20821 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20822 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20825 test $ac_status = 0; }; then
20826 found_introspection=yes
20828 found_introspection=no
20830 enable_introspection=$found_introspection
20833 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
20837 $as_echo "$found_introspection" >&6; }
20840 EXP_VAR=_GI_EXP_DATADIR
20841 FROM_VAR="$datadir"
20843 prefix_save=$prefix
20844 exec_prefix_save=$exec_prefix
20846 if test "x$prefix" = "xNONE"; then
20847 prefix="$ac_default_prefix"
20849 if test "x$exec_prefix" = "xNONE"; then
20850 exec_prefix=$prefix
20853 full_var="$FROM_VAR"
20855 new_full_var="`eval echo $full_var`"
20856 if test "x$new_full_var" = "x$full_var"; then break; fi
20857 full_var=$new_full_var
20860 full_var=$new_full_var
20861 _GI_EXP_DATADIR="$full_var"
20864 prefix=$prefix_save
20865 exec_prefix=$exec_prefix_save
20868 EXP_VAR=_GI_EXP_LIBDIR
20871 prefix_save=$prefix
20872 exec_prefix_save=$exec_prefix
20874 if test "x$prefix" = "xNONE"; then
20875 prefix="$ac_default_prefix"
20877 if test "x$exec_prefix" = "xNONE"; then
20878 exec_prefix=$prefix
20881 full_var="$FROM_VAR"
20883 new_full_var="`eval echo $full_var`"
20884 if test "x$new_full_var" = "x$full_var"; then break; fi
20885 full_var=$new_full_var
20888 full_var=$new_full_var
20889 _GI_EXP_LIBDIR="$full_var"
20892 prefix=$prefix_save
20893 exec_prefix=$exec_prefix_save
20896 INTROSPECTION_SCANNER=
20897 INTROSPECTION_COMPILER=
20898 INTROSPECTION_GENERATE=
20899 INTROSPECTION_GIRDIR=
20900 INTROSPECTION_TYPELIBDIR=
20901 if test "x$found_introspection" = "xyes"; then
20902 INTROSPECTION_SCANNER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
20903 INTROSPECTION_COMPILER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
20904 INTROSPECTION_GENERATE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
20905 INTROSPECTION_GIRDIR=`$PKG_CONFIG --define-variable=datadir="${_GI_EXP_DATADIR}" --variable=girdir gobject-introspection-1.0`
20906 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --define-variable=libdir="${_GI_EXP_LIBDIR}" --variable=typelibdir gobject-introspection-1.0)"
20907 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
20908 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
20909 INTROSPECTION_MAKEFILE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
20920 if test "x$found_introspection" = "xyes"; then
20921 HAVE_INTROSPECTION_TRUE=
20922 HAVE_INTROSPECTION_FALSE='#'
20924 HAVE_INTROSPECTION_TRUE='#'
20925 HAVE_INTROSPECTION_FALSE=
20930 if test "x$found_introspection" = xyes; then
20931 have_introspection=true
20935 HAVE_INTROSPECTION_TRUE=
20936 HAVE_INTROSPECTION_FALSE='#'
20938 HAVE_INTROSPECTION_TRUE='#'
20939 HAVE_INTROSPECTION_FALSE=
20947 # Check whether --with-cairo was given.
20948 if test "${with_cairo+set}" = set; then :
20949 withval=$with_cairo;
20955 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
20959 $as_echo_n "checking for CAIRO... " >&6; }
20961 if test -n "$CAIRO_CFLAGS"; then
20962 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
20963 elif test -n "$PKG_CONFIG"; then
20964 if test -n "$PKG_CONFIG" && \
20965 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20966 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20969 test $ac_status = 0; }; then
20970 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
20971 test "x$?" != "x0" && pkg_failed=yes
20978 if test -n "$CAIRO_LIBS"; then
20979 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
20980 elif test -n "$PKG_CONFIG"; then
20981 if test -n "$PKG_CONFIG" && \
20982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20983 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20986 test $ac_status = 0; }; then
20987 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
20988 test "x$?" != "x0" && pkg_failed=yes
20998 if test $pkg_failed = yes; then
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21000 $as_echo "no" >&6; }
21002 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21003 _pkg_short_errors_supported=yes
21005 _pkg_short_errors_supported=no
21007 if test $_pkg_short_errors_supported = yes; then
21008 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
21010 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
21012 # Put the nasty error message in config.log where it belongs
21013 echo "$CAIRO_PKG_ERRORS" >&5
21016 elif test $pkg_failed = untried; then
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21018 $as_echo "no" >&6; }
21021 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
21022 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21024 $as_echo "yes" >&6; }
21028 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
21029 as_fn_error $? "cairo support requested but not found" "$LINENO" 5
21031 if $have_cairo; then
21033 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
21036 if $have_cairo; then
21038 HAVE_CAIRO_FALSE='#'
21040 HAVE_CAIRO_TRUE='#'
21045 have_cairo_ft=false
21046 if $have_cairo; then
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
21050 $as_echo_n "checking for CAIRO_FT... " >&6; }
21052 if test -n "$CAIRO_FT_CFLAGS"; then
21053 pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
21054 elif test -n "$PKG_CONFIG"; then
21055 if test -n "$PKG_CONFIG" && \
21056 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
21057 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
21059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21060 test $ac_status = 0; }; then
21061 pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
21062 test "x$?" != "x0" && pkg_failed=yes
21069 if test -n "$CAIRO_FT_LIBS"; then
21070 pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
21071 elif test -n "$PKG_CONFIG"; then
21072 if test -n "$PKG_CONFIG" && \
21073 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
21074 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
21076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21077 test $ac_status = 0; }; then
21078 pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
21079 test "x$?" != "x0" && pkg_failed=yes
21089 if test $pkg_failed = yes; then
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21091 $as_echo "no" >&6; }
21093 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21094 _pkg_short_errors_supported=yes
21096 _pkg_short_errors_supported=no
21098 if test $_pkg_short_errors_supported = yes; then
21099 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-ft" 2>&1`
21101 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-ft" 2>&1`
21103 # Put the nasty error message in config.log where it belongs
21104 echo "$CAIRO_FT_PKG_ERRORS" >&5
21107 elif test $pkg_failed = untried; then
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21109 $as_echo "no" >&6; }
21112 CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
21113 CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21115 $as_echo "yes" >&6; }
21119 if $have_cairo_ft; then
21121 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
21124 if $have_cairo_ft; then
21125 HAVE_CAIRO_FT_TRUE=
21126 HAVE_CAIRO_FT_FALSE='#'
21128 HAVE_CAIRO_FT_TRUE='#'
21129 HAVE_CAIRO_FT_FALSE=
21135 # Check whether --with-fontconfig was given.
21136 if test "${with_fontconfig+set}" = set; then :
21137 withval=$with_fontconfig;
21139 with_fontconfig=auto
21142 have_fontconfig=false
21143 if test "x$with_fontconfig" = "xyes" -o "x$with_fontconfig" = "xauto"; then
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
21147 $as_echo_n "checking for FONTCONFIG... " >&6; }
21149 if test -n "$FONTCONFIG_CFLAGS"; then
21150 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
21151 elif test -n "$PKG_CONFIG"; then
21152 if test -n "$PKG_CONFIG" && \
21153 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
21154 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
21156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21157 test $ac_status = 0; }; then
21158 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
21159 test "x$?" != "x0" && pkg_failed=yes
21166 if test -n "$FONTCONFIG_LIBS"; then
21167 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
21168 elif test -n "$PKG_CONFIG"; then
21169 if test -n "$PKG_CONFIG" && \
21170 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
21171 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
21173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21174 test $ac_status = 0; }; then
21175 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
21176 test "x$?" != "x0" && pkg_failed=yes
21186 if test $pkg_failed = yes; then
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21188 $as_echo "no" >&6; }
21190 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21191 _pkg_short_errors_supported=yes
21193 _pkg_short_errors_supported=no
21195 if test $_pkg_short_errors_supported = yes; then
21196 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
21198 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
21200 # Put the nasty error message in config.log where it belongs
21201 echo "$FONTCONFIG_PKG_ERRORS" >&5
21204 elif test $pkg_failed = untried; then
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21206 $as_echo "no" >&6; }
21209 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
21210 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21212 $as_echo "yes" >&6; }
21213 have_fontconfig=true
21216 if test "x$with_fontconfig" = "xyes" -a "x$have_fontconfig" != "xtrue"; then
21217 as_fn_error $? "fontconfig support requested but not found" "$LINENO" 5
21219 if $have_fontconfig; then
21221 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
21224 if $have_fontconfig; then
21225 HAVE_FONTCONFIG_TRUE=
21226 HAVE_FONTCONFIG_FALSE='#'
21228 HAVE_FONTCONFIG_TRUE='#'
21229 HAVE_FONTCONFIG_FALSE=
21235 # Check whether --with-icu was given.
21236 if test "${with_icu+set}" = set; then :
21243 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
21247 $as_echo_n "checking for ICU... " >&6; }
21249 if test -n "$ICU_CFLAGS"; then
21250 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
21251 elif test -n "$PKG_CONFIG"; then
21252 if test -n "$PKG_CONFIG" && \
21253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21254 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21257 test $ac_status = 0; }; then
21258 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
21259 test "x$?" != "x0" && pkg_failed=yes
21266 if test -n "$ICU_LIBS"; then
21267 pkg_cv_ICU_LIBS="$ICU_LIBS"
21268 elif test -n "$PKG_CONFIG"; then
21269 if test -n "$PKG_CONFIG" && \
21270 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21271 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21274 test $ac_status = 0; }; then
21275 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
21276 test "x$?" != "x0" && pkg_failed=yes
21286 if test $pkg_failed = yes; then
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21288 $as_echo "no" >&6; }
21290 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21291 _pkg_short_errors_supported=yes
21293 _pkg_short_errors_supported=no
21295 if test $_pkg_short_errors_supported = yes; then
21296 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
21298 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
21300 # Put the nasty error message in config.log where it belongs
21301 echo "$ICU_PKG_ERRORS" >&5
21304 elif test $pkg_failed = untried; then
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21306 $as_echo "no" >&6; }
21309 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
21310 ICU_LIBS=$pkg_cv_ICU_LIBS
21311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21312 $as_echo "yes" >&6; }
21316 if test "$have_icu" != "true"; then
21317 if test -n "$ac_tool_prefix"; then
21318 # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
21319 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
21320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21321 $as_echo_n "checking for $ac_word... " >&6; }
21322 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
21323 $as_echo_n "(cached) " >&6
21325 if test -n "$ICU_CONFIG"; then
21326 ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
21328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21329 for as_dir in $PATH
21332 test -z "$as_dir" && as_dir=.
21333 for ac_exec_ext in '' $ac_executable_extensions; do
21334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21335 ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
21336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21345 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
21346 if test -n "$ICU_CONFIG"; then
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
21348 $as_echo "$ICU_CONFIG" >&6; }
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21351 $as_echo "no" >&6; }
21356 if test -z "$ac_cv_prog_ICU_CONFIG"; then
21357 ac_ct_ICU_CONFIG=$ICU_CONFIG
21358 # Extract the first word of "icu-config", so it can be a program name with args.
21359 set dummy icu-config; ac_word=$2
21360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21361 $as_echo_n "checking for $ac_word... " >&6; }
21362 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
21363 $as_echo_n "(cached) " >&6
21365 if test -n "$ac_ct_ICU_CONFIG"; then
21366 ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
21368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21369 for as_dir in $PATH
21372 test -z "$as_dir" && as_dir=.
21373 for ac_exec_ext in '' $ac_executable_extensions; do
21374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21375 ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
21376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21385 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
21386 if test -n "$ac_ct_ICU_CONFIG"; then
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
21388 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21391 $as_echo "no" >&6; }
21394 if test "x$ac_ct_ICU_CONFIG" = x; then
21397 case $cross_compiling:$ac_tool_warned in
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21401 ac_tool_warned=yes ;;
21403 ICU_CONFIG=$ac_ct_ICU_CONFIG
21406 ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
21410 $as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
21411 if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
21413 # We don't use --cflags as this gives us a lot of things that we don't
21414 # necessarily want, like debugging and optimization flags
21415 # See man (1) icu-config for more info.
21416 ICU_CFLAGS=`$ICU_CONFIG --cppflags`
21417 ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21421 $as_echo "yes" >&6; }
21423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21424 $as_echo "no" >&6; }
21428 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
21429 as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
21433 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
21435 $as_echo "#define HAVE_ICU 1" >>confdefs.h
21437 if test "x$with_icu" = "xbuiltin"; then
21439 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
21451 if $have_icu && test "x$with_icu" = "xbuiltin"; then
21452 HAVE_ICU_BUILTIN_TRUE=
21453 HAVE_ICU_BUILTIN_FALSE='#'
21455 HAVE_ICU_BUILTIN_TRUE='#'
21456 HAVE_ICU_BUILTIN_FALSE=
21462 # Check whether --with-graphite2 was given.
21463 if test "${with_graphite2+set}" = set; then :
21464 withval=$with_graphite2;
21469 have_graphite2=false
21470 GRAPHITE2_DEPS="graphite2 >= 1.2.0"
21472 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
21476 $as_echo_n "checking for GRAPHITE2... " >&6; }
21478 if test -n "$GRAPHITE2_CFLAGS"; then
21479 pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
21480 elif test -n "$PKG_CONFIG"; then
21481 if test -n "$PKG_CONFIG" && \
21482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
21483 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
21485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21486 test $ac_status = 0; }; then
21487 pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
21488 test "x$?" != "x0" && pkg_failed=yes
21495 if test -n "$GRAPHITE2_LIBS"; then
21496 pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
21497 elif test -n "$PKG_CONFIG"; then
21498 if test -n "$PKG_CONFIG" && \
21499 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
21500 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
21502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21503 test $ac_status = 0; }; then
21504 pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
21505 test "x$?" != "x0" && pkg_failed=yes
21515 if test $pkg_failed = yes; then
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21517 $as_echo "no" >&6; }
21519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21520 _pkg_short_errors_supported=yes
21522 _pkg_short_errors_supported=no
21524 if test $_pkg_short_errors_supported = yes; then
21525 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
21527 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
21529 # Put the nasty error message in config.log where it belongs
21530 echo "$GRAPHITE2_PKG_ERRORS" >&5
21533 elif test $pkg_failed = untried; then
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21535 $as_echo "no" >&6; }
21538 GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
21539 GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21541 $as_echo "yes" >&6; }
21542 have_graphite2=true
21544 if test "x$have_graphite2" != "xtrue"; then
21545 # If pkg-config is not available, graphite2 can still be there
21546 ac_save_CFLAGS="$CFLAGS"
21547 ac_save_CPPFLAGS="$CPPFLAGS"
21548 CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS"
21549 CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS"
21550 ac_fn_c_check_header_mongrel "$LINENO" "graphite2/Segment.h" "ac_cv_header_graphite2_Segment_h" "$ac_includes_default"
21551 if test "x$ac_cv_header_graphite2_Segment_h" = xyes; then :
21552 have_graphite2=true
21558 CPPFLAGS="$ac_save_CPPFLAGS"
21559 CFLAGS="$ac_save_CFLAGS"
21562 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
21563 as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
21565 if $have_graphite2; then
21567 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
21570 if $have_graphite2; then
21571 HAVE_GRAPHITE2_TRUE=
21572 HAVE_GRAPHITE2_FALSE='#'
21574 HAVE_GRAPHITE2_TRUE='#'
21575 HAVE_GRAPHITE2_FALSE=
21581 # Check whether --with-freetype was given.
21582 if test "${with_freetype+set}" = set; then :
21583 withval=$with_freetype;
21588 have_freetype=false
21589 FREETYPE_DEPS="freetype2 >= 12.0.6"
21591 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
21592 # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
21596 $as_echo_n "checking for FREETYPE... " >&6; }
21598 if test -n "$FREETYPE_CFLAGS"; then
21599 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
21600 elif test -n "$PKG_CONFIG"; then
21601 if test -n "$PKG_CONFIG" && \
21602 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
21603 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
21605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21606 test $ac_status = 0; }; then
21607 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
21608 test "x$?" != "x0" && pkg_failed=yes
21615 if test -n "$FREETYPE_LIBS"; then
21616 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
21617 elif test -n "$PKG_CONFIG"; then
21618 if test -n "$PKG_CONFIG" && \
21619 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
21620 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
21622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21623 test $ac_status = 0; }; then
21624 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
21625 test "x$?" != "x0" && pkg_failed=yes
21635 if test $pkg_failed = yes; then
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21637 $as_echo "no" >&6; }
21639 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21640 _pkg_short_errors_supported=yes
21642 _pkg_short_errors_supported=no
21644 if test $_pkg_short_errors_supported = yes; then
21645 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
21647 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
21649 # Put the nasty error message in config.log where it belongs
21650 echo "$FREETYPE_PKG_ERRORS" >&5
21653 elif test $pkg_failed = untried; then
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21655 $as_echo "no" >&6; }
21658 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
21659 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21661 $as_echo "yes" >&6; }
21665 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
21666 as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
21668 if $have_freetype; then
21670 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
21673 LIBS="$LIBS $FREETYPE_LIBS"
21674 for ac_func in FT_Get_Var_Blend_Coordinates FT_Set_Var_Blend_Coordinates FT_Done_MM_Var
21676 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21677 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21678 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21679 cat >>confdefs.h <<_ACEOF
21680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21688 if $have_freetype; then
21689 HAVE_FREETYPE_TRUE=
21690 HAVE_FREETYPE_FALSE='#'
21692 HAVE_FREETYPE_TRUE='#'
21693 HAVE_FREETYPE_FALSE=
21699 # Check whether --with-uniscribe was given.
21700 if test "${with_uniscribe+set}" = set; then :
21701 withval=$with_uniscribe;
21706 have_uniscribe=false
21707 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
21708 for ac_header in usp10.h windows.h
21710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21711 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21712 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21713 cat >>confdefs.h <<_ACEOF
21714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21716 have_uniscribe=true
21722 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
21723 as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
21725 if $have_uniscribe; then
21727 UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
21731 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
21734 if $have_uniscribe; then
21735 HAVE_UNISCRIBE_TRUE=
21736 HAVE_UNISCRIBE_FALSE='#'
21738 HAVE_UNISCRIBE_TRUE='#'
21739 HAVE_UNISCRIBE_FALSE=
21745 # Check whether --with-gdi was given.
21746 if test "${with_gdi+set}" = set; then :
21753 if test "x$with_gdi" = "xyes" -o "x$with_gdi" = "xauto"; then
21754 for ac_header in windows.h
21756 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
21757 if test "x$ac_cv_header_windows_h" = xyes; then :
21758 cat >>confdefs.h <<_ACEOF
21759 #define HAVE_WINDOWS_H 1
21767 if test "x$with_gdi" = "xyes" -a "x$have_gdi" != "xtrue"; then
21768 as_fn_error $? "gdi support requested but not found" "$LINENO" 5
21776 $as_echo "#define HAVE_GDI 1" >>confdefs.h
21790 # Check whether --with-directwrite was given.
21791 if test "${with_directwrite+set}" = set; then :
21792 withval=$with_directwrite;
21794 with_directwrite=no
21797 have_directwrite=false
21799 ac_cpp='$CXXCPP $CPPFLAGS'
21800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21804 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
21806 for ac_header in dwrite.h
21808 ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
21809 if test "x$ac_cv_header_dwrite_h" = xyes; then :
21810 cat >>confdefs.h <<_ACEOF
21811 #define HAVE_DWRITE_H 1
21813 have_directwrite=true
21820 ac_cpp='$CPP $CPPFLAGS'
21821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21825 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
21826 as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
21828 if $have_directwrite; then
21829 DIRECTWRITE_CXXFLAGS=
21834 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
21837 if $have_directwrite; then
21838 HAVE_DIRECTWRITE_TRUE=
21839 HAVE_DIRECTWRITE_FALSE='#'
21841 HAVE_DIRECTWRITE_TRUE='#'
21842 HAVE_DIRECTWRITE_FALSE=
21848 # Check whether --with-coretext was given.
21849 if test "${with_coretext+set}" = set; then :
21850 withval=$with_coretext;
21855 have_coretext=false
21856 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
21857 ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
21859 if test "x$ac_cv_type_CTFontRef" = xyes; then :
21864 if $have_coretext; then
21866 CORETEXT_LIBS="-framework ApplicationServices"
21870 # On iOS CoreText and CoreGraphics are stand-alone frameworks
21871 if test "x$have_coretext" != "xtrue"; then
21872 # Check for a different symbol to avoid getting cached result.
21873 ac_fn_c_check_type "$LINENO" "CTRunRef" "ac_cv_type_CTRunRef" "#include <CoreText/CoreText.h>
21875 if test "x$ac_cv_type_CTRunRef" = xyes; then :
21881 if $have_coretext; then
21883 CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation"
21889 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
21890 as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
21892 if $have_coretext; then
21894 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
21897 if $have_coretext; then
21898 HAVE_CORETEXT_TRUE=
21899 HAVE_CORETEXT_FALSE='#'
21901 HAVE_CORETEXT_TRUE='#'
21902 HAVE_CORETEXT_FALSE=
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
21908 $as_echo_n "checking for Intel atomic primitives... " >&6; }
21909 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
21910 $as_echo_n "(cached) " >&6
21913 hb_cv_have_intel_atomic_primitives=false
21914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21915 /* end confdefs.h. */
21917 void memory_barrier (void) { __sync_synchronize (); }
21918 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
21919 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
21920 void mutex_unlock (int *m) { __sync_lock_release (m); }
21930 if ac_fn_c_try_link "$LINENO"; then :
21931 hb_cv_have_intel_atomic_primitives=true
21934 rm -f core conftest.err conftest.$ac_objext \
21935 conftest$ac_exeext conftest.$ac_ext
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
21939 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
21940 if $hb_cv_have_intel_atomic_primitives; then
21942 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
21948 $as_echo_n "checking for Solaris atomic operations... " >&6; }
21949 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
21950 $as_echo_n "(cached) " >&6
21953 hb_cv_have_solaris_atomic_ops=false
21954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21955 /* end confdefs.h. */
21957 #include <atomic.h>
21958 /* This requires Solaris Studio 12.2 or newer: */
21959 #include <mbarrier.h>
21960 void memory_barrier (void) { __machine_rw_barrier (); }
21961 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
21962 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
21972 if ac_fn_c_try_link "$LINENO"; then :
21973 hb_cv_have_solaris_atomic_ops=true
21976 rm -f core conftest.err conftest.$ac_objext \
21977 conftest$ac_exeext conftest.$ac_ext
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
21981 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
21982 if $hb_cv_have_solaris_atomic_ops; then
21984 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
21988 if test "$os_win32" = no && ! $have_pthread; then
21989 for ac_header in sched.h
21991 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
21992 if test "x$ac_cv_header_sched_h" = xyes; then :
21993 cat >>confdefs.h <<_ACEOF
21994 #define HAVE_SCHED_H 1
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
22002 $as_echo_n "checking for library containing sched_yield... " >&6; }
22003 if ${ac_cv_search_sched_yield+:} false; then :
22004 $as_echo_n "(cached) " >&6
22006 ac_func_search_save_LIBS=$LIBS
22007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22008 /* end confdefs.h. */
22010 /* Override any GCC internal prototype to avoid an error.
22011 Use char because int might match the return type of a GCC
22012 builtin and then its argument prototype would still apply. */
22016 char sched_yield ();
22020 return sched_yield ();
22025 for ac_lib in '' rt; do
22026 if test -z "$ac_lib"; then
22027 ac_res="none required"
22030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22032 if ac_fn_c_try_link "$LINENO"; then :
22033 ac_cv_search_sched_yield=$ac_res
22035 rm -f core conftest.err conftest.$ac_objext \
22037 if ${ac_cv_search_sched_yield+:} false; then :
22041 if ${ac_cv_search_sched_yield+:} false; then :
22044 ac_cv_search_sched_yield=no
22046 rm conftest.$ac_ext
22047 LIBS=$ac_func_search_save_LIBS
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
22050 $as_echo "$ac_cv_search_sched_yield" >&6; }
22051 ac_res=$ac_cv_search_sched_yield
22052 if test "$ac_res" != no; then :
22053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22055 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22062 ac_config_files="$ac_config_files Makefile src/Makefile src/harfbuzz-config.cmake util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shaping/Makefile test/shaping/data/Makefile test/shaping/data/aots/Makefile test/shaping/data/in-house/Makefile test/shaping/data/text-rendering-tests/Makefile test/subset/Makefile test/subset/data/Makefile docs/Makefile docs/version.xml"
22065 cat >confcache <<\_ACEOF
22066 # This file is a shell script that caches the results of configure
22067 # tests run on this system so they can be shared between configure
22068 # scripts and configure runs, see configure's option --config-cache.
22069 # It is not useful on other systems. If it contains results you don't
22070 # want to keep, you may remove or edit it.
22072 # config.status only pays attention to the cache file if you give it
22073 # the --recheck option to rerun configure.
22075 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22076 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22077 # following values.
22081 # The following way of writing the cache mishandles newlines in values,
22082 # but we know of no workaround that is simple, portable, and efficient.
22083 # So, we kill variables containing newlines.
22084 # Ultrix sh set writes to stderr and can't be redirected directly,
22085 # and sets the high bit in the cache file unless we assign to the vars.
22087 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22088 eval ac_val=\$$ac_var
22092 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22093 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22096 _ | IFS | as_nl) ;; #(
22097 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22098 *) { eval $ac_var=; unset $ac_var;} ;;
22104 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22105 *${as_nl}ac_space=\ *)
22106 # `set' does not quote correctly, so add quotes: double-quote
22107 # substitution turns \\\\ into \\, and sed turns \\ into \.
22110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22113 # `set' quotes correctly as required by POSIX, so do not add quotes.
22114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22123 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22125 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22127 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22128 if test -w "$cache_file"; then
22129 if test "x$cache_file" != "x/dev/null"; then
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22131 $as_echo "$as_me: updating cache $cache_file" >&6;}
22132 if test ! -f "$cache_file" || test -h "$cache_file"; then
22133 cat confcache >"$cache_file"
22135 case $cache_file in #(
22137 mv -f confcache "$cache_file"$$ &&
22138 mv -f "$cache_file"$$ "$cache_file" ;; #(
22140 mv -f confcache "$cache_file" ;;
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22146 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22151 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22152 # Let make expand exec_prefix.
22153 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22155 DEFS=-DHAVE_CONFIG_H
22160 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22161 # 1. Remove the extension, and $U if already installed.
22162 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22163 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22164 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22165 # will be set to the directory where LIBOBJS objects are built.
22166 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22167 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22169 LIBOBJS=$ac_libobjs
22171 LTLIBOBJS=$ac_ltlibobjs
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22175 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22176 if test -n "$am_sleep_pid"; then
22177 # Hide warnings about reused PIDs.
22178 wait $am_sleep_pid 2>/dev/null
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22181 $as_echo "done" >&6; }
22182 if test -n "$EXEEXT"; then
22184 am__EXEEXT_FALSE='#'
22186 am__EXEEXT_TRUE='#'
22190 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
22191 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
22192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22194 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22195 as_fn_error $? "conditional \"AMDEP\" was never defined.
22196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22198 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22199 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22202 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22203 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22206 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22207 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22210 if test -z "${WITH_LIBSTDCXX_TRUE}" && test -z "${WITH_LIBSTDCXX_FALSE}"; then
22211 as_fn_error $? "conditional \"WITH_LIBSTDCXX\" was never defined.
22212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22214 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
22215 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
22216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22218 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
22219 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
22220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22222 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
22223 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
22224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22226 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
22227 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
22228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22230 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
22231 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22234 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
22235 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
22236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22238 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
22239 as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
22240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22242 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
22243 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
22244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22246 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
22247 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
22248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22250 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
22251 as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
22252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22254 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
22255 as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
22256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22258 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
22259 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
22260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22262 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
22263 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
22264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22266 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
22267 as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
22268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22270 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
22271 as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
22272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22274 if test -z "${HAVE_FONTCONFIG_TRUE}" && test -z "${HAVE_FONTCONFIG_FALSE}"; then
22275 as_fn_error $? "conditional \"HAVE_FONTCONFIG\" was never defined.
22276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22278 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
22279 as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
22280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22282 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
22283 as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
22284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22286 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
22287 as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
22288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22290 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
22291 as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
22292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22294 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
22295 as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
22296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22298 if test -z "${HAVE_GDI_TRUE}" && test -z "${HAVE_GDI_FALSE}"; then
22299 as_fn_error $? "conditional \"HAVE_GDI\" was never defined.
22300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22302 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
22303 as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
22304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22306 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
22307 as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
22308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22311 : "${CONFIG_STATUS=./config.status}"
22313 ac_clean_files_save=$ac_clean_files
22314 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22316 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22318 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22320 # Generated by $as_me.
22321 # Run this file to recreate the current configuration.
22322 # Compiler output produced by configure, useful for debugging
22323 # configure, is in config.log if it exists.
22326 ac_cs_recheck=false
22329 SHELL=\${CONFIG_SHELL-$SHELL}
22332 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22333 ## -------------------- ##
22334 ## M4sh Initialization. ##
22335 ## -------------------- ##
22337 # Be more Bourne compatible
22338 DUALCASE=1; export DUALCASE # for MKS sh
22339 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22342 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22343 # is contrary to our usage. Disable this feature.
22344 alias -g '${1+"$@"}'='"$@"'
22345 setopt NO_GLOB_SUBST
22347 case `(set -o) 2>/dev/null` in #(
22359 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22360 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22361 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22362 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22363 # Prefer a ksh shell builtin over an external printf program on Solaris,
22364 # but without wasting forks for bash or zsh.
22365 if test -z "$BASH_VERSION$ZSH_VERSION" \
22366 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22367 as_echo='print -r --'
22368 as_echo_n='print -rn --'
22369 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22370 as_echo='printf %s\n'
22371 as_echo_n='printf %s'
22373 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22374 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22375 as_echo_n='/usr/ucb/echo -n'
22377 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22378 as_echo_n_body='eval
22382 expr "X$arg" : "X\\(.*\\)$as_nl";
22383 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22385 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22387 export as_echo_n_body
22388 as_echo_n='sh -c $as_echo_n_body as_echo'
22390 export as_echo_body
22391 as_echo='sh -c $as_echo_body as_echo'
22394 # The user is always right.
22395 if test "${PATH_SEPARATOR+set}" != set; then
22397 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22398 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22405 # We need space, tab and new line, in precisely that order. Quoting is
22406 # there to prevent editors from complaining about space-tab.
22407 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22408 # splitting by setting IFS to empty value.)
22411 # Find who we are. Look in the path if we contain no directory separator.
22414 *[\\/]* ) as_myself=$0 ;;
22415 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22416 for as_dir in $PATH
22419 test -z "$as_dir" && as_dir=.
22420 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22426 # We did not find ourselves, most probably we were run as `sh COMMAND'
22427 # in which case we are not to be found in the path.
22428 if test "x$as_myself" = x; then
22431 if test ! -f "$as_myself"; then
22432 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22436 # Unset variables that we do not need and which cause bugs (e.g. in
22437 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22438 # suppresses any "Segmentation fault" message there. '((' could
22439 # trigger a bug in pdksh 5.2.14.
22440 for as_var in BASH_ENV ENV MAIL MAILPATH
22441 do eval test x\${$as_var+set} = xset \
22442 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22455 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22458 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22459 # ----------------------------------------
22460 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22461 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22462 # script with STATUS, using 1 if that was 0.
22465 as_status=$1; test $as_status -eq 0 && as_status=1
22467 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22468 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22470 $as_echo "$as_me: error: $2" >&2
22471 as_fn_exit $as_status
22475 # as_fn_set_status STATUS
22476 # -----------------------
22477 # Set $? to STATUS, without forking.
22478 as_fn_set_status ()
22481 } # as_fn_set_status
22483 # as_fn_exit STATUS
22484 # -----------------
22485 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22489 as_fn_set_status $1
22495 # Portably unset VAR.
22498 { eval $1=; unset $1;}
22500 as_unset=as_fn_unset
22501 # as_fn_append VAR VALUE
22502 # ----------------------
22503 # Append the text in VALUE to the end of the definition contained in VAR. Take
22504 # advantage of any shell optimizations that allow amortized linear growth over
22505 # repeated appends, instead of the typical quadratic growth present in naive
22507 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22508 eval 'as_fn_append ()
22519 # as_fn_arith ARG...
22520 # ------------------
22521 # Perform arithmetic evaluation on the ARGs, and store the result in the
22522 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22523 # must be portable across $(()) and expr.
22524 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22525 eval 'as_fn_arith ()
22532 as_val=`expr "$@" || test $? -eq 1`
22537 if expr a : '\(a\)' >/dev/null 2>&1 &&
22538 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22544 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22545 as_basename=basename
22550 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22556 as_me=`$as_basename -- "$0" ||
22557 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22558 X"$0" : 'X\(//\)$' \| \
22559 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22561 sed '/^.*\/\([^/][^/]*\)\/*$/{
22575 # Avoid depending upon Character Ranges.
22576 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22577 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22578 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22579 as_cr_digits='0123456789'
22580 as_cr_alnum=$as_cr_Letters$as_cr_digits
22582 ECHO_C= ECHO_N= ECHO_T=
22583 case `echo -n x` in #(((((
22585 case `echo 'xy\c'` in
22586 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22588 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22595 rm -f conf$$ conf$$.exe conf$$.file
22596 if test -d conf$$.dir; then
22597 rm -f conf$$.dir/conf$$.file
22600 mkdir conf$$.dir 2>/dev/null
22602 if (echo >conf$$.file) 2>/dev/null; then
22603 if ln -s conf$$.file conf$$ 2>/dev/null; then
22605 # ... but there are two gotchas:
22606 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22607 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22608 # In both cases, we have to default to `cp -pR'.
22609 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22611 elif ln conf$$.file conf$$ 2>/dev/null; then
22619 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22620 rmdir conf$$.dir 2>/dev/null
22625 # Create "$as_dir" as a directory, including parents if necessary.
22630 -*) as_dir=./$as_dir;;
22632 test -d "$as_dir" || eval $as_mkdir_p || {
22636 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22637 *) as_qdir=$as_dir;;
22639 as_dirs="'$as_qdir' $as_dirs"
22640 as_dir=`$as_dirname -- "$as_dir" ||
22641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22642 X"$as_dir" : 'X\(//\)[^/]' \| \
22643 X"$as_dir" : 'X\(//\)$' \| \
22644 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22645 $as_echo X"$as_dir" |
22646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22650 /^X\(\/\/\)[^/].*/{
22663 test -d "$as_dir" && break
22665 test -z "$as_dirs" || eval "mkdir $as_dirs"
22666 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22670 if mkdir -p . 2>/dev/null; then
22671 as_mkdir_p='mkdir -p "$as_dir"'
22673 test -d ./-p && rmdir ./-p
22678 # as_fn_executable_p FILE
22679 # -----------------------
22680 # Test if FILE is an executable regular file.
22681 as_fn_executable_p ()
22683 test -f "$1" && test -x "$1"
22684 } # as_fn_executable_p
22685 as_test_x='test -x'
22686 as_executable_p=as_fn_executable_p
22688 # Sed expression to map a string onto a valid CPP name.
22689 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22691 # Sed expression to map a string onto a valid variable name.
22692 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22696 ## ----------------------------------- ##
22697 ## Main body of $CONFIG_STATUS script. ##
22698 ## ----------------------------------- ##
22700 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22703 # Save the log message, to keep $0 and so on meaningful, and to
22704 # report actual input values of CONFIG_FILES etc. instead of their
22705 # values after options handling.
22707 This file was extended by HarfBuzz $as_me 2.6.7, which was
22708 generated by GNU Autoconf 2.69. Invocation command line was
22710 CONFIG_FILES = $CONFIG_FILES
22711 CONFIG_HEADERS = $CONFIG_HEADERS
22712 CONFIG_LINKS = $CONFIG_LINKS
22713 CONFIG_COMMANDS = $CONFIG_COMMANDS
22716 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22721 case $ac_config_files in *"
22722 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22725 case $ac_config_headers in *"
22726 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22731 # Files that config.status was made for.
22732 config_files="$ac_config_files"
22733 config_headers="$ac_config_headers"
22734 config_commands="$ac_config_commands"
22738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22740 \`$as_me' instantiates files and other configuration actions
22741 from templates according to the current configuration. Unless the files
22742 and actions are specified as TAGs, all are instantiated by default.
22744 Usage: $0 [OPTION]... [TAG]...
22746 -h, --help print this help, then exit
22747 -V, --version print version number and configuration settings, then exit
22748 --config print configuration, then exit
22749 -q, --quiet, --silent
22750 do not print progress messages
22751 -d, --debug don't remove temporary files
22752 --recheck update $as_me by reconfiguring in the same conditions
22753 --file=FILE[:TEMPLATE]
22754 instantiate the configuration file FILE
22755 --header=FILE[:TEMPLATE]
22756 instantiate the configuration header FILE
22758 Configuration files:
22761 Configuration headers:
22764 Configuration commands:
22767 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
22768 HarfBuzz home page: <http://harfbuzz.org/>."
22771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22772 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22774 HarfBuzz config.status 2.6.7
22775 configured by $0, generated by GNU Autoconf 2.69,
22776 with options \\"\$ac_cs_config\\"
22778 Copyright (C) 2012 Free Software Foundation, Inc.
22779 This config.status script is free software; the Free Software Foundation
22780 gives unlimited permission to copy, distribute and modify it."
22787 test -n "\$AWK" || AWK=awk
22790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22791 # The default lists apply if the user does not specify any file.
22797 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22798 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22802 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22814 # Handling of the options.
22815 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22817 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22818 $as_echo "$ac_cs_version"; exit ;;
22819 --config | --confi | --conf | --con | --co | --c )
22820 $as_echo "$ac_cs_config"; exit ;;
22821 --debug | --debu | --deb | --de | --d | -d )
22823 --file | --fil | --fi | --f )
22826 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22827 '') as_fn_error $? "missing file argument" ;;
22829 as_fn_append CONFIG_FILES " '$ac_optarg'"
22830 ac_need_defaults=false;;
22831 --header | --heade | --head | --hea )
22834 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22836 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22837 ac_need_defaults=false;;
22839 # Conflict between --help and --header
22840 as_fn_error $? "ambiguous option: \`$1'
22841 Try \`$0 --help' for more information.";;
22842 --help | --hel | -h )
22843 $as_echo "$ac_cs_usage"; exit ;;
22844 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22845 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22848 # This is an error.
22849 -*) as_fn_error $? "unrecognized option: \`$1'
22850 Try \`$0 --help' for more information." ;;
22852 *) as_fn_append ac_config_targets " $1"
22853 ac_need_defaults=false ;;
22859 ac_configure_extra_args=
22861 if $ac_cs_silent; then
22863 ac_configure_extra_args="$ac_configure_extra_args --silent"
22867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22868 if \$ac_cs_recheck; then
22869 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22871 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22872 CONFIG_SHELL='$SHELL'
22873 export CONFIG_SHELL
22878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22882 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22883 ## Running $as_me. ##
22889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22893 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22896 # The HP-UX ksh and POSIX shell print the target directory to stdout
22897 # if CDPATH is set.
22898 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22900 sed_quote_subst='$sed_quote_subst'
22901 double_quote_subst='$double_quote_subst'
22902 delay_variable_subst='$delay_variable_subst'
22903 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22904 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22905 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22906 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22907 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22908 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22909 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22910 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22911 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22912 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22913 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22914 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22915 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22916 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22917 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22918 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22919 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22920 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22921 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22922 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22923 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22924 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22925 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22926 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22927 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22928 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22929 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22930 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22931 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22932 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22933 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22934 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22935 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22936 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22937 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22938 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22939 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22940 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22941 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22942 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22943 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22944 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22945 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22946 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22947 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22948 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22949 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22950 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22951 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22952 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22953 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22954 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22955 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22956 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22957 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22958 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22959 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22960 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22961 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22962 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"`'
22963 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22964 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22965 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22966 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22967 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22968 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22969 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22970 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22971 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22972 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22973 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22974 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22975 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22976 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22977 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22978 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22979 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22980 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22981 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22982 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22983 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22984 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22985 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22986 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22987 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22988 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22989 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22990 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22991 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22992 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22993 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22994 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22995 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22996 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22997 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22998 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22999 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23000 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23001 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23002 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23003 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23004 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23005 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23006 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23007 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23008 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23009 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23010 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23011 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23012 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23013 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23014 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23015 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23016 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23017 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23018 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23019 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23020 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23021 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23022 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23023 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23024 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23025 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23026 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23027 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23028 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23029 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23030 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23031 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23032 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23033 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23034 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23035 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23036 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23037 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23038 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23039 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23040 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23041 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23042 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23043 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23044 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23045 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23046 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23047 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23048 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23049 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23050 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23051 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23052 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23053 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23054 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23055 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23056 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23057 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23058 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23059 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23060 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23061 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23062 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23063 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23064 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23065 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23066 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23067 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23068 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23069 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23070 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23071 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23072 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23073 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23074 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23075 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23076 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23077 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23078 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23079 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23080 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23081 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23082 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23083 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23084 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23085 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23086 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23087 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23088 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23089 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23090 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23091 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23092 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23095 LTCFLAGS='$LTCFLAGS'
23096 compiler='$compiler_DEFAULT'
23098 # A function that is used when there is no print builtin or printf.
23099 func_fallback_echo ()
23101 eval 'cat <<_LTECHO_EOF
23106 # Quote evaled strings.
23121 deplibs_check_method \
23126 sharedlib_from_linklib_cmd \
23128 archiver_list_spec \
23134 lt_cv_sys_global_symbol_pipe \
23135 lt_cv_sys_global_symbol_to_cdecl \
23136 lt_cv_sys_global_symbol_to_import \
23137 lt_cv_sys_global_symbol_to_c_name_address \
23138 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23139 lt_cv_nm_interface \
23140 nm_file_list_spec \
23141 lt_cv_truncate_bin \
23142 lt_prog_compiler_no_builtin_flag \
23143 lt_prog_compiler_pic \
23144 lt_prog_compiler_wl \
23145 lt_prog_compiler_static \
23146 lt_cv_prog_compiler_c_o \
23155 export_dynamic_flag_spec \
23156 whole_archive_flag_spec \
23157 compiler_needs_object \
23159 allow_undefined_flag \
23160 no_undefined_flag \
23161 hardcode_libdir_flag_spec \
23162 hardcode_libdir_separator \
23166 variables_saved_for_relink \
23168 library_names_spec \
23170 install_override_mode \
23174 compiler_lib_search_dirs \
23179 compiler_lib_search_path \
23183 lt_prog_compiler_no_builtin_flag_CXX \
23184 lt_prog_compiler_pic_CXX \
23185 lt_prog_compiler_wl_CXX \
23186 lt_prog_compiler_static_CXX \
23187 lt_cv_prog_compiler_c_o_CXX \
23188 export_dynamic_flag_spec_CXX \
23189 whole_archive_flag_spec_CXX \
23190 compiler_needs_object_CXX \
23192 allow_undefined_flag_CXX \
23193 no_undefined_flag_CXX \
23194 hardcode_libdir_flag_spec_CXX \
23195 hardcode_libdir_separator_CXX \
23196 exclude_expsyms_CXX \
23197 include_expsyms_CXX \
23198 file_list_spec_CXX \
23199 compiler_lib_search_dirs_CXX \
23200 predep_objects_CXX \
23201 postdep_objects_CXX \
23204 compiler_lib_search_path_CXX; do
23205 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23206 *[\\\\\\\`\\"\\\$]*)
23207 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23210 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23215 # Double-quote double-evaled strings.
23216 for var in reload_cmds \
23217 old_postinstall_cmds \
23218 old_postuninstall_cmds \
23220 extract_expsyms_cmds \
23221 old_archive_from_new_cmds \
23222 old_archive_from_expsyms_cmds \
23224 archive_expsym_cmds \
23226 module_expsym_cmds \
23227 export_symbols_cmds \
23231 postuninstall_cmds \
23233 sys_lib_search_path_spec \
23234 configure_time_dlsearch_path \
23235 configure_time_lt_sys_library_path \
23237 old_archive_cmds_CXX \
23238 old_archive_from_new_cmds_CXX \
23239 old_archive_from_expsyms_cmds_CXX \
23241 archive_expsym_cmds_CXX \
23243 module_expsym_cmds_CXX \
23244 export_symbols_cmds_CXX \
23246 postlink_cmds_CXX; do
23247 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23248 *[\\\\\\\`\\"\\\$]*)
23249 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23252 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23257 ac_aux_dir='$ac_aux_dir'
23259 # See if we are running on zsh, and set the options that allow our
23260 # commands through without removal of \ escapes INIT.
23261 if test -n "\${ZSH_VERSION+set}"; then
23262 setopt NO_GLOB_SUBST
23278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23280 # Handling of arguments.
23281 for ac_config_target in $ac_config_targets
23283 case $ac_config_target in
23284 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23285 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23286 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23287 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23288 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23289 "src/harfbuzz-config.cmake") CONFIG_FILES="$CONFIG_FILES src/harfbuzz-config.cmake" ;;
23290 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
23291 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23292 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
23293 "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
23294 "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
23295 "test/shaping/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/Makefile" ;;
23296 "test/shaping/data/aots/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/aots/Makefile" ;;
23297 "test/shaping/data/in-house/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/in-house/Makefile" ;;
23298 "test/shaping/data/text-rendering-tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/text-rendering-tests/Makefile" ;;
23299 "test/subset/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/Makefile" ;;
23300 "test/subset/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/Makefile" ;;
23301 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
23302 "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
23304 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23309 # If the user did not use the arguments to specify the items to instantiate,
23310 # then the envvar interface is used. Set only those that are not.
23311 # We use the long form for the default assignment because of an extremely
23312 # bizarre bug on SunOS 4.1.3.
23313 if $ac_need_defaults; then
23314 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23315 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23316 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23319 # Have a temporary directory for convenience. Make it in the build tree
23320 # simply because there is no reason against having it here, and in addition,
23321 # creating and moving files from /tmp can sometimes cause problems.
23322 # Hook for its removal unless debugging.
23323 # Note that there is a small window in which the directory will not be cleaned:
23324 # after its creation but before its name has been assigned to `$tmp'.
23328 trap 'exit_status=$?
23329 : "${ac_tmp:=$tmp}"
23330 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23332 trap 'as_fn_exit 1' 1 2 13 15
23334 # Create a (secure) tmp directory for tmp files.
23337 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23341 tmp=./conf$$-$RANDOM
23342 (umask 077 && mkdir "$tmp")
23343 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23346 # Set up the scripts for CONFIG_FILES section.
23347 # No need to generate them if there are no CONFIG_FILES.
23348 # This happens for instance with `./config.status config.h'.
23349 if test -n "$CONFIG_FILES"; then
23352 ac_cr=`echo X | tr X '\015'`
23353 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23354 # But we know of no other shell where ac_cr would be empty at this
23355 # point, so we can use a bashism as a fallback.
23356 if test "x$ac_cr" = x; then
23357 eval ac_cr=\$\'\\r\'
23359 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23360 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23363 ac_cs_awk_cr=$ac_cr
23366 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23371 echo "cat >conf$$subs.awk <<_ACEOF" &&
23372 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23374 } >conf$$subs.sh ||
23375 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23376 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23378 for ac_last_try in false false false false false :; do
23379 . ./conf$$subs.sh ||
23380 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23382 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23383 if test $ac_delim_n = $ac_delim_num; then
23385 elif $ac_last_try; then
23386 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23388 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23391 rm -f conf$$subs.sh
23393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23394 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23398 s/^/S["/; s/!.*/"]=/
23408 s/\(.\{148\}\)..*/\1/
23410 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23415 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23422 s/\(.\{148\}\)..*/\1/
23424 s/["\\]/\\&/g; s/^/"/; s/$/"/
23428 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23433 ' <conf$$subs.awk | sed '
23438 ' >>$CONFIG_STATUS || ac_write_fail=1
23439 rm -f conf$$subs.awk
23440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23442 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23443 for (key in S) S_is_set[key] = 1
23449 nfields = split(line, field, "@")
23451 len = length(field[1])
23452 for (i = 2; i < nfields; i++) {
23454 keylen = length(key)
23455 if (S_is_set[key]) {
23457 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23458 len += length(value) + length(field[++i])
23469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23470 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23471 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23474 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23475 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23478 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23479 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23480 # trailing colons and then remove the whole line if VPATH becomes empty
23481 # (actually we leave an empty line to preserve line numbers).
23482 if test "x$srcdir" = x.; then
23483 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23502 fi # test -n "$CONFIG_FILES"
23504 # Set up the scripts for CONFIG_HEADERS section.
23505 # No need to generate them if there are no CONFIG_HEADERS.
23506 # This happens for instance with `./config.status Makefile'.
23507 if test -n "$CONFIG_HEADERS"; then
23508 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23512 # Transform confdefs.h into an awk script `defines.awk', embedded as
23513 # here-document in config.status, that substitutes the proper values into
23514 # config.h.in to produce config.h.
23516 # Create a delimiter string that does not exist in confdefs.h, to ease
23517 # handling of long lines.
23519 for ac_last_try in false false :; do
23520 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23521 if test -z "$ac_tt"; then
23523 elif $ac_last_try; then
23524 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23526 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23530 # For the awk script, D is an array of macro values keyed by name,
23531 # likewise P contains macro parameters if any. Preserve backslash
23532 # newline sequences.
23534 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23536 s/.\{148\}/&'"$ac_delim"'/g
23539 s/^[ ]*#[ ]*define[ ][ ]*/ /
23546 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23548 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23552 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23553 D["\1"]=" \3\\\\\\n"\\/p
23555 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23560 s/.\{148\}/&'"$ac_delim"'/g
23565 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23568 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23570 ' <confdefs.h | sed '
23571 s/'"$ac_delim"'/"\\\
23572 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23575 for (key in D) D_is_set[key] = 1
23578 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23580 split(line, arg, " ")
23581 if (arg[1] == "#") {
23585 defundef = substr(arg[1], 2)
23588 split(mac1, mac2, "(") #)
23590 prefix = substr(line, 1, index(line, defundef) - 1)
23591 if (D_is_set[macro]) {
23592 # Preserve the white space surrounding the "#".
23593 print prefix "define", macro P[macro] D[macro]
23596 # Replace #undef with comments. This is necessary, for example,
23597 # in the case of _POSIX_SOURCE, which is predefined and required
23598 # on some systems where configure will not decide to define it.
23599 if (defundef == "undef") {
23600 print "/*", prefix defundef, macro, "*/"
23608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23609 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23610 fi # test -n "$CONFIG_HEADERS"
23613 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23618 :[FHLC]) ac_mode=$ac_tag; continue;;
23620 case $ac_mode$ac_tag in
23622 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23623 :[FH]-) ac_tag=-:-;;
23624 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23641 -) ac_f="$ac_tmp/stdin";;
23642 *) # Look for the file first in the build tree, then in the source tree
23643 # (if the path is not absolute). The absolute path cannot be DOS-style,
23644 # because $ac_f cannot contain `:'.
23648 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23650 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23652 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23653 as_fn_append ac_file_inputs " '$ac_f'"
23656 # Let's still pretend it is `configure' which instantiates (i.e., don't
23657 # use $as_me), people would be surprised to read:
23658 # /* config.h. Generated by config.status. */
23659 configure_input='Generated from '`
23660 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23662 if test x"$ac_file" != x-; then
23663 configure_input="$ac_file. $configure_input"
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23665 $as_echo "$as_me: creating $ac_file" >&6;}
23667 # Neutralize special characters interpreted by sed in replacement strings.
23668 case $configure_input in #(
23669 *\&* | *\|* | *\\* )
23670 ac_sed_conf_input=`$as_echo "$configure_input" |
23671 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23672 *) ac_sed_conf_input=$configure_input;;
23676 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23677 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23682 ac_dir=`$as_dirname -- "$ac_file" ||
23683 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23684 X"$ac_file" : 'X\(//\)[^/]' \| \
23685 X"$ac_file" : 'X\(//\)$' \| \
23686 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23687 $as_echo X"$ac_file" |
23688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23692 /^X\(\/\/\)[^/].*/{
23705 as_dir="$ac_dir"; as_fn_mkdir_p
23709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23711 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23712 # A ".." for each directory in $ac_dir_suffix.
23713 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23714 case $ac_top_builddir_sub in
23715 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23716 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23719 ac_abs_top_builddir=$ac_pwd
23720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23721 # for backward compatibility:
23722 ac_top_builddir=$ac_top_build_prefix
23725 .) # We are building in place.
23727 ac_top_srcdir=$ac_top_builddir_sub
23728 ac_abs_top_srcdir=$ac_pwd ;;
23729 [\\/]* | ?:[\\/]* ) # Absolute name.
23730 ac_srcdir=$srcdir$ac_dir_suffix;
23731 ac_top_srcdir=$srcdir
23732 ac_abs_top_srcdir=$srcdir ;;
23733 *) # Relative name.
23734 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23735 ac_top_srcdir=$ac_top_build_prefix$srcdir
23736 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23748 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23749 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23751 ac_MKDIR_P=$MKDIR_P
23753 [\\/$]* | ?:[\\/]* ) ;;
23754 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23759 # If the template does not know about datarootdir, expand it.
23760 # FIXME: This hack should be removed a few years after 2.60.
23761 ac_datarootdir_hack=; ac_datarootdir_seen=
23772 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23773 *datarootdir*) ac_datarootdir_seen=yes;;
23774 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23776 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23779 ac_datarootdir_hack='
23780 s&@datadir@&$datadir&g
23781 s&@docdir@&$docdir&g
23782 s&@infodir@&$infodir&g
23783 s&@localedir@&$localedir&g
23784 s&@mandir@&$mandir&g
23785 s&\\\${datarootdir}&$datarootdir&g' ;;
23789 # Neutralize VPATH when `$srcdir' = `.'.
23790 # Shell code in configure.ac might set extrasub.
23791 # FIXME: do we really want to maintain this feature?
23792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23793 ac_sed_extra="$ac_vpsub
23796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23798 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23799 s|@configure_input@|$ac_sed_conf_input|;t t
23800 s&@top_builddir@&$ac_top_builddir_sub&;t t
23801 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23802 s&@srcdir@&$ac_srcdir&;t t
23803 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23804 s&@top_srcdir@&$ac_top_srcdir&;t t
23805 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23806 s&@builddir@&$ac_builddir&;t t
23807 s&@abs_builddir@&$ac_abs_builddir&;t t
23808 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23809 s&@INSTALL@&$ac_INSTALL&;t t
23810 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23811 $ac_datarootdir_hack
23813 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23814 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23816 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23817 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23818 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23819 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23821 which seems to be undefined. Please make sure it is defined" >&5
23822 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23823 which seems to be undefined. Please make sure it is defined" >&2;}
23825 rm -f "$ac_tmp/stdin"
23827 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23828 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23836 if test x"$ac_file" != x-; then
23838 $as_echo "/* $configure_input */" \
23839 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23840 } >"$ac_tmp/config.h" \
23841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23842 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23844 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23847 mv "$ac_tmp/config.h" "$ac_file" \
23848 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23851 $as_echo "/* $configure_input */" \
23852 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23853 || as_fn_error $? "could not create -" "$LINENO" 5
23855 # Compute "$ac_file"'s index in $config_headers.
23858 for _am_header in $config_headers :; do
23859 case $_am_header in
23860 $_am_arg | $_am_arg:* )
23863 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23866 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23867 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23868 X"$_am_arg" : 'X\(//\)[^/]' \| \
23869 X"$_am_arg" : 'X\(//\)$' \| \
23870 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23871 $as_echo X"$_am_arg" |
23872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23876 /^X\(\/\/\)[^/].*/{
23888 s/.*/./; q'`/stamp-h$_am_stamp_count
23891 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23892 $as_echo "$as_me: executing $ac_file commands" >&6;}
23897 case $ac_file$ac_mode in
23898 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23899 # Older Autoconf quotes --file arguments for eval, but not when files
23900 # are listed without --file. Let's play safe and only enable the eval
23901 # if we detect the quoting.
23902 # TODO: see whether this extra hack can be removed once we start
23903 # requiring Autoconf 2.70 or later.
23904 case $CONFIG_FILES in #(
23906 eval set x "$CONFIG_FILES" ;; #(
23908 set x $CONFIG_FILES ;; #(
23913 # Used to flag and report bootstrapping failures.
23917 # Strip MF so we end up with the name of the file.
23918 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
23919 # Check whether this is an Automake generated Makefile which includes
23920 # dependency-tracking related rules and includes.
23921 # Grep'ing the whole file directly is not great: AIX grep has a line
23922 # limit of 2048, but all sed's we know have understand at least 4000.
23923 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23925 am_dirpart=`$as_dirname -- "$am_mf" ||
23926 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23927 X"$am_mf" : 'X\(//\)[^/]' \| \
23928 X"$am_mf" : 'X\(//\)$' \| \
23929 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23930 $as_echo X"$am_mf" |
23931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23935 /^X\(\/\/\)[^/].*/{
23948 am_filepart=`$as_basename -- "$am_mf" ||
23949 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23950 X"$am_mf" : 'X\(//\)$' \| \
23951 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23952 $as_echo X/"$am_mf" |
23953 sed '/^.*\/\([^/][^/]*\)\/*$/{
23966 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23967 && sed -e '/# am--include-marker/d' "$am_filepart" \
23968 | $MAKE -f - am--depfiles" >&5
23969 (cd "$am_dirpart" \
23970 && sed -e '/# am--include-marker/d' "$am_filepart" \
23971 | $MAKE -f - am--depfiles) >&5 2>&5
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); } || am_rc=$?
23976 if test $am_rc -ne 0; then
23977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23979 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23980 for automatic dependency tracking. If GNU make was not used, consider
23981 re-running the configure script with MAKE=\"gmake\" (or whatever is
23982 necessary). You can also try re-running configure with the
23983 '--disable-dependency-tracking' option to at least be able to build
23984 the package (albeit without support for automatic dependency tracking).
23985 See \`config.log' for more details" "$LINENO" 5; }
23987 { am_dirpart=; unset am_dirpart;}
23988 { am_filepart=; unset am_filepart;}
23989 { am_mf=; unset am_mf;}
23990 { am_rc=; unset am_rc;}
23991 rm -f conftest-deps.mk
23996 # See if we are running on zsh, and set the options that allow our
23997 # commands through without removal of \ escapes.
23998 if test -n "${ZSH_VERSION+set}"; then
23999 setopt NO_GLOB_SUBST
24003 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24006 cat <<_LT_EOF >> "$cfgfile"
24008 # Generated automatically by $as_me ($PACKAGE) $VERSION
24009 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24011 # Provide generalized library-building support services.
24012 # Written by Gordon Matzigkeit, 1996
24014 # Copyright (C) 2014 Free Software Foundation, Inc.
24015 # This is free software; see the source for copying conditions. There is NO
24016 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24018 # GNU Libtool is free software; you can redistribute it and/or modify
24019 # it under the terms of the GNU General Public License as published by
24020 # the Free Software Foundation; either version 2 of of the License, or
24021 # (at your option) any later version.
24023 # As a special exception to the GNU General Public License, if you
24024 # distribute this file as part of a program or library that is built
24025 # using GNU Libtool, you may include this file under the same
24026 # distribution terms that you use for the rest of that program.
24028 # GNU Libtool is distributed in the hope that it will be useful, but
24029 # WITHOUT ANY WARRANTY; without even the implied warranty of
24030 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24031 # GNU General Public License for more details.
24033 # You should have received a copy of the GNU General Public License
24034 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24037 # The names of the tagged configurations supported by this script.
24038 available_tags='CXX '
24040 # Configured defaults for sys_lib_dlsearch_path munging.
24041 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24043 # ### BEGIN LIBTOOL CONFIG
24045 # Which release of libtool.m4 was used?
24046 macro_version=$macro_version
24047 macro_revision=$macro_revision
24049 # Whether or not to build static libraries.
24050 build_old_libs=$enable_static
24052 # Whether or not to build shared libraries.
24053 build_libtool_libs=$enable_shared
24055 # What type of objects to build.
24058 # Whether or not to optimize for fast installation.
24059 fast_install=$enable_fast_install
24061 # Shared archive member basename,for filename based shared library versioning on AIX.
24062 shared_archive_member_spec=$shared_archive_member_spec
24064 # Shell to use when invoking shell scripts.
24067 # An echo program that protects backslashes.
24070 # The PATH separator for the build system.
24071 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24074 host_alias=$host_alias
24078 # The build system.
24079 build_alias=$build_alias
24083 # A sed program that does not truncate output.
24086 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24087 Xsed="\$SED -e 1s/^X//"
24089 # A grep program that handles long lines.
24095 # A literal string matcher.
24098 # A BSD- or MS-compatible name lister.
24101 # Whether we need soft or hard links.
24104 # What is the maximum length of a command?
24105 max_cmd_len=$max_cmd_len
24107 # Object file suffix (normally "o").
24110 # Executable file suffix (normally "").
24113 # whether the shell understands "unset".
24116 # turn spaces into newlines.
24119 # turn newlines into spaces.
24122 # convert \$build file names to \$host format.
24123 to_host_file_cmd=$lt_cv_to_host_file_cmd
24125 # convert \$build files to toolchain format.
24126 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24128 # An object symbol dumper.
24129 OBJDUMP=$lt_OBJDUMP
24131 # Method to check whether dependent libraries are shared objects.
24132 deplibs_check_method=$lt_deplibs_check_method
24134 # Command to use when deplibs_check_method = "file_magic".
24135 file_magic_cmd=$lt_file_magic_cmd
24137 # How to find potential files when deplibs_check_method = "file_magic".
24138 file_magic_glob=$lt_file_magic_glob
24140 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24141 want_nocaseglob=$lt_want_nocaseglob
24143 # DLL creation program.
24144 DLLTOOL=$lt_DLLTOOL
24146 # Command to associate shared and link libraries.
24147 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24152 # Flags to create an archive (by configure).
24153 lt_ar_flags=$lt_ar_flags
24155 # Flags to create an archive.
24156 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
24158 # How to feed a file listing to the archiver.
24159 archiver_list_spec=$lt_archiver_list_spec
24161 # A symbol stripping program.
24164 # Commands used to install an old-style archive.
24166 old_postinstall_cmds=$lt_old_postinstall_cmds
24167 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24169 # Whether to use a lock for old archive extraction.
24170 lock_old_archive_extraction=$lock_old_archive_extraction
24175 # LTCC compiler flags.
24176 LTCFLAGS=$lt_CFLAGS
24178 # Take the output of nm and produce a listing of raw symbols and C names.
24179 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24181 # Transform the output of nm in a proper C declaration.
24182 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24184 # Transform the output of nm into a list of symbols to manually relocate.
24185 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24187 # Transform the output of nm in a C name address pair.
24188 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24190 # Transform the output of nm in a C name address pair when lib prefix is needed.
24191 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24193 # The name lister interface.
24194 nm_interface=$lt_lt_cv_nm_interface
24196 # Specify filename containing input files for \$NM.
24197 nm_file_list_spec=$lt_nm_file_list_spec
24199 # The root where to search for dependent libraries,and where our libraries should be installed.
24200 lt_sysroot=$lt_sysroot
24202 # Command to truncate a binary pipe.
24203 lt_truncate_bin=$lt_lt_cv_truncate_bin
24205 # The name of the directory that contains temporary libtool files.
24208 # Used to examine libraries when file_magic_cmd begins with "file".
24209 MAGIC_CMD=$MAGIC_CMD
24211 # Must we lock files when doing compilation?
24212 need_locks=$lt_need_locks
24215 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24217 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24218 DSYMUTIL=$lt_DSYMUTIL
24220 # Tool to change global to local symbols on Mac OS X.
24223 # Tool to manipulate fat objects and archives on Mac OS X.
24226 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24229 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24230 OTOOL64=$lt_OTOOL64
24232 # Old archive suffix (normally "a").
24235 # Shared library suffix (normally ".so").
24236 shrext_cmds=$lt_shrext_cmds
24238 # The commands to extract the exported symbol list from a shared archive.
24239 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24241 # Variables whose values should be saved in libtool wrapper scripts and
24242 # restored at link time.
24243 variables_saved_for_relink=$lt_variables_saved_for_relink
24245 # Do we need the "lib" prefix for modules?
24246 need_lib_prefix=$need_lib_prefix
24248 # Do we need a version for libraries?
24249 need_version=$need_version
24251 # Library versioning type.
24252 version_type=$version_type
24254 # Shared library runtime path variable.
24255 runpath_var=$runpath_var
24257 # Shared library path variable.
24258 shlibpath_var=$shlibpath_var
24260 # Is shlibpath searched before the hard-coded library search path?
24261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24263 # Format of library name prefix.
24264 libname_spec=$lt_libname_spec
24266 # List of archive names. First name is the real one, the rest are links.
24267 # The last name is the one that the linker finds with -lNAME
24268 library_names_spec=$lt_library_names_spec
24270 # The coded name of the library, if different from the real name.
24271 soname_spec=$lt_soname_spec
24273 # Permission mode override for installation of shared libraries.
24274 install_override_mode=$lt_install_override_mode
24276 # Command to use after installation of a shared archive.
24277 postinstall_cmds=$lt_postinstall_cmds
24279 # Command to use after uninstallation of a shared archive.
24280 postuninstall_cmds=$lt_postuninstall_cmds
24282 # Commands used to finish a libtool library installation in a directory.
24283 finish_cmds=$lt_finish_cmds
24285 # As "finish_cmds", except a single script fragment to be evaled but
24287 finish_eval=$lt_finish_eval
24289 # Whether we should hardcode library paths into libraries.
24290 hardcode_into_libs=$hardcode_into_libs
24292 # Compile-time system search path for libraries.
24293 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24295 # Detected run-time system search path for libraries.
24296 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24298 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24299 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24301 # Whether dlopen is supported.
24302 dlopen_support=$enable_dlopen
24304 # Whether dlopen of programs is supported.
24305 dlopen_self=$enable_dlopen_self
24307 # Whether dlopen of statically linked programs is supported.
24308 dlopen_self_static=$enable_dlopen_self_static
24310 # Commands to strip libraries.
24311 old_striplib=$lt_old_striplib
24312 striplib=$lt_striplib
24315 # The linker used to build libraries.
24318 # How to create reloadable object files.
24319 reload_flag=$lt_reload_flag
24320 reload_cmds=$lt_reload_cmds
24322 # Commands used to build an old-style archive.
24323 old_archive_cmds=$lt_old_archive_cmds
24325 # A language specific compiler.
24328 # Is the compiler the GNU compiler?
24331 # Compiler flag to turn off builtin functions.
24332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24334 # Additional compiler flags for building library objects.
24335 pic_flag=$lt_lt_prog_compiler_pic
24337 # How to pass a linker flag through the compiler.
24338 wl=$lt_lt_prog_compiler_wl
24340 # Compiler flag to prevent dynamic linking.
24341 link_static_flag=$lt_lt_prog_compiler_static
24343 # Does compiler simultaneously support -c and -o options?
24344 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24346 # Whether or not to add -lc for building shared libraries.
24347 build_libtool_need_lc=$archive_cmds_need_lc
24349 # Whether or not to disallow shared libs when runtime libs are static.
24350 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24352 # Compiler flag to allow reflexive dlopens.
24353 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24355 # Compiler flag to generate shared objects directly from archives.
24356 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24358 # Whether the compiler copes with passing no objects directly.
24359 compiler_needs_object=$lt_compiler_needs_object
24361 # Create an old-style archive from a shared archive.
24362 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24364 # Create a temporary old-style archive to link instead of a shared archive.
24365 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24367 # Commands used to build a shared archive.
24368 archive_cmds=$lt_archive_cmds
24369 archive_expsym_cmds=$lt_archive_expsym_cmds
24371 # Commands used to build a loadable module if different from building
24372 # a shared archive.
24373 module_cmds=$lt_module_cmds
24374 module_expsym_cmds=$lt_module_expsym_cmds
24376 # Whether we are building with GNU ld or not.
24377 with_gnu_ld=$lt_with_gnu_ld
24379 # Flag that allows shared libraries with undefined symbols to be built.
24380 allow_undefined_flag=$lt_allow_undefined_flag
24382 # Flag that enforces no undefined symbols.
24383 no_undefined_flag=$lt_no_undefined_flag
24385 # Flag to hardcode \$libdir into a binary during linking.
24386 # This must work even if \$libdir does not exist
24387 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24389 # Whether we need a single "-rpath" flag with a separated argument.
24390 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24392 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24393 # DIR into the resulting binary.
24394 hardcode_direct=$hardcode_direct
24396 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24397 # DIR into the resulting binary and the resulting library dependency is
24398 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24399 # library is relocated.
24400 hardcode_direct_absolute=$hardcode_direct_absolute
24402 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24403 # into the resulting binary.
24404 hardcode_minus_L=$hardcode_minus_L
24406 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24407 # into the resulting binary.
24408 hardcode_shlibpath_var=$hardcode_shlibpath_var
24410 # Set to "yes" if building a shared library automatically hardcodes DIR
24411 # into the library and all subsequent libraries and executables linked
24413 hardcode_automatic=$hardcode_automatic
24415 # Set to yes if linker adds runtime paths of dependent libraries
24416 # to runtime path list.
24417 inherit_rpath=$inherit_rpath
24419 # Whether libtool must link a program against all its dependency libraries.
24420 link_all_deplibs=$link_all_deplibs
24422 # Set to "yes" if exported symbols are required.
24423 always_export_symbols=$always_export_symbols
24425 # The commands to list exported symbols.
24426 export_symbols_cmds=$lt_export_symbols_cmds
24428 # Symbols that should not be listed in the preloaded symbols.
24429 exclude_expsyms=$lt_exclude_expsyms
24431 # Symbols that must always be exported.
24432 include_expsyms=$lt_include_expsyms
24434 # Commands necessary for linking programs (against libraries) with templates.
24435 prelink_cmds=$lt_prelink_cmds
24437 # Commands necessary for finishing linking programs.
24438 postlink_cmds=$lt_postlink_cmds
24440 # Specify filename containing input files.
24441 file_list_spec=$lt_file_list_spec
24443 # How to hardcode a shared library path into an executable.
24444 hardcode_action=$hardcode_action
24446 # The directories searched by this compiler when creating a shared library.
24447 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24449 # Dependencies to place before and after the objects being linked to
24450 # create a shared library.
24451 predep_objects=$lt_predep_objects
24452 postdep_objects=$lt_postdep_objects
24453 predeps=$lt_predeps
24454 postdeps=$lt_postdeps
24456 # The library search path used internally by the compiler when linking
24457 # a shared library.
24458 compiler_lib_search_path=$lt_compiler_lib_search_path
24460 # ### END LIBTOOL CONFIG
24464 cat <<'_LT_EOF' >> "$cfgfile"
24466 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24468 # func_munge_path_list VARIABLE PATH
24469 # -----------------------------------
24470 # VARIABLE is name of variable containing _space_ separated list of
24471 # directories to be munged by the contents of PATH, which is string
24474 # string "DIR[ DIR]" will be prepended to VARIABLE
24476 # string "DIR[ DIR]" will be appended to VARIABLE
24477 # "DIRP[:DIRP]::[DIRA:]DIRA"
24478 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24479 # "DIRA[ DIRA]" will be appended to VARIABLE
24481 # VARIABLE will be replaced by "DIR[ DIR]"
24482 func_munge_path_list ()
24488 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24491 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24494 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24495 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24498 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24504 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24505 func_cc_basename ()
24507 for cc_temp in $*""; do
24509 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24510 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24515 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24519 # ### END FUNCTIONS SHARED WITH CONFIGURE
24525 cat <<\_LT_EOF >> "$cfgfile"
24526 # AIX sometimes has problems with the GCC collect2 program. For some
24527 # reason, if we set the COLLECT_NAMES environment variable, the problems
24528 # vanish in a puff of smoke.
24529 if test set != "${COLLECT_NAMES+set}"; then
24531 export COLLECT_NAMES
24538 ltmain=$ac_aux_dir/ltmain.sh
24541 # We use sed instead of cat because bash on DJGPP gets confused if
24542 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24543 # text mode, it properly converts lines to CR/LF. This bash problem
24544 # is reportedly fixed, but why not run on old versions too?
24545 sed '$q' "$ltmain" >> "$cfgfile" \
24546 || (rm -f "$cfgfile"; exit 1)
24548 mv -f "$cfgfile" "$ofile" ||
24549 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24553 cat <<_LT_EOF >> "$ofile"
24555 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24557 # The linker used to build libraries.
24560 # How to create reloadable object files.
24561 reload_flag=$lt_reload_flag_CXX
24562 reload_cmds=$lt_reload_cmds_CXX
24564 # Commands used to build an old-style archive.
24565 old_archive_cmds=$lt_old_archive_cmds_CXX
24567 # A language specific compiler.
24568 CC=$lt_compiler_CXX
24570 # Is the compiler the GNU compiler?
24573 # Compiler flag to turn off builtin functions.
24574 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24576 # Additional compiler flags for building library objects.
24577 pic_flag=$lt_lt_prog_compiler_pic_CXX
24579 # How to pass a linker flag through the compiler.
24580 wl=$lt_lt_prog_compiler_wl_CXX
24582 # Compiler flag to prevent dynamic linking.
24583 link_static_flag=$lt_lt_prog_compiler_static_CXX
24585 # Does compiler simultaneously support -c and -o options?
24586 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24588 # Whether or not to add -lc for building shared libraries.
24589 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24591 # Whether or not to disallow shared libs when runtime libs are static.
24592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24594 # Compiler flag to allow reflexive dlopens.
24595 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24597 # Compiler flag to generate shared objects directly from archives.
24598 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24600 # Whether the compiler copes with passing no objects directly.
24601 compiler_needs_object=$lt_compiler_needs_object_CXX
24603 # Create an old-style archive from a shared archive.
24604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24606 # Create a temporary old-style archive to link instead of a shared archive.
24607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24609 # Commands used to build a shared archive.
24610 archive_cmds=$lt_archive_cmds_CXX
24611 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24613 # Commands used to build a loadable module if different from building
24614 # a shared archive.
24615 module_cmds=$lt_module_cmds_CXX
24616 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24618 # Whether we are building with GNU ld or not.
24619 with_gnu_ld=$lt_with_gnu_ld_CXX
24621 # Flag that allows shared libraries with undefined symbols to be built.
24622 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24624 # Flag that enforces no undefined symbols.
24625 no_undefined_flag=$lt_no_undefined_flag_CXX
24627 # Flag to hardcode \$libdir into a binary during linking.
24628 # This must work even if \$libdir does not exist
24629 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24631 # Whether we need a single "-rpath" flag with a separated argument.
24632 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24634 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24635 # DIR into the resulting binary.
24636 hardcode_direct=$hardcode_direct_CXX
24638 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24639 # DIR into the resulting binary and the resulting library dependency is
24640 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24641 # library is relocated.
24642 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24644 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24645 # into the resulting binary.
24646 hardcode_minus_L=$hardcode_minus_L_CXX
24648 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24649 # into the resulting binary.
24650 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24652 # Set to "yes" if building a shared library automatically hardcodes DIR
24653 # into the library and all subsequent libraries and executables linked
24655 hardcode_automatic=$hardcode_automatic_CXX
24657 # Set to yes if linker adds runtime paths of dependent libraries
24658 # to runtime path list.
24659 inherit_rpath=$inherit_rpath_CXX
24661 # Whether libtool must link a program against all its dependency libraries.
24662 link_all_deplibs=$link_all_deplibs_CXX
24664 # Set to "yes" if exported symbols are required.
24665 always_export_symbols=$always_export_symbols_CXX
24667 # The commands to list exported symbols.
24668 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24670 # Symbols that should not be listed in the preloaded symbols.
24671 exclude_expsyms=$lt_exclude_expsyms_CXX
24673 # Symbols that must always be exported.
24674 include_expsyms=$lt_include_expsyms_CXX
24676 # Commands necessary for linking programs (against libraries) with templates.
24677 prelink_cmds=$lt_prelink_cmds_CXX
24679 # Commands necessary for finishing linking programs.
24680 postlink_cmds=$lt_postlink_cmds_CXX
24682 # Specify filename containing input files.
24683 file_list_spec=$lt_file_list_spec_CXX
24685 # How to hardcode a shared library path into an executable.
24686 hardcode_action=$hardcode_action_CXX
24688 # The directories searched by this compiler when creating a shared library.
24689 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24691 # Dependencies to place before and after the objects being linked to
24692 # create a shared library.
24693 predep_objects=$lt_predep_objects_CXX
24694 postdep_objects=$lt_postdep_objects_CXX
24695 predeps=$lt_predeps_CXX
24696 postdeps=$lt_postdeps_CXX
24698 # The library search path used internally by the compiler when linking
24699 # a shared library.
24700 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24702 # ### END LIBTOOL TAG CONFIG: CXX
24713 ac_clean_files=$ac_clean_files_save
24715 test $ac_write_fail = 0 ||
24716 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24719 # configure is writing to config.log, and then calls config.status.
24720 # config.status does its own redirection, appending to config.log.
24721 # Unfortunately, on DOS this fails, as config.log is still kept open
24722 # by configure, so config.status won't be able to write to it; its
24723 # output is simply discarded. So we exec the FD to /dev/null,
24724 # effectively closing config.log, so it can be properly (re)opened and
24725 # appended to by config.status. When coming back to configure, we
24726 # need to make the FD available again.
24727 if test "$no_create" != yes; then
24729 ac_config_status_args=
24730 test "$silent" = yes &&
24731 ac_config_status_args="$ac_config_status_args --quiet"
24733 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24736 # would make configure fail if this is the last instruction.
24737 $ac_cs_success || as_fn_exit 1
24739 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24741 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24746 echo "C++ compiler version:"
24750 { $as_echo "$as_me:${as_lineno-$LINENO}:
24752 Build configuration:
24754 Unicode callbacks (you want at least one):
24759 Font callbacks (the more the merrier):
24760 FreeType: ${have_freetype}
24762 Tools used for command-line utilities:
24763 Cairo: ${have_cairo}
24764 Fontconfig: ${have_fontconfig}
24766 Additional shapers (the more the merrier):
24767 Graphite2: ${have_graphite2}
24769 Platform shapers (not normally needed):
24770 CoreText: ${have_coretext}
24771 DirectWrite: ${have_directwrite}
24773 Uniscribe: ${have_uniscribe}
24776 Documentation: ${enable_gtk_doc}
24777 GObject bindings: ${have_gobject}
24778 Introspection: ${have_introspection}
24782 Build configuration:
24784 Unicode callbacks (you want at least one):
24789 Font callbacks (the more the merrier):
24790 FreeType: ${have_freetype}
24792 Tools used for command-line utilities:
24793 Cairo: ${have_cairo}
24794 Fontconfig: ${have_fontconfig}
24796 Additional shapers (the more the merrier):
24797 Graphite2: ${have_graphite2}
24799 Platform shapers (not normally needed):
24800 CoreText: ${have_coretext}
24801 DirectWrite: ${have_directwrite}
24803 Uniscribe: ${have_uniscribe}
24806 Documentation: ${enable_gtk_doc}
24807 GObject bindings: ${have_gobject}
24808 Introspection: ${have_introspection}