2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for HarfBuzz 1.3.0.
5 # Report bugs to <https://github.com/behdad/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
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || 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/behdad/harfbuzz/issues/new about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='HarfBuzz'
592 PACKAGE_TARNAME='harfbuzz'
593 PACKAGE_VERSION='1.3.0'
594 PACKAGE_STRING='HarfBuzz 1.3.0'
595 PACKAGE_BUGREPORT='https://github.com/behdad/harfbuzz/issues/new'
596 PACKAGE_URL='http://harfbuzz.org/'
598 ac_unique_file="src/harfbuzz.pc.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
643 HAVE_DIRECTWRITE_FALSE
644 HAVE_DIRECTWRITE_TRUE
663 HAVE_ICU_BUILTIN_FALSE
664 HAVE_ICU_BUILTIN_TRUE
670 HAVE_FONTCONFIG_FALSE
682 HAVE_INTROSPECTION_FALSE
683 HAVE_INTROSPECTION_TRUE
684 INTROSPECTION_MAKEFILE
687 INTROSPECTION_TYPELIBDIR
689 INTROSPECTION_GENERATE
690 INTROSPECTION_COMPILER
691 INTROSPECTION_SCANNER
716 GTK_DOC_USE_REBASE_FALSE
717 GTK_DOC_USE_REBASE_TRUE
718 GTK_DOC_USE_LIBTOOL_FALSE
719 GTK_DOC_USE_LIBTOOL_TRUE
720 GTK_DOC_BUILD_PDF_FALSE
721 GTK_DOC_BUILD_PDF_TRUE
722 GTK_DOC_BUILD_HTML_FALSE
723 GTK_DOC_BUILD_HTML_TRUE
735 HB_LIBTOOL_VERSION_INFO
797 AUTOMAKE_OLDER_THAN_1_13_FALSE
798 AUTOMAKE_OLDER_THAN_1_13_TRUE
811 INSTALL_STRIP_PROGRAM
853 program_transform_name
866 enable_option_checking
868 enable_dependency_tracking
892 ac_precious_vars='build_alias
926 # Initialize some variables set by options.
928 ac_init_version=false
929 ac_unrecognized_opts=
931 # The variables have the same names as the options, with
932 # dashes changed to underlines.
940 program_transform_name=s,x,x,
948 # Installation directory options.
949 # These are left unexpanded so users can "make install exec_prefix=/foo"
950 # and all the variables that are supposed to be based on exec_prefix
951 # by default will actually change.
952 # Use braces instead of parens because sh, perl, etc. also accept them.
953 # (The list follows the same order as the GNU Coding Standards.)
954 bindir='${exec_prefix}/bin'
955 sbindir='${exec_prefix}/sbin'
956 libexecdir='${exec_prefix}/libexec'
957 datarootdir='${prefix}/share'
958 datadir='${datarootdir}'
959 sysconfdir='${prefix}/etc'
960 sharedstatedir='${prefix}/com'
961 localstatedir='${prefix}/var'
962 includedir='${prefix}/include'
963 oldincludedir='/usr/include'
964 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
965 infodir='${datarootdir}/info'
970 libdir='${exec_prefix}/lib'
971 localedir='${datarootdir}/locale'
972 mandir='${datarootdir}/man'
978 # If the previous option needs an argument, assign it.
979 if test -n "$ac_prev"; then
980 eval $ac_prev=\$ac_option
986 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991 # Accept the important Cygnus configure options, so we can diagnose typos.
993 case $ac_dashdash$ac_option in
997 -bindir | --bindir | --bindi | --bind | --bin | --bi)
999 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000 bindir=$ac_optarg ;;
1002 -build | --build | --buil | --bui | --bu)
1003 ac_prev=build_alias ;;
1004 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1005 build_alias=$ac_optarg ;;
1007 -cache-file | --cache-file | --cache-fil | --cache-fi \
1008 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1009 ac_prev=cache_file ;;
1010 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1011 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1012 cache_file=$ac_optarg ;;
1014 --config-cache | -C)
1015 cache_file=config.cache ;;
1017 -datadir | --datadir | --datadi | --datad)
1019 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1020 datadir=$ac_optarg ;;
1022 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1023 | --dataroo | --dataro | --datar)
1024 ac_prev=datarootdir ;;
1025 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1026 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1027 datarootdir=$ac_optarg ;;
1029 -disable-* | --disable-*)
1030 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033 as_fn_error $? "invalid feature name: $ac_useropt"
1034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1038 "enable_$ac_useropt"
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
1043 eval enable_$ac_useropt=no ;;
1045 -docdir | --docdir | --docdi | --doc | --do)
1047 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1048 docdir=$ac_optarg ;;
1050 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1052 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1053 dvidir=$ac_optarg ;;
1055 -enable-* | --enable-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1069 eval enable_$ac_useropt=\$ac_optarg ;;
1071 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1072 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1073 | --exec | --exe | --ex)
1074 ac_prev=exec_prefix ;;
1075 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1076 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1077 | --exec=* | --exe=* | --ex=*)
1078 exec_prefix=$ac_optarg ;;
1080 -gas | --gas | --ga | --g)
1081 # Obsolete; use --with-gas.
1084 -help | --help | --hel | --he | -h)
1085 ac_init_help=long ;;
1086 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1087 ac_init_help=recursive ;;
1088 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1089 ac_init_help=short ;;
1091 -host | --host | --hos | --ho)
1092 ac_prev=host_alias ;;
1093 -host=* | --host=* | --hos=* | --ho=*)
1094 host_alias=$ac_optarg ;;
1096 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1098 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1100 htmldir=$ac_optarg ;;
1102 -includedir | --includedir | --includedi | --included | --include \
1103 | --includ | --inclu | --incl | --inc)
1104 ac_prev=includedir ;;
1105 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1106 | --includ=* | --inclu=* | --incl=* | --inc=*)
1107 includedir=$ac_optarg ;;
1109 -infodir | --infodir | --infodi | --infod | --info | --inf)
1111 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1112 infodir=$ac_optarg ;;
1114 -libdir | --libdir | --libdi | --libd)
1116 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1117 libdir=$ac_optarg ;;
1119 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1120 | --libexe | --libex | --libe)
1121 ac_prev=libexecdir ;;
1122 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1123 | --libexe=* | --libex=* | --libe=*)
1124 libexecdir=$ac_optarg ;;
1126 -localedir | --localedir | --localedi | --localed | --locale)
1127 ac_prev=localedir ;;
1128 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1129 localedir=$ac_optarg ;;
1131 -localstatedir | --localstatedir | --localstatedi | --localstated \
1132 | --localstate | --localstat | --localsta | --localst | --locals)
1133 ac_prev=localstatedir ;;
1134 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1135 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1136 localstatedir=$ac_optarg ;;
1138 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1140 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1141 mandir=$ac_optarg ;;
1143 -nfp | --nfp | --nf)
1144 # Obsolete; use --without-fp.
1147 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1148 | --no-cr | --no-c | -n)
1151 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1152 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1156 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1157 | --oldin | --oldi | --old | --ol | --o)
1158 ac_prev=oldincludedir ;;
1159 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1160 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1161 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1162 oldincludedir=$ac_optarg ;;
1164 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1166 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1167 prefix=$ac_optarg ;;
1169 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1170 | --program-pre | --program-pr | --program-p)
1171 ac_prev=program_prefix ;;
1172 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1173 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1174 program_prefix=$ac_optarg ;;
1176 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1177 | --program-suf | --program-su | --program-s)
1178 ac_prev=program_suffix ;;
1179 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1180 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1181 program_suffix=$ac_optarg ;;
1183 -program-transform-name | --program-transform-name \
1184 | --program-transform-nam | --program-transform-na \
1185 | --program-transform-n | --program-transform- \
1186 | --program-transform | --program-transfor \
1187 | --program-transfo | --program-transf \
1188 | --program-trans | --program-tran \
1189 | --progr-tra | --program-tr | --program-t)
1190 ac_prev=program_transform_name ;;
1191 -program-transform-name=* | --program-transform-name=* \
1192 | --program-transform-nam=* | --program-transform-na=* \
1193 | --program-transform-n=* | --program-transform-=* \
1194 | --program-transform=* | --program-transfor=* \
1195 | --program-transfo=* | --program-transf=* \
1196 | --program-trans=* | --program-tran=* \
1197 | --progr-tra=* | --program-tr=* | --program-t=*)
1198 program_transform_name=$ac_optarg ;;
1200 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1202 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1203 pdfdir=$ac_optarg ;;
1205 -psdir | --psdir | --psdi | --psd | --ps)
1207 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211 | -silent | --silent | --silen | --sile | --sil)
1214 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1216 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1218 sbindir=$ac_optarg ;;
1220 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1221 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1222 | --sharedst | --shareds | --shared | --share | --shar \
1224 ac_prev=sharedstatedir ;;
1225 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1226 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1227 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1229 sharedstatedir=$ac_optarg ;;
1231 -site | --site | --sit)
1233 -site=* | --site=* | --sit=*)
1236 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1238 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1239 srcdir=$ac_optarg ;;
1241 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1242 | --syscon | --sysco | --sysc | --sys | --sy)
1243 ac_prev=sysconfdir ;;
1244 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1245 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1246 sysconfdir=$ac_optarg ;;
1248 -target | --target | --targe | --targ | --tar | --ta | --t)
1249 ac_prev=target_alias ;;
1250 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1251 target_alias=$ac_optarg ;;
1253 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256 -version | --version | --versio | --versi | --vers | -V)
1257 ac_init_version=: ;;
1260 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263 as_fn_error $? "invalid package name: $ac_useropt"
1264 ac_useropt_orig=$ac_useropt
1265 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266 case $ac_user_opts in
1270 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1271 ac_unrecognized_sep=', ';;
1273 eval with_$ac_useropt=\$ac_optarg ;;
1275 -without-* | --without-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 as_fn_error $? "invalid package name: $ac_useropt"
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1289 eval with_$ac_useropt=no ;;
1292 # Obsolete; use --with-x.
1295 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1296 | --x-incl | --x-inc | --x-in | --x-i)
1297 ac_prev=x_includes ;;
1298 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1299 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1300 x_includes=$ac_optarg ;;
1302 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1303 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1304 ac_prev=x_libraries ;;
1305 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1306 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1307 x_libraries=$ac_optarg ;;
1309 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1310 Try \`$0 --help' for more information"
1314 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315 # Reject names that are not valid shell variable names.
1316 case $ac_envvar in #(
1317 '' | [0-9]* | *[!_$as_cr_alnum]* )
1318 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1320 eval $ac_envvar=\$ac_optarg
1321 export $ac_envvar ;;
1324 # FIXME: should be removed in autoconf 3.0.
1325 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1326 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1327 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1328 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1334 if test -n "$ac_prev"; then
1335 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1336 as_fn_error $? "missing argument to $ac_option"
1339 if test -n "$ac_unrecognized_opts"; then
1340 case $enable_option_checking in
1342 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1343 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1347 # Check all directory arguments for consistency.
1348 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1349 datadir sysconfdir sharedstatedir localstatedir includedir \
1350 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1351 libdir localedir mandir
1353 eval ac_val=\$$ac_var
1354 # Remove trailing slashes.
1357 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1358 eval $ac_var=\$ac_val;;
1360 # Be sure to have absolute directory names.
1362 [\\/$]* | ?:[\\/]* ) continue;;
1363 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1368 # There might be people who depend on the old broken behavior: `$host'
1369 # used to hold the argument of --host etc.
1370 # FIXME: To remove some day.
1373 target=$target_alias
1375 # FIXME: To remove some day.
1376 if test "x$host_alias" != x; then
1377 if test "x$build_alias" = x; then
1378 cross_compiling=maybe
1379 elif test "x$build_alias" != "x$host_alias"; then
1385 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1387 test "$silent" = yes && exec 6>/dev/null
1390 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1391 ac_ls_di=`ls -di .` &&
1392 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1393 as_fn_error $? "working directory cannot be determined"
1394 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395 as_fn_error $? "pwd does not report name of working directory"
1398 # Find the source files, if location was not specified.
1399 if test -z "$srcdir"; then
1400 ac_srcdir_defaulted=yes
1401 # Try the directory containing this script, then the parent directory.
1402 ac_confdir=`$as_dirname -- "$as_myself" ||
1403 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404 X"$as_myself" : 'X\(//\)[^/]' \| \
1405 X"$as_myself" : 'X\(//\)$' \| \
1406 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1407 $as_echo X"$as_myself" |
1408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1430 ac_srcdir_defaulted=no
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1436 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1440 # When building in place, set srcdir=.
1441 if test "$ac_abs_confdir" = "$ac_pwd"; then
1444 # Remove unnecessary trailing slashes from srcdir.
1445 # Double slashes in file names in object file debugging info
1446 # mess up M-x gdb in Emacs.
1448 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450 for ac_var in $ac_precious_vars; do
1451 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_env_${ac_var}_value=\$${ac_var}
1453 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1458 # Report the --help message.
1460 if test "$ac_init_help" = "long"; then
1461 # Omit some internal or obsolete options to make the list less imposing.
1462 # This message is too long to be a string in the A/UX 3.1 sh.
1464 \`configure' configures HarfBuzz 1.3.0 to adapt to many kinds of systems.
1466 Usage: $0 [OPTION]... [VAR=VALUE]...
1468 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469 VAR=VALUE. See below for descriptions of some of the useful variables.
1471 Defaults for the options are specified in brackets.
1474 -h, --help display this help and exit
1475 --help=short display options specific to this package
1476 --help=recursive display the short help of all the included packages
1477 -V, --version display version information and exit
1478 -q, --quiet, --silent do not print \`checking ...' messages
1479 --cache-file=FILE cache test results in FILE [disabled]
1480 -C, --config-cache alias for \`--cache-file=config.cache'
1481 -n, --no-create do not create output files
1482 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1484 Installation directories:
1485 --prefix=PREFIX install architecture-independent files in PREFIX
1486 [$ac_default_prefix]
1487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1490 By default, \`make install' will install all the files in
1491 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1492 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493 for instance \`--prefix=\$HOME'.
1495 For better control, use the options below.
1497 Fine tuning of the installation directories:
1498 --bindir=DIR user executables [EPREFIX/bin]
1499 --sbindir=DIR system admin executables [EPREFIX/sbin]
1500 --libexecdir=DIR program executables [EPREFIX/libexec]
1501 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1502 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1503 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1504 --libdir=DIR object code libraries [EPREFIX/lib]
1505 --includedir=DIR C header files [PREFIX/include]
1506 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1507 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1508 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1509 --infodir=DIR info documentation [DATAROOTDIR/info]
1510 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1511 --mandir=DIR man documentation [DATAROOTDIR/man]
1512 --docdir=DIR documentation root [DATAROOTDIR/doc/harfbuzz]
1513 --htmldir=DIR html documentation [DOCDIR]
1514 --dvidir=DIR dvi documentation [DOCDIR]
1515 --pdfdir=DIR pdf documentation [DOCDIR]
1516 --psdir=DIR ps documentation [DOCDIR]
1522 --program-prefix=PREFIX prepend PREFIX to installed program names
1523 --program-suffix=SUFFIX append SUFFIX to installed program names
1524 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1527 --build=BUILD configure for building on BUILD [guessed]
1528 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1532 if test -n "$ac_init_help"; then
1533 case $ac_init_help in
1534 short | recursive ) echo "Configuration of HarfBuzz 1.3.0:";;
1539 --disable-option-checking ignore unrecognized --enable/--with options
1540 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1541 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1542 --enable-silent-rules less verbose build output (undo: "make V=1")
1543 --disable-silent-rules verbose build output (undo: "make V=0")
1544 --enable-dependency-tracking
1545 do not reject slow dependency extractors
1546 --disable-dependency-tracking
1547 speeds up one-time build
1548 --enable-static[=PKGS] build static libraries [default=no]
1549 --enable-shared[=PKGS] build shared libraries [default=yes]
1550 --enable-fast-install[=PKGS]
1551 optimize for fast installation [default=yes]
1552 --disable-libtool-lock avoid locking (might break parallel builds)
1553 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1554 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1555 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1556 --enable-introspection=[no/auto/yes]
1557 Enable introspection for this build
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1562 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1564 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1565 --with-sysroot=DIR Search for dependent libraries within DIR
1566 (or the compiler's sysroot if not specified).
1567 --with-html-dir=PATH path to installed docs
1568 --with-glib=[yes/no/auto]
1569 Use glib [default=auto]
1570 --with-gobject=[yes/no/auto]
1571 Use gobject [default=auto]
1572 --with-cairo=[yes/no/auto]
1573 Use cairo [default=auto]
1574 --with-fontconfig=[yes/no/auto]
1575 Use fontconfig [default=auto]
1576 --with-icu=[yes/no/builtin/auto]
1577 Use ICU [default=auto]
1578 --with-graphite2=[yes/no/auto]
1579 Use the graphite2 library [default=no]
1580 --with-freetype=[yes/no/auto]
1581 Use the FreeType library [default=auto]
1582 --with-uniscribe=[yes/no/auto]
1583 Use the Uniscribe library [default=no]
1584 --with-directwrite=[yes/no/auto]
1585 Use the DirectWrite library (experimental)
1587 --with-coretext=[yes/no/auto]
1588 Use CoreText [default=no]
1590 Some influential environment variables:
1591 CC C compiler command
1592 CFLAGS C compiler flags
1593 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1594 nonstandard directory <lib dir>
1595 LIBS libraries to pass to the linker, e.g. -l<library>
1596 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1597 you have headers in a nonstandard directory <include dir>
1599 CXX C++ compiler command
1600 CXXFLAGS C++ compiler flags
1601 CXXCPP C++ preprocessor
1602 PKG_CONFIG path to pkg-config utility
1604 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1606 linker flags for GTKDOC_DEPS, overriding pkg-config
1607 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1608 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1610 C compiler flags for GOBJECT, overriding pkg-config
1612 linker flags for GOBJECT, overriding pkg-config
1614 C compiler flags for CAIRO, overriding pkg-config
1615 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1617 C compiler flags for CAIRO_FT, overriding pkg-config
1619 linker flags for CAIRO_FT, overriding pkg-config
1621 C compiler flags for FONTCONFIG, overriding pkg-config
1623 linker flags for FONTCONFIG, overriding pkg-config
1624 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1625 ICU_LIBS linker flags for ICU, overriding pkg-config
1627 C compiler flags for GRAPHITE2, overriding pkg-config
1629 linker flags for GRAPHITE2, overriding pkg-config
1631 C compiler flags for FREETYPE, overriding pkg-config
1633 linker flags for FREETYPE, overriding pkg-config
1635 Use these variables to override the choices made by `configure' or to help
1636 it to find libraries and programs with nonstandard names/locations.
1638 Report bugs to <https://github.com/behdad/harfbuzz/issues/new>.
1639 HarfBuzz home page: <http://harfbuzz.org/>.
1644 if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1669 .) # We are building in place.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1702 HarfBuzz configure 1.3.0
1703 generated by GNU Autoconf 2.69
1705 Copyright (C) 2012 Free Software Foundation, Inc.
1706 This configure script is free software; the Free Software Foundation
1707 gives unlimited permission to copy, distribute and modify it.
1712 ## ------------------------ ##
1713 ## Autoconf initialization. ##
1714 ## ------------------------ ##
1716 # ac_fn_c_try_compile LINENO
1717 # --------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_compile ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext
1723 if { { ac_try="$ac_compile"
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.$ac_objext; then :
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1752 } # ac_fn_c_try_compile
1754 # ac_fn_c_try_link LINENO
1755 # -----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded.
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext conftest$ac_exeext
1761 if { { ac_try="$ac_link"
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_link") 2>conftest.err
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest$ac_exeext && {
1780 test "$cross_compiling" = yes ||
1781 test -x conftest$ac_exeext
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1790 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1791 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1792 # interfere with the next link command; also delete a directory that is
1793 # left behind by Apple's compiler. We do this before executing the actions.
1794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1798 } # ac_fn_c_try_link
1800 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists and can be compiled using the include files in
1803 # INCLUDES, setting the cache variable VAR accordingly.
1804 ac_fn_c_check_header_compile ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1817 if ac_fn_c_try_compile "$LINENO"; then :
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 } # ac_fn_c_check_header_compile
1831 # ac_fn_c_try_cpp LINENO
1832 # ----------------------
1833 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 if { { ac_try="$ac_cpp conftest.$ac_ext"
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1846 if test -s conftest.err; then
1847 grep -v '^ *+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } > conftest.i && {
1853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1854 test ! -s conftest.err
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 as_fn_set_status $ac_retval
1868 # ac_fn_c_try_run LINENO
1869 # ----------------------
1870 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1871 # that executables *can* be run.
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_link"
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_link") 2>&5
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1886 { { case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_try") 2>&5
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; }; }; then :
1898 $as_echo "$as_me: program exited with status $ac_status" >&5
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1902 ac_retval=$ac_status
1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1910 # ac_fn_c_check_func LINENO FUNC VAR
1911 # ----------------------------------
1912 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1913 ac_fn_c_check_func ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919 $as_echo_n "(cached) " >&6
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1923 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1925 #define $2 innocuous_$2
1927 /* System header to define __stub macros and hopefully few prototypes,
1928 which can conflict with char $2 (); below.
1929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1930 <limits.h> exists even on freestanding compilers. */
1933 # include <limits.h>
1935 # include <assert.h>
1940 /* Override any GCC internal prototype to avoid an error.
1941 Use char because int might match the return type of a GCC
1942 builtin and then its argument prototype would still apply. */
1947 /* The GNU C library defines this for functions which it implements
1948 to always fail with ENOSYS. Some functions are actually named
1949 something starting with __ and the normal name is an alias. */
1950 #if defined __stub_$2 || defined __stub___$2
1962 if ac_fn_c_try_link "$LINENO"; then :
1967 rm -f core conftest.err conftest.$ac_objext \
1968 conftest$ac_exeext conftest.$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 } # ac_fn_c_check_func
1977 # ac_fn_cxx_try_compile LINENO
1978 # ----------------------------
1979 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_cxx_try_compile ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 rm -f conftest.$ac_objext
1984 if { { ac_try="$ac_compile"
1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_compile") 2>conftest.err
1993 if test -s conftest.err; then
1994 grep -v '^ *+' conftest.err >conftest.er1
1995 cat conftest.er1 >&5
1996 mv -f conftest.er1 conftest.err
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } && {
2000 test -z "$ac_cxx_werror_flag" ||
2001 test ! -s conftest.err
2002 } && test -s conftest.$ac_objext; then :
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011 as_fn_set_status $ac_retval
2013 } # ac_fn_cxx_try_compile
2015 # ac_fn_cxx_try_cpp LINENO
2016 # ------------------------
2017 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2018 ac_fn_cxx_try_cpp ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 if { { ac_try="$ac_cpp conftest.$ac_ext"
2023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024 *) ac_try_echo=$ac_try;;
2026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2027 $as_echo "$ac_try_echo"; } >&5
2028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2030 if test -s conftest.err; then
2031 grep -v '^ *+' conftest.err >conftest.er1
2032 cat conftest.er1 >&5
2033 mv -f conftest.er1 conftest.err
2035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2036 test $ac_status = 0; } > conftest.i && {
2037 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2038 test ! -s conftest.err
2042 $as_echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048 as_fn_set_status $ac_retval
2050 } # ac_fn_cxx_try_cpp
2052 # ac_fn_cxx_try_link LINENO
2053 # -------------------------
2054 # Try to link conftest.$ac_ext, and return whether this succeeded.
2055 ac_fn_cxx_try_link ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 rm -f conftest.$ac_objext conftest$ac_exeext
2059 if { { ac_try="$ac_link"
2061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062 *) ac_try_echo=$ac_try;;
2064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065 $as_echo "$ac_try_echo"; } >&5
2066 (eval "$ac_link") 2>conftest.err
2068 if test -s conftest.err; then
2069 grep -v '^ *+' conftest.err >conftest.er1
2070 cat conftest.er1 >&5
2071 mv -f conftest.er1 conftest.err
2073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074 test $ac_status = 0; } && {
2075 test -z "$ac_cxx_werror_flag" ||
2076 test ! -s conftest.err
2077 } && test -s conftest$ac_exeext && {
2078 test "$cross_compiling" = yes ||
2079 test -x conftest$ac_exeext
2083 $as_echo "$as_me: failed program was:" >&5
2084 sed 's/^/| /' conftest.$ac_ext >&5
2088 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2089 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2090 # interfere with the next link command; also delete a directory that is
2091 # left behind by Apple's compiler. We do this before executing the actions.
2092 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094 as_fn_set_status $ac_retval
2096 } # ac_fn_cxx_try_link
2098 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2099 # -------------------------------------------------------
2100 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2101 # the include files in INCLUDES and setting the cache variable VAR
2103 ac_fn_c_check_header_mongrel ()
2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106 if eval \${$3+:} false; then :
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \${$3+:} false; then :
2110 $as_echo_n "(cached) " >&6
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2116 # Is the header compilable?
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2118 $as_echo_n "checking $2 usability... " >&6; }
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125 ac_header_compiler=yes
2127 ac_header_compiler=no
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2131 $as_echo "$ac_header_compiler" >&6; }
2133 # Is the header present?
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2135 $as_echo_n "checking $2 presence... " >&6; }
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2140 if ac_fn_c_try_cpp "$LINENO"; then :
2141 ac_header_preproc=yes
2143 ac_header_preproc=no
2145 rm -f conftest.err conftest.i conftest.$ac_ext
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2147 $as_echo "$ac_header_preproc" >&6; }
2149 # So? What about this header?
2150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2153 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2155 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2159 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2161 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2163 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2165 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2167 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2168 ( $as_echo "## ------------------------------------------------------------ ##
2169 ## Report this to https://github.com/behdad/harfbuzz/issues/new ##
2170 ## ------------------------------------------------------------ ##"
2171 ) | sed "s/^/$as_me: WARNING: /" >&2
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175 $as_echo_n "checking for $2... " >&6; }
2176 if eval \${$3+:} false; then :
2177 $as_echo_n "(cached) " >&6
2179 eval "$3=\$ac_header_compiler"
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187 } # ac_fn_c_check_header_mongrel
2189 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2190 # --------------------------------------------
2191 # Tries to find the compile-time value of EXPR in a program that includes
2192 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2194 ac_fn_c_compute_int ()
2196 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2197 if test "$cross_compiling" = yes; then
2198 # Depending upon the size, compute the lo and hi bounds.
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2205 static int test_array [1 - 2 * !(($2) >= 0)];
2207 return test_array [0];
2213 if ac_fn_c_try_compile "$LINENO"; then :
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2222 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2224 return test_array [0];
2230 if ac_fn_c_try_compile "$LINENO"; then :
2231 ac_hi=$ac_mid; break
2233 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2234 if test $ac_lo -le $ac_mid; then
2238 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2249 static int test_array [1 - 2 * !(($2) < 0)];
2251 return test_array [0];
2257 if ac_fn_c_try_compile "$LINENO"; then :
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2266 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2268 return test_array [0];
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275 ac_lo=$ac_mid; break
2277 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2278 if test $ac_mid -le $ac_hi; then
2282 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 # Binary search between lo and hi bounds.
2293 while test "x$ac_lo" != "x$ac_hi"; do
2294 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2301 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2303 return test_array [0];
2309 if ac_fn_c_try_compile "$LINENO"; then :
2312 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2324 static long int longval () { return $2; }
2325 static unsigned long int ulongval () { return $2; }
2332 FILE *f = fopen ("conftest.val", "w");
2337 long int i = longval ();
2340 fprintf (f, "%ld", i);
2344 unsigned long int i = ulongval ();
2347 fprintf (f, "%lu", i);
2349 /* Do not output a trailing newline, as this causes \r\n confusion
2350 on some platforms. */
2351 return ferror (f) || fclose (f) != 0;
2357 if ac_fn_c_try_run "$LINENO"; then :
2358 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2363 conftest.$ac_objext conftest.beam conftest.$ac_ext
2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368 as_fn_set_status $ac_retval
2370 } # ac_fn_c_compute_int
2372 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2373 # ---------------------------------------------------------
2374 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2375 # the include files in INCLUDES and setting the cache variable VAR
2377 ac_fn_cxx_check_header_mongrel ()
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 if eval \${$3+:} false; then :
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2382 $as_echo_n "checking for $2... " >&6; }
2383 if eval \${$3+:} false; then :
2384 $as_echo_n "(cached) " >&6
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2390 # Is the header compilable?
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2392 $as_echo_n "checking $2 usability... " >&6; }
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2398 if ac_fn_cxx_try_compile "$LINENO"; then :
2399 ac_header_compiler=yes
2401 ac_header_compiler=no
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2405 $as_echo "$ac_header_compiler" >&6; }
2407 # Is the header present?
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2409 $as_echo_n "checking $2 presence... " >&6; }
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2414 if ac_fn_cxx_try_cpp "$LINENO"; then :
2415 ac_header_preproc=yes
2417 ac_header_preproc=no
2419 rm -f conftest.err conftest.i conftest.$ac_ext
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2421 $as_echo "$ac_header_preproc" >&6; }
2423 # So? What about this header?
2424 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2427 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2429 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2433 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2435 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2437 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2439 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2441 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2442 ( $as_echo "## ------------------------------------------------------------ ##
2443 ## Report this to https://github.com/behdad/harfbuzz/issues/new ##
2444 ## ------------------------------------------------------------ ##"
2445 ) | sed "s/^/$as_me: WARNING: /" >&2
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2449 $as_echo_n "checking for $2... " >&6; }
2450 if eval \${$3+:} false; then :
2451 $as_echo_n "(cached) " >&6
2453 eval "$3=\$ac_header_compiler"
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2457 $as_echo "$ac_res" >&6; }
2459 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2461 } # ac_fn_cxx_check_header_mongrel
2463 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2464 # -------------------------------------------
2465 # Tests whether TYPE exists after having included INCLUDES, setting cache
2466 # variable VAR accordingly.
2467 ac_fn_c_check_type ()
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2471 $as_echo_n "checking for $2... " >&6; }
2472 if eval \${$3+:} false; then :
2473 $as_echo_n "(cached) " >&6
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2488 if ac_fn_c_try_compile "$LINENO"; then :
2489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h. */
2501 if ac_fn_c_try_compile "$LINENO"; then :
2506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2512 $as_echo "$ac_res" >&6; }
2513 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2515 } # ac_fn_c_check_type
2516 cat >config.log <<_ACEOF
2517 This file contains any messages produced by compilers while
2518 running configure, to aid debugging if configure makes a mistake.
2520 It was created by HarfBuzz $as_me 1.3.0, which was
2521 generated by GNU Autoconf 2.69. Invocation command line was
2533 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2534 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2535 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2536 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2537 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2539 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2540 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2542 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2543 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2544 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2545 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2546 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2547 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2548 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 test -z "$as_dir" && as_dir=.
2557 $as_echo "PATH: $as_dir"
2573 # Keep a trace of the command line.
2574 # Strip out --no-create and --no-recursion so they do not pile up.
2575 # Strip out --silent because we don't want to record it for future runs.
2576 # Also quote any args containing shell meta-characters.
2577 # Make two passes to allow for proper duplicate-argument suppression.
2581 ac_must_keep_next=false
2587 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2588 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2589 | -silent | --silent | --silen | --sile | --sil)
2592 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2595 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2597 as_fn_append ac_configure_args1 " '$ac_arg'"
2598 if test $ac_must_keep_next = true; then
2599 ac_must_keep_next=false # Got value, back to normal.
2602 *=* | --config-cache | -C | -disable-* | --disable-* \
2603 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2604 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2605 | -with-* | --with-* | -without-* | --without-* | --x)
2606 case "$ac_configure_args0 " in
2607 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2610 -* ) ac_must_keep_next=true ;;
2613 as_fn_append ac_configure_args " '$ac_arg'"
2618 { ac_configure_args0=; unset ac_configure_args0;}
2619 { ac_configure_args1=; unset ac_configure_args1;}
2621 # When interrupted or exit'd, cleanup temporary files, and complete
2622 # config.log. We remove comments because anyway the quotes in there
2623 # would cause problems or look ugly.
2624 # WARNING: Use '\'' to represent an apostrophe within the trap.
2625 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2626 trap 'exit_status=$?
2627 # Save into config.log some information that might help in debugging.
2631 $as_echo "## ---------------- ##
2632 ## Cache variables. ##
2633 ## ---------------- ##"
2635 # The following way of writing the cache mishandles newlines in values,
2637 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2638 eval ac_val=\$$ac_var
2642 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2643 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2646 _ | IFS | as_nl) ;; #(
2647 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2648 *) { eval $ac_var=; unset $ac_var;} ;;
2653 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2654 *${as_nl}ac_space=\ *)
2656 "s/'\''/'\''\\\\'\'''\''/g;
2657 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2660 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2667 $as_echo "## ----------------- ##
2668 ## Output variables. ##
2669 ## ----------------- ##"
2671 for ac_var in $ac_subst_vars
2673 eval ac_val=\$$ac_var
2675 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2677 $as_echo "$ac_var='\''$ac_val'\''"
2681 if test -n "$ac_subst_files"; then
2682 $as_echo "## ------------------- ##
2683 ## File substitutions. ##
2684 ## ------------------- ##"
2686 for ac_var in $ac_subst_files
2688 eval ac_val=\$$ac_var
2690 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2692 $as_echo "$ac_var='\''$ac_val'\''"
2697 if test -s confdefs.h; then
2698 $as_echo "## ----------- ##
2705 test "$ac_signal" != 0 &&
2706 $as_echo "$as_me: caught signal $ac_signal"
2707 $as_echo "$as_me: exit $exit_status"
2709 rm -f core *.core core.conftest.* &&
2710 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2713 for ac_signal in 1 2 13 15; do
2714 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2718 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2719 rm -f -r conftest* confdefs.h
2721 $as_echo "/* confdefs.h */" > confdefs.h
2723 # Predefined preprocessor variables.
2725 cat >>confdefs.h <<_ACEOF
2726 #define PACKAGE_NAME "$PACKAGE_NAME"
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2733 cat >>confdefs.h <<_ACEOF
2734 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2737 cat >>confdefs.h <<_ACEOF
2738 #define PACKAGE_STRING "$PACKAGE_STRING"
2741 cat >>confdefs.h <<_ACEOF
2742 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2745 cat >>confdefs.h <<_ACEOF
2746 #define PACKAGE_URL "$PACKAGE_URL"
2750 # Let the site file select an alternate cache file if it wants to.
2751 # Prefer an explicitly selected file to automatically selected ones.
2754 if test -n "$CONFIG_SITE"; then
2755 # We do not want a PATH search for config.site.
2756 case $CONFIG_SITE in #((
2757 -*) ac_site_file1=./$CONFIG_SITE;;
2758 */*) ac_site_file1=$CONFIG_SITE;;
2759 *) ac_site_file1=./$CONFIG_SITE;;
2761 elif test "x$prefix" != xNONE; then
2762 ac_site_file1=$prefix/share/config.site
2763 ac_site_file2=$prefix/etc/config.site
2765 ac_site_file1=$ac_default_prefix/share/config.site
2766 ac_site_file2=$ac_default_prefix/etc/config.site
2768 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2770 test "x$ac_site_file" = xNONE && continue
2771 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2773 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2774 sed 's/^/| /' "$ac_site_file" >&5
2776 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2778 as_fn_error $? "failed to load site script $ac_site_file
2779 See \`config.log' for more details" "$LINENO" 5; }
2783 if test -r "$cache_file"; then
2784 # Some versions of bash will fail to source /dev/null (special files
2785 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2786 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2788 $as_echo "$as_me: loading cache $cache_file" >&6;}
2790 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2791 *) . "./$cache_file";;
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2796 $as_echo "$as_me: creating cache $cache_file" >&6;}
2800 # Check that the precious variables saved in the cache have kept the same
2802 ac_cache_corrupted=false
2803 for ac_var in $ac_precious_vars; do
2804 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2805 eval ac_new_set=\$ac_env_${ac_var}_set
2806 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2807 eval ac_new_val=\$ac_env_${ac_var}_value
2808 case $ac_old_set,$ac_new_set in
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2811 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2812 ac_cache_corrupted=: ;;
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2815 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2816 ac_cache_corrupted=: ;;
2819 if test "x$ac_old_val" != "x$ac_new_val"; then
2820 # differences in whitespace do not lead to failure.
2821 ac_old_val_w=`echo x $ac_old_val`
2822 ac_new_val_w=`echo x $ac_new_val`
2823 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2825 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2826 ac_cache_corrupted=:
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2829 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2830 eval $ac_var=\$ac_old_val
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2833 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2835 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2838 # Pass precious variables to config.status.
2839 if test "$ac_new_set" = set; then
2841 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2842 *) ac_arg=$ac_var=$ac_new_val ;;
2844 case " $ac_configure_args " in
2845 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2846 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2850 if $ac_cache_corrupted; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2854 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2855 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2857 ## -------------------- ##
2858 ## Main body of script. ##
2859 ## -------------------- ##
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 ac_config_headers="$ac_config_headers config.h"
2874 am__api_version='1.14'
2877 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2878 if test -f "$ac_dir/install-sh"; then
2880 ac_install_sh="$ac_aux_dir/install-sh -c"
2882 elif test -f "$ac_dir/install.sh"; then
2884 ac_install_sh="$ac_aux_dir/install.sh -c"
2886 elif test -f "$ac_dir/shtool"; then
2888 ac_install_sh="$ac_aux_dir/shtool install -c"
2892 if test -z "$ac_aux_dir"; then
2893 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2896 # These three variables are undocumented and unsupported,
2897 # and are intended to be withdrawn in a future Autoconf release.
2898 # They can cause serious problems if a builder's source tree is in a directory
2899 # whose full name contains unusual characters.
2900 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2901 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2902 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2905 # Find a good install program. We prefer a C program (faster),
2906 # so one script is as good as another. But avoid the broken or
2907 # incompatible versions:
2908 # SysV /etc/install, /usr/sbin/install
2909 # SunOS /usr/etc/install
2910 # IRIX /sbin/install
2912 # AmigaOS /C/install, which installs bootblocks on floppy discs
2913 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2914 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2915 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2916 # OS/2's system install, which has a completely different semantic
2917 # ./install, which can be erroneously created by make from ./install.sh.
2918 # Reject install programs that cannot install multiple files.
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2920 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2921 if test -z "$INSTALL"; then
2922 if ${ac_cv_path_install+:} false; then :
2923 $as_echo_n "(cached) " >&6
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 test -z "$as_dir" && as_dir=.
2930 # Account for people who put trailing slashes in PATH elements.
2931 case $as_dir/ in #((
2932 ./ | .// | /[cC]/* | \
2933 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2934 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2937 # OSF1 and SCO ODT 3.0 have their own names for install.
2938 # Don't use installbsd from OSF since it installs stuff as root
2940 for ac_prog in ginstall scoinst install; do
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2943 if test $ac_prog = install &&
2944 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2945 # AIX install. It has an incompatible calling convention.
2947 elif test $ac_prog = install &&
2948 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2949 # program-specific install script used by HP pwplus--don't use.
2952 rm -rf conftest.one conftest.two conftest.dir
2953 echo one > conftest.one
2954 echo two > conftest.two
2956 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2957 test -s conftest.one && test -s conftest.two &&
2958 test -s conftest.dir/conftest.one &&
2959 test -s conftest.dir/conftest.two
2961 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2974 rm -rf conftest.one conftest.two conftest.dir
2977 if test "${ac_cv_path_install+set}" = set; then
2978 INSTALL=$ac_cv_path_install
2980 # As a last resort, use the slow shell script. Don't cache a
2981 # value for INSTALL within a source directory, because that will
2982 # break other packages using the cache if that directory is
2983 # removed, or if the value is a relative name.
2984 INSTALL=$ac_install_sh
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2988 $as_echo "$INSTALL" >&6; }
2990 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2991 # It thinks the first close brace ends the variable substitution.
2992 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2994 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2996 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2999 $as_echo_n "checking whether build environment is sane... " >&6; }
3000 # Reject unsafe characters in $srcdir or the absolute working directory
3001 # name. Accept space and tab only in the latter.
3005 *[\\\"\#\$\&\'\`$am_lf]*)
3006 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3009 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3010 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3013 # Do 'set' in a subshell so we don't clobber the current shell's
3014 # arguments. Must try -L first in case configure is actually a
3015 # symlink; some systems play weird games with the mod time of symlinks
3016 # (eg FreeBSD returns the mod time of the symlink's containing
3020 for am_try in 1 2; do
3021 echo "timestamp, slept: $am_has_slept" > conftest.file
3022 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3023 if test "$*" = "X"; then
3025 set X `ls -t "$srcdir/configure" conftest.file`
3027 if test "$*" != "X $srcdir/configure conftest.file" \
3028 && test "$*" != "X conftest.file $srcdir/configure"; then
3030 # If neither matched, then we have a broken ls. This can happen
3031 # if, for instance, CONFIG_SHELL is bash and it inherits a
3032 # broken ls alias from the environment. This has actually
3033 # happened. Such a system could not be considered "sane".
3034 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3035 alias in your environment" "$LINENO" 5
3037 if test "$2" = conftest.file || test $am_try -eq 2; then
3044 test "$2" = conftest.file
3050 as_fn_error $? "newly created file is older than distributed files!
3051 Check your system clock" "$LINENO" 5
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3054 $as_echo "yes" >&6; }
3055 # If we didn't sleep, we still need to ensure time stamps of config.status and
3056 # generated files are strictly newer.
3058 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3065 test "$program_prefix" != NONE &&
3066 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3067 # Use a double $ so make ignores it.
3068 test "$program_suffix" != NONE &&
3069 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3070 # Double any \ or $.
3071 # By default was `s,x,x', remove it if useless.
3072 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3073 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3075 # expand $ac_aux_dir to an absolute path
3076 am_aux_dir=`cd $ac_aux_dir && pwd`
3078 if test x"${MISSING+set}" != xset; then
3081 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3083 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3086 # Use eval to expand $SHELL
3087 if eval "$MISSING --is-lightweight"; then
3088 am_missing_run="$MISSING "
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3092 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3095 if test x"${install_sh}" != xset; then
3098 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3100 install_sh="\${SHELL} $am_aux_dir/install-sh"
3104 # Installed binaries are usually stripped using 'strip' when the user
3105 # run "make install-strip". However 'strip' might not be the right
3106 # tool to use in cross-compilation environments, therefore Automake
3107 # will honor the 'STRIP' environment variable to overrule this program.
3108 if test "$cross_compiling" != no; then
3109 if test -n "$ac_tool_prefix"; then
3110 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3111 set dummy ${ac_tool_prefix}strip; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_STRIP+:} false; then :
3115 $as_echo_n "(cached) " >&6
3117 if test -n "$STRIP"; then
3118 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 STRIP=$ac_cv_prog_STRIP
3138 if test -n "$STRIP"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3140 $as_echo "$STRIP" >&6; }
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3148 if test -z "$ac_cv_prog_STRIP"; then
3150 # Extract the first word of "strip", so it can be a program name with args.
3151 set dummy strip; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3155 $as_echo_n "(cached) " >&6
3157 if test -n "$ac_ct_STRIP"; then
3158 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167 ac_cv_prog_ac_ct_STRIP="strip"
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3178 if test -n "$ac_ct_STRIP"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3180 $as_echo "$ac_ct_STRIP" >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3186 if test "x$ac_ct_STRIP" = x; then
3189 case $cross_compiling:$ac_tool_warned in
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193 ac_tool_warned=yes ;;
3198 STRIP="$ac_cv_prog_STRIP"
3202 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3205 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3206 if test -z "$MKDIR_P"; then
3207 if ${ac_cv_path_mkdir+:} false; then :
3208 $as_echo_n "(cached) " >&6
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3214 test -z "$as_dir" && as_dir=.
3215 for ac_prog in mkdir gmkdir; do
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3218 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3219 'mkdir (GNU coreutils) '* | \
3220 'mkdir (coreutils) '* | \
3221 'mkdir (fileutils) '4.1*)
3222 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3232 test -d ./--version && rmdir ./--version
3233 if test "${ac_cv_path_mkdir+set}" = set; then
3234 MKDIR_P="$ac_cv_path_mkdir -p"
3236 # As a last resort, use the slow shell script. Don't cache a
3237 # value for MKDIR_P within a source directory, because that will
3238 # break other packages using the cache if that directory is
3239 # removed, or if the value is a relative name.
3240 MKDIR_P="$ac_install_sh -d"
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3244 $as_echo "$MKDIR_P" >&6; }
3246 for ac_prog in gawk mawk nawk awk
3248 # Extract the first word of "$ac_prog", so it can be a program name with args.
3249 set dummy $ac_prog; ac_word=$2
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251 $as_echo_n "checking for $ac_word... " >&6; }
3252 if ${ac_cv_prog_AWK+:} false; then :
3253 $as_echo_n "(cached) " >&6
3255 if test -n "$AWK"; then
3256 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 test -z "$as_dir" && as_dir=.
3263 for ac_exec_ext in '' $ac_executable_extensions; do
3264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3265 ac_cv_prog_AWK="$ac_prog"
3266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 if test -n "$AWK"; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3278 $as_echo "$AWK" >&6; }
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3285 test -n "$AWK" && break
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3289 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3291 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3292 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3293 $as_echo_n "(cached) " >&6
3295 cat >conftest.make <<\_ACEOF
3298 @echo '@@@%%%=$(MAKE)=@@@%%%'
3300 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3301 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3303 eval ac_cv_prog_make_${ac_make}_set=yes;;
3305 eval ac_cv_prog_make_${ac_make}_set=no;;
3309 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311 $as_echo "yes" >&6; }
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 $as_echo "no" >&6; }
3316 SET_MAKE="MAKE=${MAKE-make}"
3319 rm -rf .tst 2>/dev/null
3320 mkdir .tst 2>/dev/null
3321 if test -d .tst; then
3326 rmdir .tst 2>/dev/null
3328 # Check whether --enable-silent-rules was given.
3329 if test "${enable_silent_rules+set}" = set; then :
3330 enableval=$enable_silent_rules;
3333 case $enable_silent_rules in # (((
3334 yes) AM_DEFAULT_VERBOSITY=0;;
3335 no) AM_DEFAULT_VERBOSITY=1;;
3336 *) AM_DEFAULT_VERBOSITY=1;;
3338 am_make=${MAKE-make}
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3340 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3341 if ${am_cv_make_support_nested_variables+:} false; then :
3342 $as_echo_n "(cached) " >&6
3344 if $as_echo 'TRUE=$(BAR$(V))
3350 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3351 am_cv_make_support_nested_variables=yes
3353 am_cv_make_support_nested_variables=no
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3357 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3358 if test $am_cv_make_support_nested_variables = yes; then
3360 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3362 AM_V=$AM_DEFAULT_VERBOSITY
3363 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3367 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3368 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3369 # is not polluted with repeated "-I."
3370 am__isrc=' -I$(srcdir)'
3371 # test to see if srcdir already configured
3372 if test -f $srcdir/config.status; then
3373 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3377 # test whether we have cygpath
3378 if test -z "$CYGPATH_W"; then
3379 if (cygpath --version) >/dev/null 2>/dev/null; then
3380 CYGPATH_W='cygpath -w'
3387 # Define the identity of the package.
3392 # Some tools Automake needs.
3394 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3397 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3400 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3403 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3406 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3408 # For better backward compatibility. To be removed once Automake 1.9.x
3409 # dies out for good. For more background, see:
3410 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3411 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3412 mkdir_p='$(MKDIR_P)'
3414 # We need awk for the "check" target. The system "awk" is bad on
3416 # Always define AMTAR for backward compatibility. Yes, it's still used
3417 # in the wild :-( We should find a proper way to deprecate it ...
3421 # We'll loop over all known methods to create a tar archive until one works.
3422 _am_tools='gnutar plaintar pax cpio none'
3424 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3425 # There is notably a 21 bits limit for the UID and the GID. In fact,
3426 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3428 am_max_uid=2097151 # 2^21 - 1
3429 am_max_gid=$am_max_uid
3430 # The $UID and $GID variables are not portable, so we need to resort
3431 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3432 # below are definitely unexpected, so allow the users to see them
3433 # (that is, avoid stderr redirection).
3434 am_uid=`id -u || echo unknown`
3435 am_gid=`id -g || echo unknown`
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3437 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3438 if test $am_uid -le $am_max_uid; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3440 $as_echo "yes" >&6; }
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3447 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3448 if test $am_gid -le $am_max_gid; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3450 $as_echo "yes" >&6; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3458 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3460 # Go ahead even if we have the value already cached. We do so because we
3461 # need to set the values for the 'am__tar' and 'am__untar' variables.
3462 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3464 for _am_tool in $_am_tools; do
3467 for _am_tar in tar gnutar gtar; do
3468 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3469 ($_am_tar --version) >&5 2>&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } && break
3474 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3475 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3476 am__untar="$_am_tar -xf -"
3479 # Must skip GNU tar: if it does not support --format= it doesn't create
3480 # ustar tarball either.
3481 (tar --version) >/dev/null 2>&1 && continue
3482 am__tar='tar chf - "$$tardir"'
3483 am__tar_='tar chf - "$tardir"'
3484 am__untar='tar xf -'
3487 am__tar='pax -L -x ustar -w "$$tardir"'
3488 am__tar_='pax -L -x ustar -w "$tardir"'
3492 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3493 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3494 am__untar='cpio -i -H ustar -d'
3503 # If the value was cached, stop now. We just wanted to have am__tar
3504 # and am__untar set.
3505 test -n "${am_cv_prog_tar_ustar}" && break
3507 # tar/untar a dummy directory, and stop if the command works.
3510 echo GrepMe > conftest.dir/file
3511 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3512 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }
3517 if test -s conftest.tar; then
3518 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3519 ($am__untar <conftest.tar) >&5 2>&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }
3523 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3524 (cat conftest.dir/file) >&5 2>&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }
3528 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3533 if ${am_cv_prog_tar_ustar+:} false; then :
3534 $as_echo_n "(cached) " >&6
3536 am_cv_prog_tar_ustar=$_am_tool
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3540 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3547 # POSIX will say in a future version that running "rm -f" with no argument
3548 # is OK; and we want to be able to make that assumption in our Makefile
3549 # recipes. So use an aggressive probe to check that the usage we want is
3550 # actually supported "in the wild" to an acceptable degree.
3551 # See automake bug#10828.
3552 # To make any issue more visible, cause the running configure to be aborted
3553 # by default if the 'rm' program in use doesn't match our expectations; the
3554 # user can still override this though.
3555 if rm -f && rm -fr && rm -rf; then : OK; else
3559 Your 'rm' program seems unable to run without file operands specified
3560 on the command line, even when the '-f' option is present. This is contrary
3561 to the behaviour of most rm programs out there, and not conforming with
3562 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3564 Please tell bug-automake@gnu.org about your system, including the value
3565 of your $PATH and any error possibly output before this message. This
3566 can help us improve future automake versions.
3569 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3570 echo 'Configuration will proceed anyway, since you have set the' >&2
3571 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3575 Aborting the configuration process, to ensure you take notice of the issue.
3577 You can download and install GNU coreutils to get an 'rm' implementation
3578 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3580 If you want to complete the configuration process using your problematic
3581 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3582 to "yes", and re-run configure.
3585 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3588 if test $am__api_version = 1.11 -o $am__api_version = 1.12; then
3589 AUTOMAKE_OLDER_THAN_1_13_TRUE=
3590 AUTOMAKE_OLDER_THAN_1_13_FALSE='#'
3592 AUTOMAKE_OLDER_THAN_1_13_TRUE='#'
3593 AUTOMAKE_OLDER_THAN_1_13_FALSE=
3596 # Check whether --enable-silent-rules was given.
3597 if test "${enable_silent_rules+set}" = set; then :
3598 enableval=$enable_silent_rules;
3601 case $enable_silent_rules in # (((
3602 yes) AM_DEFAULT_VERBOSITY=0;;
3603 no) AM_DEFAULT_VERBOSITY=1;;
3604 *) AM_DEFAULT_VERBOSITY=0;;
3606 am_make=${MAKE-make}
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3608 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3609 if ${am_cv_make_support_nested_variables+:} false; then :
3610 $as_echo_n "(cached) " >&6
3612 if $as_echo 'TRUE=$(BAR$(V))
3618 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3619 am_cv_make_support_nested_variables=yes
3621 am_cv_make_support_nested_variables=no
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3625 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3626 if test $am_cv_make_support_nested_variables = yes; then
3628 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3630 AM_V=$AM_DEFAULT_VERBOSITY
3631 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3636 # Initialize libtool
3637 DEPDIR="${am__leading_dot}deps"
3639 ac_config_commands="$ac_config_commands depfiles"
3642 am_make=${MAKE-make}
3643 cat > confinc << 'END'
3645 @echo this is the am__doit target
3648 # If we don't find an include directive, just comment out the code.
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3650 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3654 # First try GNU make style include.
3655 echo "include confinc" > confmf
3656 # Ignore all kinds of additional output from 'make'.
3657 case `$am_make -s -f confmf 2> /dev/null` in #(
3658 *the\ am__doit\ target*)
3664 # Now try BSD make style include.
3665 if test "$am__include" = "#"; then
3666 echo '.include "confinc"' > confmf
3667 case `$am_make -s -f confmf 2> /dev/null` in #(
3668 *the\ am__doit\ target*)
3669 am__include=.include
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3678 $as_echo "$_am_result" >&6; }
3679 rm -f confinc confmf
3681 # Check whether --enable-dependency-tracking was given.
3682 if test "${enable_dependency_tracking+set}" = set; then :
3683 enableval=$enable_dependency_tracking;
3686 if test "x$enable_dependency_tracking" != xno; then
3687 am_depcomp="$ac_aux_dir/depcomp"
3691 if test "x$enable_dependency_tracking" != xno; then
3701 ac_cpp='$CPP $CPPFLAGS'
3702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705 if test -n "$ac_tool_prefix"; then
3706 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3707 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if ${ac_cv_prog_CC+:} false; then :
3711 $as_echo_n "(cached) " >&6
3713 if test -n "$CC"; then
3714 ac_cv_prog_CC="$CC" # Let the user override the test.
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 if test -n "$CC"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3736 $as_echo "$CC" >&6; }
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3744 if test -z "$ac_cv_prog_CC"; then
3746 # Extract the first word of "gcc", so it can be a program name with args.
3747 set dummy gcc; ac_word=$2
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749 $as_echo_n "checking for $ac_word... " >&6; }
3750 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3751 $as_echo_n "(cached) " >&6
3753 if test -n "$ac_ct_CC"; then
3754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 test -z "$as_dir" && as_dir=.
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763 ac_cv_prog_ac_ct_CC="gcc"
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3774 if test -n "$ac_ct_CC"; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3776 $as_echo "$ac_ct_CC" >&6; }
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3782 if test "x$ac_ct_CC" = x; then
3785 case $cross_compiling:$ac_tool_warned in
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3789 ac_tool_warned=yes ;;
3797 if test -z "$CC"; then
3798 if test -n "$ac_tool_prefix"; then
3799 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3800 set dummy ${ac_tool_prefix}cc; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if ${ac_cv_prog_CC+:} false; then :
3804 $as_echo_n "(cached) " >&6
3806 if test -n "$CC"; then
3807 ac_cv_prog_CC="$CC" # Let the user override the test.
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816 ac_cv_prog_CC="${ac_tool_prefix}cc"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 if test -n "$CC"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3829 $as_echo "$CC" >&6; }
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3838 if test -z "$CC"; then
3839 # Extract the first word of "cc", so it can be a program name with args.
3840 set dummy cc; ac_word=$2
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 $as_echo_n "checking for $ac_word... " >&6; }
3843 if ${ac_cv_prog_CC+:} false; then :
3844 $as_echo_n "(cached) " >&6
3846 if test -n "$CC"; then
3847 ac_cv_prog_CC="$CC" # Let the user override the test.
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 test -z "$as_dir" && as_dir=.
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3857 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3858 ac_prog_rejected=yes
3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 if test $ac_prog_rejected = yes; then
3870 # We found a bogon in the path, so make sure we never use it.
3871 set dummy $ac_cv_prog_CC
3873 if test $# != 0; then
3874 # We chose a different compiler from the bogus one.
3875 # However, it has the same basename, so the bogon will be chosen
3876 # first if we set CC to just the basename; use the full file name.
3878 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3884 if test -n "$CC"; then
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3886 $as_echo "$CC" >&6; }
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 $as_echo "no" >&6; }
3894 if test -z "$CC"; then
3895 if test -n "$ac_tool_prefix"; then
3896 for ac_prog in cl.exe
3898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3901 $as_echo_n "checking for $ac_word... " >&6; }
3902 if ${ac_cv_prog_CC+:} false; then :
3903 $as_echo_n "(cached) " >&6
3905 if test -n "$CC"; then
3906 ac_cv_prog_CC="$CC" # Let the user override the test.
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 if test -n "$CC"; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3928 $as_echo "$CC" >&6; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3935 test -n "$CC" && break
3938 if test -z "$CC"; then
3940 for ac_prog in cl.exe
3942 # Extract the first word of "$ac_prog", so it can be a program name with args.
3943 set dummy $ac_prog; ac_word=$2
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945 $as_echo_n "checking for $ac_word... " >&6; }
3946 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3947 $as_echo_n "(cached) " >&6
3949 if test -n "$ac_ct_CC"; then
3950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959 ac_cv_prog_ac_ct_CC="$ac_prog"
3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3970 if test -n "$ac_ct_CC"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3972 $as_echo "$ac_ct_CC" >&6; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3979 test -n "$ac_ct_CC" && break
3982 if test "x$ac_ct_CC" = x; then
3985 case $cross_compiling:$ac_tool_warned in
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3989 ac_tool_warned=yes ;;
3998 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000 as_fn_error $? "no acceptable C compiler found in \$PATH
4001 See \`config.log' for more details" "$LINENO" 5; }
4003 # Provide some information about the compiler.
4004 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4007 for ac_option in --version -v -V -qversion; do
4008 { { ac_try="$ac_compiler $ac_option >&5"
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4017 if test -s conftest.err; then
4019 ... rest of stderr output deleted ...
4020 10q' conftest.err >conftest.er1
4021 cat conftest.er1 >&5
4023 rm -f conftest.er1 conftest.err
4024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025 test $ac_status = 0; }
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4039 ac_clean_files_save=$ac_clean_files
4040 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4041 # Try to create an executable without -o first, disregard a.out.
4042 # It will help us diagnose broken compilers, and finding out an intuition
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4045 $as_echo_n "checking whether the C compiler works... " >&6; }
4046 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4048 # The possible output files:
4049 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4052 for ac_file in $ac_files
4055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4056 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4061 if { { ac_try="$ac_link_default"
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4067 $as_echo "$ac_try_echo"; } >&5
4068 (eval "$ac_link_default") 2>&5
4070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4071 test $ac_status = 0; }; then :
4072 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4073 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4074 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4075 # so that the user can short-circuit this test for compilers unknown to
4077 for ac_file in $ac_files ''
4079 test -f "$ac_file" || continue
4081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4084 # We found the default executable, but exeext='' is most
4088 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4090 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4092 # We set ac_cv_exeext here because the later test for it is not
4093 # safe: cross compilers may not add the suffix if given an `-o'
4094 # argument, so we may need to know it at that point already.
4095 # Even if this section looks crufty: it has the advantage of
4102 test "$ac_cv_exeext" = no && ac_cv_exeext=
4107 if test -z "$ac_file"; then :
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4110 $as_echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4115 as_fn_error 77 "C compiler cannot create executables
4116 See \`config.log' for more details" "$LINENO" 5; }
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4119 $as_echo "yes" >&6; }
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4122 $as_echo_n "checking for C compiler default output file name... " >&6; }
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4124 $as_echo "$ac_file" >&6; }
4125 ac_exeext=$ac_cv_exeext
4127 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4128 ac_clean_files=$ac_clean_files_save
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4130 $as_echo_n "checking for suffix of executables... " >&6; }
4131 if { { ac_try="$ac_link"
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4137 $as_echo "$ac_try_echo"; } >&5
4138 (eval "$ac_link") 2>&5
4140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4141 test $ac_status = 0; }; then :
4142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4143 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4144 # work properly (i.e., refer to `conftest.exe'), while it won't with
4146 for ac_file in conftest.exe conftest conftest.*; do
4147 test -f "$ac_file" || continue
4149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4150 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4159 See \`config.log' for more details" "$LINENO" 5; }
4161 rm -f conftest conftest$ac_cv_exeext
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4163 $as_echo "$ac_cv_exeext" >&6; }
4165 rm -f conftest.$ac_ext
4166 EXEEXT=$ac_cv_exeext
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4174 FILE *f = fopen ("conftest.out", "w");
4175 return ferror (f) || fclose (f) != 0;
4181 ac_clean_files="$ac_clean_files conftest.out"
4182 # Check that the compiler produces executables we can run. If not, either
4183 # the compiler is broken, or we cross compile.
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4185 $as_echo_n "checking whether we are cross compiling... " >&6; }
4186 if test "$cross_compiling" != yes; then
4187 { { ac_try="$ac_link"
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4193 $as_echo "$ac_try_echo"; } >&5
4194 (eval "$ac_link") 2>&5
4196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4197 test $ac_status = 0; }
4198 if { ac_try='./conftest$ac_cv_exeext'
4199 { { case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 $as_echo "$ac_try_echo"; } >&5
4205 (eval "$ac_try") 2>&5
4207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208 test $ac_status = 0; }; }; then
4211 if test "$cross_compiling" = maybe; then
4214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4216 as_fn_error $? "cannot run C compiled programs.
4217 If you meant to cross compile, use \`--host'.
4218 See \`config.log' for more details" "$LINENO" 5; }
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4223 $as_echo "$cross_compiling" >&6; }
4225 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4226 ac_clean_files=$ac_clean_files_save
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4228 $as_echo_n "checking for suffix of object files... " >&6; }
4229 if ${ac_cv_objext+:} false; then :
4230 $as_echo_n "(cached) " >&6
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4243 rm -f conftest.o conftest.obj
4244 if { { ac_try="$ac_compile"
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_compile") 2>&5
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; }; then :
4255 for ac_file in conftest.o conftest.obj conftest.*; do
4256 test -f "$ac_file" || continue;
4258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4259 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4264 $as_echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269 as_fn_error $? "cannot compute suffix of object files: cannot compile
4270 See \`config.log' for more details" "$LINENO" 5; }
4272 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4275 $as_echo "$ac_cv_objext" >&6; }
4276 OBJEXT=$ac_cv_objext
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4279 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4280 if ${ac_cv_c_compiler_gnu+:} false; then :
4281 $as_echo_n "(cached) " >&6
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4297 if ac_fn_c_try_compile "$LINENO"; then :
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4307 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4308 if test $ac_compiler_gnu = yes; then
4313 ac_test_CFLAGS=${CFLAGS+set}
4314 ac_save_CFLAGS=$CFLAGS
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4316 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4317 if ${ac_cv_prog_cc_g+:} false; then :
4318 $as_echo_n "(cached) " >&6
4320 ac_save_c_werror_flag=$ac_c_werror_flag
4321 ac_c_werror_flag=yes
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4335 if ac_fn_c_try_compile "$LINENO"; then :
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4350 if ac_fn_c_try_compile "$LINENO"; then :
4353 ac_c_werror_flag=$ac_save_c_werror_flag
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4366 if ac_fn_c_try_compile "$LINENO"; then :
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 ac_c_werror_flag=$ac_save_c_werror_flag
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4377 $as_echo "$ac_cv_prog_cc_g" >&6; }
4378 if test "$ac_test_CFLAGS" = set; then
4379 CFLAGS=$ac_save_CFLAGS
4380 elif test $ac_cv_prog_cc_g = yes; then
4381 if test "$GCC" = yes; then
4387 if test "$GCC" = yes; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4394 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4395 if ${ac_cv_prog_cc_c89+:} false; then :
4396 $as_echo_n "(cached) " >&6
4398 ac_cv_prog_cc_c89=no
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4405 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4406 struct buf { int x; };
4407 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4408 static char *e (p, i)
4414 static char *f (char * (*g) (char **, int), char **p, ...)
4419 s = g (p, va_arg (v,int));
4424 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4425 function prototypes and stuff, but not '\xHH' hex character constants.
4426 These don't provoke an error unfortunately, instead are silently treated
4427 as 'x'. The following induces an error, until -std is added to get
4428 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4429 array size at least. It's necessary to write '\x00'==0 to get something
4430 that's true only with -std. */
4431 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4433 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4434 inside strings and character constants. */
4436 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4438 int test (int i, double x);
4439 struct s1 {int (*f) (int a);};
4440 struct s2 {int (*f) (double a);};
4441 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4447 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4452 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4453 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4455 CC="$ac_save_CC $ac_arg"
4456 if ac_fn_c_try_compile "$LINENO"; then :
4457 ac_cv_prog_cc_c89=$ac_arg
4459 rm -f core conftest.err conftest.$ac_objext
4460 test "x$ac_cv_prog_cc_c89" != "xno" && break
4462 rm -f conftest.$ac_ext
4467 case "x$ac_cv_prog_cc_c89" in
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4470 $as_echo "none needed" >&6; } ;;
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4473 $as_echo "unsupported" >&6; } ;;
4475 CC="$CC $ac_cv_prog_cc_c89"
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4477 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4479 if test "x$ac_cv_prog_cc_c89" != xno; then :
4484 ac_cpp='$CPP $CPPFLAGS'
4485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4495 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4496 if ${am_cv_prog_cc_c_o+:} false; then :
4497 $as_echo_n "(cached) " >&6
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4510 # Make sure it works both with $CC and with simple cc.
4511 # Following AC_PROG_CC_C_O, we do the test twice because some
4512 # compilers refuse to overwrite an existing .o file with -o,
4513 # though they will create one.
4514 am_cv_prog_cc_c_o=yes
4516 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4517 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); } \
4521 && test -f conftest2.$ac_objext; then
4524 am_cv_prog_cc_c_o=no
4528 rm -f core conftest*
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4532 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4533 if test "$am_cv_prog_cc_c_o" != yes; then
4534 # Losing compiler, so override with the script.
4535 # FIXME: It is wrong to rewrite CC.
4536 # But if we don't then we get into trouble of one sort or another.
4537 # A longer-term fix would be to have automake use am__CC in this case,
4538 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4539 CC="$am_aux_dir/compile $CC"
4542 ac_cpp='$CPP $CPPFLAGS'
4543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4548 depcc="$CC" am_compiler_list=
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4551 $as_echo_n "checking dependency style of $depcc... " >&6; }
4552 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4553 $as_echo_n "(cached) " >&6
4555 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4556 # We make a subdir and do the tests there. Otherwise we can end up
4557 # making bogus files that we don't know about and never remove. For
4558 # instance it was reported that on HP-UX the gcc test will end up
4559 # making a dummy file named 'D' -- because '-MD' means "put the output
4563 # Copy depcomp to subdir because otherwise we won't find it if we're
4564 # using a relative directory.
4565 cp "$am_depcomp" conftest.dir
4567 # We will build objects and dependencies in a subdirectory because
4568 # it helps to detect inapplicable dependency modes. For instance
4569 # both Tru64's cc and ICC support -MD to output dependencies as a
4570 # side effect of compilation, but ICC will put the dependencies in
4571 # the current directory while Tru64 will put them in the object
4575 am_cv_CC_dependencies_compiler_type=none
4576 if test "$am_compiler_list" = ""; then
4577 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4580 case " $depcc " in #(
4581 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4584 for depmode in $am_compiler_list; do
4585 # Setup a source with many dependencies, because some compilers
4586 # like to wrap large dependency lists on column 80 (with \), and
4587 # we should not choose a depcomp mode which is confused by this.
4589 # We need to recreate these files for each test, as the compiler may
4590 # overwrite some of them when testing with obscure command lines.
4591 # This happens at least with the AIX C compiler.
4593 for i in 1 2 3 4 5 6; do
4594 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4595 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4596 # Solaris 10 /bin/sh.
4597 echo '/* dummy */' > sub/conftst$i.h
4599 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4601 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4602 # mode. It turns out that the SunPro C++ compiler does not properly
4603 # handle '-M -o', and we need to detect this. Also, some Intel
4604 # versions had trouble with output in subdirs.
4605 am__obj=sub/conftest.${OBJEXT-o}
4606 am__minus_obj="-o $am__obj"
4609 # This depmode causes a compiler race in universal mode.
4610 test "$am__universal" = false || continue
4613 # After this tag, mechanisms are not by side-effect, so they'll
4614 # only be used when explicitly requested.
4615 if test "x$enable_dependency_tracking" = xyes; then
4621 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4622 # This compiler won't grok '-c -o', but also, the minuso test has
4623 # not run yet. These depmodes are late enough in the game, and
4624 # so weak that their functioning should not be impacted.
4625 am__obj=conftest.${OBJEXT-o}
4630 if depmode=$depmode \
4631 source=sub/conftest.c object=$am__obj \
4632 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4633 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4634 >/dev/null 2>conftest.err &&
4635 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4636 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4637 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4638 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4639 # icc doesn't choke on unknown options, it will just issue warnings
4640 # or remarks (even with -Werror). So we grep stderr for any message
4641 # that says an option was ignored or not supported.
4642 # When given -MP, icc 7.0 and 7.1 complain thusly:
4643 # icc: Command line warning: ignoring option '-M'; no argument required
4644 # The diagnosis changed in icc 8.0:
4645 # icc: Command line remark: option '-MP' not supported
4646 if (grep 'ignoring option' conftest.err ||
4647 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4648 am_cv_CC_dependencies_compiler_type=$depmode
4657 am_cv_CC_dependencies_compiler_type=none
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4662 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4663 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4666 test "x$enable_dependency_tracking" != xno \
4667 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4669 am__fastdepCC_FALSE='#'
4671 am__fastdepCC_TRUE='#'
4672 am__fastdepCC_FALSE=
4677 if test -n "$ac_tool_prefix"; then
4678 for ac_prog in ar lib "link -lib"
4680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if ${ac_cv_prog_AR+:} false; then :
4685 $as_echo_n "(cached) " >&6
4687 if test -n "$AR"; then
4688 ac_cv_prog_AR="$AR" # Let the user override the test.
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 if test -n "$AR"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4710 $as_echo "$AR" >&6; }
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4717 test -n "$AR" && break
4720 if test -z "$AR"; then
4722 for ac_prog in ar lib "link -lib"
4724 # Extract the first word of "$ac_prog", so it can be a program name with args.
4725 set dummy $ac_prog; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4729 $as_echo_n "(cached) " >&6
4731 if test -n "$ac_ct_AR"; then
4732 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4741 ac_cv_prog_ac_ct_AR="$ac_prog"
4742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4752 if test -n "$ac_ct_AR"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4754 $as_echo "$ac_ct_AR" >&6; }
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4761 test -n "$ac_ct_AR" && break
4764 if test "x$ac_ct_AR" = x; then
4767 case $cross_compiling:$ac_tool_warned in
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4771 ac_tool_warned=yes ;;
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4780 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4781 if ${am_cv_ar_interface+:} false; then :
4782 $as_echo_n "(cached) " >&6
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790 am_cv_ar_interface=ar
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h. */
4793 int some_variable = 0;
4795 if ac_fn_c_try_compile "$LINENO"; then :
4796 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4798 (eval $am_ar_try) 2>&5
4800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4801 test $ac_status = 0; }
4802 if test "$ac_status" -eq 0; then
4803 am_cv_ar_interface=ar
4805 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4807 (eval $am_ar_try) 2>&5
4809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4810 test $ac_status = 0; }
4811 if test "$ac_status" -eq 0; then
4812 am_cv_ar_interface=lib
4814 am_cv_ar_interface=unknown
4817 rm -f conftest.lib libconftest.a
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 ac_cpp='$CPP $CPPFLAGS'
4823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4829 $as_echo "$am_cv_ar_interface" >&6; }
4831 case $am_cv_ar_interface in
4835 # Microsoft lib, so override with the ar-lib wrapper script.
4836 # FIXME: It is wrong to rewrite AR.
4837 # But if we don't then we get into trouble of one sort or another.
4838 # A longer-term fix would be to have automake use am__AR in this case,
4839 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4841 AR="$am_aux_dir/ar-lib $AR"
4844 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4852 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4857 macro_version='2.4.2'
4858 macro_revision='1.3337'
4872 ltmain="$ac_aux_dir/ltmain.sh"
4874 # Make sure we can run config.sub.
4875 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4876 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4879 $as_echo_n "checking build system type... " >&6; }
4880 if ${ac_cv_build+:} false; then :
4881 $as_echo_n "(cached) " >&6
4883 ac_build_alias=$build_alias
4884 test "x$ac_build_alias" = x &&
4885 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4886 test "x$ac_build_alias" = x &&
4887 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4888 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4889 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4893 $as_echo "$ac_cv_build" >&6; }
4894 case $ac_cv_build in
4896 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4899 ac_save_IFS=$IFS; IFS='-'
4905 # Remember, the first character of IFS is used to create $*,
4906 # except with old shells:
4909 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4913 $as_echo_n "checking host system type... " >&6; }
4914 if ${ac_cv_host+:} false; then :
4915 $as_echo_n "(cached) " >&6
4917 if test "x$host_alias" = x; then
4918 ac_cv_host=$ac_cv_build
4920 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4921 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4926 $as_echo "$ac_cv_host" >&6; }
4929 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4932 ac_save_IFS=$IFS; IFS='-'
4938 # Remember, the first character of IFS is used to create $*,
4939 # except with old shells:
4942 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4945 # Backslashify metacharacters that are still active within
4946 # double-quoted strings.
4947 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4949 # Same as above, but do not quote variable references.
4950 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4952 # Sed substitution to delay expansion of an escaped shell variable in a
4953 # double_quote_subst'ed string.
4954 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4956 # Sed substitution to delay expansion of an escaped single quote.
4957 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4959 # Sed substitution to avoid accidental globbing in evaled expressions
4960 no_glob_subst='s/\*/\\\*/g'
4962 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4963 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4964 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4967 $as_echo_n "checking how to print strings... " >&6; }
4968 # Test print first, because it will be a builtin if present.
4969 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4970 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4972 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4975 # Use this function as a fallback that always works.
4976 func_fallback_echo ()
4978 eval 'cat <<_LTECHO_EOF
4982 ECHO='func_fallback_echo'
4985 # func_echo_all arg...
4986 # Invoke $ECHO with all args, space-separated.
4993 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4994 $as_echo "printf" >&6; } ;;
4995 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4996 $as_echo "print -r" >&6; } ;;
4997 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4998 $as_echo "cat" >&6; } ;;
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5015 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5016 if ${ac_cv_path_SED+:} false; then :
5017 $as_echo_n "(cached) " >&6
5019 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5020 for ac_i in 1 2 3 4 5 6 7; do
5021 ac_script="$ac_script$as_nl$ac_script"
5023 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5024 { ac_script=; unset ac_script;}
5025 if test -z "$SED"; then
5026 ac_path_SED_found=false
5027 # Loop through the user's path and test for each of PROGNAME-LIST
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 test -z "$as_dir" && as_dir=.
5033 for ac_prog in sed gsed; do
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5036 as_fn_executable_p "$ac_path_SED" || continue
5037 # Check for GNU ac_path_SED and select it if it is found.
5038 # Check for GNU $ac_path_SED
5039 case `"$ac_path_SED" --version 2>&1` in
5041 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5044 $as_echo_n 0123456789 >"conftest.in"
5047 cat "conftest.in" "conftest.in" >"conftest.tmp"
5048 mv "conftest.tmp" "conftest.in"
5049 cp "conftest.in" "conftest.nl"
5050 $as_echo '' >> "conftest.nl"
5051 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5053 as_fn_arith $ac_count + 1 && ac_count=$as_val
5054 if test $ac_count -gt ${ac_path_SED_max-0}; then
5055 # Best one so far, save it but keep looking for a better one
5056 ac_cv_path_SED="$ac_path_SED"
5057 ac_path_SED_max=$ac_count
5059 # 10*(2^10) chars as input seems more than enough
5060 test $ac_count -gt 10 && break
5062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5065 $ac_path_SED_found && break 3
5070 if test -z "$ac_cv_path_SED"; then
5071 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5079 $as_echo "$ac_cv_path_SED" >&6; }
5080 SED="$ac_cv_path_SED"
5083 test -z "$SED" && SED=sed
5084 Xsed="$SED -e 1s/^X//"
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5097 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5098 if ${ac_cv_path_GREP+:} false; then :
5099 $as_echo_n "(cached) " >&6
5101 if test -z "$GREP"; then
5102 ac_path_GREP_found=false
5103 # Loop through the user's path and test for each of PROGNAME-LIST
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5108 test -z "$as_dir" && as_dir=.
5109 for ac_prog in grep ggrep; do
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5112 as_fn_executable_p "$ac_path_GREP" || continue
5113 # Check for GNU ac_path_GREP and select it if it is found.
5114 # Check for GNU $ac_path_GREP
5115 case `"$ac_path_GREP" --version 2>&1` in
5117 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5120 $as_echo_n 0123456789 >"conftest.in"
5123 cat "conftest.in" "conftest.in" >"conftest.tmp"
5124 mv "conftest.tmp" "conftest.in"
5125 cp "conftest.in" "conftest.nl"
5126 $as_echo 'GREP' >> "conftest.nl"
5127 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5129 as_fn_arith $ac_count + 1 && ac_count=$as_val
5130 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5131 # Best one so far, save it but keep looking for a better one
5132 ac_cv_path_GREP="$ac_path_GREP"
5133 ac_path_GREP_max=$ac_count
5135 # 10*(2^10) chars as input seems more than enough
5136 test $ac_count -gt 10 && break
5138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5141 $ac_path_GREP_found && break 3
5146 if test -z "$ac_cv_path_GREP"; then
5147 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5150 ac_cv_path_GREP=$GREP
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5155 $as_echo "$ac_cv_path_GREP" >&6; }
5156 GREP="$ac_cv_path_GREP"
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5160 $as_echo_n "checking for egrep... " >&6; }
5161 if ${ac_cv_path_EGREP+:} false; then :
5162 $as_echo_n "(cached) " >&6
5164 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5165 then ac_cv_path_EGREP="$GREP -E"
5167 if test -z "$EGREP"; then
5168 ac_path_EGREP_found=false
5169 # Loop through the user's path and test for each of PROGNAME-LIST
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5174 test -z "$as_dir" && as_dir=.
5175 for ac_prog in egrep; do
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5178 as_fn_executable_p "$ac_path_EGREP" || continue
5179 # Check for GNU ac_path_EGREP and select it if it is found.
5180 # Check for GNU $ac_path_EGREP
5181 case `"$ac_path_EGREP" --version 2>&1` in
5183 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5186 $as_echo_n 0123456789 >"conftest.in"
5189 cat "conftest.in" "conftest.in" >"conftest.tmp"
5190 mv "conftest.tmp" "conftest.in"
5191 cp "conftest.in" "conftest.nl"
5192 $as_echo 'EGREP' >> "conftest.nl"
5193 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5195 as_fn_arith $ac_count + 1 && ac_count=$as_val
5196 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5197 # Best one so far, save it but keep looking for a better one
5198 ac_cv_path_EGREP="$ac_path_EGREP"
5199 ac_path_EGREP_max=$ac_count
5201 # 10*(2^10) chars as input seems more than enough
5202 test $ac_count -gt 10 && break
5204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5207 $ac_path_EGREP_found && break 3
5212 if test -z "$ac_cv_path_EGREP"; then
5213 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5216 ac_cv_path_EGREP=$EGREP
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5222 $as_echo "$ac_cv_path_EGREP" >&6; }
5223 EGREP="$ac_cv_path_EGREP"
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5227 $as_echo_n "checking for fgrep... " >&6; }
5228 if ${ac_cv_path_FGREP+:} false; then :
5229 $as_echo_n "(cached) " >&6
5231 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5232 then ac_cv_path_FGREP="$GREP -F"
5234 if test -z "$FGREP"; then
5235 ac_path_FGREP_found=false
5236 # Loop through the user's path and test for each of PROGNAME-LIST
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5241 test -z "$as_dir" && as_dir=.
5242 for ac_prog in fgrep; do
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5245 as_fn_executable_p "$ac_path_FGREP" || continue
5246 # Check for GNU ac_path_FGREP and select it if it is found.
5247 # Check for GNU $ac_path_FGREP
5248 case `"$ac_path_FGREP" --version 2>&1` in
5250 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5253 $as_echo_n 0123456789 >"conftest.in"
5256 cat "conftest.in" "conftest.in" >"conftest.tmp"
5257 mv "conftest.tmp" "conftest.in"
5258 cp "conftest.in" "conftest.nl"
5259 $as_echo 'FGREP' >> "conftest.nl"
5260 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5262 as_fn_arith $ac_count + 1 && ac_count=$as_val
5263 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5264 # Best one so far, save it but keep looking for a better one
5265 ac_cv_path_FGREP="$ac_path_FGREP"
5266 ac_path_FGREP_max=$ac_count
5268 # 10*(2^10) chars as input seems more than enough
5269 test $ac_count -gt 10 && break
5271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5274 $ac_path_FGREP_found && break 3
5279 if test -z "$ac_cv_path_FGREP"; then
5280 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5283 ac_cv_path_FGREP=$FGREP
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5289 $as_echo "$ac_cv_path_FGREP" >&6; }
5290 FGREP="$ac_cv_path_FGREP"
5293 test -z "$GREP" && GREP=grep
5313 # Check whether --with-gnu-ld was given.
5314 if test "${with_gnu_ld+set}" = set; then :
5315 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5321 if test "$GCC" = yes; then
5322 # Check if gcc -print-prog-name=ld gives a path.
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5324 $as_echo_n "checking for ld used by $CC... " >&6; }
5327 # gcc leaves a trailing carriage return which upsets mingw
5328 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5330 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5333 # Accept absolute paths.
5335 re_direlt='/[^/][^/]*/\.\./'
5336 # Canonicalize the pathname of ld
5337 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5338 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5339 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5341 test -z "$LD" && LD="$ac_prog"
5344 # If it fails, then pretend we aren't using GCC.
5348 # If it is relative, then search for the first ld in PATH.
5352 elif test "$with_gnu_ld" = yes; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5354 $as_echo_n "checking for GNU ld... " >&6; }
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5357 $as_echo_n "checking for non-GNU ld... " >&6; }
5359 if ${lt_cv_path_LD+:} false; then :
5360 $as_echo_n "(cached) " >&6
5362 if test -z "$LD"; then
5363 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5364 for ac_dir in $PATH; do
5366 test -z "$ac_dir" && ac_dir=.
5367 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5368 lt_cv_path_LD="$ac_dir/$ac_prog"
5369 # Check to see if the program is GNU ld. I'd rather use --version,
5370 # but apparently some variants of GNU ld only accept -v.
5371 # Break only if it was the GNU/non-GNU ld that we prefer.
5372 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5373 *GNU* | *'with BFD'*)
5374 test "$with_gnu_ld" != no && break
5377 test "$with_gnu_ld" != yes && break
5384 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5389 if test -n "$LD"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5391 $as_echo "$LD" >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5396 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5398 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5399 if ${lt_cv_prog_gnu_ld+:} false; then :
5400 $as_echo_n "(cached) " >&6
5402 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5403 case `$LD -v 2>&1 </dev/null` in
5404 *GNU* | *'with BFD'*)
5405 lt_cv_prog_gnu_ld=yes
5408 lt_cv_prog_gnu_ld=no
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5413 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5414 with_gnu_ld=$lt_cv_prog_gnu_ld
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5425 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5426 if ${lt_cv_path_NM+:} false; then :
5427 $as_echo_n "(cached) " >&6
5429 if test -n "$NM"; then
5430 # Let the user override the test.
5433 lt_nm_to_check="${ac_tool_prefix}nm"
5434 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5435 lt_nm_to_check="$lt_nm_to_check nm"
5437 for lt_tmp_nm in $lt_nm_to_check; do
5438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5439 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5441 test -z "$ac_dir" && ac_dir=.
5442 tmp_nm="$ac_dir/$lt_tmp_nm"
5443 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5444 # Check to see if the nm accepts a BSD-compat flag.
5445 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5446 # nm: unknown option "B" ignored
5447 # Tru64's nm complains that /dev/null is an invalid object file
5448 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5449 */dev/null* | *'Invalid file or object type'*)
5450 lt_cv_path_NM="$tmp_nm -B"
5454 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5456 lt_cv_path_NM="$tmp_nm -p"
5460 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5461 continue # so that we can try to find one that supports BSD flags
5470 : ${lt_cv_path_NM=no}
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5474 $as_echo "$lt_cv_path_NM" >&6; }
5475 if test "$lt_cv_path_NM" != "no"; then
5478 # Didn't find any BSD compatible name lister, look for dumpbin.
5479 if test -n "$DUMPBIN"; then :
5480 # Let the user override the test.
5482 if test -n "$ac_tool_prefix"; then
5483 for ac_prog in dumpbin "link -dump"
5485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5486 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_prog_DUMPBIN+:} false; then :
5490 $as_echo_n "(cached) " >&6
5492 if test -n "$DUMPBIN"; then
5493 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 DUMPBIN=$ac_cv_prog_DUMPBIN
5513 if test -n "$DUMPBIN"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5515 $as_echo "$DUMPBIN" >&6; }
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5522 test -n "$DUMPBIN" && break
5525 if test -z "$DUMPBIN"; then
5526 ac_ct_DUMPBIN=$DUMPBIN
5527 for ac_prog in dumpbin "link -dump"
5529 # Extract the first word of "$ac_prog", so it can be a program name with args.
5530 set dummy $ac_prog; ac_word=$2
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532 $as_echo_n "checking for $ac_word... " >&6; }
5533 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5534 $as_echo_n "(cached) " >&6
5536 if test -n "$ac_ct_DUMPBIN"; then
5537 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 test -z "$as_dir" && as_dir=.
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5546 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5557 if test -n "$ac_ct_DUMPBIN"; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5559 $as_echo "$ac_ct_DUMPBIN" >&6; }
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 $as_echo "no" >&6; }
5566 test -n "$ac_ct_DUMPBIN" && break
5569 if test "x$ac_ct_DUMPBIN" = x; then
5572 case $cross_compiling:$ac_tool_warned in
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5576 ac_tool_warned=yes ;;
5578 DUMPBIN=$ac_ct_DUMPBIN
5582 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5584 DUMPBIN="$DUMPBIN -symbols"
5592 if test "$DUMPBIN" != ":"; then
5596 test -z "$NM" && NM=nm
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5604 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5605 if ${lt_cv_nm_interface+:} false; then :
5606 $as_echo_n "(cached) " >&6
5608 lt_cv_nm_interface="BSD nm"
5609 echo "int some_variable = 0;" > conftest.$ac_ext
5610 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5611 (eval "$ac_compile" 2>conftest.err)
5612 cat conftest.err >&5
5613 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5614 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5615 cat conftest.err >&5
5616 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5617 cat conftest.out >&5
5618 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5619 lt_cv_nm_interface="MS dumpbin"
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5624 $as_echo "$lt_cv_nm_interface" >&6; }
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5627 $as_echo_n "checking whether ln -s works... " >&6; }
5629 if test "$LN_S" = "ln -s"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5631 $as_echo "yes" >&6; }
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5634 $as_echo "no, using $LN_S" >&6; }
5637 # find the maximum length of command line arguments
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5639 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5640 if ${lt_cv_sys_max_cmd_len+:} false; then :
5641 $as_echo_n "(cached) " >&6
5648 # On DJGPP, this test can blow up pretty badly due to problems in libc
5649 # (any single argument exceeding 2000 bytes causes a buffer overrun
5650 # during glob expansion). Even if it were fixed, the result of this
5651 # check would be larger than it should be.
5652 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5656 # Under GNU Hurd, this test is not required because there is
5657 # no limit to the length of command line arguments.
5658 # Libtool will interpret -1 as no limit whatsoever
5659 lt_cv_sys_max_cmd_len=-1;
5662 cygwin* | mingw* | cegcc*)
5663 # On Win9x/ME, this test blows up -- it succeeds, but takes
5664 # about 5 minutes as the teststring grows exponentially.
5665 # Worse, since 9x/ME are not pre-emptively multitasking,
5666 # you end up with a "frozen" computer, even though with patience
5667 # the test eventually succeeds (with a max line length of 256k).
5668 # Instead, let's just punt: use the minimum linelength reported by
5669 # all of the supported platforms: 8192 (on NT/2K/XP).
5670 lt_cv_sys_max_cmd_len=8192;
5674 # On MiNT this can take a long time and run out of memory.
5675 lt_cv_sys_max_cmd_len=8192;
5679 # On AmigaOS with pdksh, this test takes hours, literally.
5680 # So we just punt and use a minimum line length of 8192.
5681 lt_cv_sys_max_cmd_len=8192;
5684 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5685 # This has been around since 386BSD, at least. Likely further.
5686 if test -x /sbin/sysctl; then
5687 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5688 elif test -x /usr/sbin/sysctl; then
5689 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5691 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5693 # And add a safety zone
5694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5695 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5699 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5700 lt_cv_sys_max_cmd_len=196608
5704 # The test takes a long time on OS/2.
5705 lt_cv_sys_max_cmd_len=8192
5709 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5710 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5711 # nice to cause kernel panics so lets avoid the loop below.
5712 # First set a reasonable default.
5713 lt_cv_sys_max_cmd_len=16384
5715 if test -x /sbin/sysconfig; then
5716 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5717 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5722 lt_cv_sys_max_cmd_len=102400
5724 sysv5* | sco5v6* | sysv4.2uw2*)
5725 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5726 if test -n "$kargmax"; then
5727 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5729 lt_cv_sys_max_cmd_len=32768
5733 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5734 if test -n "$lt_cv_sys_max_cmd_len" && \
5735 test undefined != "$lt_cv_sys_max_cmd_len"; then
5736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5739 # Make teststring a little bigger before we do anything with it.
5740 # a 1K string should be a reasonable start.
5741 for i in 1 2 3 4 5 6 7 8 ; do
5742 teststring=$teststring$teststring
5744 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5745 # If test is not a shell built-in, we'll probably end up computing a
5746 # maximum length that is only half of the actual maximum length, but
5748 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5749 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5750 test $i != 17 # 1/2 MB should be enough
5753 teststring=$teststring$teststring
5755 # Only check the string length outside the loop.
5756 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5758 # Add a significant safety factor because C++ compilers can tack on
5759 # massive amounts of additional arguments before passing them to the
5760 # linker. It appears as though 1/2 is a usable value.
5761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5768 if test -n $lt_cv_sys_max_cmd_len ; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5770 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5773 $as_echo "none" >&6; }
5775 max_cmd_len=$lt_cv_sys_max_cmd_len
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5787 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5788 # Try some XSI features
5791 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5793 && eval 'test $(( 1 + 1 )) -eq 2 \
5794 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5797 $as_echo "$xsi_shell" >&6; }
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5801 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5803 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5805 && lt_shell_append=yes
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5807 $as_echo "$lt_shell_append" >&6; }
5810 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5820 # test EBCDIC or ASCII
5821 case `echo X|tr X '\101'` in
5822 A) # ASCII based system
5823 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5824 lt_SP2NL='tr \040 \012'
5825 lt_NL2SP='tr \015\012 \040\040'
5827 *) # EBCDIC based system
5828 lt_SP2NL='tr \100 \n'
5829 lt_NL2SP='tr \r\n \100\100'
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5842 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5843 if ${lt_cv_to_host_file_cmd+:} false; then :
5844 $as_echo_n "(cached) " >&6
5849 *-*-mingw* ) # actually msys
5850 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5853 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5855 * ) # otherwise, assume *nix
5856 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5862 *-*-mingw* ) # actually msys
5863 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5866 lt_cv_to_host_file_cmd=func_convert_file_noop
5868 * ) # otherwise, assume *nix
5869 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5873 * ) # unhandled hosts (and "normal" native builds)
5874 lt_cv_to_host_file_cmd=func_convert_file_noop
5880 to_host_file_cmd=$lt_cv_to_host_file_cmd
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5882 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5889 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5890 if ${lt_cv_to_tool_file_cmd+:} false; then :
5891 $as_echo_n "(cached) " >&6
5893 #assume ordinary cross tools, or native build.
5894 lt_cv_to_tool_file_cmd=func_convert_file_noop
5898 *-*-mingw* ) # actually msys
5899 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5907 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5909 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5916 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5917 if ${lt_cv_ld_reload_flag+:} false; then :
5918 $as_echo_n "(cached) " >&6
5920 lt_cv_ld_reload_flag='-r'
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5923 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5924 reload_flag=$lt_cv_ld_reload_flag
5925 case $reload_flag in
5927 *) reload_flag=" $reload_flag" ;;
5929 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5931 cygwin* | mingw* | pw32* | cegcc*)
5932 if test "$GCC" != yes; then
5937 if test "$GCC" = yes; then
5938 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5940 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5953 if test -n "$ac_tool_prefix"; then
5954 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5955 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if ${ac_cv_prog_OBJDUMP+:} false; then :
5959 $as_echo_n "(cached) " >&6
5961 if test -n "$OBJDUMP"; then
5962 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 OBJDUMP=$ac_cv_prog_OBJDUMP
5982 if test -n "$OBJDUMP"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5984 $as_echo "$OBJDUMP" >&6; }
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5992 if test -z "$ac_cv_prog_OBJDUMP"; then
5993 ac_ct_OBJDUMP=$OBJDUMP
5994 # Extract the first word of "objdump", so it can be a program name with args.
5995 set dummy objdump; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5999 $as_echo_n "(cached) " >&6
6001 if test -n "$ac_ct_OBJDUMP"; then
6002 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6021 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6022 if test -n "$ac_ct_OBJDUMP"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6024 $as_echo "$ac_ct_OBJDUMP" >&6; }
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6030 if test "x$ac_ct_OBJDUMP" = x; then
6033 case $cross_compiling:$ac_tool_warned in
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6037 ac_tool_warned=yes ;;
6039 OBJDUMP=$ac_ct_OBJDUMP
6042 OBJDUMP="$ac_cv_prog_OBJDUMP"
6045 test -z "$OBJDUMP" && OBJDUMP=objdump
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6056 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6057 if ${lt_cv_deplibs_check_method+:} false; then :
6058 $as_echo_n "(cached) " >&6
6060 lt_cv_file_magic_cmd='$MAGIC_CMD'
6061 lt_cv_file_magic_test_file=
6062 lt_cv_deplibs_check_method='unknown'
6063 # Need to set the preceding variable on all platforms that support
6064 # interlibrary dependencies.
6065 # 'none' -- dependencies not supported.
6066 # `unknown' -- same as none, but documents that we really don't know.
6067 # 'pass_all' -- all dependencies passed with no checks.
6068 # 'test_compile' -- check by making test program.
6069 # 'file_magic [[regex]]' -- check by looking for files in library path
6070 # which responds to the $file_magic_cmd with a given extended regex.
6071 # If you have `file' or equivalent on your system and you're not sure
6072 # whether `pass_all' will *always* work, you probably want this one.
6076 lt_cv_deplibs_check_method=pass_all
6080 lt_cv_deplibs_check_method=pass_all
6084 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6085 lt_cv_file_magic_cmd='/usr/bin/file -L'
6086 lt_cv_file_magic_test_file=/shlib/libc.so
6090 # func_win32_libid is a shell function defined in ltmain.sh
6091 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6092 lt_cv_file_magic_cmd='func_win32_libid'
6096 # Base MSYS/MinGW do not provide the 'file' command needed by
6097 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6098 # unless we find 'file', for example because we are cross-compiling.
6099 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6100 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6101 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6102 lt_cv_file_magic_cmd='func_win32_libid'
6104 # Keep this pattern in sync with the one in func_win32_libid.
6105 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6106 lt_cv_file_magic_cmd='$OBJDUMP -f'
6111 # use the weaker test based on 'objdump'. See mingw*.
6112 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6113 lt_cv_file_magic_cmd='$OBJDUMP -f'
6116 darwin* | rhapsody*)
6117 lt_cv_deplibs_check_method=pass_all
6120 freebsd* | dragonfly*)
6121 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6124 # Not sure whether the presence of OpenBSD here was a mistake.
6125 # Let's accept both of them until this is cleared up.
6126 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6127 lt_cv_file_magic_cmd=/usr/bin/file
6128 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6132 lt_cv_deplibs_check_method=pass_all
6137 lt_cv_deplibs_check_method=pass_all
6140 hpux10.20* | hpux11*)
6141 lt_cv_file_magic_cmd=/usr/bin/file
6144 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6145 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6148 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]'
6149 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6152 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6153 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6159 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6163 irix5* | irix6* | nonstopux*)
6165 *-32|*"-32 ") libmagic=32-bit;;
6166 *-n32|*"-n32 ") libmagic=N32;;
6167 *-64|*"-64 ") libmagic=64-bit;;
6168 *) libmagic=never-match;;
6170 lt_cv_deplibs_check_method=pass_all
6173 # This must be glibc/ELF.
6174 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6175 lt_cv_deplibs_check_method=pass_all
6178 netbsd* | netbsdelf*-gnu)
6179 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6188 lt_cv_file_magic_cmd=/usr/bin/file
6189 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6193 lt_cv_deplibs_check_method=pass_all
6197 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6200 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6204 osf3* | osf4* | osf5*)
6205 lt_cv_deplibs_check_method=pass_all
6209 lt_cv_deplibs_check_method=pass_all
6213 lt_cv_deplibs_check_method=pass_all
6216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6217 lt_cv_deplibs_check_method=pass_all
6221 case $host_vendor in
6223 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]'
6224 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6227 lt_cv_deplibs_check_method=pass_all
6230 lt_cv_file_magic_cmd='/bin/file'
6231 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6234 lt_cv_file_magic_cmd='/bin/file'
6235 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6236 lt_cv_file_magic_test_file=/lib/libc.so
6239 lt_cv_deplibs_check_method=pass_all
6242 lt_cv_deplibs_check_method=pass_all
6248 lt_cv_deplibs_check_method=pass_all
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6254 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6258 if test "$build" = "$host"; then
6261 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6264 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6270 file_magic_cmd=$lt_cv_file_magic_cmd
6271 deplibs_check_method=$lt_cv_deplibs_check_method
6272 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6295 if test -n "$ac_tool_prefix"; then
6296 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6297 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if ${ac_cv_prog_DLLTOOL+:} false; then :
6301 $as_echo_n "(cached) " >&6
6303 if test -n "$DLLTOOL"; then
6304 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 DLLTOOL=$ac_cv_prog_DLLTOOL
6324 if test -n "$DLLTOOL"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6326 $as_echo "$DLLTOOL" >&6; }
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6334 if test -z "$ac_cv_prog_DLLTOOL"; then
6335 ac_ct_DLLTOOL=$DLLTOOL
6336 # Extract the first word of "dlltool", so it can be a program name with args.
6337 set dummy dlltool; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6341 $as_echo_n "(cached) " >&6
6343 if test -n "$ac_ct_DLLTOOL"; then
6344 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6364 if test -n "$ac_ct_DLLTOOL"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6366 $as_echo "$ac_ct_DLLTOOL" >&6; }
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6372 if test "x$ac_ct_DLLTOOL" = x; then
6375 case $cross_compiling:$ac_tool_warned in
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6379 ac_tool_warned=yes ;;
6381 DLLTOOL=$ac_ct_DLLTOOL
6384 DLLTOOL="$ac_cv_prog_DLLTOOL"
6387 test -z "$DLLTOOL" && DLLTOOL=dlltool
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6399 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6400 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6401 $as_echo_n "(cached) " >&6
6403 lt_cv_sharedlib_from_linklib_cmd='unknown'
6406 cygwin* | mingw* | pw32* | cegcc*)
6407 # two different shell functions defined in ltmain.sh
6408 # decide which to use based on capabilities of $DLLTOOL
6409 case `$DLLTOOL --help 2>&1` in
6410 *--identify-strict*)
6411 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6414 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6419 # fallback: assume linklib IS sharedlib
6420 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6426 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6427 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6428 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6436 if test -n "$ac_tool_prefix"; then
6439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_AR+:} false; then :
6444 $as_echo_n "(cached) " >&6
6446 if test -n "$AR"; then
6447 ac_cv_prog_AR="$AR" # Let the user override the test.
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 if test -n "$AR"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6469 $as_echo "$AR" >&6; }
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6476 test -n "$AR" && break
6479 if test -z "$AR"; then
6483 # Extract the first word of "$ac_prog", so it can be a program name with args.
6484 set dummy $ac_prog; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6488 $as_echo_n "(cached) " >&6
6490 if test -n "$ac_ct_AR"; then
6491 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500 ac_cv_prog_ac_ct_AR="$ac_prog"
6501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6511 if test -n "$ac_ct_AR"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6513 $as_echo "$ac_ct_AR" >&6; }
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6520 test -n "$ac_ct_AR" && break
6523 if test "x$ac_ct_AR" = x; then
6526 case $cross_compiling:$ac_tool_warned in
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530 ac_tool_warned=yes ;;
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6550 $as_echo_n "checking for archiver @FILE support... " >&6; }
6551 if ${lt_cv_ar_at_file+:} false; then :
6552 $as_echo_n "(cached) " >&6
6555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556 /* end confdefs.h. */
6566 if ac_fn_c_try_compile "$LINENO"; then :
6567 echo conftest.$ac_objext > conftest.lst
6568 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6570 (eval $lt_ar_try) 2>&5
6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573 test $ac_status = 0; }
6574 if test "$ac_status" -eq 0; then
6575 # Ensure the archiver fails upon bogus file names.
6576 rm -f conftest.$ac_objext libconftest.a
6577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6578 (eval $lt_ar_try) 2>&5
6580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6581 test $ac_status = 0; }
6582 if test "$ac_status" -ne 0; then
6586 rm -f conftest.* libconftest.a
6589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6593 $as_echo "$lt_cv_ar_at_file" >&6; }
6595 if test "x$lt_cv_ar_at_file" = xno; then
6598 archiver_list_spec=$lt_cv_ar_at_file
6607 if test -n "$ac_tool_prefix"; then
6608 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}strip; ac_word=$2
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if ${ac_cv_prog_STRIP+:} false; then :
6613 $as_echo_n "(cached) " >&6
6615 if test -n "$STRIP"; then
6616 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 STRIP=$ac_cv_prog_STRIP
6636 if test -n "$STRIP"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6638 $as_echo "$STRIP" >&6; }
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6646 if test -z "$ac_cv_prog_STRIP"; then
6648 # Extract the first word of "strip", so it can be a program name with args.
6649 set dummy strip; ac_word=$2
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 $as_echo_n "checking for $ac_word... " >&6; }
6652 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6653 $as_echo_n "(cached) " >&6
6655 if test -n "$ac_ct_STRIP"; then
6656 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6665 ac_cv_prog_ac_ct_STRIP="strip"
6666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6676 if test -n "$ac_ct_STRIP"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6678 $as_echo "$ac_ct_STRIP" >&6; }
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 $as_echo "no" >&6; }
6684 if test "x$ac_ct_STRIP" = x; then
6687 case $cross_compiling:$ac_tool_warned in
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned=yes ;;
6696 STRIP="$ac_cv_prog_STRIP"
6699 test -z "$STRIP" && STRIP=:
6706 if test -n "$ac_tool_prefix"; then
6707 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6708 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710 $as_echo_n "checking for $ac_word... " >&6; }
6711 if ${ac_cv_prog_RANLIB+:} false; then :
6712 $as_echo_n "(cached) " >&6
6714 if test -n "$RANLIB"; then
6715 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 RANLIB=$ac_cv_prog_RANLIB
6735 if test -n "$RANLIB"; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6737 $as_echo "$RANLIB" >&6; }
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6745 if test -z "$ac_cv_prog_RANLIB"; then
6746 ac_ct_RANLIB=$RANLIB
6747 # Extract the first word of "ranlib", so it can be a program name with args.
6748 set dummy ranlib; ac_word=$2
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6752 $as_echo_n "(cached) " >&6
6754 if test -n "$ac_ct_RANLIB"; then
6755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6764 ac_cv_prog_ac_ct_RANLIB="ranlib"
6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6775 if test -n "$ac_ct_RANLIB"; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6777 $as_echo "$ac_ct_RANLIB" >&6; }
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 $as_echo "no" >&6; }
6783 if test "x$ac_ct_RANLIB" = x; then
6786 case $cross_compiling:$ac_tool_warned in
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6790 ac_tool_warned=yes ;;
6792 RANLIB=$ac_ct_RANLIB
6795 RANLIB="$ac_cv_prog_RANLIB"
6798 test -z "$RANLIB" && RANLIB=:
6805 # Determine commands to create old-style static archives.
6806 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6807 old_postinstall_cmds='chmod 644 $oldlib'
6808 old_postuninstall_cmds=
6810 if test -n "$RANLIB"; then
6813 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6816 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6819 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6824 lock_old_archive_extraction=yes ;;
6826 lock_old_archive_extraction=no ;;
6867 # If no C compiler was specified, use CC.
6870 # If no C compiler flags were specified, use CFLAGS.
6871 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6873 # Allow CC to be a program name with arguments.
6877 # Check for command to grab the raw symbol name followed by C symbol from nm.
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6879 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6880 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6881 $as_echo_n "(cached) " >&6
6884 # These are sane defaults that work on at least a few old systems.
6885 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6887 # Character class describing NM global symbol codes.
6888 symcode='[BCDEGRST]'
6890 # Regexp to match symbols that can be accessed directly from C.
6891 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6893 # Define system-specific variables.
6898 cygwin* | mingw* | pw32* | cegcc*)
6899 symcode='[ABCDGISTW]'
6902 if test "$host_cpu" = ia64; then
6903 symcode='[ABCDEGRST]'
6907 symcode='[BCDEGRST]'
6910 symcode='[BCDEGQRST]'
6921 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6929 # If we're using GNU nm, then use its standard symbol codes.
6930 case `$NM -V 2>&1` in
6931 *GNU* | *'with BFD'*)
6932 symcode='[ABCDGIRSTW]' ;;
6935 # Transform an extracted symbol line into a proper C declaration.
6936 # Some systems (esp. on ia64) link data and code symbols differently,
6937 # so use this general approach.
6938 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6940 # Transform an extracted symbol line into symbol name and symbol address
6941 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6942 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6944 # Handle CRLF in mingw tool chain
6948 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6952 # Try without a prefix underscore, then with it.
6953 for ac_symprfx in "" "_"; do
6955 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6956 symxfrm="\\1 $ac_symprfx\\2 \\2"
6958 # Write the raw and C identifiers.
6959 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6960 # Fake it for dumpbin and say T for any non-static function
6961 # and D for any global variable.
6962 # Also find C++ and __fastcall symbols from MSVC++,
6963 # which start with @ or ?.
6964 lt_cv_sys_global_symbol_pipe="$AWK '"\
6965 " {last_section=section; section=\$ 3};"\
6966 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6967 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6968 " \$ 0!~/External *\|/{next};"\
6969 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6970 " {if(hide[section]) next};"\
6971 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6972 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6973 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6974 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6975 " ' prfx=^$ac_symprfx"
6977 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6979 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6981 # Check to see that the pipe works correctly.
6985 cat > conftest.$ac_ext <<_LT_EOF
6990 void nm_test_func(void);
6991 void nm_test_func(void){}
6995 int main(){nm_test_var='a';nm_test_func();return(0);}
6998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6999 (eval $ac_compile) 2>&5
7001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002 test $ac_status = 0; }; then
7003 # Now try to grab the symbols.
7005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7006 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7009 test $ac_status = 0; } && test -s "$nlist"; then
7010 # Try sorting and uniquifying the output.
7011 if sort "$nlist" | uniq > "$nlist"T; then
7012 mv -f "$nlist"T "$nlist"
7017 # Make sure that we snagged all the symbols we need.
7018 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7019 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7020 cat <<_LT_EOF > conftest.$ac_ext
7021 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7022 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7023 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7024 relocations are performed -- see ld's documentation on pseudo-relocs. */
7025 # define LT_DLSYM_CONST
7026 #elif defined(__osf__)
7027 /* This system does not cope well with relocations in const data. */
7028 # define LT_DLSYM_CONST
7030 # define LT_DLSYM_CONST const
7038 # Now generate the symbol file.
7039 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7041 cat <<_LT_EOF >> conftest.$ac_ext
7043 /* The mapping between symbol names and symbols. */
7044 LT_DLSYM_CONST struct {
7048 lt__PROGRAM__LTX_preloaded_symbols[] =
7050 { "@PROGRAM@", (void *) 0 },
7052 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7053 cat <<\_LT_EOF >> conftest.$ac_ext
7057 /* This works around a problem in FreeBSD linker */
7058 #ifdef FREEBSD_WORKAROUND
7059 static const void *lt_preloaded_setup() {
7060 return lt__PROGRAM__LTX_preloaded_symbols;
7068 # Now try linking the two files.
7069 mv conftest.$ac_objext conftstm.$ac_objext
7070 lt_globsym_save_LIBS=$LIBS
7071 lt_globsym_save_CFLAGS=$CFLAGS
7072 LIBS="conftstm.$ac_objext"
7073 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7075 (eval $ac_link) 2>&5
7077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7078 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7081 LIBS=$lt_globsym_save_LIBS
7082 CFLAGS=$lt_globsym_save_CFLAGS
7084 echo "cannot find nm_test_func in $nlist" >&5
7087 echo "cannot find nm_test_var in $nlist" >&5
7090 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7093 echo "$progname: failed program was:" >&5
7094 cat conftest.$ac_ext >&5
7096 rm -rf conftest* conftst*
7098 # Do not use the global_symbol_pipe unless it works.
7099 if test "$pipe_works" = yes; then
7102 lt_cv_sys_global_symbol_pipe=
7108 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7109 lt_cv_sys_global_symbol_to_cdecl=
7111 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7113 $as_echo "failed" >&6; }
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7116 $as_echo "ok" >&6; }
7119 # Response file support.
7120 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7121 nm_file_list_spec='@'
7122 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7123 nm_file_list_spec='@'
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7153 $as_echo_n "checking for sysroot... " >&6; }
7155 # Check whether --with-sysroot was given.
7156 if test "${with_sysroot+set}" = set; then :
7157 withval=$with_sysroot;
7164 case ${with_sysroot} in #(
7166 if test "$GCC" = yes; then
7167 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7171 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7177 $as_echo "${with_sysroot}" >&6; }
7178 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7183 $as_echo "${lt_sysroot:-no}" >&6; }
7189 # Check whether --enable-libtool-lock was given.
7190 if test "${enable_libtool_lock+set}" = set; then :
7191 enableval=$enable_libtool_lock;
7194 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7196 # Some flags need to be propagated to the compiler or linker for good
7200 # Find out which ABI we are using.
7201 echo 'int i;' > conftest.$ac_ext
7202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7203 (eval $ac_compile) 2>&5
7205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7206 test $ac_status = 0; }; then
7207 case `/usr/bin/file conftest.$ac_objext` in
7219 # Find out which ABI we are using.
7220 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7222 (eval $ac_compile) 2>&5
7224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7225 test $ac_status = 0; }; then
7226 if test "$lt_cv_prog_gnu_ld" = yes; then
7227 case `/usr/bin/file conftest.$ac_objext` in
7229 LD="${LD-ld} -melf32bsmip"
7232 LD="${LD-ld} -melf32bmipn32"
7235 LD="${LD-ld} -melf64bmip"
7239 case `/usr/bin/file conftest.$ac_objext` in
7255 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7256 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7257 # Find out which ABI we are using.
7258 echo 'int i;' > conftest.$ac_ext
7259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7260 (eval $ac_compile) 2>&5
7262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7263 test $ac_status = 0; }; then
7264 case `/usr/bin/file conftest.o` in
7267 x86_64-*kfreebsd*-gnu)
7268 LD="${LD-ld} -m elf_i386_fbsd"
7271 case `/usr/bin/file conftest.o` in
7273 LD="${LD-ld} -m elf32_x86_64"
7276 LD="${LD-ld} -m elf_i386"
7281 LD="${LD-ld} -m elf32lppclinux"
7284 LD="${LD-ld} -m elf32ppclinux"
7287 LD="${LD-ld} -m elf_s390"
7290 LD="${LD-ld} -m elf32_sparc"
7296 x86_64-*kfreebsd*-gnu)
7297 LD="${LD-ld} -m elf_x86_64_fbsd"
7300 LD="${LD-ld} -m elf_x86_64"
7303 LD="${LD-ld} -m elf64lppc"
7306 LD="${LD-ld} -m elf64ppc"
7308 s390*-*linux*|s390*-*tpf*)
7309 LD="${LD-ld} -m elf64_s390"
7312 LD="${LD-ld} -m elf64_sparc"
7322 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7323 SAVE_CFLAGS="$CFLAGS"
7324 CFLAGS="$CFLAGS -belf"
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7326 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7327 if ${lt_cv_cc_needs_belf+:} false; then :
7328 $as_echo_n "(cached) " >&6
7331 ac_cpp='$CPP $CPPFLAGS'
7332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h. */
7347 if ac_fn_c_try_link "$LINENO"; then :
7348 lt_cv_cc_needs_belf=yes
7350 lt_cv_cc_needs_belf=no
7352 rm -f core conftest.err conftest.$ac_objext \
7353 conftest$ac_exeext conftest.$ac_ext
7355 ac_cpp='$CPP $CPPFLAGS'
7356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7362 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7363 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7364 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7365 CFLAGS="$SAVE_CFLAGS"
7369 # Find out which ABI we are using.
7370 echo 'int i;' > conftest.$ac_ext
7371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7372 (eval $ac_compile) 2>&5
7374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7375 test $ac_status = 0; }; then
7376 case `/usr/bin/file conftest.o` in
7378 case $lt_cv_prog_gnu_ld in
7382 LD="${LD-ld} -m elf_x86_64"
7385 LD="${LD-ld} -m elf64_sparc"
7388 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7389 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7394 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7406 need_locks="$enable_libtool_lock"
7408 if test -n "$ac_tool_prefix"; then
7409 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7410 set dummy ${ac_tool_prefix}mt; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7414 $as_echo_n "(cached) " >&6
7416 if test -n "$MANIFEST_TOOL"; then
7417 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7437 if test -n "$MANIFEST_TOOL"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7439 $as_echo "$MANIFEST_TOOL" >&6; }
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7447 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7448 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7449 # Extract the first word of "mt", so it can be a program name with args.
7450 set dummy mt; ac_word=$2
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7454 $as_echo_n "(cached) " >&6
7456 if test -n "$ac_ct_MANIFEST_TOOL"; then
7457 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7466 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7477 if test -n "$ac_ct_MANIFEST_TOOL"; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7479 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7485 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7488 case $cross_compiling:$ac_tool_warned in
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7492 ac_tool_warned=yes ;;
7494 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7497 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7500 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7502 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7503 if ${lt_cv_path_mainfest_tool+:} false; then :
7504 $as_echo_n "(cached) " >&6
7506 lt_cv_path_mainfest_tool=no
7507 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7508 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7509 cat conftest.err >&5
7510 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7511 lt_cv_path_mainfest_tool=yes
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7516 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7517 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7527 rhapsody* | darwin*)
7528 if test -n "$ac_tool_prefix"; then
7529 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7530 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532 $as_echo_n "checking for $ac_word... " >&6; }
7533 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7534 $as_echo_n "(cached) " >&6
7536 if test -n "$DSYMUTIL"; then
7537 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7557 if test -n "$DSYMUTIL"; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7559 $as_echo "$DSYMUTIL" >&6; }
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7567 if test -z "$ac_cv_prog_DSYMUTIL"; then
7568 ac_ct_DSYMUTIL=$DSYMUTIL
7569 # Extract the first word of "dsymutil", so it can be a program name with args.
7570 set dummy dsymutil; ac_word=$2
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572 $as_echo_n "checking for $ac_word... " >&6; }
7573 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7574 $as_echo_n "(cached) " >&6
7576 if test -n "$ac_ct_DSYMUTIL"; then
7577 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7597 if test -n "$ac_ct_DSYMUTIL"; then
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7599 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7605 if test "x$ac_ct_DSYMUTIL" = x; then
7608 case $cross_compiling:$ac_tool_warned in
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7612 ac_tool_warned=yes ;;
7614 DSYMUTIL=$ac_ct_DSYMUTIL
7617 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7620 if test -n "$ac_tool_prefix"; then
7621 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7622 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if ${ac_cv_prog_NMEDIT+:} false; then :
7626 $as_echo_n "(cached) " >&6
7628 if test -n "$NMEDIT"; then
7629 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 test -z "$as_dir" && as_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7638 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 NMEDIT=$ac_cv_prog_NMEDIT
7649 if test -n "$NMEDIT"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7651 $as_echo "$NMEDIT" >&6; }
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7659 if test -z "$ac_cv_prog_NMEDIT"; then
7660 ac_ct_NMEDIT=$NMEDIT
7661 # Extract the first word of "nmedit", so it can be a program name with args.
7662 set dummy nmedit; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7666 $as_echo_n "(cached) " >&6
7668 if test -n "$ac_ct_NMEDIT"; then
7669 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7689 if test -n "$ac_ct_NMEDIT"; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7691 $as_echo "$ac_ct_NMEDIT" >&6; }
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7697 if test "x$ac_ct_NMEDIT" = x; then
7700 case $cross_compiling:$ac_tool_warned in
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7704 ac_tool_warned=yes ;;
7706 NMEDIT=$ac_ct_NMEDIT
7709 NMEDIT="$ac_cv_prog_NMEDIT"
7712 if test -n "$ac_tool_prefix"; then
7713 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7714 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_prog_LIPO+:} false; then :
7718 $as_echo_n "(cached) " >&6
7720 if test -n "$LIPO"; then
7721 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 LIPO=$ac_cv_prog_LIPO
7741 if test -n "$LIPO"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7743 $as_echo "$LIPO" >&6; }
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7751 if test -z "$ac_cv_prog_LIPO"; then
7753 # Extract the first word of "lipo", so it can be a program name with args.
7754 set dummy lipo; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7758 $as_echo_n "(cached) " >&6
7760 if test -n "$ac_ct_LIPO"; then
7761 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770 ac_cv_prog_ac_ct_LIPO="lipo"
7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7781 if test -n "$ac_ct_LIPO"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7783 $as_echo "$ac_ct_LIPO" >&6; }
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7789 if test "x$ac_ct_LIPO" = x; then
7792 case $cross_compiling:$ac_tool_warned in
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7796 ac_tool_warned=yes ;;
7801 LIPO="$ac_cv_prog_LIPO"
7804 if test -n "$ac_tool_prefix"; then
7805 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7806 set dummy ${ac_tool_prefix}otool; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if ${ac_cv_prog_OTOOL+:} false; then :
7810 $as_echo_n "(cached) " >&6
7812 if test -n "$OTOOL"; then
7813 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 OTOOL=$ac_cv_prog_OTOOL
7833 if test -n "$OTOOL"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7835 $as_echo "$OTOOL" >&6; }
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7843 if test -z "$ac_cv_prog_OTOOL"; then
7845 # Extract the first word of "otool", so it can be a program name with args.
7846 set dummy otool; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7850 $as_echo_n "(cached) " >&6
7852 if test -n "$ac_ct_OTOOL"; then
7853 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7862 ac_cv_prog_ac_ct_OTOOL="otool"
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7873 if test -n "$ac_ct_OTOOL"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7875 $as_echo "$ac_ct_OTOOL" >&6; }
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7881 if test "x$ac_ct_OTOOL" = x; then
7884 case $cross_compiling:$ac_tool_warned in
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7888 ac_tool_warned=yes ;;
7893 OTOOL="$ac_cv_prog_OTOOL"
7896 if test -n "$ac_tool_prefix"; then
7897 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if ${ac_cv_prog_OTOOL64+:} false; then :
7902 $as_echo_n "(cached) " >&6
7904 if test -n "$OTOOL64"; then
7905 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 OTOOL64=$ac_cv_prog_OTOOL64
7925 if test -n "$OTOOL64"; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7927 $as_echo "$OTOOL64" >&6; }
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7935 if test -z "$ac_cv_prog_OTOOL64"; then
7936 ac_ct_OTOOL64=$OTOOL64
7937 # Extract the first word of "otool64", so it can be a program name with args.
7938 set dummy otool64; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7942 $as_echo_n "(cached) " >&6
7944 if test -n "$ac_ct_OTOOL64"; then
7945 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954 ac_cv_prog_ac_ct_OTOOL64="otool64"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7965 if test -n "$ac_ct_OTOOL64"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7967 $as_echo "$ac_ct_OTOOL64" >&6; }
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7973 if test "x$ac_ct_OTOOL64" = x; then
7976 case $cross_compiling:$ac_tool_warned in
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7982 OTOOL64=$ac_ct_OTOOL64
7985 OTOOL64="$ac_cv_prog_OTOOL64"
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8015 $as_echo_n "checking for -single_module linker flag... " >&6; }
8016 if ${lt_cv_apple_cc_single_mod+:} false; then :
8017 $as_echo_n "(cached) " >&6
8019 lt_cv_apple_cc_single_mod=no
8020 if test -z "${LT_MULTI_MODULE}"; then
8021 # By default we will add the -single_module flag. You can override
8022 # by either setting the environment variable LT_MULTI_MODULE
8023 # non-empty at configure time, or by adding -multi_module to the
8025 rm -rf libconftest.dylib*
8026 echo "int foo(void){return 1;}" > conftest.c
8027 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8028 -dynamiclib -Wl,-single_module conftest.c" >&5
8029 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8030 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8032 # If there is a non-empty error log, and "single_module"
8033 # appears in it, assume the flag caused a linker warning
8034 if test -s conftest.err && $GREP single_module conftest.err; then
8035 cat conftest.err >&5
8036 # Otherwise, if the output was created with a 0 exit code from
8037 # the compiler, it worked.
8038 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8039 lt_cv_apple_cc_single_mod=yes
8041 cat conftest.err >&5
8043 rm -rf libconftest.dylib*
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8048 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8051 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8052 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8053 $as_echo_n "(cached) " >&6
8055 lt_cv_ld_exported_symbols_list=no
8056 save_LDFLAGS=$LDFLAGS
8057 echo "_main" > conftest.sym
8058 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8070 if ac_fn_c_try_link "$LINENO"; then :
8071 lt_cv_ld_exported_symbols_list=yes
8073 lt_cv_ld_exported_symbols_list=no
8075 rm -f core conftest.err conftest.$ac_objext \
8076 conftest$ac_exeext conftest.$ac_ext
8077 LDFLAGS="$save_LDFLAGS"
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8081 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8084 $as_echo_n "checking for -force_load linker flag... " >&6; }
8085 if ${lt_cv_ld_force_load+:} false; then :
8086 $as_echo_n "(cached) " >&6
8088 lt_cv_ld_force_load=no
8089 cat > conftest.c << _LT_EOF
8090 int forced_loaded() { return 2;}
8092 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8093 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8094 echo "$AR cru libconftest.a conftest.o" >&5
8095 $AR cru libconftest.a conftest.o 2>&5
8096 echo "$RANLIB libconftest.a" >&5
8097 $RANLIB libconftest.a 2>&5
8098 cat > conftest.c << _LT_EOF
8099 int main() { return 0;}
8101 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8102 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8104 if test -s conftest.err && $GREP force_load conftest.err; then
8105 cat conftest.err >&5
8106 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8107 lt_cv_ld_force_load=yes
8109 cat conftest.err >&5
8111 rm -f conftest.err libconftest.a conftest conftest.c
8112 rm -rf conftest.dSYM
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8116 $as_echo "$lt_cv_ld_force_load" >&6; }
8118 rhapsody* | darwin1.[012])
8119 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8121 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8122 darwin*) # darwin 5.x on
8123 # if running on 10.5 or later, the deployment target defaults
8124 # to the OS version, if on x86, and 10.4, the deployment
8125 # target defaults to 10.4. Don't you love it?
8126 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8127 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8128 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8130 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8132 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8136 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8137 _lt_dar_single_mod='$single_module'
8139 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8140 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8142 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8144 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8145 _lt_dsymutil='~$DSYMUTIL $lib || :'
8153 ac_cpp='$CPP $CPPFLAGS'
8154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8158 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8159 # On Suns, sometimes $CPP names a directory.
8160 if test -n "$CPP" && test -d "$CPP"; then
8163 if test -z "$CPP"; then
8164 if ${ac_cv_prog_CPP+:} false; then :
8165 $as_echo_n "(cached) " >&6
8167 # Double quotes because CPP needs to be expanded
8168 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8171 for ac_c_preproc_warn_flag in '' yes
8173 # Use a header file that comes with gcc, so configuring glibc
8174 # with a fresh cross-compiler works.
8175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8176 # <limits.h> exists even on freestanding compilers.
8177 # On the NeXT, cc -E runs the code through the compiler's parser,
8178 # not just through cpp. "Syntax error" is here to catch this case.
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8182 # include <limits.h>
8184 # include <assert.h>
8188 if ac_fn_c_try_cpp "$LINENO"; then :
8191 # Broken: fails on valid input.
8194 rm -f conftest.err conftest.i conftest.$ac_ext
8196 # OK, works on sane cases. Now check whether nonexistent headers
8197 # can be detected and how.
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200 #include <ac_nonexistent.h>
8202 if ac_fn_c_try_cpp "$LINENO"; then :
8203 # Broken: success on invalid input.
8206 # Passes both tests.
8210 rm -f conftest.err conftest.i conftest.$ac_ext
8213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8214 rm -f conftest.i conftest.err conftest.$ac_ext
8215 if $ac_preproc_ok; then :
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8228 $as_echo "$CPP" >&6; }
8230 for ac_c_preproc_warn_flag in '' yes
8232 # Use a header file that comes with gcc, so configuring glibc
8233 # with a fresh cross-compiler works.
8234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8235 # <limits.h> exists even on freestanding compilers.
8236 # On the NeXT, cc -E runs the code through the compiler's parser,
8237 # not just through cpp. "Syntax error" is here to catch this case.
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8241 # include <limits.h>
8243 # include <assert.h>
8247 if ac_fn_c_try_cpp "$LINENO"; then :
8250 # Broken: fails on valid input.
8253 rm -f conftest.err conftest.i conftest.$ac_ext
8255 # OK, works on sane cases. Now check whether nonexistent headers
8256 # can be detected and how.
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8259 #include <ac_nonexistent.h>
8261 if ac_fn_c_try_cpp "$LINENO"; then :
8262 # Broken: success on invalid input.
8265 # Passes both tests.
8269 rm -f conftest.err conftest.i conftest.$ac_ext
8272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8273 rm -f conftest.i conftest.err conftest.$ac_ext
8274 if $ac_preproc_ok; then :
8277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8279 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8280 See \`config.log' for more details" "$LINENO" 5; }
8284 ac_cpp='$CPP $CPPFLAGS'
8285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8291 $as_echo_n "checking for ANSI C header files... " >&6; }
8292 if ${ac_cv_header_stdc+:} false; then :
8293 $as_echo_n "(cached) " >&6
8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296 /* end confdefs.h. */
8310 if ac_fn_c_try_compile "$LINENO"; then :
8311 ac_cv_header_stdc=yes
8313 ac_cv_header_stdc=no
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 if test $ac_cv_header_stdc = yes; then
8318 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8325 $EGREP "memchr" >/dev/null 2>&1; then :
8328 ac_cv_header_stdc=no
8334 if test $ac_cv_header_stdc = yes; then
8335 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8342 $EGREP "free" >/dev/null 2>&1; then :
8345 ac_cv_header_stdc=no
8351 if test $ac_cv_header_stdc = yes; then
8352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8353 if test "$cross_compiling" = yes; then :
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8360 #if ((' ' & 0x0FF) == 0x020)
8361 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8362 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8364 # define ISLOWER(c) \
8365 (('a' <= (c) && (c) <= 'i') \
8366 || ('j' <= (c) && (c) <= 'r') \
8367 || ('s' <= (c) && (c) <= 'z'))
8368 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8371 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8376 for (i = 0; i < 256; i++)
8377 if (XOR (islower (i), ISLOWER (i))
8378 || toupper (i) != TOUPPER (i))
8383 if ac_fn_c_try_run "$LINENO"; then :
8386 ac_cv_header_stdc=no
8388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8389 conftest.$ac_objext conftest.beam conftest.$ac_ext
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8395 $as_echo "$ac_cv_header_stdc" >&6; }
8396 if test $ac_cv_header_stdc = yes; then
8398 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8402 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8403 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8404 inttypes.h stdint.h unistd.h
8406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8407 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8409 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8410 cat >>confdefs.h <<_ACEOF
8411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8419 for ac_header in dlfcn.h
8421 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8423 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8424 cat >>confdefs.h <<_ACEOF
8425 #define HAVE_DLFCN_H 1
8437 # Check whether --enable-static was given.
8438 if test "${enable_static+set}" = set; then :
8439 enableval=$enable_static; p=${PACKAGE-default}
8441 yes) enable_static=yes ;;
8442 no) enable_static=no ;;
8445 # Look at the argument we got. We use all the common list separators.
8446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8447 for pkg in $enableval; do
8449 if test "X$pkg" = "X$p"; then
8475 # Check whether --enable-shared was given.
8476 if test "${enable_shared+set}" = set; then :
8477 enableval=$enable_shared; p=${PACKAGE-default}
8479 yes) enable_shared=yes ;;
8480 no) enable_shared=no ;;
8483 # Look at the argument we got. We use all the common list separators.
8484 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8485 for pkg in $enableval; do
8487 if test "X$pkg" = "X$p"; then
8508 # Check whether --with-pic was given.
8509 if test "${with_pic+set}" = set; then :
8510 withval=$with_pic; lt_p=${PACKAGE-default}
8512 yes|no) pic_mode=$withval ;;
8515 # Look at the argument we got. We use all the common list separators.
8516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8517 for lt_pkg in $withval; do
8519 if test "X$lt_pkg" = "X$lt_p"; then
8531 test -z "$pic_mode" && pic_mode=default
8539 # Check whether --enable-fast-install was given.
8540 if test "${enable_fast_install+set}" = set; then :
8541 enableval=$enable_fast_install; p=${PACKAGE-default}
8543 yes) enable_fast_install=yes ;;
8544 no) enable_fast_install=no ;;
8546 enable_fast_install=no
8547 # Look at the argument we got. We use all the common list separators.
8548 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8549 for pkg in $enableval; do
8551 if test "X$pkg" = "X$p"; then
8552 enable_fast_install=yes
8559 enable_fast_install=yes
8572 # This can be used to rebuild libtool when needed
8573 LIBTOOL_DEPS="$ltmain"
8575 # Always use our own libtool.
8576 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8607 test -z "$LN_S" && LN_S="ln -s"
8622 if test -n "${ZSH_VERSION+set}" ; then
8623 setopt NO_GLOB_SUBST
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8627 $as_echo_n "checking for objdir... " >&6; }
8628 if ${lt_cv_objdir+:} false; then :
8629 $as_echo_n "(cached) " >&6
8631 rm -f .libs 2>/dev/null
8632 mkdir .libs 2>/dev/null
8633 if test -d .libs; then
8636 # MS-DOS does not allow filenames that begin with a dot.
8639 rmdir .libs 2>/dev/null
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8642 $as_echo "$lt_cv_objdir" >&6; }
8643 objdir=$lt_cv_objdir
8649 cat >>confdefs.h <<_ACEOF
8650 #define LT_OBJDIR "$lt_cv_objdir/"
8658 # AIX sometimes has problems with the GCC collect2 program. For some
8659 # reason, if we set the COLLECT_NAMES environment variable, the problems
8660 # vanish in a puff of smoke.
8661 if test "X${COLLECT_NAMES+set}" != Xset; then
8663 export COLLECT_NAMES
8670 can_build_shared=yes
8672 # All known linkers require a `.a' archive for static linking (except MSVC,
8673 # which needs '.lib').
8676 with_gnu_ld="$lt_cv_prog_gnu_ld"
8679 old_CFLAGS="$CFLAGS"
8681 # Set sane defaults for various variables
8682 test -z "$CC" && CC=cc
8683 test -z "$LTCC" && LTCC=$CC
8684 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8685 test -z "$LD" && LD=ld
8686 test -z "$ac_objext" && ac_objext=o
8688 for cc_temp in $compiler""; do
8690 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8691 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8696 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8699 # Only perform the check for file, if the check method requires it
8700 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8701 case $deplibs_check_method in
8703 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8705 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8706 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8707 $as_echo_n "(cached) " >&6
8711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8714 lt_save_MAGIC_CMD="$MAGIC_CMD"
8715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8716 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8717 for ac_dir in $ac_dummy; do
8719 test -z "$ac_dir" && ac_dir=.
8720 if test -f $ac_dir/${ac_tool_prefix}file; then
8721 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8722 if test -n "$file_magic_test_file"; then
8723 case $deplibs_check_method in
8725 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8727 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8728 $EGREP "$file_magic_regex" > /dev/null; then
8733 *** Warning: the command libtool uses to detect shared libraries,
8734 *** $file_magic_cmd, produces output that libtool cannot recognize.
8735 *** The result is that libtool may fail to recognize shared libraries
8736 *** as such. This will affect the creation of libtool libraries that
8737 *** depend on shared libraries, but programs linked with such libtool
8738 *** libraries will work regardless of this problem. Nevertheless, you
8739 *** may want to report the problem to your system manager and/or to
8740 *** bug-libtool@gnu.org
8750 MAGIC_CMD="$lt_save_MAGIC_CMD"
8755 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8756 if test -n "$MAGIC_CMD"; then
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8758 $as_echo "$MAGIC_CMD" >&6; }
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761 $as_echo "no" >&6; }
8768 if test -z "$lt_cv_path_MAGIC_CMD"; then
8769 if test -n "$ac_tool_prefix"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8771 $as_echo_n "checking for file... " >&6; }
8772 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8773 $as_echo_n "(cached) " >&6
8777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8780 lt_save_MAGIC_CMD="$MAGIC_CMD"
8781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8782 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8783 for ac_dir in $ac_dummy; do
8785 test -z "$ac_dir" && ac_dir=.
8786 if test -f $ac_dir/file; then
8787 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8788 if test -n "$file_magic_test_file"; then
8789 case $deplibs_check_method in
8791 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8793 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8794 $EGREP "$file_magic_regex" > /dev/null; then
8799 *** Warning: the command libtool uses to detect shared libraries,
8800 *** $file_magic_cmd, produces output that libtool cannot recognize.
8801 *** The result is that libtool may fail to recognize shared libraries
8802 *** as such. This will affect the creation of libtool libraries that
8803 *** depend on shared libraries, but programs linked with such libtool
8804 *** libraries will work regardless of this problem. Nevertheless, you
8805 *** may want to report the problem to your system manager and/or to
8806 *** bug-libtool@gnu.org
8816 MAGIC_CMD="$lt_save_MAGIC_CMD"
8821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8822 if test -n "$MAGIC_CMD"; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8824 $as_echo "$MAGIC_CMD" >&6; }
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8840 # Use C for the default configuration in the libtool script
8844 ac_cpp='$CPP $CPPFLAGS'
8845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8850 # Source file extension for C test sources.
8853 # Object file extension for compiled C test sources.
8857 # Code to be used in simple compile tests
8858 lt_simple_compile_test_code="int some_variable = 0;"
8860 # Code to be used in simple link tests
8861 lt_simple_link_test_code='int main(){return(0);}'
8869 # If no C compiler was specified, use CC.
8872 # If no C compiler flags were specified, use CFLAGS.
8873 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8875 # Allow CC to be a program name with arguments.
8878 # Save the default compiler, since it gets overwritten when the other
8879 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8880 compiler_DEFAULT=$CC
8882 # save warnings/boilerplate of simple test code
8883 ac_outfile=conftest.$ac_objext
8884 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8885 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8886 _lt_compiler_boilerplate=`cat conftest.err`
8889 ac_outfile=conftest.$ac_objext
8890 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8891 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8892 _lt_linker_boilerplate=`cat conftest.err`
8897 ## There is no encapsulation within the following macros, do not change
8898 ## the running order or otherwise move them around unless you know exactly
8899 ## what you are doing...
8900 if test -n "$compiler"; then
8902 lt_prog_compiler_no_builtin_flag=
8904 if test "$GCC" = yes; then
8905 case $cc_basename in
8907 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8909 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8913 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8914 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8915 $as_echo_n "(cached) " >&6
8917 lt_cv_prog_compiler_rtti_exceptions=no
8918 ac_outfile=conftest.$ac_objext
8919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8920 lt_compiler_flag="-fno-rtti -fno-exceptions"
8921 # Insert the option either (1) after the last *FLAGS variable, or
8922 # (2) before a word containing "conftest.", or (3) at the end.
8923 # Note that $ac_compile itself does not contain backslashes and begins
8924 # with a dollar sign (not a hyphen), so the echo should work correctly.
8925 # The option is referenced via a variable to avoid confusing sed.
8926 lt_compile=`echo "$ac_compile" | $SED \
8927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8929 -e 's:$: $lt_compiler_flag:'`
8930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8931 (eval "$lt_compile" 2>conftest.err)
8933 cat conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 if (exit $ac_status) && test -s "$ac_outfile"; then
8936 # The compiler can only warn and ignore the option if not recognized
8937 # So say no if there are warnings other than the usual output.
8938 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8941 lt_cv_prog_compiler_rtti_exceptions=yes
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8948 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8950 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8951 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8963 lt_prog_compiler_wl=
8964 lt_prog_compiler_pic=
8965 lt_prog_compiler_static=
8968 if test "$GCC" = yes; then
8969 lt_prog_compiler_wl='-Wl,'
8970 lt_prog_compiler_static='-static'
8974 # All AIX code is PIC.
8975 if test "$host_cpu" = ia64; then
8976 # AIX 5 now supports IA64 processor
8977 lt_prog_compiler_static='-Bstatic'
8984 # see comment about AmigaOS4 .so support
8985 lt_prog_compiler_pic='-fPIC'
8988 # FIXME: we need at least 68020 code to build shared libraries, but
8989 # adding the `-m68020' flag to GCC prevents building anything better,
8991 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8996 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8997 # PIC is the default for these OSes.
9000 mingw* | cygwin* | pw32* | os2* | cegcc*)
9001 # This hack is so that the source file can tell whether it is being
9002 # built for inclusion in a dll (and should export symbols for example).
9003 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9004 # (--disable-auto-import) libraries
9005 lt_prog_compiler_pic='-DDLL_EXPORT'
9008 darwin* | rhapsody*)
9009 # PIC is the default on this platform
9010 # Common symbols not allowed in MH_DYLIB files
9011 lt_prog_compiler_pic='-fno-common'
9015 # PIC is the default for Haiku.
9016 # The "-static" flag exists, but is broken.
9017 lt_prog_compiler_static=
9021 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9022 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9023 # sets the default TLS model and affects inlining.
9029 lt_prog_compiler_pic='-fPIC'
9035 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9036 # Instead, we relocate shared libraries at runtime.
9040 # Just because we use GCC doesn't mean we suddenly get shared libraries
9041 # on systems that don't support them.
9042 lt_prog_compiler_can_build_shared=no
9047 # QNX uses GNU C++, but need to define -shared option too, otherwise
9049 lt_prog_compiler_pic='-fPIC -shared'
9053 if test -d /usr/nec; then
9054 lt_prog_compiler_pic=-Kconform_pic
9059 lt_prog_compiler_pic='-fPIC'
9063 case $cc_basename in
9064 nvcc*) # Cuda Compiler Driver 2.2
9065 lt_prog_compiler_wl='-Xlinker '
9066 if test -n "$lt_prog_compiler_pic"; then
9067 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9072 # PORTME Check for flag to pass linker flags through the system compiler.
9075 lt_prog_compiler_wl='-Wl,'
9076 if test "$host_cpu" = ia64; then
9077 # AIX 5 now supports IA64 processor
9078 lt_prog_compiler_static='-Bstatic'
9080 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9084 mingw* | cygwin* | pw32* | os2* | cegcc*)
9085 # This hack is so that the source file can tell whether it is being
9086 # built for inclusion in a dll (and should export symbols for example).
9087 lt_prog_compiler_pic='-DDLL_EXPORT'
9090 hpux9* | hpux10* | hpux11*)
9091 lt_prog_compiler_wl='-Wl,'
9092 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9099 lt_prog_compiler_pic='+Z'
9102 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9103 lt_prog_compiler_static='${wl}-a ${wl}archive'
9106 irix5* | irix6* | nonstopux*)
9107 lt_prog_compiler_wl='-Wl,'
9108 # PIC (with -KPIC) is the default.
9109 lt_prog_compiler_static='-non_shared'
9112 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9113 case $cc_basename in
9114 # old Intel for x86_64 which still supported -KPIC.
9116 lt_prog_compiler_wl='-Wl,'
9117 lt_prog_compiler_pic='-KPIC'
9118 lt_prog_compiler_static='-static'
9120 # icc used to be incompatible with GCC.
9121 # ICC 10 doesn't accept -KPIC any more.
9123 lt_prog_compiler_wl='-Wl,'
9124 lt_prog_compiler_pic='-fPIC'
9125 lt_prog_compiler_static='-static'
9127 # Lahey Fortran 8.1.
9129 lt_prog_compiler_wl='-Wl,'
9130 lt_prog_compiler_pic='--shared'
9131 lt_prog_compiler_static='--static'
9134 # NAG Fortran compiler
9135 lt_prog_compiler_wl='-Wl,-Wl,,'
9136 lt_prog_compiler_pic='-PIC'
9137 lt_prog_compiler_static='-Bstatic'
9139 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9140 # Portland Group compilers (*not* the Pentium gcc compiler,
9141 # which looks to be a dead project)
9142 lt_prog_compiler_wl='-Wl,'
9143 lt_prog_compiler_pic='-fpic'
9144 lt_prog_compiler_static='-Bstatic'
9147 lt_prog_compiler_wl='-Wl,'
9148 # All Alpha code is PIC.
9149 lt_prog_compiler_static='-non_shared'
9151 xl* | bgxl* | bgf* | mpixl*)
9152 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9153 lt_prog_compiler_wl='-Wl,'
9154 lt_prog_compiler_pic='-qpic'
9155 lt_prog_compiler_static='-qstaticlink'
9158 case `$CC -V 2>&1 | sed 5q` in
9159 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9160 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9161 lt_prog_compiler_pic='-KPIC'
9162 lt_prog_compiler_static='-Bstatic'
9163 lt_prog_compiler_wl=''
9165 *Sun\ F* | *Sun*Fortran*)
9166 lt_prog_compiler_pic='-KPIC'
9167 lt_prog_compiler_static='-Bstatic'
9168 lt_prog_compiler_wl='-Qoption ld '
9172 lt_prog_compiler_pic='-KPIC'
9173 lt_prog_compiler_static='-Bstatic'
9174 lt_prog_compiler_wl='-Wl,'
9176 *Intel*\ [CF]*Compiler*)
9177 lt_prog_compiler_wl='-Wl,'
9178 lt_prog_compiler_pic='-fPIC'
9179 lt_prog_compiler_static='-static'
9182 lt_prog_compiler_wl='-Wl,'
9183 lt_prog_compiler_pic='-fpic'
9184 lt_prog_compiler_static='-Bstatic'
9192 lt_prog_compiler_pic='-KPIC'
9193 lt_prog_compiler_static='-Bstatic'
9197 # QNX uses GNU C++, but need to define -shared option too, otherwise
9199 lt_prog_compiler_pic='-fPIC -shared'
9202 osf3* | osf4* | osf5*)
9203 lt_prog_compiler_wl='-Wl,'
9204 # All OSF/1 code is PIC.
9205 lt_prog_compiler_static='-non_shared'
9209 lt_prog_compiler_static='-non_shared'
9213 lt_prog_compiler_pic='-KPIC'
9214 lt_prog_compiler_static='-Bstatic'
9215 case $cc_basename in
9216 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9217 lt_prog_compiler_wl='-Qoption ld ';;
9219 lt_prog_compiler_wl='-Wl,';;
9224 lt_prog_compiler_wl='-Qoption ld '
9225 lt_prog_compiler_pic='-PIC'
9226 lt_prog_compiler_static='-Bstatic'
9229 sysv4 | sysv4.2uw2* | sysv4.3*)
9230 lt_prog_compiler_wl='-Wl,'
9231 lt_prog_compiler_pic='-KPIC'
9232 lt_prog_compiler_static='-Bstatic'
9236 if test -d /usr/nec ;then
9237 lt_prog_compiler_pic='-Kconform_pic'
9238 lt_prog_compiler_static='-Bstatic'
9242 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9243 lt_prog_compiler_wl='-Wl,'
9244 lt_prog_compiler_pic='-KPIC'
9245 lt_prog_compiler_static='-Bstatic'
9249 lt_prog_compiler_wl='-Wl,'
9250 lt_prog_compiler_can_build_shared=no
9254 lt_prog_compiler_pic='-pic'
9255 lt_prog_compiler_static='-Bstatic'
9259 lt_prog_compiler_can_build_shared=no
9265 # For platforms which do not support PIC, -DPIC is meaningless:
9267 lt_prog_compiler_pic=
9270 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9275 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9276 if ${lt_cv_prog_compiler_pic+:} false; then :
9277 $as_echo_n "(cached) " >&6
9279 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9282 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9283 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9286 # Check to make sure the PIC flag actually works.
9288 if test -n "$lt_prog_compiler_pic"; then
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9290 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9291 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9292 $as_echo_n "(cached) " >&6
9294 lt_cv_prog_compiler_pic_works=no
9295 ac_outfile=conftest.$ac_objext
9296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9297 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9298 # Insert the option either (1) after the last *FLAGS variable, or
9299 # (2) before a word containing "conftest.", or (3) at the end.
9300 # Note that $ac_compile itself does not contain backslashes and begins
9301 # with a dollar sign (not a hyphen), so the echo should work correctly.
9302 # The option is referenced via a variable to avoid confusing sed.
9303 lt_compile=`echo "$ac_compile" | $SED \
9304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9306 -e 's:$: $lt_compiler_flag:'`
9307 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9308 (eval "$lt_compile" 2>conftest.err)
9310 cat conftest.err >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 if (exit $ac_status) && test -s "$ac_outfile"; then
9313 # The compiler can only warn and ignore the option if not recognized
9314 # So say no if there are warnings other than the usual output.
9315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9317 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9318 lt_cv_prog_compiler_pic_works=yes
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9325 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9327 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9328 case $lt_prog_compiler_pic in
9330 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9333 lt_prog_compiler_pic=
9334 lt_prog_compiler_can_build_shared=no
9350 # Check to make sure the static flag actually works.
9352 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9354 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9355 if ${lt_cv_prog_compiler_static_works+:} false; then :
9356 $as_echo_n "(cached) " >&6
9358 lt_cv_prog_compiler_static_works=no
9359 save_LDFLAGS="$LDFLAGS"
9360 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9361 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9362 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9363 # The linker can only warn and ignore the option if not recognized
9364 # So say no if there are warnings
9365 if test -s conftest.err; then
9366 # Append any errors to the config.log.
9367 cat conftest.err 1>&5
9368 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9369 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9370 if diff conftest.exp conftest.er2 >/dev/null; then
9371 lt_cv_prog_compiler_static_works=yes
9374 lt_cv_prog_compiler_static_works=yes
9378 LDFLAGS="$save_LDFLAGS"
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9382 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9384 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9387 lt_prog_compiler_static=
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9397 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9398 if ${lt_cv_prog_compiler_c_o+:} false; then :
9399 $as_echo_n "(cached) " >&6
9401 lt_cv_prog_compiler_c_o=no
9402 $RM -r conftest 2>/dev/null
9406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9408 lt_compiler_flag="-o out/conftest2.$ac_objext"
9409 # Insert the option either (1) after the last *FLAGS variable, or
9410 # (2) before a word containing "conftest.", or (3) at the end.
9411 # Note that $ac_compile itself does not contain backslashes and begins
9412 # with a dollar sign (not a hyphen), so the echo should work correctly.
9413 lt_compile=`echo "$ac_compile" | $SED \
9414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9416 -e 's:$: $lt_compiler_flag:'`
9417 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9418 (eval "$lt_compile" 2>out/conftest.err)
9420 cat out/conftest.err >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9424 # The compiler can only warn and ignore the option if not recognized
9425 # So say no if there are warnings
9426 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9427 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9428 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9429 lt_cv_prog_compiler_c_o=yes
9434 # SGI C++ compiler will create directory out/ii_files/ for
9435 # template instantiation
9436 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9437 $RM out/* && rmdir out
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9444 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9452 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9453 if ${lt_cv_prog_compiler_c_o+:} false; then :
9454 $as_echo_n "(cached) " >&6
9456 lt_cv_prog_compiler_c_o=no
9457 $RM -r conftest 2>/dev/null
9461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9463 lt_compiler_flag="-o out/conftest2.$ac_objext"
9464 # Insert the option either (1) after the last *FLAGS variable, or
9465 # (2) before a word containing "conftest.", or (3) at the end.
9466 # Note that $ac_compile itself does not contain backslashes and begins
9467 # with a dollar sign (not a hyphen), so the echo should work correctly.
9468 lt_compile=`echo "$ac_compile" | $SED \
9469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9471 -e 's:$: $lt_compiler_flag:'`
9472 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9473 (eval "$lt_compile" 2>out/conftest.err)
9475 cat out/conftest.err >&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9479 # The compiler can only warn and ignore the option if not recognized
9480 # So say no if there are warnings
9481 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9482 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9483 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9484 lt_cv_prog_compiler_c_o=yes
9489 # SGI C++ compiler will create directory out/ii_files/ for
9490 # template instantiation
9491 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9492 $RM out/* && rmdir out
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9499 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9504 hard_links="nottested"
9505 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9506 # do not overwrite the value of need_locks provided by the user
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9508 $as_echo_n "checking if we can lock with hard links... " >&6; }
9511 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9513 ln conftest.a conftest.b 2>&5 || hard_links=no
9514 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9516 $as_echo "$hard_links" >&6; }
9517 if test "$hard_links" = no; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9519 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9532 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9535 allow_undefined_flag=
9536 always_export_symbols=no
9538 archive_expsym_cmds=
9539 compiler_needs_object=no
9540 enable_shared_with_static_runtimes=no
9541 export_dynamic_flag_spec=
9542 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9543 hardcode_automatic=no
9545 hardcode_direct_absolute=no
9546 hardcode_libdir_flag_spec=
9547 hardcode_libdir_separator=
9549 hardcode_shlibpath_var=unsupported
9551 link_all_deplibs=unknown
9554 old_archive_from_new_cmds=
9555 old_archive_from_expsyms_cmds=
9556 thread_safe_flag_spec=
9557 whole_archive_flag_spec=
9558 # include_expsyms should be a list of space-separated symbols to be *always*
9559 # included in the symbol list
9561 # exclude_expsyms can be an extended regexp of symbols to exclude
9562 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9563 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9564 # as well as any symbol that contains `d'.
9565 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9566 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9567 # platforms (ab)use it in PIC code, but their linkers get confused if
9568 # the symbol is explicitly referenced. Since portable code cannot
9569 # rely on this symbol name, it's probably fine to never include it in
9570 # preloaded symbol tables.
9571 # Exclude shared library initialization/finalization symbols.
9572 extract_expsyms_cmds=
9575 cygwin* | mingw* | pw32* | cegcc*)
9576 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9577 # When not using gcc, we currently assume that we are using
9578 # Microsoft Visual C++.
9579 if test "$GCC" != yes; then
9584 # we just hope/assume this is gcc and not c89 (= MSVC++)
9590 linux* | k*bsd*-gnu | gnu*)
9597 # On some targets, GNU ld is compatible enough with the native linker
9598 # that we're better off using the native interface for both.
9599 lt_use_gnu_ld_interface=no
9600 if test "$with_gnu_ld" = yes; then
9603 # The AIX port of GNU ld has always aspired to compatibility
9604 # with the native linker. However, as the warning in the GNU ld
9605 # block says, versions before 2.19.5* couldn't really create working
9606 # shared libraries, regardless of the interface used.
9607 case `$LD -v 2>&1` in
9608 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9609 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9610 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9612 lt_use_gnu_ld_interface=yes
9617 lt_use_gnu_ld_interface=yes
9622 if test "$lt_use_gnu_ld_interface" = yes; then
9623 # If archive_cmds runs LD, not CC, wlarc should be empty
9626 # Set some defaults for GNU ld with shared library support. These
9627 # are reset later if shared libraries are not supported. Putting them
9628 # here allows them to be overridden if necessary.
9629 runpath_var=LD_RUN_PATH
9630 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9631 export_dynamic_flag_spec='${wl}--export-dynamic'
9632 # ancient GNU ld didn't support --whole-archive et. al.
9633 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9634 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9636 whole_archive_flag_spec=
9638 supports_anon_versioning=no
9639 case `$LD -v 2>&1` in
9640 *GNU\ gold*) supports_anon_versioning=yes ;;
9641 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9642 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9643 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9644 *\ 2.11.*) ;; # other 2.11 versions
9645 *) supports_anon_versioning=yes ;;
9648 # See if GNU ld supports shared libraries.
9651 # On AIX/PPC, the GNU linker is very broken
9652 if test "$host_cpu" != ia64; then
9656 *** Warning: the GNU linker, at least up to release 2.19, is reported
9657 *** to be unable to reliably create shared libraries on AIX.
9658 *** Therefore, libtool is disabling shared libraries support. If you
9659 *** really care for shared libraries, you may want to install binutils
9660 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9661 *** You will then need to restart the configuration process.
9670 # see comment about AmigaOS4 .so support
9671 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9672 archive_expsym_cmds=''
9675 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)'
9676 hardcode_libdir_flag_spec='-L$libdir'
9677 hardcode_minus_L=yes
9683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9684 allow_undefined_flag=unsupported
9685 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9686 # support --undefined. This deserves some investigation. FIXME
9687 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9693 cygwin* | mingw* | pw32* | cegcc*)
9694 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9695 # as there is no search path for DLLs.
9696 hardcode_libdir_flag_spec='-L$libdir'
9697 export_dynamic_flag_spec='${wl}--export-all-symbols'
9698 allow_undefined_flag=unsupported
9699 always_export_symbols=no
9700 enable_shared_with_static_runtimes=yes
9701 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'
9702 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9704 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9706 # If the export-symbols file already is a .def file (1st line
9707 # is EXPORTS), use it as is; otherwise, prepend...
9708 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9709 cp $export_symbols $output_objdir/$soname.def;
9711 echo EXPORTS > $output_objdir/$soname.def;
9712 cat $export_symbols >> $output_objdir/$soname.def;
9714 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9722 link_all_deplibs=yes
9727 hardcode_shlibpath_var=no
9728 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9729 export_dynamic_flag_spec='${wl}-E'
9730 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9731 # Instead, shared libraries are loaded at an image base (0x10000000 by
9732 # default) and relocated if they conflict, which is a slow very memory
9733 # consuming and fragmenting process. To avoid this, we pick a random,
9734 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9735 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9736 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9737 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'
9740 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9742 if test "$host_os" = linux-dietlibc; then
9743 case $cc_basename in
9744 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9747 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9748 && test "$tmp_diet" = no
9750 tmp_addflag=' $pic_flag'
9751 tmp_sharedflag='-shared'
9752 case $cc_basename,$host_cpu in
9753 pgcc*) # Portland Group C compiler
9754 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'
9755 tmp_addflag=' $pic_flag'
9757 pgf77* | pgf90* | pgf95* | pgfortran*)
9758 # Portland Group f77 and f90 compilers
9759 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'
9760 tmp_addflag=' $pic_flag -Mnomain' ;;
9761 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9762 tmp_addflag=' -i_dynamic' ;;
9763 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9764 tmp_addflag=' -i_dynamic -nofor_main' ;;
9765 ifc* | ifort*) # Intel Fortran compiler
9766 tmp_addflag=' -nofor_main' ;;
9767 lf95*) # Lahey Fortran 8.1
9768 whole_archive_flag_spec=
9769 tmp_sharedflag='--shared' ;;
9770 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9771 tmp_sharedflag='-qmkshrobj'
9773 nvcc*) # Cuda Compiler Driver 2.2
9774 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'
9775 compiler_needs_object=yes
9778 case `$CC -V 2>&1 | sed 5q` in
9779 *Sun\ C*) # Sun C 5.9
9780 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'
9781 compiler_needs_object=yes
9782 tmp_sharedflag='-G' ;;
9783 *Sun\ F*) # Sun Fortran 8.3
9784 tmp_sharedflag='-G' ;;
9786 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9788 if test "x$supports_anon_versioning" = xyes; then
9789 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9790 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9791 echo "local: *; };" >> $output_objdir/$libname.ver~
9792 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9795 case $cc_basename in
9796 xlf* | bgf* | bgxlf* | mpixlf*)
9797 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9798 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9800 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9801 if test "x$supports_anon_versioning" = xyes; then
9802 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9803 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9804 echo "local: *; };" >> $output_objdir/$libname.ver~
9805 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9814 netbsd* | netbsdelf*-gnu)
9815 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9816 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9819 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9820 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9825 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9829 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9830 *** create shared libraries on Solaris systems. Therefore, libtool
9831 *** is disabling shared libraries support. We urge you to upgrade GNU
9832 *** binutils to release 2.9.1 or newer. Another option is to modify
9833 *** your PATH or compiler configuration so that the native linker is
9834 *** used, and then restart.
9837 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9838 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9839 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9846 case `$LD -v 2>&1` in
9847 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9851 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9852 *** reliably create shared libraries on SCO systems. Therefore, libtool
9853 *** is disabling shared libraries support. We urge you to upgrade GNU
9854 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9855 *** your PATH or compiler configuration so that the native linker is
9856 *** used, and then restart.
9861 # For security reasons, it is highly recommended that you always
9862 # use absolute paths for naming shared libraries, and exclude the
9863 # DT_RUNPATH tag from executables and libraries. But doing so
9864 # requires that you compile everything twice, which is a pain.
9865 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9868 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9877 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9880 hardcode_shlibpath_var=no
9884 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9885 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9886 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9893 if test "$ld_shlibs" = no; then
9895 hardcode_libdir_flag_spec=
9896 export_dynamic_flag_spec=
9897 whole_archive_flag_spec=
9900 # PORTME fill in a description of your system's linker (not GNU ld)
9903 allow_undefined_flag=unsupported
9904 always_export_symbols=yes
9905 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'
9906 # Note: this linker hardcodes the directories in LIBPATH if there
9907 # are no directories specified by -L.
9908 hardcode_minus_L=yes
9909 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9910 # Neither direct hardcoding nor static linking is supported with a
9912 hardcode_direct=unsupported
9917 if test "$host_cpu" = ia64; then
9918 # On IA64, the linker does run time linking by default, so we don't
9919 # have to do anything special.
9920 aix_use_runtimelinking=no
9921 exp_sym_flag='-Bexport'
9924 # If we're using GNU nm, then we don't want the "-C" option.
9925 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9926 # Also, AIX nm treats weak defined symbols like other global
9927 # defined symbols, whereas GNU nm marks them as "W".
9928 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9929 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9931 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9933 aix_use_runtimelinking=no
9935 # Test if we are trying to use run time linking or normal
9936 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9937 # need to do runtime linking.
9938 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9939 for ld_flag in $LDFLAGS; do
9940 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9941 aix_use_runtimelinking=yes
9948 exp_sym_flag='-bexport'
9949 no_entry_flag='-bnoentry'
9952 # When large executables or shared objects are built, AIX ld can
9953 # have problems creating the table of contents. If linking a library
9954 # or program results in "error TOC overflow" add -mminimal-toc to
9955 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9956 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9960 hardcode_direct_absolute=yes
9961 hardcode_libdir_separator=':'
9962 link_all_deplibs=yes
9963 file_list_spec='${wl}-f,'
9965 if test "$GCC" = yes; then
9966 case $host_os in aix4.[012]|aix4.[012].*)
9967 # We only want to do this on AIX 4.2 and lower, the check
9968 # below for broken collect2 doesn't work under 4.3+
9969 collect2name=`${CC} -print-prog-name=collect2`
9970 if test -f "$collect2name" &&
9971 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9973 # We have reworked collect2
9976 # We have old collect2
9977 hardcode_direct=unsupported
9978 # It fails to find uninstalled libraries when the uninstalled
9979 # path is not listed in the libpath. Setting hardcode_minus_L
9980 # to unsupported forces relinking
9981 hardcode_minus_L=yes
9982 hardcode_libdir_flag_spec='-L$libdir'
9983 hardcode_libdir_separator=
9987 shared_flag='-shared'
9988 if test "$aix_use_runtimelinking" = yes; then
9989 shared_flag="$shared_flag "'${wl}-G'
9994 if test "$host_cpu" = ia64; then
9995 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9996 # chokes on -Wl,-G. The following line is correct:
9999 if test "$aix_use_runtimelinking" = yes; then
10000 shared_flag='${wl}-G'
10002 shared_flag='${wl}-bM:SRE'
10007 export_dynamic_flag_spec='${wl}-bexpall'
10008 # It seems that -bexpall does not export symbols beginning with
10009 # underscore (_), so it is better to generate a list of symbols to export.
10010 always_export_symbols=yes
10011 if test "$aix_use_runtimelinking" = yes; then
10012 # Warning - without using the other runtime loading flags (-brtl),
10013 # -berok will link without error, but may produce a broken library.
10014 allow_undefined_flag='-berok'
10015 # Determine the default libpath from the value encoded in an
10016 # empty executable.
10017 if test "${lt_cv_aix_libpath+set}" = set; then
10018 aix_libpath=$lt_cv_aix_libpath
10020 if ${lt_cv_aix_libpath_+:} false; then :
10021 $as_echo_n "(cached) " >&6
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10034 if ac_fn_c_try_link "$LINENO"; then :
10036 lt_aix_libpath_sed='
10037 /Import File Strings/,/^$/ {
10039 s/^0 *\([^ ]*\) *$/\1/
10043 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10044 # Check for a 64-bit object if we didn't find anything.
10045 if test -z "$lt_cv_aix_libpath_"; then
10046 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10049 rm -f core conftest.err conftest.$ac_objext \
10050 conftest$ac_exeext conftest.$ac_ext
10051 if test -z "$lt_cv_aix_libpath_"; then
10052 lt_cv_aix_libpath_="/usr/lib:/lib"
10057 aix_libpath=$lt_cv_aix_libpath_
10060 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10061 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10063 if test "$host_cpu" = ia64; then
10064 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10065 allow_undefined_flag="-z nodefs"
10066 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"
10068 # Determine the default libpath from the value encoded in an
10069 # empty executable.
10070 if test "${lt_cv_aix_libpath+set}" = set; then
10071 aix_libpath=$lt_cv_aix_libpath
10073 if ${lt_cv_aix_libpath_+:} false; then :
10074 $as_echo_n "(cached) " >&6
10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h. */
10087 if ac_fn_c_try_link "$LINENO"; then :
10089 lt_aix_libpath_sed='
10090 /Import File Strings/,/^$/ {
10092 s/^0 *\([^ ]*\) *$/\1/
10096 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10097 # Check for a 64-bit object if we didn't find anything.
10098 if test -z "$lt_cv_aix_libpath_"; then
10099 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10102 rm -f core conftest.err conftest.$ac_objext \
10103 conftest$ac_exeext conftest.$ac_ext
10104 if test -z "$lt_cv_aix_libpath_"; then
10105 lt_cv_aix_libpath_="/usr/lib:/lib"
10110 aix_libpath=$lt_cv_aix_libpath_
10113 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10114 # Warning - without using the other run time loading flags,
10115 # -berok will link without error, but may produce a broken library.
10116 no_undefined_flag=' ${wl}-bernotok'
10117 allow_undefined_flag=' ${wl}-berok'
10118 if test "$with_gnu_ld" = yes; then
10119 # We only use this code for GNU lds that support --whole-archive.
10120 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10122 # Exported symbols can be pulled into shared objects from archives
10123 whole_archive_flag_spec='$convenience'
10125 archive_cmds_need_lc=yes
10126 # This is similar to how AIX traditionally builds its shared libraries.
10127 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10135 # see comment about AmigaOS4 .so support
10136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10137 archive_expsym_cmds=''
10140 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)'
10141 hardcode_libdir_flag_spec='-L$libdir'
10142 hardcode_minus_L=yes
10148 export_dynamic_flag_spec=-rdynamic
10151 cygwin* | mingw* | pw32* | cegcc*)
10152 # When not using gcc, we currently assume that we are using
10153 # Microsoft Visual C++.
10154 # hardcode_libdir_flag_spec is actually meaningless, as there is
10155 # no search path for DLLs.
10156 case $cc_basename in
10159 hardcode_libdir_flag_spec=' '
10160 allow_undefined_flag=unsupported
10161 always_export_symbols=yes
10163 # Tell ltmain to make .lib files, not .a files.
10165 # Tell ltmain to make .dll files, not .so files.
10167 # FIXME: Setting linknames here is a bad hack.
10168 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10169 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10170 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10172 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10174 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10176 # The linker will not automatically build a static lib if we build a DLL.
10177 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10178 enable_shared_with_static_runtimes=yes
10179 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10180 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10182 old_postinstall_cmds='chmod 644 $oldlib'
10183 postlink_cmds='lt_outputfile="@OUTPUT@"~
10184 lt_tool_outputfile="@TOOL_OUTPUT@"~
10185 case $lt_outputfile in
10188 lt_outputfile="$lt_outputfile.exe"
10189 lt_tool_outputfile="$lt_tool_outputfile.exe"
10192 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10193 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10194 $RM "$lt_outputfile.manifest";
10198 # Assume MSVC wrapper
10199 hardcode_libdir_flag_spec=' '
10200 allow_undefined_flag=unsupported
10201 # Tell ltmain to make .lib files, not .a files.
10203 # Tell ltmain to make .dll files, not .so files.
10205 # FIXME: Setting linknames here is a bad hack.
10206 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10207 # The linker will automatically build a .lib file if we build a DLL.
10208 old_archive_from_new_cmds='true'
10209 # FIXME: Should let the user specify the lib program.
10210 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10211 enable_shared_with_static_runtimes=yes
10216 darwin* | rhapsody*)
10219 archive_cmds_need_lc=no
10221 hardcode_automatic=yes
10222 hardcode_shlibpath_var=unsupported
10223 if test "$lt_cv_ld_force_load" = "yes"; then
10224 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\"`'
10227 whole_archive_flag_spec=''
10229 link_all_deplibs=yes
10230 allow_undefined_flag="$_lt_dar_allow_undefined"
10231 case $cc_basename in
10232 ifort*) _lt_dar_can_shared=yes ;;
10233 *) _lt_dar_can_shared=$GCC ;;
10235 if test "$_lt_dar_can_shared" = "yes"; then
10236 output_verbose_link_cmd=func_echo_all
10237 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10238 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10239 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}"
10240 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}"
10249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10250 hardcode_libdir_flag_spec='-L$libdir'
10251 hardcode_shlibpath_var=no
10254 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10255 # support. Future versions do this automatically, but an explicit c++rt0.o
10256 # does not break anything, and helps significantly (at the cost of a little
10259 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10260 hardcode_libdir_flag_spec='-R$libdir'
10261 hardcode_direct=yes
10262 hardcode_shlibpath_var=no
10265 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10268 hardcode_direct=yes
10269 hardcode_minus_L=yes
10270 hardcode_shlibpath_var=no
10273 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10274 freebsd* | dragonfly*)
10275 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10276 hardcode_libdir_flag_spec='-R$libdir'
10277 hardcode_direct=yes
10278 hardcode_shlibpath_var=no
10282 if test "$GCC" = yes; then
10283 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10285 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10287 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10288 hardcode_libdir_separator=:
10289 hardcode_direct=yes
10291 # hardcode_minus_L: Not really in the search PATH,
10292 # but as the default location of the library.
10293 hardcode_minus_L=yes
10294 export_dynamic_flag_spec='${wl}-E'
10298 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10299 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10301 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10303 if test "$with_gnu_ld" = no; then
10304 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10305 hardcode_libdir_separator=:
10306 hardcode_direct=yes
10307 hardcode_direct_absolute=yes
10308 export_dynamic_flag_spec='${wl}-E'
10309 # hardcode_minus_L: Not really in the search PATH,
10310 # but as the default location of the library.
10311 hardcode_minus_L=yes
10316 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10319 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10322 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10325 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10331 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10334 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10338 # Older versions of the 11.00 compiler do not understand -b yet
10339 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10341 $as_echo_n "checking if $CC understands -b... " >&6; }
10342 if ${lt_cv_prog_compiler__b+:} false; then :
10343 $as_echo_n "(cached) " >&6
10345 lt_cv_prog_compiler__b=no
10346 save_LDFLAGS="$LDFLAGS"
10347 LDFLAGS="$LDFLAGS -b"
10348 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10349 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10350 # The linker can only warn and ignore the option if not recognized
10351 # So say no if there are warnings
10352 if test -s conftest.err; then
10353 # Append any errors to the config.log.
10354 cat conftest.err 1>&5
10355 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10356 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10357 if diff conftest.exp conftest.er2 >/dev/null; then
10358 lt_cv_prog_compiler__b=yes
10361 lt_cv_prog_compiler__b=yes
10365 LDFLAGS="$save_LDFLAGS"
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10369 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10371 if test x"$lt_cv_prog_compiler__b" = xyes; then
10372 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10374 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10380 if test "$with_gnu_ld" = no; then
10381 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10382 hardcode_libdir_separator=:
10387 hardcode_shlibpath_var=no
10390 hardcode_direct=yes
10391 hardcode_direct_absolute=yes
10392 export_dynamic_flag_spec='${wl}-E'
10394 # hardcode_minus_L: Not really in the search PATH,
10395 # but as the default location of the library.
10396 hardcode_minus_L=yes
10402 irix5* | irix6* | nonstopux*)
10403 if test "$GCC" = yes; then
10404 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'
10405 # Try to use the -exported_symbol ld option, if it does not
10406 # work, assume that -exports_file does not work either and
10407 # implicitly export all symbols.
10408 # This should be the same for all languages, so no per-tag cache variable.
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10410 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10411 if ${lt_cv_irix_exported_symbol+:} false; then :
10412 $as_echo_n "(cached) " >&6
10414 save_LDFLAGS="$LDFLAGS"
10415 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418 int foo (void) { return 0; }
10420 if ac_fn_c_try_link "$LINENO"; then :
10421 lt_cv_irix_exported_symbol=yes
10423 lt_cv_irix_exported_symbol=no
10425 rm -f core conftest.err conftest.$ac_objext \
10426 conftest$ac_exeext conftest.$ac_ext
10427 LDFLAGS="$save_LDFLAGS"
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10430 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10431 if test "$lt_cv_irix_exported_symbol" = yes; then
10432 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'
10435 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'
10436 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'
10438 archive_cmds_need_lc='no'
10439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10440 hardcode_libdir_separator=:
10442 link_all_deplibs=yes
10445 netbsd* | netbsdelf*-gnu)
10446 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10447 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10449 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10451 hardcode_libdir_flag_spec='-R$libdir'
10452 hardcode_direct=yes
10453 hardcode_shlibpath_var=no
10457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10458 hardcode_direct=yes
10459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10460 hardcode_libdir_separator=:
10461 hardcode_shlibpath_var=no
10468 if test -f /usr/libexec/ld.so; then
10469 hardcode_direct=yes
10470 hardcode_shlibpath_var=no
10471 hardcode_direct_absolute=yes
10472 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10473 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10474 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10475 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10476 export_dynamic_flag_spec='${wl}-E'
10479 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10481 hardcode_libdir_flag_spec='-R$libdir'
10484 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10485 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10495 hardcode_libdir_flag_spec='-L$libdir'
10496 hardcode_minus_L=yes
10497 allow_undefined_flag=unsupported
10498 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10499 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10503 if test "$GCC" = yes; then
10504 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10505 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'
10507 allow_undefined_flag=' -expect_unresolved \*'
10508 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'
10510 archive_cmds_need_lc='no'
10511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10512 hardcode_libdir_separator=:
10515 osf4* | osf5*) # as osf3* with the addition of -msym flag
10516 if test "$GCC" = yes; then
10517 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10518 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'
10519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10521 allow_undefined_flag=' -expect_unresolved \*'
10522 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'
10523 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~
10524 $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'
10526 # Both c and cxx compiler support -rpath directly
10527 hardcode_libdir_flag_spec='-rpath $libdir'
10529 archive_cmds_need_lc='no'
10530 hardcode_libdir_separator=:
10534 no_undefined_flag=' -z defs'
10535 if test "$GCC" = yes; then
10537 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10538 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10539 $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'
10541 case `$CC -V 2>&1` in
10544 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10546 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10550 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10551 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10552 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10556 hardcode_libdir_flag_spec='-R$libdir'
10557 hardcode_shlibpath_var=no
10559 solaris2.[0-5] | solaris2.[0-5].*) ;;
10561 # The compiler driver will combine and reorder linker options,
10562 # but understands `-z linker_flag'. GCC discards it without `$wl',
10563 # but is careful enough not to reorder.
10564 # Supported since Solaris 2.6 (maybe 2.5.1?)
10565 if test "$GCC" = yes; then
10566 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10568 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10572 link_all_deplibs=yes
10576 if test "x$host_vendor" = xsequent; then
10577 # Use $CC to link under sequent, because it throws in some extra .o
10578 # files that make .init and .fini sections work.
10579 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10581 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10583 hardcode_libdir_flag_spec='-L$libdir'
10584 hardcode_direct=yes
10585 hardcode_minus_L=yes
10586 hardcode_shlibpath_var=no
10590 case $host_vendor in
10592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10593 hardcode_direct=yes # is this really true???
10596 ## LD is ld it makes a PLAMLIB
10597 ## CC just makes a GrossModule.
10598 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10599 reload_cmds='$CC -r -o $output$reload_objs'
10603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10604 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10607 runpath_var='LD_RUN_PATH'
10608 hardcode_shlibpath_var=no
10612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10613 hardcode_shlibpath_var=no
10614 export_dynamic_flag_spec='-Bexport'
10618 if test -d /usr/nec; then
10619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10620 hardcode_shlibpath_var=no
10621 runpath_var=LD_RUN_PATH
10622 hardcode_runpath_var=yes
10627 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10628 no_undefined_flag='${wl}-z,text'
10629 archive_cmds_need_lc=no
10630 hardcode_shlibpath_var=no
10631 runpath_var='LD_RUN_PATH'
10633 if test "$GCC" = yes; then
10634 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10635 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10637 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10638 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10642 sysv5* | sco3.2v5* | sco5v6*)
10643 # Note: We can NOT use -z defs as we might desire, because we do not
10644 # link with -lc, and that would cause any symbols used from libc to
10645 # always be unresolved, which means just about no library would
10646 # ever link correctly. If we're not using GNU ld we use -z text
10647 # though, which does catch some bad symbols but isn't as heavy-handed
10649 no_undefined_flag='${wl}-z,text'
10650 allow_undefined_flag='${wl}-z,nodefs'
10651 archive_cmds_need_lc=no
10652 hardcode_shlibpath_var=no
10653 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10654 hardcode_libdir_separator=':'
10655 link_all_deplibs=yes
10656 export_dynamic_flag_spec='${wl}-Bexport'
10657 runpath_var='LD_RUN_PATH'
10659 if test "$GCC" = yes; then
10660 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10661 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10663 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10664 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10670 hardcode_libdir_flag_spec='-L$libdir'
10671 hardcode_shlibpath_var=no
10679 if test x$host_vendor = xsni; then
10681 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10682 export_dynamic_flag_spec='${wl}-Blargedynsym'
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10689 $as_echo "$ld_shlibs" >&6; }
10690 test "$ld_shlibs" = no && can_build_shared=no
10692 with_gnu_ld=$with_gnu_ld
10709 # Do we need to explicitly link libc?
10711 case "x$archive_cmds_need_lc" in
10713 # Assume -lc should be added
10714 archive_cmds_need_lc=yes
10716 if test "$enable_shared" = yes && test "$GCC" = yes; then
10717 case $archive_cmds in
10719 # FIXME: we may have to deal with multi-command sequences.
10722 # Test whether the compiler implicitly links with -lc since on some
10723 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10724 # to ld, don't add -lc before -lgcc.
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10726 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10727 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10728 $as_echo_n "(cached) " >&6
10731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10734 (eval $ac_compile) 2>&5
10736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10737 test $ac_status = 0; } 2>conftest.err; then
10740 libobjs=conftest.$ac_objext
10742 wl=$lt_prog_compiler_wl
10743 pic_flag=$lt_prog_compiler_pic
10749 lt_save_allow_undefined_flag=$allow_undefined_flag
10750 allow_undefined_flag=
10751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10752 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10755 test $ac_status = 0; }
10757 lt_cv_archive_cmds_need_lc=no
10759 lt_cv_archive_cmds_need_lc=yes
10761 allow_undefined_flag=$lt_save_allow_undefined_flag
10763 cat conftest.err 1>&5
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10769 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10770 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10929 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10931 if test "$GCC" = yes; then
10933 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10934 *) lt_awk_arg="/^libraries:/" ;;
10937 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10938 *) lt_sed_strip_eq="s,=/,/,g" ;;
10940 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10941 case $lt_search_path_spec in
10943 # if the path contains ";" then we assume it to be the separator
10944 # otherwise default to the standard path separator (i.e. ":") - it is
10945 # assumed that no part of a normal pathname contains ";" but that should
10946 # okay in the real world where ";" in dirpaths is itself problematic.
10947 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10950 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10953 # Ok, now we have the path, separated by spaces, we can step through it
10954 # and add multilib dir if necessary.
10955 lt_tmp_lt_search_path_spec=
10956 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10957 for lt_sys_path in $lt_search_path_spec; do
10958 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10959 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10961 test -d "$lt_sys_path" && \
10962 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10965 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10966 BEGIN {RS=" "; FS="/|\n";} {
10969 for (lt_i = NF; lt_i > 0; lt_i--) {
10970 if ($lt_i != "" && $lt_i != ".") {
10971 if ($lt_i == "..") {
10974 if (lt_count == 0) {
10975 lt_foo="/" $lt_i lt_foo;
10982 if (lt_foo != "") { lt_freq[lt_foo]++; }
10983 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10985 # AWK program above erroneously prepends '/' to C:/dos/paths
10988 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10989 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10991 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10993 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10995 library_names_spec=
10996 libname_spec='lib$name'
11000 postuninstall_cmds=
11004 shlibpath_overrides_runpath=unknown
11006 dynamic_linker="$host_os ld.so"
11007 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11008 need_lib_prefix=unknown
11009 hardcode_into_libs=no
11011 # when you set need_version to no, make sure it does not cause -set_version
11012 # flags to be left without arguments
11013 need_version=unknown
11017 version_type=linux # correct to gnu/linux during the next big refactor
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11019 shlibpath_var=LIBPATH
11021 # AIX 3 has no versioning support, so we append a major version to the name.
11022 soname_spec='${libname}${release}${shared_ext}$major'
11026 version_type=linux # correct to gnu/linux during the next big refactor
11029 hardcode_into_libs=yes
11030 if test "$host_cpu" = ia64; then
11031 # AIX 5 supports IA64
11032 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11033 shlibpath_var=LD_LIBRARY_PATH
11035 # With GCC up to 2.95.x, collect2 would create an import file
11036 # for dependence libraries. The import file would start with
11037 # the line `#! .'. This would cause the generated library to
11038 # depend on `.', always an invalid library. This was fixed in
11039 # development snapshots of GCC prior to 3.0.
11041 aix4 | aix4.[01] | aix4.[01].*)
11042 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11044 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11047 can_build_shared=no
11051 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11052 # soname into executable. Probably we can add versioning support to
11053 # collect2, so additional links can be useful in future.
11054 if test "$aix_use_runtimelinking" = yes; then
11055 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11056 # instead of lib<name>.a to let people know that these are not
11057 # typical AIX shared libraries.
11058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11060 # We preserve .a as extension for shared libraries through AIX4.2
11061 # and later when we are not doing run time linking.
11062 library_names_spec='${libname}${release}.a $libname.a'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11065 shlibpath_var=LIBPATH
11072 # Since July 2007 AmigaOS4 officially supports .so libraries.
11073 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077 library_names_spec='$libname.ixlibrary $libname.a'
11078 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11079 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
11085 library_names_spec='${libname}${shared_ext}'
11086 dynamic_linker="$host_os ld.so"
11087 shlibpath_var=LIBRARY_PATH
11091 version_type=linux # correct to gnu/linux during the next big refactor
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 soname_spec='${libname}${release}${shared_ext}$major'
11095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11096 shlibpath_var=LD_LIBRARY_PATH
11097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11099 # the default ld.so.conf also contains /usr/contrib/lib and
11100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11101 # libtool to hard-code these into programs
11104 cygwin* | mingw* | pw32* | cegcc*)
11105 version_type=windows
11110 case $GCC,$cc_basename in
11113 library_names_spec='$libname.dll.a'
11114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11115 postinstall_cmds='base_file=`basename \${file}`~
11116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11117 dldir=$destdir/`dirname \$dlpath`~
11118 test -d \$dldir || mkdir -p \$dldir~
11119 $install_prog $dir/$dlname \$dldir/$dlname~
11120 chmod a+x \$dldir/$dlname~
11121 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11122 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11124 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11125 dlpath=$dir/\$dldll~
11127 shlibpath_overrides_runpath=yes
11131 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11132 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11134 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11137 # MinGW DLLs use traditional 'lib' prefix
11138 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11141 # pw32 DLLs use 'pw' prefix rather than 'lib'
11142 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11145 dynamic_linker='Win32 ld.exe'
11150 libname_spec='$name'
11151 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11152 library_names_spec='${libname}.dll.lib'
11156 sys_lib_search_path_spec=
11159 for lt_path in $LIB
11162 # Let DOS variable expansion print the short 8.3 style file name.
11163 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11164 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11167 # Convert to MSYS style.
11168 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11171 # Convert to unix form, then to dos form, then back to unix form
11172 # but this time dos style (no spaces!) so that the unix form looks
11173 # like /cygdrive/c/PROGRA~1:/cygdr...
11174 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11175 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11176 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11179 sys_lib_search_path_spec="$LIB"
11180 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11181 # It is most probably a Windows format PATH.
11182 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11184 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11186 # FIXME: find the short name or the path components, as spaces are
11187 # common. (e.g. "Program Files" -> "PROGRA~1")
11191 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11192 postinstall_cmds='base_file=`basename \${file}`~
11193 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11194 dldir=$destdir/`dirname \$dlpath`~
11195 test -d \$dldir || mkdir -p \$dldir~
11196 $install_prog $dir/$dlname \$dldir/$dlname'
11197 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11198 dlpath=$dir/\$dldll~
11200 shlibpath_overrides_runpath=yes
11201 dynamic_linker='Win32 link.exe'
11205 # Assume MSVC wrapper
11206 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11207 dynamic_linker='Win32 ld.exe'
11210 # FIXME: first we should search . and the directory the executable is in
11214 darwin* | rhapsody*)
11215 dynamic_linker="$host_os dyld"
11216 version_type=darwin
11219 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11220 soname_spec='${libname}${release}${major}$shared_ext'
11221 shlibpath_overrides_runpath=yes
11222 shlibpath_var=DYLD_LIBRARY_PATH
11223 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11225 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11226 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11230 version_type=linux # correct to gnu/linux during the next big refactor
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11234 soname_spec='${libname}${release}${shared_ext}$major'
11235 shlibpath_var=LD_LIBRARY_PATH
11238 freebsd* | dragonfly*)
11239 # DragonFly does not have aout. When/if they implement a new
11240 # versioning mechanism, adjust this.
11241 if test -x /usr/bin/objformat; then
11242 objformat=`/usr/bin/objformat`
11245 freebsd[23].*) objformat=aout ;;
11246 *) objformat=elf ;;
11249 version_type=freebsd-$objformat
11250 case $version_type in
11252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11257 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11261 shlibpath_var=LD_LIBRARY_PATH
11264 shlibpath_overrides_runpath=yes
11266 freebsd3.[01]* | freebsdelf3.[01]*)
11267 shlibpath_overrides_runpath=yes
11268 hardcode_into_libs=yes
11270 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11271 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11272 shlibpath_overrides_runpath=no
11273 hardcode_into_libs=yes
11275 *) # from 4.6 on, and DragonFly
11276 shlibpath_overrides_runpath=yes
11277 hardcode_into_libs=yes
11283 version_type=linux # correct to gnu/linux during the next big refactor
11286 dynamic_linker="$host_os runtime_loader"
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11288 soname_spec='${libname}${release}${shared_ext}$major'
11289 shlibpath_var=LIBRARY_PATH
11290 shlibpath_overrides_runpath=yes
11291 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11292 hardcode_into_libs=yes
11295 hpux9* | hpux10* | hpux11*)
11296 # Give a soname corresponding to the major version so that dld.sl refuses to
11297 # link against other versions.
11304 hardcode_into_libs=yes
11305 dynamic_linker="$host_os dld.so"
11306 shlibpath_var=LD_LIBRARY_PATH
11307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11309 soname_spec='${libname}${release}${shared_ext}$major'
11310 if test "X$HPUX_IA64_MODE" = X32; then
11311 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11313 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11319 hardcode_into_libs=yes
11320 dynamic_linker="$host_os dld.sl"
11321 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324 soname_spec='${libname}${release}${shared_ext}$major'
11325 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11330 dynamic_linker="$host_os dld.sl"
11331 shlibpath_var=SHLIB_PATH
11332 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11337 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11338 postinstall_cmds='chmod 555 $lib'
11339 # or fails outright, so override atomically:
11340 install_override_mode=555
11344 version_type=linux # correct to gnu/linux during the next big refactor
11347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11348 soname_spec='${libname}${release}${shared_ext}$major'
11349 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11350 shlibpath_var=LD_LIBRARY_PATH
11351 shlibpath_overrides_runpath=no
11352 hardcode_into_libs=yes
11355 irix5* | irix6* | nonstopux*)
11357 nonstopux*) version_type=nonstopux ;;
11359 if test "$lt_cv_prog_gnu_ld" = yes; then
11360 version_type=linux # correct to gnu/linux during the next big refactor
11367 soname_spec='${libname}${release}${shared_ext}$major'
11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11370 irix5* | nonstopux*)
11371 libsuff= shlibsuff=
11374 case $LD in # libtool.m4 will add one of these switches to LD
11375 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11376 libsuff= shlibsuff= libmagic=32-bit;;
11377 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11378 libsuff=32 shlibsuff=N32 libmagic=N32;;
11379 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11380 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11381 *) libsuff= shlibsuff= libmagic=never-match;;
11385 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11386 shlibpath_overrides_runpath=no
11387 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11388 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11389 hardcode_into_libs=yes
11392 # No shared lib support for Linux oldld, aout, or coff.
11393 linux*oldld* | linux*aout* | linux*coff*)
11397 # This must be glibc/ELF.
11398 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11399 version_type=linux # correct to gnu/linux during the next big refactor
11402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11403 soname_spec='${libname}${release}${shared_ext}$major'
11404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11405 shlibpath_var=LD_LIBRARY_PATH
11406 shlibpath_overrides_runpath=no
11408 # Some binutils ld are patched to set DT_RUNPATH
11409 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11410 $as_echo_n "(cached) " >&6
11412 lt_cv_shlibpath_overrides_runpath=no
11413 save_LDFLAGS=$LDFLAGS
11414 save_libdir=$libdir
11415 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11416 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h. */
11428 if ac_fn_c_try_link "$LINENO"; then :
11429 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11430 lt_cv_shlibpath_overrides_runpath=yes
11433 rm -f core conftest.err conftest.$ac_objext \
11434 conftest$ac_exeext conftest.$ac_ext
11435 LDFLAGS=$save_LDFLAGS
11436 libdir=$save_libdir
11440 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11442 # This implies no fast_install, which is unacceptable.
11443 # Some rework will be needed to allow for fast_install
11444 # before this can be enabled.
11445 hardcode_into_libs=yes
11447 # Append ld.so.conf contents to the search path
11448 if test -f /etc/ld.so.conf; then
11449 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' ' '`
11450 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11453 # We used to test for /lib/ld.so.1 and disable shared libraries on
11454 # powerpc, because MkLinux only supported shared libraries with the
11455 # GNU dynamic linker. Since this was broken with cross compilers,
11456 # most powerpc-linux boxes support dynamic linking these days and
11457 # people can always --disable-shared, the test was removed, and we
11458 # assume the GNU/Linux dynamic linker is in use.
11459 dynamic_linker='GNU/Linux ld.so'
11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11467 soname_spec='${libname}${release}${shared_ext}$major'
11468 shlibpath_var=LD_LIBRARY_PATH
11469 shlibpath_overrides_runpath=no
11470 hardcode_into_libs=yes
11471 dynamic_linker='NetBSD ld.elf_so'
11478 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11481 dynamic_linker='NetBSD (a.out) ld.so'
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11484 soname_spec='${libname}${release}${shared_ext}$major'
11485 dynamic_linker='NetBSD ld.elf_so'
11487 shlibpath_var=LD_LIBRARY_PATH
11488 shlibpath_overrides_runpath=yes
11489 hardcode_into_libs=yes
11493 version_type=linux # correct to gnu/linux during the next big refactor
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11495 shlibpath_var=LD_LIBRARY_PATH
11496 shlibpath_overrides_runpath=yes
11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504 soname_spec='${libname}${release}${shared_ext}$major'
11505 shlibpath_var=LD_LIBRARY_PATH
11506 shlibpath_overrides_runpath=no
11507 hardcode_into_libs=yes
11508 dynamic_linker='ldqnx.so'
11513 sys_lib_dlsearch_path_spec="/usr/lib"
11515 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11517 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11518 *) need_version=no ;;
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11525 openbsd2.[89] | openbsd2.[89].*)
11526 shlibpath_overrides_runpath=no
11529 shlibpath_overrides_runpath=yes
11533 shlibpath_overrides_runpath=yes
11538 libname_spec='$name'
11541 library_names_spec='$libname${shared_ext} $libname.a'
11542 dynamic_linker='OS/2 ld.exe'
11543 shlibpath_var=LIBPATH
11546 osf3* | osf4* | osf5*)
11550 soname_spec='${libname}${release}${shared_ext}$major'
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552 shlibpath_var=LD_LIBRARY_PATH
11553 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11554 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11562 version_type=linux # correct to gnu/linux during the next big refactor
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 shlibpath_var=LD_LIBRARY_PATH
11568 shlibpath_overrides_runpath=yes
11569 hardcode_into_libs=yes
11570 # ldd complains unless libraries are executable
11571 postinstall_cmds='chmod +x $lib'
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11577 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11578 shlibpath_var=LD_LIBRARY_PATH
11579 shlibpath_overrides_runpath=yes
11580 if test "$with_gnu_ld" = yes; then
11587 version_type=linux # correct to gnu/linux during the next big refactor
11588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11589 soname_spec='${libname}${release}${shared_ext}$major'
11590 shlibpath_var=LD_LIBRARY_PATH
11591 case $host_vendor in
11593 shlibpath_overrides_runpath=no
11595 runpath_var=LD_RUN_PATH
11603 shlibpath_overrides_runpath=no
11604 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11610 if test -d /usr/nec ;then
11611 version_type=linux # correct to gnu/linux during the next big refactor
11612 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11613 soname_spec='$libname${shared_ext}.$major'
11614 shlibpath_var=LD_LIBRARY_PATH
11618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11619 version_type=freebsd-elf
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11623 soname_spec='${libname}${release}${shared_ext}$major'
11624 shlibpath_var=LD_LIBRARY_PATH
11625 shlibpath_overrides_runpath=yes
11626 hardcode_into_libs=yes
11627 if test "$with_gnu_ld" = yes; then
11628 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11630 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11633 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11637 sys_lib_dlsearch_path_spec='/usr/lib'
11641 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11642 version_type=linux # correct to gnu/linux during the next big refactor
11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 shlibpath_overrides_runpath=no
11648 hardcode_into_libs=yes
11652 version_type=linux # correct to gnu/linux during the next big refactor
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 shlibpath_var=LD_LIBRARY_PATH
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11663 $as_echo "$dynamic_linker" >&6; }
11664 test "$dynamic_linker" = no && can_build_shared=no
11666 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11667 if test "$GCC" = yes; then
11668 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11671 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11672 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11674 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11675 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11770 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11772 if test -n "$hardcode_libdir_flag_spec" ||
11773 test -n "$runpath_var" ||
11774 test "X$hardcode_automatic" = "Xyes" ; then
11776 # We can hardcode non-existent directories.
11777 if test "$hardcode_direct" != no &&
11778 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11779 # have to relink, otherwise we might link with an installed library
11780 # when we should be linking with a yet-to-be-installed one
11781 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11782 test "$hardcode_minus_L" != no; then
11783 # Linking always hardcodes the temporary library directory.
11784 hardcode_action=relink
11786 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11787 hardcode_action=immediate
11790 # We cannot hardcode anything, or else we can only hardcode existing
11792 hardcode_action=unsupported
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11795 $as_echo "$hardcode_action" >&6; }
11797 if test "$hardcode_action" = relink ||
11798 test "$inherit_rpath" = yes; then
11799 # Fast installation is not supported
11800 enable_fast_install=no
11801 elif test "$shlibpath_overrides_runpath" = yes ||
11802 test "$enable_shared" = no; then
11803 # Fast installation is not necessary
11804 enable_fast_install=needless
11812 if test "x$enable_dlopen" != xyes; then
11813 enable_dlopen=unknown
11814 enable_dlopen_self=unknown
11815 enable_dlopen_self_static=unknown
11822 lt_cv_dlopen="load_add_on"
11824 lt_cv_dlopen_self=yes
11827 mingw* | pw32* | cegcc*)
11828 lt_cv_dlopen="LoadLibrary"
11833 lt_cv_dlopen="dlopen"
11838 # if libdl is installed we need to link against it
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11840 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11841 if ${ac_cv_lib_dl_dlopen+:} false; then :
11842 $as_echo_n "(cached) " >&6
11844 ac_check_lib_save_LIBS=$LIBS
11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11849 /* Override any GCC internal prototype to avoid an error.
11850 Use char because int might match the return type of a GCC
11851 builtin and then its argument prototype would still apply. */
11864 if ac_fn_c_try_link "$LINENO"; then :
11865 ac_cv_lib_dl_dlopen=yes
11867 ac_cv_lib_dl_dlopen=no
11869 rm -f core conftest.err conftest.$ac_objext \
11870 conftest$ac_exeext conftest.$ac_ext
11871 LIBS=$ac_check_lib_save_LIBS
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11874 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11875 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11876 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11879 lt_cv_dlopen="dyld"
11881 lt_cv_dlopen_self=yes
11888 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11889 if test "x$ac_cv_func_shl_load" = xyes; then :
11890 lt_cv_dlopen="shl_load"
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11893 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11894 if ${ac_cv_lib_dld_shl_load+:} false; then :
11895 $as_echo_n "(cached) " >&6
11897 ac_check_lib_save_LIBS=$LIBS
11899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900 /* end confdefs.h. */
11902 /* Override any GCC internal prototype to avoid an error.
11903 Use char because int might match the return type of a GCC
11904 builtin and then its argument prototype would still apply. */
11912 return shl_load ();
11917 if ac_fn_c_try_link "$LINENO"; then :
11918 ac_cv_lib_dld_shl_load=yes
11920 ac_cv_lib_dld_shl_load=no
11922 rm -f core conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11924 LIBS=$ac_check_lib_save_LIBS
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11927 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11928 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11929 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11931 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11932 if test "x$ac_cv_func_dlopen" = xyes; then :
11933 lt_cv_dlopen="dlopen"
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11936 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11937 if ${ac_cv_lib_dl_dlopen+:} false; then :
11938 $as_echo_n "(cached) " >&6
11940 ac_check_lib_save_LIBS=$LIBS
11942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h. */
11945 /* Override any GCC internal prototype to avoid an error.
11946 Use char because int might match the return type of a GCC
11947 builtin and then its argument prototype would still apply. */
11960 if ac_fn_c_try_link "$LINENO"; then :
11961 ac_cv_lib_dl_dlopen=yes
11963 ac_cv_lib_dl_dlopen=no
11965 rm -f core conftest.err conftest.$ac_objext \
11966 conftest$ac_exeext conftest.$ac_ext
11967 LIBS=$ac_check_lib_save_LIBS
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11970 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11971 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11975 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11976 if ${ac_cv_lib_svld_dlopen+:} false; then :
11977 $as_echo_n "(cached) " >&6
11979 ac_check_lib_save_LIBS=$LIBS
11980 LIBS="-lsvld $LIBS"
11981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11984 /* Override any GCC internal prototype to avoid an error.
11985 Use char because int might match the return type of a GCC
11986 builtin and then its argument prototype would still apply. */
11999 if ac_fn_c_try_link "$LINENO"; then :
12000 ac_cv_lib_svld_dlopen=yes
12002 ac_cv_lib_svld_dlopen=no
12004 rm -f core conftest.err conftest.$ac_objext \
12005 conftest$ac_exeext conftest.$ac_ext
12006 LIBS=$ac_check_lib_save_LIBS
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12009 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12010 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12011 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12014 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12015 if ${ac_cv_lib_dld_dld_link+:} false; then :
12016 $as_echo_n "(cached) " >&6
12018 ac_check_lib_save_LIBS=$LIBS
12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021 /* end confdefs.h. */
12023 /* Override any GCC internal prototype to avoid an error.
12024 Use char because int might match the return type of a GCC
12025 builtin and then its argument prototype would still apply. */
12033 return dld_link ();
12038 if ac_fn_c_try_link "$LINENO"; then :
12039 ac_cv_lib_dld_dld_link=yes
12041 ac_cv_lib_dld_dld_link=no
12043 rm -f core conftest.err conftest.$ac_objext \
12044 conftest$ac_exeext conftest.$ac_ext
12045 LIBS=$ac_check_lib_save_LIBS
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12048 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12049 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12050 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12071 if test "x$lt_cv_dlopen" != xno; then
12077 case $lt_cv_dlopen in
12079 save_CPPFLAGS="$CPPFLAGS"
12080 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12082 save_LDFLAGS="$LDFLAGS"
12083 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12086 LIBS="$lt_cv_dlopen_libs $LIBS"
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12089 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12090 if ${lt_cv_dlopen_self+:} false; then :
12091 $as_echo_n "(cached) " >&6
12093 if test "$cross_compiling" = yes; then :
12094 lt_cv_dlopen_self=cross
12096 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12097 lt_status=$lt_dlunknown
12098 cat > conftest.$ac_ext <<_LT_EOF
12099 #line $LINENO "configure"
12100 #include "confdefs.h"
12109 # define LT_DLGLOBAL RTLD_GLOBAL
12112 # define LT_DLGLOBAL DL_GLOBAL
12114 # define LT_DLGLOBAL 0
12118 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12119 find out it does not work in some platform. */
12120 #ifndef LT_DLLAZY_OR_NOW
12122 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12125 # define LT_DLLAZY_OR_NOW DL_LAZY
12128 # define LT_DLLAZY_OR_NOW RTLD_NOW
12131 # define LT_DLLAZY_OR_NOW DL_NOW
12133 # define LT_DLLAZY_OR_NOW 0
12140 /* When -fvisbility=hidden is used, assume the code has been annotated
12141 correspondingly for the symbols needed. */
12142 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12143 int fnord () __attribute__((visibility("default")));
12146 int fnord () { return 42; }
12149 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12150 int status = $lt_dlunknown;
12154 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12157 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12158 else puts (dlerror ());
12160 /* dlclose (self); */
12168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12169 (eval $ac_link) 2>&5
12171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12172 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12173 (./conftest; exit; ) >&5 2>/dev/null
12175 case x$lt_status in
12176 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12177 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12178 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12181 # compilation failed
12182 lt_cv_dlopen_self=no
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12190 $as_echo "$lt_cv_dlopen_self" >&6; }
12192 if test "x$lt_cv_dlopen_self" = xyes; then
12193 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12195 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12196 if ${lt_cv_dlopen_self_static+:} false; then :
12197 $as_echo_n "(cached) " >&6
12199 if test "$cross_compiling" = yes; then :
12200 lt_cv_dlopen_self_static=cross
12202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12203 lt_status=$lt_dlunknown
12204 cat > conftest.$ac_ext <<_LT_EOF
12205 #line $LINENO "configure"
12206 #include "confdefs.h"
12215 # define LT_DLGLOBAL RTLD_GLOBAL
12218 # define LT_DLGLOBAL DL_GLOBAL
12220 # define LT_DLGLOBAL 0
12224 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12225 find out it does not work in some platform. */
12226 #ifndef LT_DLLAZY_OR_NOW
12228 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12231 # define LT_DLLAZY_OR_NOW DL_LAZY
12234 # define LT_DLLAZY_OR_NOW RTLD_NOW
12237 # define LT_DLLAZY_OR_NOW DL_NOW
12239 # define LT_DLLAZY_OR_NOW 0
12246 /* When -fvisbility=hidden is used, assume the code has been annotated
12247 correspondingly for the symbols needed. */
12248 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12249 int fnord () __attribute__((visibility("default")));
12252 int fnord () { return 42; }
12255 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12256 int status = $lt_dlunknown;
12260 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12263 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12264 else puts (dlerror ());
12266 /* dlclose (self); */
12274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12275 (eval $ac_link) 2>&5
12277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12278 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12279 (./conftest; exit; ) >&5 2>/dev/null
12281 case x$lt_status in
12282 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12283 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12284 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12287 # compilation failed
12288 lt_cv_dlopen_self_static=no
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12296 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12299 CPPFLAGS="$save_CPPFLAGS"
12300 LDFLAGS="$save_LDFLAGS"
12305 case $lt_cv_dlopen_self in
12306 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12307 *) enable_dlopen_self=unknown ;;
12310 case $lt_cv_dlopen_self_static in
12311 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12312 *) enable_dlopen_self_static=unknown ;;
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12335 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12336 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12337 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12338 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12340 $as_echo "yes" >&6; }
12342 # FIXME - insert some real tests, host_os isn't really good enough
12345 if test -n "$STRIP" ; then
12346 striplib="$STRIP -x"
12347 old_striplib="$STRIP -S"
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12349 $as_echo "yes" >&6; }
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12373 # Report which library types will actually be built
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12375 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12377 $as_echo "$can_build_shared" >&6; }
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12380 $as_echo_n "checking whether to build shared libraries... " >&6; }
12381 test "$can_build_shared" = "no" && enable_shared=no
12383 # On AIX, shared libraries and static libraries use the same namespace, and
12384 # are all built from PIC.
12387 test "$enable_shared" = yes && enable_static=no
12388 if test -n "$RANLIB"; then
12389 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12390 postinstall_cmds='$RANLIB $lib'
12395 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12396 test "$enable_shared" = yes && enable_static=no
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12401 $as_echo "$enable_shared" >&6; }
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12404 $as_echo_n "checking whether to build static libraries... " >&6; }
12405 # Make sure either enable_shared or enable_static is yes.
12406 test "$enable_shared" = yes || enable_static=yes
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12408 $as_echo "$enable_static" >&6; }
12415 ac_cpp='$CPP $CPPFLAGS'
12416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12436 ac_config_commands="$ac_config_commands libtool"
12441 # Only expand once:
12445 # Check for programs
12447 ac_cpp='$CPP $CPPFLAGS'
12448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12451 if test -n "$ac_tool_prefix"; then
12452 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12453 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12455 $as_echo_n "checking for $ac_word... " >&6; }
12456 if ${ac_cv_prog_CC+:} false; then :
12457 $as_echo_n "(cached) " >&6
12459 if test -n "$CC"; then
12460 ac_cv_prog_CC="$CC" # Let the user override the test.
12462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12463 for as_dir in $PATH
12466 test -z "$as_dir" && as_dir=.
12467 for ac_exec_ext in '' $ac_executable_extensions; do
12468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12469 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12480 if test -n "$CC"; then
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12482 $as_echo "$CC" >&6; }
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485 $as_echo "no" >&6; }
12490 if test -z "$ac_cv_prog_CC"; then
12492 # Extract the first word of "gcc", so it can be a program name with args.
12493 set dummy gcc; ac_word=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12497 $as_echo_n "(cached) " >&6
12499 if test -n "$ac_ct_CC"; then
12500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $PATH
12506 test -z "$as_dir" && as_dir=.
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12509 ac_cv_prog_ac_ct_CC="gcc"
12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12520 if test -n "$ac_ct_CC"; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12522 $as_echo "$ac_ct_CC" >&6; }
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12528 if test "x$ac_ct_CC" = x; then
12531 case $cross_compiling:$ac_tool_warned in
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12535 ac_tool_warned=yes ;;
12540 CC="$ac_cv_prog_CC"
12543 if test -z "$CC"; then
12544 if test -n "$ac_tool_prefix"; then
12545 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12546 set dummy ${ac_tool_prefix}cc; ac_word=$2
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548 $as_echo_n "checking for $ac_word... " >&6; }
12549 if ${ac_cv_prog_CC+:} false; then :
12550 $as_echo_n "(cached) " >&6
12552 if test -n "$CC"; then
12553 ac_cv_prog_CC="$CC" # Let the user override the test.
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $PATH
12559 test -z "$as_dir" && as_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12562 ac_cv_prog_CC="${ac_tool_prefix}cc"
12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12573 if test -n "$CC"; then
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12575 $as_echo "$CC" >&6; }
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578 $as_echo "no" >&6; }
12584 if test -z "$CC"; then
12585 # Extract the first word of "cc", so it can be a program name with args.
12586 set dummy cc; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if ${ac_cv_prog_CC+:} false; then :
12590 $as_echo_n "(cached) " >&6
12592 if test -n "$CC"; then
12593 ac_cv_prog_CC="$CC" # Let the user override the test.
12595 ac_prog_rejected=no
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12603 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12604 ac_prog_rejected=yes
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12615 if test $ac_prog_rejected = yes; then
12616 # We found a bogon in the path, so make sure we never use it.
12617 set dummy $ac_cv_prog_CC
12619 if test $# != 0; then
12620 # We chose a different compiler from the bogus one.
12621 # However, it has the same basename, so the bogon will be chosen
12622 # first if we set CC to just the basename; use the full file name.
12624 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12630 if test -n "$CC"; then
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12632 $as_echo "$CC" >&6; }
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635 $as_echo "no" >&6; }
12640 if test -z "$CC"; then
12641 if test -n "$ac_tool_prefix"; then
12642 for ac_prog in cl.exe
12644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647 $as_echo_n "checking for $ac_word... " >&6; }
12648 if ${ac_cv_prog_CC+:} false; then :
12649 $as_echo_n "(cached) " >&6
12651 if test -n "$CC"; then
12652 ac_cv_prog_CC="$CC" # Let the user override the test.
12654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12655 for as_dir in $PATH
12658 test -z "$as_dir" && as_dir=.
12659 for ac_exec_ext in '' $ac_executable_extensions; do
12660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12661 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12672 if test -n "$CC"; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12674 $as_echo "$CC" >&6; }
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12681 test -n "$CC" && break
12684 if test -z "$CC"; then
12686 for ac_prog in cl.exe
12688 # Extract the first word of "$ac_prog", so it can be a program name with args.
12689 set dummy $ac_prog; ac_word=$2
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12691 $as_echo_n "checking for $ac_word... " >&6; }
12692 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12693 $as_echo_n "(cached) " >&6
12695 if test -n "$ac_ct_CC"; then
12696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12699 for as_dir in $PATH
12702 test -z "$as_dir" && as_dir=.
12703 for ac_exec_ext in '' $ac_executable_extensions; do
12704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12705 ac_cv_prog_ac_ct_CC="$ac_prog"
12706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12716 if test -n "$ac_ct_CC"; then
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12718 $as_echo "$ac_ct_CC" >&6; }
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721 $as_echo "no" >&6; }
12725 test -n "$ac_ct_CC" && break
12728 if test "x$ac_ct_CC" = x; then
12731 case $cross_compiling:$ac_tool_warned in
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12735 ac_tool_warned=yes ;;
12744 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12746 as_fn_error $? "no acceptable C compiler found in \$PATH
12747 See \`config.log' for more details" "$LINENO" 5; }
12749 # Provide some information about the compiler.
12750 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12753 for ac_option in --version -v -V -qversion; do
12754 { { ac_try="$ac_compiler $ac_option >&5"
12755 case "(($ac_try" in
12756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757 *) ac_try_echo=$ac_try;;
12759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12760 $as_echo "$ac_try_echo"; } >&5
12761 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12763 if test -s conftest.err; then
12765 ... rest of stderr output deleted ...
12766 10q' conftest.err >conftest.er1
12767 cat conftest.er1 >&5
12769 rm -f conftest.er1 conftest.err
12770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12771 test $ac_status = 0; }
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12775 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12776 if ${ac_cv_c_compiler_gnu+:} false; then :
12777 $as_echo_n "(cached) " >&6
12779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12780 /* end confdefs.h. */
12793 if ac_fn_c_try_compile "$LINENO"; then :
12794 ac_compiler_gnu=yes
12798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12799 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12803 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12804 if test $ac_compiler_gnu = yes; then
12809 ac_test_CFLAGS=${CFLAGS+set}
12810 ac_save_CFLAGS=$CFLAGS
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12812 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12813 if ${ac_cv_prog_cc_g+:} false; then :
12814 $as_echo_n "(cached) " >&6
12816 ac_save_c_werror_flag=$ac_c_werror_flag
12817 ac_c_werror_flag=yes
12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h. */
12831 if ac_fn_c_try_compile "$LINENO"; then :
12832 ac_cv_prog_cc_g=yes
12835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12836 /* end confdefs.h. */
12846 if ac_fn_c_try_compile "$LINENO"; then :
12849 ac_c_werror_flag=$ac_save_c_werror_flag
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12862 if ac_fn_c_try_compile "$LINENO"; then :
12863 ac_cv_prog_cc_g=yes
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12870 ac_c_werror_flag=$ac_save_c_werror_flag
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12873 $as_echo "$ac_cv_prog_cc_g" >&6; }
12874 if test "$ac_test_CFLAGS" = set; then
12875 CFLAGS=$ac_save_CFLAGS
12876 elif test $ac_cv_prog_cc_g = yes; then
12877 if test "$GCC" = yes; then
12883 if test "$GCC" = yes; then
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12890 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12891 if ${ac_cv_prog_cc_c89+:} false; then :
12892 $as_echo_n "(cached) " >&6
12894 ac_cv_prog_cc_c89=no
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h. */
12898 #include <stdarg.h>
12901 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12902 struct buf { int x; };
12903 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12904 static char *e (p, i)
12910 static char *f (char * (*g) (char **, int), char **p, ...)
12915 s = g (p, va_arg (v,int));
12920 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12921 function prototypes and stuff, but not '\xHH' hex character constants.
12922 These don't provoke an error unfortunately, instead are silently treated
12923 as 'x'. The following induces an error, until -std is added to get
12924 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12925 array size at least. It's necessary to write '\x00'==0 to get something
12926 that's true only with -std. */
12927 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12929 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12930 inside strings and character constants. */
12932 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12934 int test (int i, double x);
12935 struct s1 {int (*f) (int a);};
12936 struct s2 {int (*f) (double a);};
12937 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12943 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12948 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12949 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12951 CC="$ac_save_CC $ac_arg"
12952 if ac_fn_c_try_compile "$LINENO"; then :
12953 ac_cv_prog_cc_c89=$ac_arg
12955 rm -f core conftest.err conftest.$ac_objext
12956 test "x$ac_cv_prog_cc_c89" != "xno" && break
12958 rm -f conftest.$ac_ext
12963 case "x$ac_cv_prog_cc_c89" in
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12966 $as_echo "none needed" >&6; } ;;
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12969 $as_echo "unsupported" >&6; } ;;
12971 CC="$CC $ac_cv_prog_cc_c89"
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12973 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12975 if test "x$ac_cv_prog_cc_c89" != xno; then :
12980 ac_cpp='$CPP $CPPFLAGS'
12981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12986 ac_cpp='$CPP $CPPFLAGS'
12987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12991 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12992 if ${am_cv_prog_cc_c_o+:} false; then :
12993 $as_echo_n "(cached) " >&6
12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h. */
13006 # Make sure it works both with $CC and with simple cc.
13007 # Following AC_PROG_CC_C_O, we do the test twice because some
13008 # compilers refuse to overwrite an existing .o file with -o,
13009 # though they will create one.
13010 am_cv_prog_cc_c_o=yes
13011 for am_i in 1 2; do
13012 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13013 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } \
13017 && test -f conftest2.$ac_objext; then
13020 am_cv_prog_cc_c_o=no
13024 rm -f core conftest*
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13028 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13029 if test "$am_cv_prog_cc_c_o" != yes; then
13030 # Losing compiler, so override with the script.
13031 # FIXME: It is wrong to rewrite CC.
13032 # But if we don't then we get into trouble of one sort or another.
13033 # A longer-term fix would be to have automake use am__CC in this case,
13034 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13035 CC="$am_aux_dir/compile $CC"
13038 ac_cpp='$CPP $CPPFLAGS'
13039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13044 depcc="$CC" am_compiler_list=
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13047 $as_echo_n "checking dependency style of $depcc... " >&6; }
13048 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13049 $as_echo_n "(cached) " >&6
13051 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13052 # We make a subdir and do the tests there. Otherwise we can end up
13053 # making bogus files that we don't know about and never remove. For
13054 # instance it was reported that on HP-UX the gcc test will end up
13055 # making a dummy file named 'D' -- because '-MD' means "put the output
13057 rm -rf conftest.dir
13059 # Copy depcomp to subdir because otherwise we won't find it if we're
13060 # using a relative directory.
13061 cp "$am_depcomp" conftest.dir
13063 # We will build objects and dependencies in a subdirectory because
13064 # it helps to detect inapplicable dependency modes. For instance
13065 # both Tru64's cc and ICC support -MD to output dependencies as a
13066 # side effect of compilation, but ICC will put the dependencies in
13067 # the current directory while Tru64 will put them in the object
13071 am_cv_CC_dependencies_compiler_type=none
13072 if test "$am_compiler_list" = ""; then
13073 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13075 am__universal=false
13076 case " $depcc " in #(
13077 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13080 for depmode in $am_compiler_list; do
13081 # Setup a source with many dependencies, because some compilers
13082 # like to wrap large dependency lists on column 80 (with \), and
13083 # we should not choose a depcomp mode which is confused by this.
13085 # We need to recreate these files for each test, as the compiler may
13086 # overwrite some of them when testing with obscure command lines.
13087 # This happens at least with the AIX C compiler.
13089 for i in 1 2 3 4 5 6; do
13090 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13091 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13092 # Solaris 10 /bin/sh.
13093 echo '/* dummy */' > sub/conftst$i.h
13095 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13097 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13098 # mode. It turns out that the SunPro C++ compiler does not properly
13099 # handle '-M -o', and we need to detect this. Also, some Intel
13100 # versions had trouble with output in subdirs.
13101 am__obj=sub/conftest.${OBJEXT-o}
13102 am__minus_obj="-o $am__obj"
13105 # This depmode causes a compiler race in universal mode.
13106 test "$am__universal" = false || continue
13109 # After this tag, mechanisms are not by side-effect, so they'll
13110 # only be used when explicitly requested.
13111 if test "x$enable_dependency_tracking" = xyes; then
13117 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13118 # This compiler won't grok '-c -o', but also, the minuso test has
13119 # not run yet. These depmodes are late enough in the game, and
13120 # so weak that their functioning should not be impacted.
13121 am__obj=conftest.${OBJEXT-o}
13126 if depmode=$depmode \
13127 source=sub/conftest.c object=$am__obj \
13128 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13129 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13130 >/dev/null 2>conftest.err &&
13131 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13132 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13133 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13134 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13135 # icc doesn't choke on unknown options, it will just issue warnings
13136 # or remarks (even with -Werror). So we grep stderr for any message
13137 # that says an option was ignored or not supported.
13138 # When given -MP, icc 7.0 and 7.1 complain thusly:
13139 # icc: Command line warning: ignoring option '-M'; no argument required
13140 # The diagnosis changed in icc 8.0:
13141 # icc: Command line remark: option '-MP' not supported
13142 if (grep 'ignoring option' conftest.err ||
13143 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13144 am_cv_CC_dependencies_compiler_type=$depmode
13151 rm -rf conftest.dir
13153 am_cv_CC_dependencies_compiler_type=none
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13158 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13159 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13162 test "x$enable_dependency_tracking" != xno \
13163 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13164 am__fastdepCC_TRUE=
13165 am__fastdepCC_FALSE='#'
13167 am__fastdepCC_TRUE='#'
13168 am__fastdepCC_FALSE=
13174 ac_cpp='$CXXCPP $CPPFLAGS'
13175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13178 if test -z "$CXX"; then
13179 if test -n "$CCC"; then
13182 if test -n "$ac_tool_prefix"; then
13183 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13188 $as_echo_n "checking for $ac_word... " >&6; }
13189 if ${ac_cv_prog_CXX+:} false; then :
13190 $as_echo_n "(cached) " >&6
13192 if test -n "$CXX"; then
13193 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196 for as_dir in $PATH
13199 test -z "$as_dir" && as_dir=.
13200 for ac_exec_ext in '' $ac_executable_extensions; do
13201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13202 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13212 CXX=$ac_cv_prog_CXX
13213 if test -n "$CXX"; then
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13215 $as_echo "$CXX" >&6; }
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13218 $as_echo "no" >&6; }
13222 test -n "$CXX" && break
13225 if test -z "$CXX"; then
13227 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13229 # Extract the first word of "$ac_prog", so it can be a program name with args.
13230 set dummy $ac_prog; ac_word=$2
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232 $as_echo_n "checking for $ac_word... " >&6; }
13233 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13234 $as_echo_n "(cached) " >&6
13236 if test -n "$ac_ct_CXX"; then
13237 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240 for as_dir in $PATH
13243 test -z "$as_dir" && as_dir=.
13244 for ac_exec_ext in '' $ac_executable_extensions; do
13245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13246 ac_cv_prog_ac_ct_CXX="$ac_prog"
13247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13256 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13257 if test -n "$ac_ct_CXX"; then
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13259 $as_echo "$ac_ct_CXX" >&6; }
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262 $as_echo "no" >&6; }
13266 test -n "$ac_ct_CXX" && break
13269 if test "x$ac_ct_CXX" = x; then
13272 case $cross_compiling:$ac_tool_warned in
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13276 ac_tool_warned=yes ;;
13284 # Provide some information about the compiler.
13285 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13288 for ac_option in --version -v -V -qversion; do
13289 { { ac_try="$ac_compiler $ac_option >&5"
13290 case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13295 $as_echo "$ac_try_echo"; } >&5
13296 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13298 if test -s conftest.err; then
13300 ... rest of stderr output deleted ...
13301 10q' conftest.err >conftest.er1
13302 cat conftest.er1 >&5
13304 rm -f conftest.er1 conftest.err
13305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13306 test $ac_status = 0; }
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13310 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13311 if ${ac_cv_cxx_compiler_gnu+:} false; then :
13312 $as_echo_n "(cached) " >&6
13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h. */
13328 if ac_fn_cxx_try_compile "$LINENO"; then :
13329 ac_compiler_gnu=yes
13333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13334 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13338 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13339 if test $ac_compiler_gnu = yes; then
13344 ac_test_CXXFLAGS=${CXXFLAGS+set}
13345 ac_save_CXXFLAGS=$CXXFLAGS
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13347 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13348 if ${ac_cv_prog_cxx_g+:} false; then :
13349 $as_echo_n "(cached) " >&6
13351 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13352 ac_cxx_werror_flag=yes
13353 ac_cv_prog_cxx_g=no
13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h. */
13366 if ac_fn_cxx_try_compile "$LINENO"; then :
13367 ac_cv_prog_cxx_g=yes
13370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371 /* end confdefs.h. */
13381 if ac_fn_cxx_try_compile "$LINENO"; then :
13384 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13397 if ac_fn_cxx_try_compile "$LINENO"; then :
13398 ac_cv_prog_cxx_g=yes
13400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13408 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13409 if test "$ac_test_CXXFLAGS" = set; then
13410 CXXFLAGS=$ac_save_CXXFLAGS
13411 elif test $ac_cv_prog_cxx_g = yes; then
13412 if test "$GXX" = yes; then
13418 if test "$GXX" = yes; then
13425 ac_cpp='$CPP $CPPFLAGS'
13426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13430 depcc="$CXX" am_compiler_list=
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13433 $as_echo_n "checking dependency style of $depcc... " >&6; }
13434 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13435 $as_echo_n "(cached) " >&6
13437 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13438 # We make a subdir and do the tests there. Otherwise we can end up
13439 # making bogus files that we don't know about and never remove. For
13440 # instance it was reported that on HP-UX the gcc test will end up
13441 # making a dummy file named 'D' -- because '-MD' means "put the output
13443 rm -rf conftest.dir
13445 # Copy depcomp to subdir because otherwise we won't find it if we're
13446 # using a relative directory.
13447 cp "$am_depcomp" conftest.dir
13449 # We will build objects and dependencies in a subdirectory because
13450 # it helps to detect inapplicable dependency modes. For instance
13451 # both Tru64's cc and ICC support -MD to output dependencies as a
13452 # side effect of compilation, but ICC will put the dependencies in
13453 # the current directory while Tru64 will put them in the object
13457 am_cv_CXX_dependencies_compiler_type=none
13458 if test "$am_compiler_list" = ""; then
13459 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13461 am__universal=false
13462 case " $depcc " in #(
13463 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13466 for depmode in $am_compiler_list; do
13467 # Setup a source with many dependencies, because some compilers
13468 # like to wrap large dependency lists on column 80 (with \), and
13469 # we should not choose a depcomp mode which is confused by this.
13471 # We need to recreate these files for each test, as the compiler may
13472 # overwrite some of them when testing with obscure command lines.
13473 # This happens at least with the AIX C compiler.
13475 for i in 1 2 3 4 5 6; do
13476 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13477 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13478 # Solaris 10 /bin/sh.
13479 echo '/* dummy */' > sub/conftst$i.h
13481 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13483 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13484 # mode. It turns out that the SunPro C++ compiler does not properly
13485 # handle '-M -o', and we need to detect this. Also, some Intel
13486 # versions had trouble with output in subdirs.
13487 am__obj=sub/conftest.${OBJEXT-o}
13488 am__minus_obj="-o $am__obj"
13491 # This depmode causes a compiler race in universal mode.
13492 test "$am__universal" = false || continue
13495 # After this tag, mechanisms are not by side-effect, so they'll
13496 # only be used when explicitly requested.
13497 if test "x$enable_dependency_tracking" = xyes; then
13503 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13504 # This compiler won't grok '-c -o', but also, the minuso test has
13505 # not run yet. These depmodes are late enough in the game, and
13506 # so weak that their functioning should not be impacted.
13507 am__obj=conftest.${OBJEXT-o}
13512 if depmode=$depmode \
13513 source=sub/conftest.c object=$am__obj \
13514 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13515 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13516 >/dev/null 2>conftest.err &&
13517 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13518 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13519 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13520 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13521 # icc doesn't choke on unknown options, it will just issue warnings
13522 # or remarks (even with -Werror). So we grep stderr for any message
13523 # that says an option was ignored or not supported.
13524 # When given -MP, icc 7.0 and 7.1 complain thusly:
13525 # icc: Command line warning: ignoring option '-M'; no argument required
13526 # The diagnosis changed in icc 8.0:
13527 # icc: Command line remark: option '-MP' not supported
13528 if (grep 'ignoring option' conftest.err ||
13529 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13530 am_cv_CXX_dependencies_compiler_type=$depmode
13537 rm -rf conftest.dir
13539 am_cv_CXX_dependencies_compiler_type=none
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13544 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13545 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13548 test "x$enable_dependency_tracking" != xno \
13549 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13550 am__fastdepCXX_TRUE=
13551 am__fastdepCXX_FALSE='#'
13553 am__fastdepCXX_TRUE='#'
13554 am__fastdepCXX_FALSE=
13560 func_stripname_cnf ()
13563 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13564 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13566 } # func_stripname_cnf
13568 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13569 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13570 (test "X$CXX" != "Xg++"))) ; then
13572 ac_cpp='$CXXCPP $CPPFLAGS'
13573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13577 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13578 if test -z "$CXXCPP"; then
13579 if ${ac_cv_prog_CXXCPP+:} false; then :
13580 $as_echo_n "(cached) " >&6
13582 # Double quotes because CXXCPP needs to be expanded
13583 for CXXCPP in "$CXX -E" "/lib/cpp"
13585 ac_preproc_ok=false
13586 for ac_cxx_preproc_warn_flag in '' yes
13588 # Use a header file that comes with gcc, so configuring glibc
13589 # with a fresh cross-compiler works.
13590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13591 # <limits.h> exists even on freestanding compilers.
13592 # On the NeXT, cc -E runs the code through the compiler's parser,
13593 # not just through cpp. "Syntax error" is here to catch this case.
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13597 # include <limits.h>
13599 # include <assert.h>
13603 if ac_fn_cxx_try_cpp "$LINENO"; then :
13606 # Broken: fails on valid input.
13609 rm -f conftest.err conftest.i conftest.$ac_ext
13611 # OK, works on sane cases. Now check whether nonexistent headers
13612 # can be detected and how.
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13615 #include <ac_nonexistent.h>
13617 if ac_fn_cxx_try_cpp "$LINENO"; then :
13618 # Broken: success on invalid input.
13621 # Passes both tests.
13625 rm -f conftest.err conftest.i conftest.$ac_ext
13628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13629 rm -f conftest.i conftest.err conftest.$ac_ext
13630 if $ac_preproc_ok; then :
13635 ac_cv_prog_CXXCPP=$CXXCPP
13638 CXXCPP=$ac_cv_prog_CXXCPP
13640 ac_cv_prog_CXXCPP=$CXXCPP
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13643 $as_echo "$CXXCPP" >&6; }
13644 ac_preproc_ok=false
13645 for ac_cxx_preproc_warn_flag in '' yes
13647 # Use a header file that comes with gcc, so configuring glibc
13648 # with a fresh cross-compiler works.
13649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13650 # <limits.h> exists even on freestanding compilers.
13651 # On the NeXT, cc -E runs the code through the compiler's parser,
13652 # not just through cpp. "Syntax error" is here to catch this case.
13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h. */
13656 # include <limits.h>
13658 # include <assert.h>
13662 if ac_fn_cxx_try_cpp "$LINENO"; then :
13665 # Broken: fails on valid input.
13668 rm -f conftest.err conftest.i conftest.$ac_ext
13670 # OK, works on sane cases. Now check whether nonexistent headers
13671 # can be detected and how.
13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h. */
13674 #include <ac_nonexistent.h>
13676 if ac_fn_cxx_try_cpp "$LINENO"; then :
13677 # Broken: success on invalid input.
13680 # Passes both tests.
13684 rm -f conftest.err conftest.i conftest.$ac_ext
13687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13688 rm -f conftest.i conftest.err conftest.$ac_ext
13689 if $ac_preproc_ok; then :
13692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13694 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13695 See \`config.log' for more details" "$LINENO" 5; }
13699 ac_cpp='$CPP $CPPFLAGS'
13700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13705 _lt_caught_CXX_error=yes
13709 ac_cpp='$CXXCPP $CPPFLAGS'
13710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13714 archive_cmds_need_lc_CXX=no
13715 allow_undefined_flag_CXX=
13716 always_export_symbols_CXX=no
13717 archive_expsym_cmds_CXX=
13718 compiler_needs_object_CXX=no
13719 export_dynamic_flag_spec_CXX=
13720 hardcode_direct_CXX=no
13721 hardcode_direct_absolute_CXX=no
13722 hardcode_libdir_flag_spec_CXX=
13723 hardcode_libdir_separator_CXX=
13724 hardcode_minus_L_CXX=no
13725 hardcode_shlibpath_var_CXX=unsupported
13726 hardcode_automatic_CXX=no
13727 inherit_rpath_CXX=no
13729 module_expsym_cmds_CXX=
13730 link_all_deplibs_CXX=unknown
13731 old_archive_cmds_CXX=$old_archive_cmds
13732 reload_flag_CXX=$reload_flag
13733 reload_cmds_CXX=$reload_cmds
13734 no_undefined_flag_CXX=
13735 whole_archive_flag_spec_CXX=
13736 enable_shared_with_static_runtimes_CXX=no
13738 # Source file extension for C++ test sources.
13741 # Object file extension for compiled C++ test sources.
13745 # No sense in running all these tests if we already determined that
13746 # the CXX compiler isn't working. Some variables (like enable_shared)
13747 # are currently assumed to apply to all compilers on this platform,
13748 # and will be corrupted by setting them based on a non-working compiler.
13749 if test "$_lt_caught_CXX_error" != yes; then
13750 # Code to be used in simple compile tests
13751 lt_simple_compile_test_code="int some_variable = 0;"
13753 # Code to be used in simple link tests
13754 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13756 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13763 # If no C compiler was specified, use CC.
13766 # If no C compiler flags were specified, use CFLAGS.
13767 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13769 # Allow CC to be a program name with arguments.
13773 # save warnings/boilerplate of simple test code
13774 ac_outfile=conftest.$ac_objext
13775 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13776 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13777 _lt_compiler_boilerplate=`cat conftest.err`
13780 ac_outfile=conftest.$ac_objext
13781 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13782 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13783 _lt_linker_boilerplate=`cat conftest.err`
13787 # Allow CC to be a program name with arguments.
13789 lt_save_CFLAGS=$CFLAGS
13793 lt_save_with_gnu_ld=$with_gnu_ld
13794 lt_save_path_LD=$lt_cv_path_LD
13795 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13796 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13798 $as_unset lt_cv_prog_gnu_ld
13800 if test -n "${lt_cv_path_LDCXX+set}"; then
13801 lt_cv_path_LD=$lt_cv_path_LDCXX
13803 $as_unset lt_cv_path_LD
13805 test -z "${LDCXX+set}" || LD=$LDCXX
13810 for cc_temp in $compiler""; do
13812 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13813 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13818 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13821 if test -n "$compiler"; then
13822 # We don't want -fno-exception when compiling C++ code, so set the
13823 # no_builtin_flag separately
13824 if test "$GXX" = yes; then
13825 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13827 lt_prog_compiler_no_builtin_flag_CXX=
13830 if test "$GXX" = yes; then
13831 # Set up default GNU C++ configuration
13835 # Check whether --with-gnu-ld was given.
13836 if test "${with_gnu_ld+set}" = set; then :
13837 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13843 if test "$GCC" = yes; then
13844 # Check if gcc -print-prog-name=ld gives a path.
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13846 $as_echo_n "checking for ld used by $CC... " >&6; }
13849 # gcc leaves a trailing carriage return which upsets mingw
13850 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13852 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13855 # Accept absolute paths.
13857 re_direlt='/[^/][^/]*/\.\./'
13858 # Canonicalize the pathname of ld
13859 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13860 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13861 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13863 test -z "$LD" && LD="$ac_prog"
13866 # If it fails, then pretend we aren't using GCC.
13870 # If it is relative, then search for the first ld in PATH.
13871 with_gnu_ld=unknown
13874 elif test "$with_gnu_ld" = yes; then
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13876 $as_echo_n "checking for GNU ld... " >&6; }
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13879 $as_echo_n "checking for non-GNU ld... " >&6; }
13881 if ${lt_cv_path_LD+:} false; then :
13882 $as_echo_n "(cached) " >&6
13884 if test -z "$LD"; then
13885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13886 for ac_dir in $PATH; do
13888 test -z "$ac_dir" && ac_dir=.
13889 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13890 lt_cv_path_LD="$ac_dir/$ac_prog"
13891 # Check to see if the program is GNU ld. I'd rather use --version,
13892 # but apparently some variants of GNU ld only accept -v.
13893 # Break only if it was the GNU/non-GNU ld that we prefer.
13894 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13895 *GNU* | *'with BFD'*)
13896 test "$with_gnu_ld" != no && break
13899 test "$with_gnu_ld" != yes && break
13906 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13910 LD="$lt_cv_path_LD"
13911 if test -n "$LD"; then
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13913 $as_echo "$LD" >&6; }
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13916 $as_echo "no" >&6; }
13918 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13920 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13921 if ${lt_cv_prog_gnu_ld+:} false; then :
13922 $as_echo_n "(cached) " >&6
13924 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13925 case `$LD -v 2>&1 </dev/null` in
13926 *GNU* | *'with BFD'*)
13927 lt_cv_prog_gnu_ld=yes
13930 lt_cv_prog_gnu_ld=no
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13935 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13936 with_gnu_ld=$lt_cv_prog_gnu_ld
13944 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13945 # archiving commands below assume that GNU ld is being used.
13946 if test "$with_gnu_ld" = yes; then
13947 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13948 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'
13950 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13951 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13953 # If archive_cmds runs LD, not CC, wlarc should be empty
13954 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13955 # investigate it a little bit more. (MM)
13958 # ancient GNU ld didn't support --whole-archive et. al.
13959 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13960 $GREP 'no-whole-archive' > /dev/null; then
13961 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13963 whole_archive_flag_spec_CXX=
13969 # A generic and very simple default shared library creation
13970 # command for GNU C++ for the case where it uses the native
13971 # linker, instead of GNU ld. If possible, this setting should
13972 # overridden to take advantage of the native linker features on
13973 # the platform it is being used on.
13974 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13977 # Commands to make compiler produce verbose output that lists
13978 # what "hidden" libraries, object files and flags are used when
13979 # linking a shared library.
13980 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13988 # PORTME: fill in a description of your system's C++ link characteristics
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13990 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13994 # FIXME: insert proper C++ library support
13998 if test "$host_cpu" = ia64; then
13999 # On IA64, the linker does run time linking by default, so we don't
14000 # have to do anything special.
14001 aix_use_runtimelinking=no
14002 exp_sym_flag='-Bexport'
14005 aix_use_runtimelinking=no
14007 # Test if we are trying to use run time linking or normal
14008 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14009 # need to do runtime linking.
14010 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14011 for ld_flag in $LDFLAGS; do
14014 aix_use_runtimelinking=yes
14022 exp_sym_flag='-bexport'
14023 no_entry_flag='-bnoentry'
14026 # When large executables or shared objects are built, AIX ld can
14027 # have problems creating the table of contents. If linking a library
14028 # or program results in "error TOC overflow" add -mminimal-toc to
14029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14032 archive_cmds_CXX=''
14033 hardcode_direct_CXX=yes
14034 hardcode_direct_absolute_CXX=yes
14035 hardcode_libdir_separator_CXX=':'
14036 link_all_deplibs_CXX=yes
14037 file_list_spec_CXX='${wl}-f,'
14039 if test "$GXX" = yes; then
14040 case $host_os in aix4.[012]|aix4.[012].*)
14041 # We only want to do this on AIX 4.2 and lower, the check
14042 # below for broken collect2 doesn't work under 4.3+
14043 collect2name=`${CC} -print-prog-name=collect2`
14044 if test -f "$collect2name" &&
14045 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14047 # We have reworked collect2
14050 # We have old collect2
14051 hardcode_direct_CXX=unsupported
14052 # It fails to find uninstalled libraries when the uninstalled
14053 # path is not listed in the libpath. Setting hardcode_minus_L
14054 # to unsupported forces relinking
14055 hardcode_minus_L_CXX=yes
14056 hardcode_libdir_flag_spec_CXX='-L$libdir'
14057 hardcode_libdir_separator_CXX=
14060 shared_flag='-shared'
14061 if test "$aix_use_runtimelinking" = yes; then
14062 shared_flag="$shared_flag "'${wl}-G'
14066 if test "$host_cpu" = ia64; then
14067 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14068 # chokes on -Wl,-G. The following line is correct:
14071 if test "$aix_use_runtimelinking" = yes; then
14072 shared_flag='${wl}-G'
14074 shared_flag='${wl}-bM:SRE'
14079 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14080 # It seems that -bexpall does not export symbols beginning with
14081 # underscore (_), so it is better to generate a list of symbols to
14083 always_export_symbols_CXX=yes
14084 if test "$aix_use_runtimelinking" = yes; then
14085 # Warning - without using the other runtime loading flags (-brtl),
14086 # -berok will link without error, but may produce a broken library.
14087 allow_undefined_flag_CXX='-berok'
14088 # Determine the default libpath from the value encoded in an empty
14090 if test "${lt_cv_aix_libpath+set}" = set; then
14091 aix_libpath=$lt_cv_aix_libpath
14093 if ${lt_cv_aix_libpath__CXX+:} false; then :
14094 $as_echo_n "(cached) " >&6
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14107 if ac_fn_cxx_try_link "$LINENO"; then :
14109 lt_aix_libpath_sed='
14110 /Import File Strings/,/^$/ {
14112 s/^0 *\([^ ]*\) *$/\1/
14116 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14117 # Check for a 64-bit object if we didn't find anything.
14118 if test -z "$lt_cv_aix_libpath__CXX"; then
14119 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14122 rm -f core conftest.err conftest.$ac_objext \
14123 conftest$ac_exeext conftest.$ac_ext
14124 if test -z "$lt_cv_aix_libpath__CXX"; then
14125 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14130 aix_libpath=$lt_cv_aix_libpath__CXX
14133 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14135 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14137 if test "$host_cpu" = ia64; then
14138 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14139 allow_undefined_flag_CXX="-z nodefs"
14140 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"
14142 # Determine the default libpath from the value encoded in an
14143 # empty executable.
14144 if test "${lt_cv_aix_libpath+set}" = set; then
14145 aix_libpath=$lt_cv_aix_libpath
14147 if ${lt_cv_aix_libpath__CXX+:} false; then :
14148 $as_echo_n "(cached) " >&6
14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h. */
14161 if ac_fn_cxx_try_link "$LINENO"; then :
14163 lt_aix_libpath_sed='
14164 /Import File Strings/,/^$/ {
14166 s/^0 *\([^ ]*\) *$/\1/
14170 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14171 # Check for a 64-bit object if we didn't find anything.
14172 if test -z "$lt_cv_aix_libpath__CXX"; then
14173 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14176 rm -f core conftest.err conftest.$ac_objext \
14177 conftest$ac_exeext conftest.$ac_ext
14178 if test -z "$lt_cv_aix_libpath__CXX"; then
14179 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14184 aix_libpath=$lt_cv_aix_libpath__CXX
14187 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14188 # Warning - without using the other run time loading flags,
14189 # -berok will link without error, but may produce a broken library.
14190 no_undefined_flag_CXX=' ${wl}-bernotok'
14191 allow_undefined_flag_CXX=' ${wl}-berok'
14192 if test "$with_gnu_ld" = yes; then
14193 # We only use this code for GNU lds that support --whole-archive.
14194 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14196 # Exported symbols can be pulled into shared objects from archives
14197 whole_archive_flag_spec_CXX='$convenience'
14199 archive_cmds_need_lc_CXX=yes
14200 # This is similar to how AIX traditionally builds its shared
14202 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14208 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14209 allow_undefined_flag_CXX=unsupported
14210 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14211 # support --undefined. This deserves some investigation. FIXME
14212 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14219 case $cc_basename in
14221 # FIXME: insert proper C++ library support
14227 cygwin* | mingw* | pw32* | cegcc*)
14228 case $GXX,$cc_basename in
14231 # hardcode_libdir_flag_spec is actually meaningless, as there is
14232 # no search path for DLLs.
14233 hardcode_libdir_flag_spec_CXX=' '
14234 allow_undefined_flag_CXX=unsupported
14235 always_export_symbols_CXX=yes
14236 file_list_spec_CXX='@'
14237 # Tell ltmain to make .lib files, not .a files.
14239 # Tell ltmain to make .dll files, not .so files.
14241 # FIXME: Setting linknames here is a bad hack.
14242 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14243 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14244 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14246 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14248 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14250 # The linker will not automatically build a static lib if we build a DLL.
14251 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14252 enable_shared_with_static_runtimes_CXX=yes
14254 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14255 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14256 lt_tool_outputfile="@TOOL_OUTPUT@"~
14257 case $lt_outputfile in
14260 lt_outputfile="$lt_outputfile.exe"
14261 lt_tool_outputfile="$lt_tool_outputfile.exe"
14264 func_to_tool_file "$lt_outputfile"~
14265 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14266 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14267 $RM "$lt_outputfile.manifest";
14272 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14273 # as there is no search path for DLLs.
14274 hardcode_libdir_flag_spec_CXX='-L$libdir'
14275 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14276 allow_undefined_flag_CXX=unsupported
14277 always_export_symbols_CXX=no
14278 enable_shared_with_static_runtimes_CXX=yes
14280 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14281 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'
14282 # If the export-symbols file already is a .def file (1st line
14283 # is EXPORTS), use it as is; otherwise, prepend...
14284 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14285 cp $export_symbols $output_objdir/$soname.def;
14287 echo EXPORTS > $output_objdir/$soname.def;
14288 cat $export_symbols >> $output_objdir/$soname.def;
14290 $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'
14297 darwin* | rhapsody*)
14300 archive_cmds_need_lc_CXX=no
14301 hardcode_direct_CXX=no
14302 hardcode_automatic_CXX=yes
14303 hardcode_shlibpath_var_CXX=unsupported
14304 if test "$lt_cv_ld_force_load" = "yes"; then
14305 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\"`'
14308 whole_archive_flag_spec_CXX=''
14310 link_all_deplibs_CXX=yes
14311 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14312 case $cc_basename in
14313 ifort*) _lt_dar_can_shared=yes ;;
14314 *) _lt_dar_can_shared=$GCC ;;
14316 if test "$_lt_dar_can_shared" = "yes"; then
14317 output_verbose_link_cmd=func_echo_all
14318 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}"
14319 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14320 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}"
14321 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}"
14322 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14323 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}"
14324 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}"
14334 case $cc_basename in
14336 # FIXME: insert proper C++ library support
14340 # Green Hills C++ Compiler
14341 # FIXME: insert proper C++ library support
14345 # FIXME: insert proper C++ library support
14352 # C++ shared libraries reported to be fairly broken before
14358 archive_cmds_need_lc_CXX=no
14361 freebsd* | dragonfly*)
14362 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14368 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14369 link_all_deplibs_CXX=yes
14373 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14374 hardcode_libdir_separator_CXX=:
14375 export_dynamic_flag_spec_CXX='${wl}-E'
14376 hardcode_direct_CXX=yes
14377 hardcode_minus_L_CXX=yes # Not in the search PATH,
14378 # but as the default
14379 # location of the library.
14381 case $cc_basename in
14383 # FIXME: insert proper C++ library support
14387 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14388 # Commands to make compiler produce verbose output that lists
14389 # what "hidden" libraries, object files and flags are used when
14390 # linking a shared library.
14392 # There doesn't appear to be a way to prevent this compiler from
14393 # explicitly linking system object files so we need to strip them
14394 # from the output so that they don't get included in the library
14396 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"'
14399 if test "$GXX" = yes; then
14400 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14402 # FIXME: insert proper C++ library support
14410 if test $with_gnu_ld = no; then
14411 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14412 hardcode_libdir_separator_CXX=:
14418 export_dynamic_flag_spec_CXX='${wl}-E'
14424 hardcode_direct_CXX=no
14425 hardcode_shlibpath_var_CXX=no
14428 hardcode_direct_CXX=yes
14429 hardcode_direct_absolute_CXX=yes
14430 hardcode_minus_L_CXX=yes # Not in the search PATH,
14431 # but as the default
14432 # location of the library.
14436 case $cc_basename in
14438 # FIXME: insert proper C++ library support
14444 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14447 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14450 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14453 # Commands to make compiler produce verbose output that lists
14454 # what "hidden" libraries, object files and flags are used when
14455 # linking a shared library.
14457 # There doesn't appear to be a way to prevent this compiler from
14458 # explicitly linking system object files so we need to strip them
14459 # from the output so that they don't get included in the library
14461 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"'
14464 if test "$GXX" = yes; then
14465 if test $with_gnu_ld = no; then
14468 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14471 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14474 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'
14479 # FIXME: insert proper C++ library support
14487 hardcode_direct_CXX=no
14488 hardcode_shlibpath_var_CXX=no
14489 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14490 export_dynamic_flag_spec_CXX='${wl}-E'
14491 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14492 # Instead, shared libraries are loaded at an image base (0x10000000 by
14493 # default) and relocated if they conflict, which is a slow very memory
14494 # consuming and fragmenting process. To avoid this, we pick a random,
14495 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14496 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14497 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'
14498 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'
14501 case $cc_basename in
14504 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'
14506 # Archives containing C++ object files must be created using
14507 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14508 # necessary to make sure instantiated templates are included
14510 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14513 if test "$GXX" = yes; then
14514 if test "$with_gnu_ld" = no; then
14515 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'
14517 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'
14520 link_all_deplibs_CXX=yes
14523 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14524 hardcode_libdir_separator_CXX=:
14525 inherit_rpath_CXX=yes
14528 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14529 case $cc_basename in
14531 # Kuck and Associates, Inc. (KAI) C++ Compiler
14533 # KCC will only create a shared library if the output file
14534 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14535 # to its proper name (with version) after linking.
14536 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'
14537 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'
14538 # Commands to make compiler produce verbose output that lists
14539 # what "hidden" libraries, object files and flags are used when
14540 # linking a shared library.
14542 # There doesn't appear to be a way to prevent this compiler from
14543 # explicitly linking system object files so we need to strip them
14544 # from the output so that they don't get included in the library
14546 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"'
14548 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14549 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14551 # Archives containing C++ object files must be created using
14552 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14553 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14558 # version 8.0 and above of icpc choke on multiply defined symbols
14559 # if we add $predep_objects and $postdep_objects, however 7.1 and
14560 # earlier do not add the objects themselves.
14561 case `$CC -V 2>&1` in
14563 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14564 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'
14566 *) # Version 8.0 or newer
14569 ia64*) tmp_idyn=' -i_dynamic';;
14571 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14572 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'
14575 archive_cmds_need_lc_CXX=no
14576 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14577 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14578 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14581 # Portland Group C++ compiler
14583 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14584 prelink_cmds_CXX='tpldir=Template.dir~
14586 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14587 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14588 old_archive_cmds_CXX='tpldir=Template.dir~
14590 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14591 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14593 archive_cmds_CXX='tpldir=Template.dir~
14595 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14596 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14597 archive_expsym_cmds_CXX='tpldir=Template.dir~
14599 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14600 $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'
14602 *) # Version 6 and above use weak symbols
14603 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14604 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'
14608 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14609 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14610 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'
14614 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14615 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'
14617 runpath_var=LD_RUN_PATH
14618 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14619 hardcode_libdir_separator_CXX=:
14621 # Commands to make compiler produce verbose output that lists
14622 # what "hidden" libraries, object files and flags are used when
14623 # linking a shared library.
14625 # There doesn't appear to be a way to prevent this compiler from
14626 # explicitly linking system object files so we need to strip them
14627 # from the output so that they don't get included in the library
14629 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'
14631 xl* | mpixl* | bgxl*)
14632 # IBM XL 8.0 on PPC, with GNU ld
14633 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14634 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14635 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14636 if test "x$supports_anon_versioning" = xyes; then
14637 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14638 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14639 echo "local: *; };" >> $output_objdir/$libname.ver~
14640 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14644 case `$CC -V 2>&1 | sed 5q` in
14647 no_undefined_flag_CXX=' -zdefs'
14648 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14649 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'
14650 hardcode_libdir_flag_spec_CXX='-R$libdir'
14651 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'
14652 compiler_needs_object_CXX=yes
14654 # Not sure whether something based on
14655 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14657 output_verbose_link_cmd='func_echo_all'
14659 # Archives containing C++ object files must be created using
14660 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14661 # necessary to make sure instantiated templates are included
14663 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14671 # FIXME: insert proper C++ library support
14676 # FIXME: insert proper C++ library support
14681 case $cc_basename in
14683 # FIXME: insert proper C++ library support
14687 # FIXME: insert proper C++ library support
14694 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14695 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14697 hardcode_libdir_flag_spec_CXX='-R$libdir'
14698 hardcode_direct_CXX=yes
14699 hardcode_shlibpath_var_CXX=no
14701 # Workaround some broken pre-1.5 toolchains
14702 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14710 # C++ shared libraries are fairly broken
14715 if test -f /usr/libexec/ld.so; then
14716 hardcode_direct_CXX=yes
14717 hardcode_shlibpath_var_CXX=no
14718 hardcode_direct_absolute_CXX=yes
14719 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14720 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14721 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14722 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14723 export_dynamic_flag_spec_CXX='${wl}-E'
14724 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14726 output_verbose_link_cmd=func_echo_all
14732 osf3* | osf4* | osf5*)
14733 case $cc_basename in
14735 # Kuck and Associates, Inc. (KAI) C++ Compiler
14737 # KCC will only create a shared library if the output file
14738 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14739 # to its proper name (with version) after linking.
14740 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'
14742 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14743 hardcode_libdir_separator_CXX=:
14745 # Archives containing C++ object files must be created using
14746 # the KAI C++ compiler.
14748 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14749 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14753 # Rational C++ 2.4.1
14754 # FIXME: insert proper C++ library support
14760 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14761 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'
14762 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14765 allow_undefined_flag_CXX=' -expect_unresolved \*'
14766 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'
14767 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14768 echo "-hidden">> $lib.exp~
14769 $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~
14771 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14775 hardcode_libdir_separator_CXX=:
14777 # Commands to make compiler produce verbose output that lists
14778 # what "hidden" libraries, object files and flags are used when
14779 # linking a shared library.
14781 # There doesn't appear to be a way to prevent this compiler from
14782 # explicitly linking system object files so we need to strip them
14783 # from the output so that they don't get included in the library
14785 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"'
14788 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14789 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14792 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'
14795 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'
14799 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14800 hardcode_libdir_separator_CXX=:
14802 # Commands to make compiler produce verbose output that lists
14803 # what "hidden" libraries, object files and flags are used when
14804 # linking a shared library.
14805 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14808 # FIXME: insert proper C++ library support
14816 # FIXME: insert proper C++ library support
14821 case $cc_basename in
14824 # FIXME: insert proper C++ library support
14829 # FIXME: insert proper C++ library support
14833 # FIXME: insert proper C++ library support
14840 case $cc_basename in
14842 # Sun C++ 4.2, 5.x and Centerline C++
14843 archive_cmds_need_lc_CXX=yes
14844 no_undefined_flag_CXX=' -zdefs'
14845 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14846 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14847 $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'
14849 hardcode_libdir_flag_spec_CXX='-R$libdir'
14850 hardcode_shlibpath_var_CXX=no
14852 solaris2.[0-5] | solaris2.[0-5].*) ;;
14854 # The compiler driver will combine and reorder linker options,
14855 # but understands `-z linker_flag'.
14856 # Supported since Solaris 2.6 (maybe 2.5.1?)
14857 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14860 link_all_deplibs_CXX=yes
14862 output_verbose_link_cmd='func_echo_all'
14864 # Archives containing C++ object files must be created using
14865 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14866 # necessary to make sure instantiated templates are included
14868 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14871 # Green Hills C++ Compiler
14872 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14874 # The C++ compiler must be used to create the archive.
14875 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14878 # GNU C++ compiler with Solaris linker
14879 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14880 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14881 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14882 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14883 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14884 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14886 # Commands to make compiler produce verbose output that lists
14887 # what "hidden" libraries, object files and flags are used when
14888 # linking a shared library.
14889 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14891 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14893 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14894 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14895 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14897 # Commands to make compiler produce verbose output that lists
14898 # what "hidden" libraries, object files and flags are used when
14899 # linking a shared library.
14900 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14903 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14905 solaris2.[0-5] | solaris2.[0-5].*) ;;
14907 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14915 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14916 no_undefined_flag_CXX='${wl}-z,text'
14917 archive_cmds_need_lc_CXX=no
14918 hardcode_shlibpath_var_CXX=no
14919 runpath_var='LD_RUN_PATH'
14921 case $cc_basename in
14923 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14924 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14927 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14928 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14933 sysv5* | sco3.2v5* | sco5v6*)
14934 # Note: We can NOT use -z defs as we might desire, because we do not
14935 # link with -lc, and that would cause any symbols used from libc to
14936 # always be unresolved, which means just about no library would
14937 # ever link correctly. If we're not using GNU ld we use -z text
14938 # though, which does catch some bad symbols but isn't as heavy-handed
14940 no_undefined_flag_CXX='${wl}-z,text'
14941 allow_undefined_flag_CXX='${wl}-z,nodefs'
14942 archive_cmds_need_lc_CXX=no
14943 hardcode_shlibpath_var_CXX=no
14944 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14945 hardcode_libdir_separator_CXX=':'
14946 link_all_deplibs_CXX=yes
14947 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14948 runpath_var='LD_RUN_PATH'
14950 case $cc_basename in
14952 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14953 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14954 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14955 '"$old_archive_cmds_CXX"
14956 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14957 '"$reload_cmds_CXX"
14960 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14961 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14967 case $cc_basename in
14969 # NonStop-UX NCC 3.20
14970 # FIXME: insert proper C++ library support
14974 # FIXME: insert proper C++ library support
14981 # FIXME: insert proper C++ library support
14986 # FIXME: insert proper C++ library support
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14992 $as_echo "$ld_shlibs_CXX" >&6; }
14993 test "$ld_shlibs_CXX" = no && can_build_shared=no
14999 ## There is no encapsulation within the following macros, do not change
15000 ## the running order or otherwise move them around unless you know exactly
15001 ## what you are doing...
15002 # Dependencies to place before and after the object being linked:
15003 predep_objects_CXX=
15004 postdep_objects_CXX=
15007 compiler_lib_search_path_CXX=
15009 cat > conftest.$ac_ext <<_LT_EOF
15013 Foo (void) { a = 0; }
15020 _lt_libdeps_save_CFLAGS=$CFLAGS
15021 case "$CC $CFLAGS " in #(
15022 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15023 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15024 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15028 (eval $ac_compile) 2>&5
15030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15031 test $ac_status = 0; }; then
15032 # Parse the compiler output and extract the necessary
15033 # objects, libraries and library flags.
15035 # Sentinel used to keep track of whether or not we are before
15036 # the conftest object file.
15037 pre_test_object_deps_done=no
15039 for p in `eval "$output_verbose_link_cmd"`; do
15040 case ${prev}${p} in
15043 # Some compilers place space between "-{L,R}" and the path.
15044 # Remove the space.
15045 if test $p = "-L" ||
15046 test $p = "-R"; then
15051 # Expand the sysroot to ease extracting the directories later.
15052 if test -z "$prev"; then
15054 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15055 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15056 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15060 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15062 if test "$pre_test_object_deps_done" = no; then
15065 # Internal compiler library paths should come after those
15066 # provided the user. The postdeps already come after the
15067 # user supplied libs so there is no need to process them.
15068 if test -z "$compiler_lib_search_path_CXX"; then
15069 compiler_lib_search_path_CXX="${prev}${p}"
15071 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15074 # The "-l" case would never come before the object being
15075 # linked, so don't bother handling this case.
15078 if test -z "$postdeps_CXX"; then
15079 postdeps_CXX="${prev}${p}"
15081 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15087 *.lto.$objext) ;; # Ignore GCC LTO objects
15089 # This assumes that the test object file only shows up
15090 # once in the compiler output.
15091 if test "$p" = "conftest.$objext"; then
15092 pre_test_object_deps_done=yes
15096 if test "$pre_test_object_deps_done" = no; then
15097 if test -z "$predep_objects_CXX"; then
15098 predep_objects_CXX="$p"
15100 predep_objects_CXX="$predep_objects_CXX $p"
15103 if test -z "$postdep_objects_CXX"; then
15104 postdep_objects_CXX="$p"
15106 postdep_objects_CXX="$postdep_objects_CXX $p"
15111 *) ;; # Ignore the rest.
15119 echo "libtool.m4: error: problem compiling CXX test program"
15122 $RM -f confest.$objext
15123 CFLAGS=$_lt_libdeps_save_CFLAGS
15125 # PORTME: override above test on systems where it is broken
15128 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15129 # hack all around it, let's just trust "g++" to DTRT.
15130 predep_objects_CXX=
15131 postdep_objects_CXX=
15136 case `$CC -V 2>&1 | sed 5q` in
15140 # The more standards-conforming stlport4 library is
15141 # incompatible with the Cstd library. Avoid specifying
15142 # it if it's in CXXFLAGS. Ignore libCrun as
15143 # -library=stlport4 depends on it.
15144 case " $CXX $CXXFLAGS " in
15145 *" -library=stlport4 "*)
15146 solaris_use_stlport4=yes
15150 if test "$solaris_use_stlport4" != yes; then
15151 postdeps_CXX='-library=Cstd -library=Crun'
15158 case $cc_basename in
15160 # The more standards-conforming stlport4 library is
15161 # incompatible with the Cstd library. Avoid specifying
15162 # it if it's in CXXFLAGS. Ignore libCrun as
15163 # -library=stlport4 depends on it.
15164 case " $CXX $CXXFLAGS " in
15165 *" -library=stlport4 "*)
15166 solaris_use_stlport4=yes
15170 # Adding this requires a known-good setup of shared libraries for
15171 # Sun compiler versions before 5.6, else PIC objects from an old
15172 # archive will be linked into the output, leading to subtle bugs.
15173 if test "$solaris_use_stlport4" != yes; then
15174 postdeps_CXX='-library=Cstd -library=Crun'
15182 case " $postdeps_CXX " in
15183 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15185 compiler_lib_search_dirs_CXX=
15186 if test -n "${compiler_lib_search_path_CXX}"; then
15187 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15220 lt_prog_compiler_wl_CXX=
15221 lt_prog_compiler_pic_CXX=
15222 lt_prog_compiler_static_CXX=
15225 # C++ specific cases for pic, static, wl, etc.
15226 if test "$GXX" = yes; then
15227 lt_prog_compiler_wl_CXX='-Wl,'
15228 lt_prog_compiler_static_CXX='-static'
15232 # All AIX code is PIC.
15233 if test "$host_cpu" = ia64; then
15234 # AIX 5 now supports IA64 processor
15235 lt_prog_compiler_static_CXX='-Bstatic'
15242 # see comment about AmigaOS4 .so support
15243 lt_prog_compiler_pic_CXX='-fPIC'
15246 # FIXME: we need at least 68020 code to build shared libraries, but
15247 # adding the `-m68020' flag to GCC prevents building anything better,
15249 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15254 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15255 # PIC is the default for these OSes.
15257 mingw* | cygwin* | os2* | pw32* | cegcc*)
15258 # This hack is so that the source file can tell whether it is being
15259 # built for inclusion in a dll (and should export symbols for example).
15260 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15261 # (--disable-auto-import) libraries
15262 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15264 darwin* | rhapsody*)
15265 # PIC is the default on this platform
15266 # Common symbols not allowed in MH_DYLIB files
15267 lt_prog_compiler_pic_CXX='-fno-common'
15270 # DJGPP does not support shared libraries at all
15271 lt_prog_compiler_pic_CXX=
15274 # PIC is the default for Haiku.
15275 # The "-static" flag exists, but is broken.
15276 lt_prog_compiler_static_CXX=
15279 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15280 # Instead, we relocate shared libraries at runtime.
15283 if test -d /usr/nec; then
15284 lt_prog_compiler_pic_CXX=-Kconform_pic
15288 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15289 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15290 # sets the default TLS model and affects inlining.
15295 lt_prog_compiler_pic_CXX='-fPIC'
15300 # QNX uses GNU C++, but need to define -shared option too, otherwise
15301 # it will coredump.
15302 lt_prog_compiler_pic_CXX='-fPIC -shared'
15305 lt_prog_compiler_pic_CXX='-fPIC'
15311 # All AIX code is PIC.
15312 if test "$host_cpu" = ia64; then
15313 # AIX 5 now supports IA64 processor
15314 lt_prog_compiler_static_CXX='-Bstatic'
15316 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15320 case $cc_basename in
15322 # Green Hills C++ Compiler
15323 # _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"
15327 mingw* | cygwin* | os2* | pw32* | cegcc*)
15328 # This hack is so that the source file can tell whether it is being
15329 # built for inclusion in a dll (and should export symbols for example).
15330 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15333 case $cc_basename in
15335 lt_prog_compiler_pic_CXX='-KPIC'
15338 # Green Hills C++ Compiler
15339 lt_prog_compiler_pic_CXX='-pic'
15345 freebsd* | dragonfly*)
15346 # FreeBSD uses GNU C++
15348 hpux9* | hpux10* | hpux11*)
15349 case $cc_basename in
15351 lt_prog_compiler_wl_CXX='-Wl,'
15352 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15353 if test "$host_cpu" != ia64; then
15354 lt_prog_compiler_pic_CXX='+Z'
15358 lt_prog_compiler_wl_CXX='-Wl,'
15359 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15365 lt_prog_compiler_pic_CXX='+Z'
15374 # This is c89, which is MS Visual C++ (no shared libs)
15375 # Anyone wants to do a port?
15377 irix5* | irix6* | nonstopux*)
15378 case $cc_basename in
15380 lt_prog_compiler_wl_CXX='-Wl,'
15381 lt_prog_compiler_static_CXX='-non_shared'
15382 # CC pic flag -KPIC is the default.
15388 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15389 case $cc_basename in
15392 lt_prog_compiler_wl_CXX='--backend -Wl,'
15393 lt_prog_compiler_pic_CXX='-fPIC'
15396 # old Intel C++ for x86_64 which still supported -KPIC.
15397 lt_prog_compiler_wl_CXX='-Wl,'
15398 lt_prog_compiler_pic_CXX='-KPIC'
15399 lt_prog_compiler_static_CXX='-static'
15402 # Intel C++, used to be incompatible with GCC.
15403 # ICC 10 doesn't accept -KPIC any more.
15404 lt_prog_compiler_wl_CXX='-Wl,'
15405 lt_prog_compiler_pic_CXX='-fPIC'
15406 lt_prog_compiler_static_CXX='-static'
15409 # Portland Group C++ compiler
15410 lt_prog_compiler_wl_CXX='-Wl,'
15411 lt_prog_compiler_pic_CXX='-fpic'
15412 lt_prog_compiler_static_CXX='-Bstatic'
15416 # Make sure the PIC flag is empty. It appears that all Alpha
15417 # Linux and Compaq Tru64 Unix objects are PIC.
15418 lt_prog_compiler_pic_CXX=
15419 lt_prog_compiler_static_CXX='-non_shared'
15421 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15422 # IBM XL 8.0, 9.0 on PPC and BlueGene
15423 lt_prog_compiler_wl_CXX='-Wl,'
15424 lt_prog_compiler_pic_CXX='-qpic'
15425 lt_prog_compiler_static_CXX='-qstaticlink'
15428 case `$CC -V 2>&1 | sed 5q` in
15431 lt_prog_compiler_pic_CXX='-KPIC'
15432 lt_prog_compiler_static_CXX='-Bstatic'
15433 lt_prog_compiler_wl_CXX='-Qoption ld '
15444 case $cc_basename in
15446 lt_prog_compiler_pic_CXX='-W c,exportall'
15452 netbsd* | netbsdelf*-gnu)
15455 # QNX uses GNU C++, but need to define -shared option too, otherwise
15456 # it will coredump.
15457 lt_prog_compiler_pic_CXX='-fPIC -shared'
15459 osf3* | osf4* | osf5*)
15460 case $cc_basename in
15462 lt_prog_compiler_wl_CXX='--backend -Wl,'
15465 # Rational C++ 2.4.1
15466 lt_prog_compiler_pic_CXX='-pic'
15469 # Digital/Compaq C++
15470 lt_prog_compiler_wl_CXX='-Wl,'
15471 # Make sure the PIC flag is empty. It appears that all Alpha
15472 # Linux and Compaq Tru64 Unix objects are PIC.
15473 lt_prog_compiler_pic_CXX=
15474 lt_prog_compiler_static_CXX='-non_shared'
15483 case $cc_basename in
15485 # Sun C++ 4.2, 5.x and Centerline C++
15486 lt_prog_compiler_pic_CXX='-KPIC'
15487 lt_prog_compiler_static_CXX='-Bstatic'
15488 lt_prog_compiler_wl_CXX='-Qoption ld '
15491 # Green Hills C++ Compiler
15492 lt_prog_compiler_pic_CXX='-PIC'
15499 case $cc_basename in
15502 lt_prog_compiler_pic_CXX='-pic'
15503 lt_prog_compiler_static_CXX='-Bstatic'
15507 lt_prog_compiler_pic_CXX='-pic'
15513 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15514 case $cc_basename in
15516 lt_prog_compiler_wl_CXX='-Wl,'
15517 lt_prog_compiler_pic_CXX='-KPIC'
15518 lt_prog_compiler_static_CXX='-Bstatic'
15523 case $cc_basename in
15525 # NonStop-UX NCC 3.20
15526 lt_prog_compiler_pic_CXX='-KPIC'
15535 lt_prog_compiler_can_build_shared_CXX=no
15541 # For platforms which do not support PIC, -DPIC is meaningless:
15543 lt_prog_compiler_pic_CXX=
15546 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15551 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15552 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15553 $as_echo_n "(cached) " >&6
15555 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15558 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15559 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15562 # Check to make sure the PIC flag actually works.
15564 if test -n "$lt_prog_compiler_pic_CXX"; then
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15566 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15567 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15568 $as_echo_n "(cached) " >&6
15570 lt_cv_prog_compiler_pic_works_CXX=no
15571 ac_outfile=conftest.$ac_objext
15572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15573 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15574 # Insert the option either (1) after the last *FLAGS variable, or
15575 # (2) before a word containing "conftest.", or (3) at the end.
15576 # Note that $ac_compile itself does not contain backslashes and begins
15577 # with a dollar sign (not a hyphen), so the echo should work correctly.
15578 # The option is referenced via a variable to avoid confusing sed.
15579 lt_compile=`echo "$ac_compile" | $SED \
15580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15582 -e 's:$: $lt_compiler_flag:'`
15583 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15584 (eval "$lt_compile" 2>conftest.err)
15586 cat conftest.err >&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 if (exit $ac_status) && test -s "$ac_outfile"; then
15589 # The compiler can only warn and ignore the option if not recognized
15590 # So say no if there are warnings other than the usual output.
15591 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15593 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15594 lt_cv_prog_compiler_pic_works_CXX=yes
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15601 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15603 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15604 case $lt_prog_compiler_pic_CXX in
15606 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15609 lt_prog_compiler_pic_CXX=
15610 lt_prog_compiler_can_build_shared_CXX=no
15620 # Check to make sure the static flag actually works.
15622 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15624 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15625 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15626 $as_echo_n "(cached) " >&6
15628 lt_cv_prog_compiler_static_works_CXX=no
15629 save_LDFLAGS="$LDFLAGS"
15630 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15631 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15633 # The linker can only warn and ignore the option if not recognized
15634 # So say no if there are warnings
15635 if test -s conftest.err; then
15636 # Append any errors to the config.log.
15637 cat conftest.err 1>&5
15638 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15640 if diff conftest.exp conftest.er2 >/dev/null; then
15641 lt_cv_prog_compiler_static_works_CXX=yes
15644 lt_cv_prog_compiler_static_works_CXX=yes
15648 LDFLAGS="$save_LDFLAGS"
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15652 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15654 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15657 lt_prog_compiler_static_CXX=
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15664 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15665 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15666 $as_echo_n "(cached) " >&6
15668 lt_cv_prog_compiler_c_o_CXX=no
15669 $RM -r conftest 2>/dev/null
15673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15675 lt_compiler_flag="-o out/conftest2.$ac_objext"
15676 # Insert the option either (1) after the last *FLAGS variable, or
15677 # (2) before a word containing "conftest.", or (3) at the end.
15678 # Note that $ac_compile itself does not contain backslashes and begins
15679 # with a dollar sign (not a hyphen), so the echo should work correctly.
15680 lt_compile=`echo "$ac_compile" | $SED \
15681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15683 -e 's:$: $lt_compiler_flag:'`
15684 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15685 (eval "$lt_compile" 2>out/conftest.err)
15687 cat out/conftest.err >&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15691 # The compiler can only warn and ignore the option if not recognized
15692 # So say no if there are warnings
15693 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15694 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15695 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15696 lt_cv_prog_compiler_c_o_CXX=yes
15701 # SGI C++ compiler will create directory out/ii_files/ for
15702 # template instantiation
15703 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15704 $RM out/* && rmdir out
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15711 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15716 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15717 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15718 $as_echo_n "(cached) " >&6
15720 lt_cv_prog_compiler_c_o_CXX=no
15721 $RM -r conftest 2>/dev/null
15725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15727 lt_compiler_flag="-o out/conftest2.$ac_objext"
15728 # Insert the option either (1) after the last *FLAGS variable, or
15729 # (2) before a word containing "conftest.", or (3) at the end.
15730 # Note that $ac_compile itself does not contain backslashes and begins
15731 # with a dollar sign (not a hyphen), so the echo should work correctly.
15732 lt_compile=`echo "$ac_compile" | $SED \
15733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15735 -e 's:$: $lt_compiler_flag:'`
15736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15737 (eval "$lt_compile" 2>out/conftest.err)
15739 cat out/conftest.err >&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15743 # The compiler can only warn and ignore the option if not recognized
15744 # So say no if there are warnings
15745 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15748 lt_cv_prog_compiler_c_o_CXX=yes
15753 # SGI C++ compiler will create directory out/ii_files/ for
15754 # template instantiation
15755 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15756 $RM out/* && rmdir out
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15763 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15768 hard_links="nottested"
15769 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15770 # do not overwrite the value of need_locks provided by the user
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15772 $as_echo_n "checking if we can lock with hard links... " >&6; }
15775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15777 ln conftest.a conftest.b 2>&5 || hard_links=no
15778 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15780 $as_echo "$hard_links" >&6; }
15781 if test "$hard_links" = no; then
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15783 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15793 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15795 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15796 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15799 # If we're using GNU nm, then we don't want the "-C" option.
15800 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15801 # Also, AIX nm treats weak defined symbols like other global defined
15802 # symbols, whereas GNU nm marks them as "W".
15803 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15804 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15806 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15810 export_symbols_cmds_CXX="$ltdll_cmds"
15812 cygwin* | mingw* | cegcc*)
15813 case $cc_basename in
15815 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15818 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'
15819 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15823 linux* | k*bsd*-gnu | gnu*)
15824 link_all_deplibs_CXX=no
15827 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15832 $as_echo "$ld_shlibs_CXX" >&6; }
15833 test "$ld_shlibs_CXX" = no && can_build_shared=no
15835 with_gnu_ld_CXX=$with_gnu_ld
15843 # Do we need to explicitly link libc?
15845 case "x$archive_cmds_need_lc_CXX" in
15847 # Assume -lc should be added
15848 archive_cmds_need_lc_CXX=yes
15850 if test "$enable_shared" = yes && test "$GCC" = yes; then
15851 case $archive_cmds_CXX in
15853 # FIXME: we may have to deal with multi-command sequences.
15856 # Test whether the compiler implicitly links with -lc since on some
15857 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15858 # to ld, don't add -lc before -lgcc.
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15860 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15861 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15862 $as_echo_n "(cached) " >&6
15865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15868 (eval $ac_compile) 2>&5
15870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15871 test $ac_status = 0; } 2>conftest.err; then
15874 libobjs=conftest.$ac_objext
15876 wl=$lt_prog_compiler_wl_CXX
15877 pic_flag=$lt_prog_compiler_pic_CXX
15883 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15884 allow_undefined_flag_CXX=
15885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15886 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15889 test $ac_status = 0; }
15891 lt_cv_archive_cmds_need_lc_CXX=no
15893 lt_cv_archive_cmds_need_lc_CXX=yes
15895 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15897 cat conftest.err 1>&5
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15903 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15904 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15973 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15975 library_names_spec=
15976 libname_spec='lib$name'
15980 postuninstall_cmds=
15984 shlibpath_overrides_runpath=unknown
15986 dynamic_linker="$host_os ld.so"
15987 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15988 need_lib_prefix=unknown
15989 hardcode_into_libs=no
15991 # when you set need_version to no, make sure it does not cause -set_version
15992 # flags to be left without arguments
15993 need_version=unknown
15997 version_type=linux # correct to gnu/linux during the next big refactor
15998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15999 shlibpath_var=LIBPATH
16001 # AIX 3 has no versioning support, so we append a major version to the name.
16002 soname_spec='${libname}${release}${shared_ext}$major'
16006 version_type=linux # correct to gnu/linux during the next big refactor
16009 hardcode_into_libs=yes
16010 if test "$host_cpu" = ia64; then
16011 # AIX 5 supports IA64
16012 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16013 shlibpath_var=LD_LIBRARY_PATH
16015 # With GCC up to 2.95.x, collect2 would create an import file
16016 # for dependence libraries. The import file would start with
16017 # the line `#! .'. This would cause the generated library to
16018 # depend on `.', always an invalid library. This was fixed in
16019 # development snapshots of GCC prior to 3.0.
16021 aix4 | aix4.[01] | aix4.[01].*)
16022 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16024 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16027 can_build_shared=no
16031 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16032 # soname into executable. Probably we can add versioning support to
16033 # collect2, so additional links can be useful in future.
16034 if test "$aix_use_runtimelinking" = yes; then
16035 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16036 # instead of lib<name>.a to let people know that these are not
16037 # typical AIX shared libraries.
16038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040 # We preserve .a as extension for shared libraries through AIX4.2
16041 # and later when we are not doing run time linking.
16042 library_names_spec='${libname}${release}.a $libname.a'
16043 soname_spec='${libname}${release}${shared_ext}$major'
16045 shlibpath_var=LIBPATH
16052 # Since July 2007 AmigaOS4 officially supports .so libraries.
16053 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16057 library_names_spec='$libname.ixlibrary $libname.a'
16058 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16059 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
16065 library_names_spec='${libname}${shared_ext}'
16066 dynamic_linker="$host_os ld.so"
16067 shlibpath_var=LIBRARY_PATH
16071 version_type=linux # correct to gnu/linux during the next big refactor
16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16074 soname_spec='${libname}${release}${shared_ext}$major'
16075 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16076 shlibpath_var=LD_LIBRARY_PATH
16077 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16078 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16079 # the default ld.so.conf also contains /usr/contrib/lib and
16080 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16081 # libtool to hard-code these into programs
16084 cygwin* | mingw* | pw32* | cegcc*)
16085 version_type=windows
16090 case $GCC,$cc_basename in
16093 library_names_spec='$libname.dll.a'
16094 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16095 postinstall_cmds='base_file=`basename \${file}`~
16096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16097 dldir=$destdir/`dirname \$dlpath`~
16098 test -d \$dldir || mkdir -p \$dldir~
16099 $install_prog $dir/$dlname \$dldir/$dlname~
16100 chmod a+x \$dldir/$dlname~
16101 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16102 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16104 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16105 dlpath=$dir/\$dldll~
16107 shlibpath_overrides_runpath=yes
16111 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16112 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16116 # MinGW DLLs use traditional 'lib' prefix
16117 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16120 # pw32 DLLs use 'pw' prefix rather than 'lib'
16121 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16124 dynamic_linker='Win32 ld.exe'
16129 libname_spec='$name'
16130 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16131 library_names_spec='${libname}.dll.lib'
16135 sys_lib_search_path_spec=
16138 for lt_path in $LIB
16141 # Let DOS variable expansion print the short 8.3 style file name.
16142 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16143 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16146 # Convert to MSYS style.
16147 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16150 # Convert to unix form, then to dos form, then back to unix form
16151 # but this time dos style (no spaces!) so that the unix form looks
16152 # like /cygdrive/c/PROGRA~1:/cygdr...
16153 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16154 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16155 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16158 sys_lib_search_path_spec="$LIB"
16159 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16160 # It is most probably a Windows format PATH.
16161 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16163 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16165 # FIXME: find the short name or the path components, as spaces are
16166 # common. (e.g. "Program Files" -> "PROGRA~1")
16170 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16171 postinstall_cmds='base_file=`basename \${file}`~
16172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16173 dldir=$destdir/`dirname \$dlpath`~
16174 test -d \$dldir || mkdir -p \$dldir~
16175 $install_prog $dir/$dlname \$dldir/$dlname'
16176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16177 dlpath=$dir/\$dldll~
16179 shlibpath_overrides_runpath=yes
16180 dynamic_linker='Win32 link.exe'
16184 # Assume MSVC wrapper
16185 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16186 dynamic_linker='Win32 ld.exe'
16189 # FIXME: first we should search . and the directory the executable is in
16193 darwin* | rhapsody*)
16194 dynamic_linker="$host_os dyld"
16195 version_type=darwin
16198 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16199 soname_spec='${libname}${release}${major}$shared_ext'
16200 shlibpath_overrides_runpath=yes
16201 shlibpath_var=DYLD_LIBRARY_PATH
16202 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16208 version_type=linux # correct to gnu/linux during the next big refactor
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16212 soname_spec='${libname}${release}${shared_ext}$major'
16213 shlibpath_var=LD_LIBRARY_PATH
16216 freebsd* | dragonfly*)
16217 # DragonFly does not have aout. When/if they implement a new
16218 # versioning mechanism, adjust this.
16219 if test -x /usr/bin/objformat; then
16220 objformat=`/usr/bin/objformat`
16223 freebsd[23].*) objformat=aout ;;
16224 *) objformat=elf ;;
16227 version_type=freebsd-$objformat
16228 case $version_type in
16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16239 shlibpath_var=LD_LIBRARY_PATH
16242 shlibpath_overrides_runpath=yes
16244 freebsd3.[01]* | freebsdelf3.[01]*)
16245 shlibpath_overrides_runpath=yes
16246 hardcode_into_libs=yes
16248 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16249 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16250 shlibpath_overrides_runpath=no
16251 hardcode_into_libs=yes
16253 *) # from 4.6 on, and DragonFly
16254 shlibpath_overrides_runpath=yes
16255 hardcode_into_libs=yes
16261 version_type=linux # correct to gnu/linux during the next big refactor
16264 dynamic_linker="$host_os runtime_loader"
16265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16266 soname_spec='${libname}${release}${shared_ext}$major'
16267 shlibpath_var=LIBRARY_PATH
16268 shlibpath_overrides_runpath=yes
16269 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16270 hardcode_into_libs=yes
16273 hpux9* | hpux10* | hpux11*)
16274 # Give a soname corresponding to the major version so that dld.sl refuses to
16275 # link against other versions.
16282 hardcode_into_libs=yes
16283 dynamic_linker="$host_os dld.so"
16284 shlibpath_var=LD_LIBRARY_PATH
16285 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287 soname_spec='${libname}${release}${shared_ext}$major'
16288 if test "X$HPUX_IA64_MODE" = X32; then
16289 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16291 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16297 hardcode_into_libs=yes
16298 dynamic_linker="$host_os dld.sl"
16299 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16300 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16302 soname_spec='${libname}${release}${shared_ext}$major'
16303 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16308 dynamic_linker="$host_os dld.sl"
16309 shlibpath_var=SHLIB_PATH
16310 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16312 soname_spec='${libname}${release}${shared_ext}$major'
16315 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16316 postinstall_cmds='chmod 555 $lib'
16317 # or fails outright, so override atomically:
16318 install_override_mode=555
16322 version_type=linux # correct to gnu/linux during the next big refactor
16325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16326 soname_spec='${libname}${release}${shared_ext}$major'
16327 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16328 shlibpath_var=LD_LIBRARY_PATH
16329 shlibpath_overrides_runpath=no
16330 hardcode_into_libs=yes
16333 irix5* | irix6* | nonstopux*)
16335 nonstopux*) version_type=nonstopux ;;
16337 if test "$lt_cv_prog_gnu_ld" = yes; then
16338 version_type=linux # correct to gnu/linux during the next big refactor
16345 soname_spec='${libname}${release}${shared_ext}$major'
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16348 irix5* | nonstopux*)
16349 libsuff= shlibsuff=
16352 case $LD in # libtool.m4 will add one of these switches to LD
16353 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16354 libsuff= shlibsuff= libmagic=32-bit;;
16355 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16356 libsuff=32 shlibsuff=N32 libmagic=N32;;
16357 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16358 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16359 *) libsuff= shlibsuff= libmagic=never-match;;
16363 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16364 shlibpath_overrides_runpath=no
16365 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16366 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16367 hardcode_into_libs=yes
16370 # No shared lib support for Linux oldld, aout, or coff.
16371 linux*oldld* | linux*aout* | linux*coff*)
16375 # This must be glibc/ELF.
16376 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16377 version_type=linux # correct to gnu/linux during the next big refactor
16380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16381 soname_spec='${libname}${release}${shared_ext}$major'
16382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16383 shlibpath_var=LD_LIBRARY_PATH
16384 shlibpath_overrides_runpath=no
16386 # Some binutils ld are patched to set DT_RUNPATH
16387 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16388 $as_echo_n "(cached) " >&6
16390 lt_cv_shlibpath_overrides_runpath=no
16391 save_LDFLAGS=$LDFLAGS
16392 save_libdir=$libdir
16393 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16394 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16396 /* end confdefs.h. */
16406 if ac_fn_cxx_try_link "$LINENO"; then :
16407 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16408 lt_cv_shlibpath_overrides_runpath=yes
16411 rm -f core conftest.err conftest.$ac_objext \
16412 conftest$ac_exeext conftest.$ac_ext
16413 LDFLAGS=$save_LDFLAGS
16414 libdir=$save_libdir
16418 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16420 # This implies no fast_install, which is unacceptable.
16421 # Some rework will be needed to allow for fast_install
16422 # before this can be enabled.
16423 hardcode_into_libs=yes
16425 # Append ld.so.conf contents to the search path
16426 if test -f /etc/ld.so.conf; then
16427 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' ' '`
16428 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16431 # We used to test for /lib/ld.so.1 and disable shared libraries on
16432 # powerpc, because MkLinux only supported shared libraries with the
16433 # GNU dynamic linker. Since this was broken with cross compilers,
16434 # most powerpc-linux boxes support dynamic linking these days and
16435 # people can always --disable-shared, the test was removed, and we
16436 # assume the GNU/Linux dynamic linker is in use.
16437 dynamic_linker='GNU/Linux ld.so'
16444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16445 soname_spec='${libname}${release}${shared_ext}$major'
16446 shlibpath_var=LD_LIBRARY_PATH
16447 shlibpath_overrides_runpath=no
16448 hardcode_into_libs=yes
16449 dynamic_linker='NetBSD ld.elf_so'
16456 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16459 dynamic_linker='NetBSD (a.out) ld.so'
16461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16462 soname_spec='${libname}${release}${shared_ext}$major'
16463 dynamic_linker='NetBSD ld.elf_so'
16465 shlibpath_var=LD_LIBRARY_PATH
16466 shlibpath_overrides_runpath=yes
16467 hardcode_into_libs=yes
16471 version_type=linux # correct to gnu/linux during the next big refactor
16472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16473 shlibpath_var=LD_LIBRARY_PATH
16474 shlibpath_overrides_runpath=yes
16481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482 soname_spec='${libname}${release}${shared_ext}$major'
16483 shlibpath_var=LD_LIBRARY_PATH
16484 shlibpath_overrides_runpath=no
16485 hardcode_into_libs=yes
16486 dynamic_linker='ldqnx.so'
16491 sys_lib_dlsearch_path_spec="/usr/lib"
16493 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16495 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16496 *) need_version=no ;;
16498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16500 shlibpath_var=LD_LIBRARY_PATH
16501 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16503 openbsd2.[89] | openbsd2.[89].*)
16504 shlibpath_overrides_runpath=no
16507 shlibpath_overrides_runpath=yes
16511 shlibpath_overrides_runpath=yes
16516 libname_spec='$name'
16519 library_names_spec='$libname${shared_ext} $libname.a'
16520 dynamic_linker='OS/2 ld.exe'
16521 shlibpath_var=LIBPATH
16524 osf3* | osf4* | osf5*)
16528 soname_spec='${libname}${release}${shared_ext}$major'
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16530 shlibpath_var=LD_LIBRARY_PATH
16531 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16532 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16540 version_type=linux # correct to gnu/linux during the next big refactor
16543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16544 soname_spec='${libname}${release}${shared_ext}$major'
16545 shlibpath_var=LD_LIBRARY_PATH
16546 shlibpath_overrides_runpath=yes
16547 hardcode_into_libs=yes
16548 # ldd complains unless libraries are executable
16549 postinstall_cmds='chmod +x $lib'
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16555 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16556 shlibpath_var=LD_LIBRARY_PATH
16557 shlibpath_overrides_runpath=yes
16558 if test "$with_gnu_ld" = yes; then
16565 version_type=linux # correct to gnu/linux during the next big refactor
16566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16567 soname_spec='${libname}${release}${shared_ext}$major'
16568 shlibpath_var=LD_LIBRARY_PATH
16569 case $host_vendor in
16571 shlibpath_overrides_runpath=no
16573 runpath_var=LD_RUN_PATH
16581 shlibpath_overrides_runpath=no
16582 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16588 if test -d /usr/nec ;then
16589 version_type=linux # correct to gnu/linux during the next big refactor
16590 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16591 soname_spec='$libname${shared_ext}.$major'
16592 shlibpath_var=LD_LIBRARY_PATH
16596 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16597 version_type=freebsd-elf
16600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16601 soname_spec='${libname}${release}${shared_ext}$major'
16602 shlibpath_var=LD_LIBRARY_PATH
16603 shlibpath_overrides_runpath=yes
16604 hardcode_into_libs=yes
16605 if test "$with_gnu_ld" = yes; then
16606 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16608 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16611 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16615 sys_lib_dlsearch_path_spec='/usr/lib'
16619 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16620 version_type=linux # correct to gnu/linux during the next big refactor
16623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16624 shlibpath_var=LD_LIBRARY_PATH
16625 shlibpath_overrides_runpath=no
16626 hardcode_into_libs=yes
16630 version_type=linux # correct to gnu/linux during the next big refactor
16631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16632 soname_spec='${libname}${release}${shared_ext}$major'
16633 shlibpath_var=LD_LIBRARY_PATH
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16641 $as_echo "$dynamic_linker" >&6; }
16642 test "$dynamic_linker" = no && can_build_shared=no
16644 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16645 if test "$GCC" = yes; then
16646 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16649 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16650 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16652 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16653 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16694 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16695 hardcode_action_CXX=
16696 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16697 test -n "$runpath_var_CXX" ||
16698 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16700 # We can hardcode non-existent directories.
16701 if test "$hardcode_direct_CXX" != no &&
16702 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16703 # have to relink, otherwise we might link with an installed library
16704 # when we should be linking with a yet-to-be-installed one
16705 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16706 test "$hardcode_minus_L_CXX" != no; then
16707 # Linking always hardcodes the temporary library directory.
16708 hardcode_action_CXX=relink
16710 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16711 hardcode_action_CXX=immediate
16714 # We cannot hardcode anything, or else we can only hardcode existing
16716 hardcode_action_CXX=unsupported
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16719 $as_echo "$hardcode_action_CXX" >&6; }
16721 if test "$hardcode_action_CXX" = relink ||
16722 test "$inherit_rpath_CXX" = yes; then
16723 # Fast installation is not supported
16724 enable_fast_install=no
16725 elif test "$shlibpath_overrides_runpath" = yes ||
16726 test "$enable_shared" = no; then
16727 # Fast installation is not necessary
16728 enable_fast_install=needless
16737 fi # test -n "$compiler"
16740 CFLAGS=$lt_save_CFLAGS
16744 with_gnu_ld=$lt_save_with_gnu_ld
16745 lt_cv_path_LDCXX=$lt_cv_path_LD
16746 lt_cv_path_LD=$lt_save_path_LD
16747 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16748 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16749 fi # test "$_lt_caught_CXX_error" != yes
16752 ac_cpp='$CPP $CPPFLAGS'
16753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16760 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16761 if test -n "$ac_tool_prefix"; then
16762 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16763 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16765 $as_echo_n "checking for $ac_word... " >&6; }
16766 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16767 $as_echo_n "(cached) " >&6
16769 case $PKG_CONFIG in
16771 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16775 for as_dir in $PATH
16778 test -z "$as_dir" && as_dir=.
16779 for ac_exec_ext in '' $ac_executable_extensions; do
16780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16781 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16792 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16793 if test -n "$PKG_CONFIG"; then
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16795 $as_echo "$PKG_CONFIG" >&6; }
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16798 $as_echo "no" >&6; }
16803 if test -z "$ac_cv_path_PKG_CONFIG"; then
16804 ac_pt_PKG_CONFIG=$PKG_CONFIG
16805 # Extract the first word of "pkg-config", so it can be a program name with args.
16806 set dummy pkg-config; ac_word=$2
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16808 $as_echo_n "checking for $ac_word... " >&6; }
16809 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16810 $as_echo_n "(cached) " >&6
16812 case $ac_pt_PKG_CONFIG in
16814 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16818 for as_dir in $PATH
16821 test -z "$as_dir" && as_dir=.
16822 for ac_exec_ext in '' $ac_executable_extensions; do
16823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16824 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16835 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16836 if test -n "$ac_pt_PKG_CONFIG"; then
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16838 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16841 $as_echo "no" >&6; }
16844 if test "x$ac_pt_PKG_CONFIG" = x; then
16847 case $cross_compiling:$ac_tool_warned in
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16851 ac_tool_warned=yes ;;
16853 PKG_CONFIG=$ac_pt_PKG_CONFIG
16856 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16860 if test -n "$PKG_CONFIG"; then
16861 _pkg_min_version=0.20
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16863 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16864 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16866 $as_echo "yes" >&6; }
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16869 $as_echo "no" >&6; }
16875 RAGEL=${RAGEL-"${am_missing_run}ragel"}
16878 GIT=${GIT-"${am_missing_run}git"}
16900 HB_LIBTOOL_VERSION_INFO=10300:0:10300
16909 gtk_doc_requires="gtk-doc >= 1.15"
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
16911 $as_echo_n "checking for gtk-doc... " >&6; }
16912 if test -n "$PKG_CONFIG" && \
16913 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
16914 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
16916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16917 test $ac_status = 0; }; then
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
16923 $as_echo "$have_gtk_doc" >&6; }
16925 if test "$have_gtk_doc" = "no"; then
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16927 You will not be able to create source packages with 'make dist'
16928 because $gtk_doc_requires is not found." >&5
16929 $as_echo "$as_me: WARNING:
16930 You will not be able to create source packages with 'make dist'
16931 because $gtk_doc_requires is not found." >&2;}
16934 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
16935 set dummy gtkdoc-check; ac_word=$2
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16937 $as_echo_n "checking for $ac_word... " >&6; }
16938 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
16939 $as_echo_n "(cached) " >&6
16941 if test -n "$GTKDOC_CHECK"; then
16942 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
16944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16945 for as_dir in $PATH
16948 test -z "$as_dir" && as_dir=.
16949 for ac_exec_ext in '' $ac_executable_extensions; do
16950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16951 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
16952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16961 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
16962 if test -n "$GTKDOC_CHECK"; then
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
16964 $as_echo "$GTKDOC_CHECK" >&6; }
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16967 $as_echo "no" >&6; }
16971 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
16972 set dummy gtkdoc-check; ac_word=$2
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16974 $as_echo_n "checking for $ac_word... " >&6; }
16975 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
16976 $as_echo_n "(cached) " >&6
16978 case $GTKDOC_CHECK_PATH in
16980 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
16983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16984 for as_dir in $PATH
16987 test -z "$as_dir" && as_dir=.
16988 for ac_exec_ext in '' $ac_executable_extensions; do
16989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16990 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
16991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17001 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
17002 if test -n "$GTKDOC_CHECK_PATH"; then
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
17004 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17007 $as_echo "no" >&6; }
17011 for ac_prog in gtkdoc-rebase
17013 # Extract the first word of "$ac_prog", so it can be a program name with args.
17014 set dummy $ac_prog; ac_word=$2
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17016 $as_echo_n "checking for $ac_word... " >&6; }
17017 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
17018 $as_echo_n "(cached) " >&6
17020 case $GTKDOC_REBASE in
17022 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
17025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17026 for as_dir in $PATH
17029 test -z "$as_dir" && as_dir=.
17030 for ac_exec_ext in '' $ac_executable_extensions; do
17031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17032 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
17033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17043 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
17044 if test -n "$GTKDOC_REBASE"; then
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
17046 $as_echo "$GTKDOC_REBASE" >&6; }
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17049 $as_echo "no" >&6; }
17053 test -n "$GTKDOC_REBASE" && break
17055 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
17057 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
17058 set dummy gtkdoc-mkpdf; ac_word=$2
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17060 $as_echo_n "checking for $ac_word... " >&6; }
17061 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
17062 $as_echo_n "(cached) " >&6
17064 case $GTKDOC_MKPDF in
17066 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
17069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17070 for as_dir in $PATH
17073 test -z "$as_dir" && as_dir=.
17074 for ac_exec_ext in '' $ac_executable_extensions; do
17075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17076 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
17077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17087 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
17088 if test -n "$GTKDOC_MKPDF"; then
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
17090 $as_echo "$GTKDOC_MKPDF" >&6; }
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17093 $as_echo "no" >&6; }
17099 # Check whether --with-html-dir was given.
17100 if test "${with_html_dir+set}" = set; then :
17101 withval=$with_html_dir;
17103 with_html_dir='${datadir}/gtk-doc/html'
17106 HTML_DIR="$with_html_dir"
17109 # Check whether --enable-gtk-doc was given.
17110 if test "${enable_gtk_doc+set}" = set; then :
17111 enableval=$enable_gtk_doc;
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
17118 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
17120 $as_echo "$enable_gtk_doc" >&6; }
17122 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
17124 You must have $gtk_doc_requires installed to build documentation for
17125 $PACKAGE_NAME. Please install gtk-doc or disable building the
17126 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
17129 if test "x$PACKAGE_NAME" != "xglib"; then
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
17133 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
17135 if test -n "$PKG_CONFIG"; then
17136 if test -n "$GTKDOC_DEPS_CFLAGS"; then
17137 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
17139 if test -n "$PKG_CONFIG" && \
17140 { { $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
17141 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
17143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17144 test $ac_status = 0; }; then
17145 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
17153 if test -n "$PKG_CONFIG"; then
17154 if test -n "$GTKDOC_DEPS_LIBS"; then
17155 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
17157 if test -n "$PKG_CONFIG" && \
17158 { { $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
17159 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
17161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17162 test $ac_status = 0; }; then
17163 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
17174 if test $pkg_failed = yes; then
17176 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17177 _pkg_short_errors_supported=yes
17179 _pkg_short_errors_supported=no
17181 if test $_pkg_short_errors_supported = yes; then
17182 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0"`
17184 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0"`
17186 # Put the nasty error message in config.log where it belongs
17187 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17190 $as_echo "no" >&6; }
17192 elif test $pkg_failed = untried; then
17195 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
17196 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17198 $as_echo "yes" >&6; }
17203 # Check whether --enable-gtk-doc-html was given.
17204 if test "${enable_gtk_doc_html+set}" = set; then :
17205 enableval=$enable_gtk_doc_html;
17207 enable_gtk_doc_html=yes
17210 # Check whether --enable-gtk-doc-pdf was given.
17211 if test "${enable_gtk_doc_pdf+set}" = set; then :
17212 enableval=$enable_gtk_doc_pdf;
17214 enable_gtk_doc_pdf=no
17218 if test -z "$GTKDOC_MKPDF"; then
17219 enable_gtk_doc_pdf=no
17222 if test -z "$AM_DEFAULT_VERBOSITY"; then
17223 AM_DEFAULT_VERBOSITY=1
17227 if test x$have_gtk_doc = xyes; then
17229 HAVE_GTK_DOC_FALSE='#'
17231 HAVE_GTK_DOC_TRUE='#'
17232 HAVE_GTK_DOC_FALSE=
17235 if test x$enable_gtk_doc = xyes; then
17236 ENABLE_GTK_DOC_TRUE=
17237 ENABLE_GTK_DOC_FALSE='#'
17239 ENABLE_GTK_DOC_TRUE='#'
17240 ENABLE_GTK_DOC_FALSE=
17243 if test x$enable_gtk_doc_html = xyes; then
17244 GTK_DOC_BUILD_HTML_TRUE=
17245 GTK_DOC_BUILD_HTML_FALSE='#'
17247 GTK_DOC_BUILD_HTML_TRUE='#'
17248 GTK_DOC_BUILD_HTML_FALSE=
17251 if test x$enable_gtk_doc_pdf = xyes; then
17252 GTK_DOC_BUILD_PDF_TRUE=
17253 GTK_DOC_BUILD_PDF_FALSE='#'
17255 GTK_DOC_BUILD_PDF_TRUE='#'
17256 GTK_DOC_BUILD_PDF_FALSE=
17259 if test -n "$LIBTOOL"; then
17260 GTK_DOC_USE_LIBTOOL_TRUE=
17261 GTK_DOC_USE_LIBTOOL_FALSE='#'
17263 GTK_DOC_USE_LIBTOOL_TRUE='#'
17264 GTK_DOC_USE_LIBTOOL_FALSE=
17267 if test -n "$GTKDOC_REBASE"; then
17268 GTK_DOC_USE_REBASE_TRUE=
17269 GTK_DOC_USE_REBASE_FALSE='#'
17271 GTK_DOC_USE_REBASE_TRUE='#'
17272 GTK_DOC_USE_REBASE_FALSE=
17276 if test "x$enable_gtk_doc" = xyes; then
17281 # Functions and headers
17282 for ac_func in atexit mprotect sysconf getpagesize mmap isatty
17284 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17285 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17286 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17287 cat >>confdefs.h <<_ACEOF
17288 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17294 for ac_header in unistd.h sys/mman.h
17296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17297 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17298 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17299 cat >>confdefs.h <<_ACEOF
17300 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17310 # The cast to long int works around a bug in the HP C Compiler,
17311 # see AC_CHECK_SIZEOF for more information.
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
17313 $as_echo_n "checking alignment of struct{char;}... " >&6; }
17314 if ${ac_cv_alignof_struct_char__+:} false; then :
17315 $as_echo_n "(cached) " >&6
17317 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__" "$ac_includes_default
17319 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17321 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
17324 if test "$ac_cv_type_struct_char__" = yes; then
17325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17327 as_fn_error 77 "cannot compute alignment of struct{char;}
17328 See \`config.log' for more details" "$LINENO" 5; }
17330 ac_cv_alignof_struct_char__=0
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
17336 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
17340 cat >>confdefs.h <<_ACEOF
17341 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
17345 if test "x$GCC" = "xyes"; then
17347 # Make symbols link locally
17348 LDFLAGS="$LDFLAGS -Bsymbolic-functions"
17350 # Make sure we don't link to libstdc++
17351 CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
17353 # Assorted warnings
17354 CXXFLAGS="$CXXFLAGS -Wcast-align"
17360 # Hide inline methods
17361 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
17367 if test "x$ac_cv_alignof_struct_char__" != x1; then
17368 # Request byte alignment
17369 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
17375 if test "x$GCC" = "xyes"; then
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
17386 $as_echo_n "checking for native Win32... " >&6; }
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
17393 $as_echo "$hb_os_win32" >&6; }
17394 if test "$hb_os_win32" = "yes"; then
17404 if test "$hb_os_win32" = no; then
17408 ac_cpp='$CPP $CPPFLAGS'
17409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17415 # We used to check for pthread.h first, but this fails if pthread.h
17416 # requires special compiler flags (e.g. on True64 or Sequent).
17417 # It gets checked for in the link test anyway.
17419 # First of all, check if the user has set any of the PTHREAD_LIBS,
17420 # etcetera environment variables, and if threads linking works using
17422 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17423 save_CFLAGS="$CFLAGS"
17424 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17426 LIBS="$PTHREAD_LIBS $LIBS"
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17428 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17430 /* end confdefs.h. */
17432 /* Override any GCC internal prototype to avoid an error.
17433 Use char because int might match the return type of a GCC
17434 builtin and then its argument prototype would still apply. */
17438 char pthread_join ();
17442 return pthread_join ();
17447 if ac_fn_c_try_link "$LINENO"; then :
17450 rm -f core conftest.err conftest.$ac_objext \
17451 conftest$ac_exeext conftest.$ac_ext
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17453 $as_echo "$ax_pthread_ok" >&6; }
17454 if test x"$ax_pthread_ok" = xno; then
17459 CFLAGS="$save_CFLAGS"
17462 # We must check for the threads library under a number of different
17463 # names; the ordering is very important because some systems
17464 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17465 # libraries is broken (non-POSIX).
17467 # Create a list of thread flags to try. Items starting with a "-" are
17468 # C compiler flags, and other items are library names, except for "none"
17469 # which indicates that we try without any flags at all, and "pthread-config"
17470 # which is a program returning the flags for the Pth emulation library.
17472 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17474 # The ordering *is* (sometimes) important. Some notes on the
17475 # individual items follow:
17477 # pthreads: AIX (must check this before -lpthread)
17478 # none: in case threads are in libc; should be tried before -Kthread and
17479 # other compiler flags to prevent continual compiler warnings
17480 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17481 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17482 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17483 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17484 # -pthreads: Solaris/gcc
17485 # -mthreads: Mingw32/gcc, Lynx/gcc
17486 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17487 # doesn't hurt to check since this sometimes defines pthreads too;
17488 # also defines -D_REENTRANT)
17489 # ... -mt is also the pthreads flag for HP/aCC
17490 # pthread: Linux, etcetera
17491 # --thread-safe: KAI C++
17492 # pthread-config: use pthread-config program (for GNU Pth library)
17497 # On Solaris (at least, for some versions), libc contains stubbed
17498 # (non-functional) versions of the pthreads routines, so link-based
17499 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
17500 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
17501 # a function called by this macro, so we could check for that, but
17502 # who knows whether they'll stub that too in a future libc.) So,
17503 # we'll just look for -pthreads and -lpthread first:
17505 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
17509 ax_pthread_flags="-pthread $ax_pthread_flags"
17513 if test x"$ax_pthread_ok" = xno; then
17514 for flag in $ax_pthread_flags; do
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17519 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17524 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17525 PTHREAD_CFLAGS="$flag"
17529 # Extract the first word of "pthread-config", so it can be a program name with args.
17530 set dummy pthread-config; ac_word=$2
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17532 $as_echo_n "checking for $ac_word... " >&6; }
17533 if ${ac_cv_prog_ax_pthread_config+:} false; then :
17534 $as_echo_n "(cached) " >&6
17536 if test -n "$ax_pthread_config"; then
17537 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
17539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17540 for as_dir in $PATH
17543 test -z "$as_dir" && as_dir=.
17544 for ac_exec_ext in '' $ac_executable_extensions; do
17545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17546 ac_cv_prog_ax_pthread_config="yes"
17547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17554 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
17557 ax_pthread_config=$ac_cv_prog_ax_pthread_config
17558 if test -n "$ax_pthread_config"; then
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
17560 $as_echo "$ax_pthread_config" >&6; }
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17563 $as_echo "no" >&6; }
17567 if test x"$ax_pthread_config" = xno; then continue; fi
17568 PTHREAD_CFLAGS="`pthread-config --cflags`"
17569 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17574 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17575 PTHREAD_LIBS="-l$flag"
17580 save_CFLAGS="$CFLAGS"
17581 LIBS="$PTHREAD_LIBS $LIBS"
17582 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17584 # Check for various functions. We must include pthread.h,
17585 # since some functions may be macros. (On the Sequent, we
17586 # need a special flag -Kthread to make this header compile.)
17587 # We check for pthread_join because it is in -lpthread on IRIX
17588 # while pthread_create is in libc. We check for pthread_attr_init
17589 # due to DEC craziness with -lpthreads. We check for
17590 # pthread_cleanup_push because it is one of the few pthread
17591 # functions on Solaris that doesn't have a non-functional libc stub.
17592 # We try pthread_create on general principles.
17593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17594 /* end confdefs.h. */
17595 #include <pthread.h>
17596 static void routine(void *a) { a = 0; }
17597 static void *start_routine(void *a) { return a; }
17601 pthread_t th; pthread_attr_t attr;
17602 pthread_create(&th, 0, start_routine, 0);
17603 pthread_join(th, 0);
17604 pthread_attr_init(&attr);
17605 pthread_cleanup_push(routine, 0);
17606 pthread_cleanup_pop(0) /* ; */
17611 if ac_fn_c_try_link "$LINENO"; then :
17614 rm -f core conftest.err conftest.$ac_objext \
17615 conftest$ac_exeext conftest.$ac_ext
17618 CFLAGS="$save_CFLAGS"
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17621 $as_echo "$ax_pthread_ok" >&6; }
17622 if test "x$ax_pthread_ok" = xyes; then
17631 # Various other checks:
17632 if test "x$ax_pthread_ok" = xyes; then
17634 LIBS="$PTHREAD_LIBS $LIBS"
17635 save_CFLAGS="$CFLAGS"
17636 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17638 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17640 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17642 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17644 /* end confdefs.h. */
17645 #include <pthread.h>
17649 int attr = $attr; return attr /* ; */
17654 if ac_fn_c_try_link "$LINENO"; then :
17655 attr_name=$attr; break
17657 rm -f core conftest.err conftest.$ac_objext \
17658 conftest$ac_exeext conftest.$ac_ext
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17661 $as_echo "$attr_name" >&6; }
17662 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17664 cat >>confdefs.h <<_ACEOF
17665 #define PTHREAD_CREATE_JOINABLE $attr_name
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17671 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17674 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
17675 osf* | hpux*) flag="-D_REENTRANT";;
17677 if test "$GCC" = "yes"; then
17678 flag="-D_REENTRANT"
17680 flag="-mt -D_REENTRANT"
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17685 $as_echo "${flag}" >&6; }
17686 if test "x$flag" != xno; then
17687 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
17691 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
17692 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
17693 $as_echo_n "(cached) " >&6
17696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17697 /* end confdefs.h. */
17699 #include <pthread.h>
17703 int i = PTHREAD_PRIO_INHERIT;
17708 if ac_fn_c_try_link "$LINENO"; then :
17709 ax_cv_PTHREAD_PRIO_INHERIT=yes
17711 ax_cv_PTHREAD_PRIO_INHERIT=no
17713 rm -f core conftest.err conftest.$ac_objext \
17714 conftest$ac_exeext conftest.$ac_ext
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
17718 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
17719 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
17721 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
17726 CFLAGS="$save_CFLAGS"
17728 # More AIX lossage: must compile with xlc_r or cc_r
17729 if test x"$GCC" != xyes; then
17730 for ac_prog in xlc_r cc_r
17732 # Extract the first word of "$ac_prog", so it can be a program name with args.
17733 set dummy $ac_prog; ac_word=$2
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17735 $as_echo_n "checking for $ac_word... " >&6; }
17736 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17737 $as_echo_n "(cached) " >&6
17739 if test -n "$PTHREAD_CC"; then
17740 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17743 for as_dir in $PATH
17746 test -z "$as_dir" && as_dir=.
17747 for ac_exec_ext in '' $ac_executable_extensions; do
17748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17749 ac_cv_prog_PTHREAD_CC="$ac_prog"
17750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17759 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17760 if test -n "$PTHREAD_CC"; then
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17762 $as_echo "$PTHREAD_CC" >&6; }
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17765 $as_echo "no" >&6; }
17769 test -n "$PTHREAD_CC" && break
17771 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17784 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17785 if test x"$ax_pthread_ok" = xyes; then
17793 ac_cpp='$CPP $CPPFLAGS'
17794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17800 if $have_pthread; then
17802 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17805 if $have_pthread; then
17807 HAVE_PTHREAD_FALSE='#'
17809 HAVE_PTHREAD_TRUE='#'
17810 HAVE_PTHREAD_FALSE=
17818 $as_echo "#define HAVE_OT 1" >>confdefs.h
17831 if $have_fallback; then
17833 $as_echo "#define HAVE_FALLBACK 1" >>confdefs.h
17836 if $have_fallback; then
17837 HAVE_FALLBACK_TRUE=
17838 HAVE_FALLBACK_FALSE='#'
17840 HAVE_FALLBACK_TRUE='#'
17841 HAVE_FALLBACK_FALSE=
17847 # Check whether --with-glib was given.
17848 if test "${with_glib+set}" = set; then :
17849 withval=$with_glib;
17855 GLIB_DEPS="glib-2.0 >= 2.16"
17857 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
17861 $as_echo_n "checking for GLIB... " >&6; }
17863 if test -n "$PKG_CONFIG"; then
17864 if test -n "$GLIB_CFLAGS"; then
17865 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
17867 if test -n "$PKG_CONFIG" && \
17868 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
17869 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
17871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17872 test $ac_status = 0; }; then
17873 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
17881 if test -n "$PKG_CONFIG"; then
17882 if test -n "$GLIB_LIBS"; then
17883 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
17885 if test -n "$PKG_CONFIG" && \
17886 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
17887 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
17889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17890 test $ac_status = 0; }; then
17891 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
17902 if test $pkg_failed = yes; then
17904 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17905 _pkg_short_errors_supported=yes
17907 _pkg_short_errors_supported=no
17909 if test $_pkg_short_errors_supported = yes; then
17910 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GLIB_DEPS"`
17912 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GLIB_DEPS"`
17914 # Put the nasty error message in config.log where it belongs
17915 echo "$GLIB_PKG_ERRORS" >&5
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17918 $as_echo "no" >&6; }
17920 elif test $pkg_failed = untried; then
17923 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
17924 GLIB_LIBS=$pkg_cv_GLIB_LIBS
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17926 $as_echo "yes" >&6; }
17930 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
17931 as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
17933 if $have_glib; then
17935 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
17938 if $have_glib; then
17940 HAVE_GLIB_FALSE='#'
17949 # Check whether --with-gobject was given.
17950 if test "${with_gobject+set}" = set; then :
17951 withval=$with_gobject;
17957 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
17961 $as_echo_n "checking for GOBJECT... " >&6; }
17963 if test -n "$PKG_CONFIG"; then
17964 if test -n "$GOBJECT_CFLAGS"; then
17965 pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
17967 if test -n "$PKG_CONFIG" && \
17968 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
17969 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
17971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17972 test $ac_status = 0; }; then
17973 pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
17981 if test -n "$PKG_CONFIG"; then
17982 if test -n "$GOBJECT_LIBS"; then
17983 pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
17985 if test -n "$PKG_CONFIG" && \
17986 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
17987 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
17989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17990 test $ac_status = 0; }; then
17991 pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
18002 if test $pkg_failed = yes; then
18004 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18005 _pkg_short_errors_supported=yes
18007 _pkg_short_errors_supported=no
18009 if test $_pkg_short_errors_supported = yes; then
18010 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
18012 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
18014 # Put the nasty error message in config.log where it belongs
18015 echo "$GOBJECT_PKG_ERRORS" >&5
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18018 $as_echo "no" >&6; }
18020 elif test $pkg_failed = untried; then
18023 GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
18024 GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18026 $as_echo "yes" >&6; }
18030 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
18031 as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
18033 if $have_gobject; then
18035 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
18037 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
18040 if $have_gobject; then
18042 HAVE_GOBJECT_FALSE='#'
18044 HAVE_GOBJECT_TRUE='#'
18045 HAVE_GOBJECT_FALSE=
18051 # Gobject-Introspection
18052 have_introspection=false
18054 if $have_gobject; then
18058 # Check whether --enable-introspection was given.
18059 if test "${enable_introspection+set}" = set; then :
18060 enableval=$enable_introspection;
18062 enable_introspection=auto
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
18067 $as_echo_n "checking for gobject-introspection... " >&6; }
18069 case $enable_introspection in #(
18071 found_introspection="no (disabled, use --enable-introspection to enable)"
18074 if test -n "$PKG_CONFIG" && \
18075 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
18076 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
18078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18079 test $ac_status = 0; }; then
18082 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
18084 if test -n "$PKG_CONFIG" && \
18085 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
18086 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
18088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18089 test $ac_status = 0; }; then
18090 found_introspection=yes
18092 as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
18096 if test -n "$PKG_CONFIG" && \
18097 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
18098 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
18100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18101 test $ac_status = 0; }; then
18102 found_introspection=yes
18104 found_introspection=no
18106 enable_introspection=$found_introspection
18109 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
18113 $as_echo "$found_introspection" >&6; }
18115 INTROSPECTION_SCANNER=
18116 INTROSPECTION_COMPILER=
18117 INTROSPECTION_GENERATE=
18118 INTROSPECTION_GIRDIR=
18119 INTROSPECTION_TYPELIBDIR=
18120 if test "x$found_introspection" = "xyes"; then
18121 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
18122 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
18123 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
18124 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
18125 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
18126 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
18127 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
18128 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
18139 if test "x$found_introspection" = "xyes"; then
18140 HAVE_INTROSPECTION_TRUE=
18141 HAVE_INTROSPECTION_FALSE='#'
18143 HAVE_INTROSPECTION_TRUE='#'
18144 HAVE_INTROSPECTION_FALSE=
18149 if test "x$found_introspection" = xyes; then
18150 have_introspection=true
18154 HAVE_INTROSPECTION_TRUE=
18155 HAVE_INTROSPECTION_FALSE='#'
18157 HAVE_INTROSPECTION_TRUE='#'
18158 HAVE_INTROSPECTION_FALSE=
18166 # Check whether --with-cairo was given.
18167 if test "${with_cairo+set}" = set; then :
18168 withval=$with_cairo;
18174 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
18178 $as_echo_n "checking for CAIRO... " >&6; }
18180 if test -n "$PKG_CONFIG"; then
18181 if test -n "$CAIRO_CFLAGS"; then
18182 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
18184 if test -n "$PKG_CONFIG" && \
18185 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
18186 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
18188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18189 test $ac_status = 0; }; then
18190 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
18198 if test -n "$PKG_CONFIG"; then
18199 if test -n "$CAIRO_LIBS"; then
18200 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
18202 if test -n "$PKG_CONFIG" && \
18203 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
18204 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
18206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18207 test $ac_status = 0; }; then
18208 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
18219 if test $pkg_failed = yes; then
18221 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18222 _pkg_short_errors_supported=yes
18224 _pkg_short_errors_supported=no
18226 if test $_pkg_short_errors_supported = yes; then
18227 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo >= 1.8.0"`
18229 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.8.0"`
18231 # Put the nasty error message in config.log where it belongs
18232 echo "$CAIRO_PKG_ERRORS" >&5
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18235 $as_echo "no" >&6; }
18237 elif test $pkg_failed = untried; then
18240 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
18241 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18243 $as_echo "yes" >&6; }
18247 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
18248 as_fn_error $? "cairo support requested but not found" "$LINENO" 5
18250 if $have_cairo; then
18252 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
18255 if $have_cairo; then
18257 HAVE_CAIRO_FALSE='#'
18259 HAVE_CAIRO_TRUE='#'
18264 have_cairo_ft=false
18265 if $have_cairo; then
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
18269 $as_echo_n "checking for CAIRO_FT... " >&6; }
18271 if test -n "$PKG_CONFIG"; then
18272 if test -n "$CAIRO_FT_CFLAGS"; then
18273 pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
18275 if test -n "$PKG_CONFIG" && \
18276 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
18277 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
18279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18280 test $ac_status = 0; }; then
18281 pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
18289 if test -n "$PKG_CONFIG"; then
18290 if test -n "$CAIRO_FT_LIBS"; then
18291 pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
18293 if test -n "$PKG_CONFIG" && \
18294 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
18295 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
18297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18298 test $ac_status = 0; }; then
18299 pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
18310 if test $pkg_failed = yes; then
18312 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18313 _pkg_short_errors_supported=yes
18315 _pkg_short_errors_supported=no
18317 if test $_pkg_short_errors_supported = yes; then
18318 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-ft"`
18320 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-ft"`
18322 # Put the nasty error message in config.log where it belongs
18323 echo "$CAIRO_FT_PKG_ERRORS" >&5
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18326 $as_echo "no" >&6; }
18328 elif test $pkg_failed = untried; then
18331 CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
18332 CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18334 $as_echo "yes" >&6; }
18338 if $have_cairo_ft; then
18340 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
18343 if $have_cairo_ft; then
18344 HAVE_CAIRO_FT_TRUE=
18345 HAVE_CAIRO_FT_FALSE='#'
18347 HAVE_CAIRO_FT_TRUE='#'
18348 HAVE_CAIRO_FT_FALSE=
18354 # Check whether --with-fontconfig was given.
18355 if test "${with_fontconfig+set}" = set; then :
18356 withval=$with_fontconfig;
18358 with_fontconfig=auto
18361 have_fontconfig=false
18362 if test "x$with_fontconfig" = "xyes" -o "x$with_fontconfig" = "xauto"; then
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
18366 $as_echo_n "checking for FONTCONFIG... " >&6; }
18368 if test -n "$PKG_CONFIG"; then
18369 if test -n "$FONTCONFIG_CFLAGS"; then
18370 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
18372 if test -n "$PKG_CONFIG" && \
18373 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
18374 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
18376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18377 test $ac_status = 0; }; then
18378 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
18386 if test -n "$PKG_CONFIG"; then
18387 if test -n "$FONTCONFIG_LIBS"; then
18388 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
18390 if test -n "$PKG_CONFIG" && \
18391 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
18392 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
18394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18395 test $ac_status = 0; }; then
18396 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
18407 if test $pkg_failed = yes; then
18409 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18410 _pkg_short_errors_supported=yes
18412 _pkg_short_errors_supported=no
18414 if test $_pkg_short_errors_supported = yes; then
18415 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fontconfig"`
18417 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
18419 # Put the nasty error message in config.log where it belongs
18420 echo "$FONTCONFIG_PKG_ERRORS" >&5
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18423 $as_echo "no" >&6; }
18425 elif test $pkg_failed = untried; then
18428 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
18429 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18431 $as_echo "yes" >&6; }
18432 have_fontconfig=true
18435 if test "x$with_fontconfig" = "xyes" -a "x$have_fontconfig" != "xtrue"; then
18436 as_fn_error $? "fontconfig support requested but not found" "$LINENO" 5
18438 if $have_fontconfig; then
18440 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
18443 if $have_fontconfig; then
18444 HAVE_FONTCONFIG_TRUE=
18445 HAVE_FONTCONFIG_FALSE='#'
18447 HAVE_FONTCONFIG_TRUE='#'
18448 HAVE_FONTCONFIG_FALSE=
18454 # Check whether --with-icu was given.
18455 if test "${with_icu+set}" = set; then :
18462 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
18466 $as_echo_n "checking for ICU... " >&6; }
18468 if test -n "$PKG_CONFIG"; then
18469 if test -n "$ICU_CFLAGS"; then
18470 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
18472 if test -n "$PKG_CONFIG" && \
18473 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
18474 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
18476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18477 test $ac_status = 0; }; then
18478 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
18486 if test -n "$PKG_CONFIG"; then
18487 if test -n "$ICU_LIBS"; then
18488 pkg_cv_ICU_LIBS="$ICU_LIBS"
18490 if test -n "$PKG_CONFIG" && \
18491 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
18492 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
18494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18495 test $ac_status = 0; }; then
18496 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
18507 if test $pkg_failed = yes; then
18509 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18510 _pkg_short_errors_supported=yes
18512 _pkg_short_errors_supported=no
18514 if test $_pkg_short_errors_supported = yes; then
18515 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "icu-uc"`
18517 ICU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "icu-uc"`
18519 # Put the nasty error message in config.log where it belongs
18520 echo "$ICU_PKG_ERRORS" >&5
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18523 $as_echo "no" >&6; }
18525 elif test $pkg_failed = untried; then
18528 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
18529 ICU_LIBS=$pkg_cv_ICU_LIBS
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18531 $as_echo "yes" >&6; }
18535 if test "$have_icu" != "true"; then
18536 if test -n "$ac_tool_prefix"; then
18537 # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
18538 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18540 $as_echo_n "checking for $ac_word... " >&6; }
18541 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
18542 $as_echo_n "(cached) " >&6
18544 if test -n "$ICU_CONFIG"; then
18545 ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
18547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18548 for as_dir in $PATH
18551 test -z "$as_dir" && as_dir=.
18552 for ac_exec_ext in '' $ac_executable_extensions; do
18553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18554 ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
18555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18564 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
18565 if test -n "$ICU_CONFIG"; then
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
18567 $as_echo "$ICU_CONFIG" >&6; }
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18570 $as_echo "no" >&6; }
18575 if test -z "$ac_cv_prog_ICU_CONFIG"; then
18576 ac_ct_ICU_CONFIG=$ICU_CONFIG
18577 # Extract the first word of "icu-config", so it can be a program name with args.
18578 set dummy icu-config; ac_word=$2
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18580 $as_echo_n "checking for $ac_word... " >&6; }
18581 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
18582 $as_echo_n "(cached) " >&6
18584 if test -n "$ac_ct_ICU_CONFIG"; then
18585 ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
18587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18588 for as_dir in $PATH
18591 test -z "$as_dir" && as_dir=.
18592 for ac_exec_ext in '' $ac_executable_extensions; do
18593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18594 ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
18595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18604 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
18605 if test -n "$ac_ct_ICU_CONFIG"; then
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
18607 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18610 $as_echo "no" >&6; }
18613 if test "x$ac_ct_ICU_CONFIG" = x; then
18616 case $cross_compiling:$ac_tool_warned in
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18620 ac_tool_warned=yes ;;
18622 ICU_CONFIG=$ac_ct_ICU_CONFIG
18625 ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
18629 $as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
18630 if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
18632 # We don't use --cflags as this gives us a lot of things that we don't
18633 # necessarily want, like debugging and optimization flags
18634 # See man (1) icu-config for more info.
18635 ICU_CFLAGS=`$ICU_CONFIG --cppflags`
18636 ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18640 $as_echo "yes" >&6; }
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18643 $as_echo "no" >&6; }
18647 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
18648 as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
18652 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
18654 $as_echo "#define HAVE_ICU 1" >>confdefs.h
18656 if test "x$with_icu" = "xbuiltin"; then
18658 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
18670 if $have_icu && test "x$with_icu" = "xbuiltin"; then
18671 HAVE_ICU_BUILTIN_TRUE=
18672 HAVE_ICU_BUILTIN_FALSE='#'
18674 HAVE_ICU_BUILTIN_TRUE='#'
18675 HAVE_ICU_BUILTIN_FALSE=
18681 if $have_glib || $have_icu && test "x$with_icu" = "xbuiltin"; then
18684 if $have_ucdn; then
18686 $as_echo "#define HAVE_UCDN 1" >>confdefs.h
18689 if $have_ucdn; then
18691 HAVE_UCDN_FALSE='#'
18700 # Check whether --with-graphite2 was given.
18701 if test "${with_graphite2+set}" = set; then :
18702 withval=$with_graphite2;
18707 have_graphite2=false
18708 GRAPHITE2_DEPS="graphite2"
18710 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
18714 $as_echo_n "checking for GRAPHITE2... " >&6; }
18716 if test -n "$PKG_CONFIG"; then
18717 if test -n "$GRAPHITE2_CFLAGS"; then
18718 pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
18720 if test -n "$PKG_CONFIG" && \
18721 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
18722 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
18724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18725 test $ac_status = 0; }; then
18726 pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
18734 if test -n "$PKG_CONFIG"; then
18735 if test -n "$GRAPHITE2_LIBS"; then
18736 pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
18738 if test -n "$PKG_CONFIG" && \
18739 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
18740 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
18742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18743 test $ac_status = 0; }; then
18744 pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
18755 if test $pkg_failed = yes; then
18757 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18758 _pkg_short_errors_supported=yes
18760 _pkg_short_errors_supported=no
18762 if test $_pkg_short_errors_supported = yes; then
18763 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GRAPHITE2_DEPS"`
18765 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GRAPHITE2_DEPS"`
18767 # Put the nasty error message in config.log where it belongs
18768 echo "$GRAPHITE2_PKG_ERRORS" >&5
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18771 $as_echo "no" >&6; }
18773 elif test $pkg_failed = untried; then
18776 GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
18777 GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18779 $as_echo "yes" >&6; }
18780 have_graphite2=true
18783 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
18784 as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
18786 if $have_graphite2; then
18788 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
18791 if $have_graphite2; then
18792 HAVE_GRAPHITE2_TRUE=
18793 HAVE_GRAPHITE2_FALSE='#'
18795 HAVE_GRAPHITE2_TRUE='#'
18796 HAVE_GRAPHITE2_FALSE=
18802 # Check whether --with-freetype was given.
18803 if test "${with_freetype+set}" = set; then :
18804 withval=$with_freetype;
18809 have_freetype=false
18810 FREETYPE_DEPS="freetype2 >= 12.0.6"
18812 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
18813 # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
18817 $as_echo_n "checking for FREETYPE... " >&6; }
18819 if test -n "$PKG_CONFIG"; then
18820 if test -n "$FREETYPE_CFLAGS"; then
18821 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
18823 if test -n "$PKG_CONFIG" && \
18824 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
18825 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
18827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18828 test $ac_status = 0; }; then
18829 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
18837 if test -n "$PKG_CONFIG"; then
18838 if test -n "$FREETYPE_LIBS"; then
18839 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
18841 if test -n "$PKG_CONFIG" && \
18842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
18843 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
18845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18846 test $ac_status = 0; }; then
18847 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
18858 if test $pkg_failed = yes; then
18860 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18861 _pkg_short_errors_supported=yes
18863 _pkg_short_errors_supported=no
18865 if test $_pkg_short_errors_supported = yes; then
18866 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$FREETYPE_DEPS"`
18868 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$FREETYPE_DEPS"`
18870 # Put the nasty error message in config.log where it belongs
18871 echo "$FREETYPE_PKG_ERRORS" >&5
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18874 $as_echo "no" >&6; }
18876 elif test $pkg_failed = untried; then
18879 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
18880 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18882 $as_echo "yes" >&6; }
18886 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
18887 as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
18889 if $have_freetype; then
18891 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
18894 if $have_freetype; then
18895 HAVE_FREETYPE_TRUE=
18896 HAVE_FREETYPE_FALSE='#'
18898 HAVE_FREETYPE_TRUE='#'
18899 HAVE_FREETYPE_FALSE=
18905 # Check whether --with-uniscribe was given.
18906 if test "${with_uniscribe+set}" = set; then :
18907 withval=$with_uniscribe;
18912 have_uniscribe=false
18913 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
18914 for ac_header in usp10.h windows.h
18916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18917 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18918 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18919 cat >>confdefs.h <<_ACEOF
18920 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18922 have_uniscribe=true
18928 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
18929 as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
18931 if $have_uniscribe; then
18933 UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
18937 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
18940 if $have_uniscribe; then
18941 HAVE_UNISCRIBE_TRUE=
18942 HAVE_UNISCRIBE_FALSE='#'
18944 HAVE_UNISCRIBE_TRUE='#'
18945 HAVE_UNISCRIBE_FALSE=
18951 # Check whether --with-directwrite was given.
18952 if test "${with_directwrite+set}" = set; then :
18953 withval=$with_directwrite;
18955 with_directwrite=no
18958 have_directwrite=false
18960 ac_cpp='$CXXCPP $CPPFLAGS'
18961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18965 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
18967 for ac_header in dwrite.h
18969 ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
18970 if test "x$ac_cv_header_dwrite_h" = xyes; then :
18971 cat >>confdefs.h <<_ACEOF
18972 #define HAVE_DWRITE_H 1
18974 have_directwrite=true
18981 ac_cpp='$CPP $CPPFLAGS'
18982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18986 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
18987 as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
18989 if $have_directwrite; then
18990 DIRECTWRITE_CXXFLAGS=
18991 DIRECTWRITE_LIBS="-ldwrite"
18995 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
18998 if $have_directwrite; then
18999 HAVE_DIRECTWRITE_TRUE=
19000 HAVE_DIRECTWRITE_FALSE='#'
19002 HAVE_DIRECTWRITE_TRUE='#'
19003 HAVE_DIRECTWRITE_FALSE=
19009 # Check whether --with-coretext was given.
19010 if test "${with_coretext+set}" = set; then :
19011 withval=$with_coretext;
19016 have_coretext=false
19017 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
19018 ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
19020 if test "x$ac_cv_type_CTFontRef" = xyes; then :
19025 if $have_coretext; then
19027 CORETEXT_LIBS="-framework ApplicationServices"
19031 # On iOS CoreText and CoreGraphics are stand-alone frameworks
19032 if test "x$have_coretext" != "xtrue"; then
19033 ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <CoreText/CoreText.h>
19035 if test "x$ac_cv_type_CTFontRef" = xyes; then :
19041 if $have_coretext; then
19043 CORETEXT_LIBS="-framework CoreText -framework CoreGraphics"
19049 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
19050 as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
19052 if $have_coretext; then
19054 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
19057 if $have_coretext; then
19058 HAVE_CORETEXT_TRUE=
19059 HAVE_CORETEXT_FALSE='#'
19061 HAVE_CORETEXT_TRUE='#'
19062 HAVE_CORETEXT_FALSE=
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
19068 $as_echo_n "checking for Intel atomic primitives... " >&6; }
19069 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
19070 $as_echo_n "(cached) " >&6
19073 hb_cv_have_intel_atomic_primitives=false
19074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075 /* end confdefs.h. */
19077 void memory_barrier (void) { __sync_synchronize (); }
19078 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
19079 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
19080 void mutex_unlock (int *m) { __sync_lock_release (m); }
19090 if ac_fn_c_try_link "$LINENO"; then :
19091 hb_cv_have_intel_atomic_primitives=true
19094 rm -f core conftest.err conftest.$ac_objext \
19095 conftest$ac_exeext conftest.$ac_ext
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
19099 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
19100 if $hb_cv_have_intel_atomic_primitives; then
19102 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
19108 $as_echo_n "checking for Solaris atomic operations... " >&6; }
19109 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
19110 $as_echo_n "(cached) " >&6
19113 hb_cv_have_solaris_atomic_ops=false
19114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19115 /* end confdefs.h. */
19117 #include <atomic.h>
19118 /* This requires Solaris Studio 12.2 or newer: */
19119 #include <mbarrier.h>
19120 void memory_barrier (void) { __machine_rw_barrier (); }
19121 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
19122 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
19132 if ac_fn_c_try_link "$LINENO"; then :
19133 hb_cv_have_solaris_atomic_ops=true
19136 rm -f core conftest.err conftest.$ac_objext \
19137 conftest$ac_exeext conftest.$ac_ext
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
19141 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
19142 if $hb_cv_have_solaris_atomic_ops; then
19144 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
19148 if test "$os_win32" = no && ! $have_pthread; then
19149 for ac_header in sched.h
19151 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19152 if test "x$ac_cv_header_sched_h" = xyes; then :
19153 cat >>confdefs.h <<_ACEOF
19154 #define HAVE_SCHED_H 1
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
19162 $as_echo_n "checking for library containing sched_yield... " >&6; }
19163 if ${ac_cv_search_sched_yield+:} false; then :
19164 $as_echo_n "(cached) " >&6
19166 ac_func_search_save_LIBS=$LIBS
19167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19168 /* end confdefs.h. */
19170 /* Override any GCC internal prototype to avoid an error.
19171 Use char because int might match the return type of a GCC
19172 builtin and then its argument prototype would still apply. */
19176 char sched_yield ();
19180 return sched_yield ();
19185 for ac_lib in '' rt; do
19186 if test -z "$ac_lib"; then
19187 ac_res="none required"
19190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19192 if ac_fn_c_try_link "$LINENO"; then :
19193 ac_cv_search_sched_yield=$ac_res
19195 rm -f core conftest.err conftest.$ac_objext \
19197 if ${ac_cv_search_sched_yield+:} false; then :
19201 if ${ac_cv_search_sched_yield+:} false; then :
19204 ac_cv_search_sched_yield=no
19206 rm conftest.$ac_ext
19207 LIBS=$ac_func_search_save_LIBS
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
19210 $as_echo "$ac_cv_search_sched_yield" >&6; }
19211 ac_res=$ac_cv_search_sched_yield
19212 if test "$ac_res" != no; then :
19213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19215 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19222 ac_config_files="$ac_config_files Makefile src/Makefile src/hb-version.h src/hb-ucdn/Makefile util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shaping/Makefile docs/Makefile docs/version.xml win32/Makefile win32/config.h.win32"
19225 cat >confcache <<\_ACEOF
19226 # This file is a shell script that caches the results of configure
19227 # tests run on this system so they can be shared between configure
19228 # scripts and configure runs, see configure's option --config-cache.
19229 # It is not useful on other systems. If it contains results you don't
19230 # want to keep, you may remove or edit it.
19232 # config.status only pays attention to the cache file if you give it
19233 # the --recheck option to rerun configure.
19235 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19236 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19237 # following values.
19241 # The following way of writing the cache mishandles newlines in values,
19242 # but we know of no workaround that is simple, portable, and efficient.
19243 # So, we kill variables containing newlines.
19244 # Ultrix sh set writes to stderr and can't be redirected directly,
19245 # and sets the high bit in the cache file unless we assign to the vars.
19247 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19248 eval ac_val=\$$ac_var
19252 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19253 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19256 _ | IFS | as_nl) ;; #(
19257 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19258 *) { eval $ac_var=; unset $ac_var;} ;;
19264 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19265 *${as_nl}ac_space=\ *)
19266 # `set' does not quote correctly, so add quotes: double-quote
19267 # substitution turns \\\\ into \\, and sed turns \\ into \.
19270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19273 # `set' quotes correctly as required by POSIX, so do not add quotes.
19274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19283 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19285 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19287 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19288 if test -w "$cache_file"; then
19289 if test "x$cache_file" != "x/dev/null"; then
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19291 $as_echo "$as_me: updating cache $cache_file" >&6;}
19292 if test ! -f "$cache_file" || test -h "$cache_file"; then
19293 cat confcache >"$cache_file"
19295 case $cache_file in #(
19297 mv -f confcache "$cache_file"$$ &&
19298 mv -f "$cache_file"$$ "$cache_file" ;; #(
19300 mv -f confcache "$cache_file" ;;
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19306 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19311 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19312 # Let make expand exec_prefix.
19313 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19315 DEFS=-DHAVE_CONFIG_H
19320 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19321 # 1. Remove the extension, and $U if already installed.
19322 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19323 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19324 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19325 # will be set to the directory where LIBOBJS objects are built.
19326 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19327 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19329 LIBOBJS=$ac_libobjs
19331 LTLIBOBJS=$ac_ltlibobjs
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19335 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19336 if test -n "$am_sleep_pid"; then
19337 # Hide warnings about reused PIDs.
19338 wait $am_sleep_pid 2>/dev/null
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19341 $as_echo "done" >&6; }
19342 if test -n "$EXEEXT"; then
19344 am__EXEEXT_FALSE='#'
19346 am__EXEEXT_TRUE='#'
19350 if test -z "${AUTOMAKE_OLDER_THAN_1_13_TRUE}" && test -z "${AUTOMAKE_OLDER_THAN_1_13_FALSE}"; then
19351 as_fn_error $? "conditional \"AUTOMAKE_OLDER_THAN_1_13\" was never defined.
19352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19354 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19355 as_fn_error $? "conditional \"AMDEP\" was never defined.
19356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19358 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19359 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19362 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19363 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19366 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19367 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19370 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
19371 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
19372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19374 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
19375 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
19376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19378 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
19379 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
19380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19382 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
19383 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
19384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19386 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
19387 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
19388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19390 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
19391 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
19392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19394 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
19395 as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
19396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19398 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
19399 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
19400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19402 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
19403 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
19404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19406 if test -z "${HAVE_OT_TRUE}" && test -z "${HAVE_OT_FALSE}"; then
19407 as_fn_error $? "conditional \"HAVE_OT\" was never defined.
19408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19410 if test -z "${HAVE_FALLBACK_TRUE}" && test -z "${HAVE_FALLBACK_FALSE}"; then
19411 as_fn_error $? "conditional \"HAVE_FALLBACK\" was never defined.
19412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19414 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
19415 as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
19416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19418 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
19419 as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
19420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19422 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
19423 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
19424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19426 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
19427 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
19428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19430 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
19431 as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
19432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19434 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
19435 as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
19436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19438 if test -z "${HAVE_FONTCONFIG_TRUE}" && test -z "${HAVE_FONTCONFIG_FALSE}"; then
19439 as_fn_error $? "conditional \"HAVE_FONTCONFIG\" was never defined.
19440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19442 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
19443 as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
19444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19446 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
19447 as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
19448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19450 if test -z "${HAVE_UCDN_TRUE}" && test -z "${HAVE_UCDN_FALSE}"; then
19451 as_fn_error $? "conditional \"HAVE_UCDN\" was never defined.
19452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19454 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
19455 as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
19456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19458 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
19459 as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
19460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19462 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
19463 as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
19464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19466 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
19467 as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
19468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19470 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
19471 as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
19472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19475 : "${CONFIG_STATUS=./config.status}"
19477 ac_clean_files_save=$ac_clean_files
19478 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19480 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19482 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19484 # Generated by $as_me.
19485 # Run this file to recreate the current configuration.
19486 # Compiler output produced by configure, useful for debugging
19487 # configure, is in config.log if it exists.
19490 ac_cs_recheck=false
19493 SHELL=\${CONFIG_SHELL-$SHELL}
19496 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19497 ## -------------------- ##
19498 ## M4sh Initialization. ##
19499 ## -------------------- ##
19501 # Be more Bourne compatible
19502 DUALCASE=1; export DUALCASE # for MKS sh
19503 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19506 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19507 # is contrary to our usage. Disable this feature.
19508 alias -g '${1+"$@"}'='"$@"'
19509 setopt NO_GLOB_SUBST
19511 case `(set -o) 2>/dev/null` in #(
19523 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19524 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19525 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19526 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19527 # Prefer a ksh shell builtin over an external printf program on Solaris,
19528 # but without wasting forks for bash or zsh.
19529 if test -z "$BASH_VERSION$ZSH_VERSION" \
19530 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19531 as_echo='print -r --'
19532 as_echo_n='print -rn --'
19533 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19534 as_echo='printf %s\n'
19535 as_echo_n='printf %s'
19537 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19538 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19539 as_echo_n='/usr/ucb/echo -n'
19541 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19542 as_echo_n_body='eval
19546 expr "X$arg" : "X\\(.*\\)$as_nl";
19547 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19549 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19551 export as_echo_n_body
19552 as_echo_n='sh -c $as_echo_n_body as_echo'
19554 export as_echo_body
19555 as_echo='sh -c $as_echo_body as_echo'
19558 # The user is always right.
19559 if test "${PATH_SEPARATOR+set}" != set; then
19561 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19562 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19569 # We need space, tab and new line, in precisely that order. Quoting is
19570 # there to prevent editors from complaining about space-tab.
19571 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19572 # splitting by setting IFS to empty value.)
19575 # Find who we are. Look in the path if we contain no directory separator.
19578 *[\\/]* ) as_myself=$0 ;;
19579 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19580 for as_dir in $PATH
19583 test -z "$as_dir" && as_dir=.
19584 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19590 # We did not find ourselves, most probably we were run as `sh COMMAND'
19591 # in which case we are not to be found in the path.
19592 if test "x$as_myself" = x; then
19595 if test ! -f "$as_myself"; then
19596 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19600 # Unset variables that we do not need and which cause bugs (e.g. in
19601 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19602 # suppresses any "Segmentation fault" message there. '((' could
19603 # trigger a bug in pdksh 5.2.14.
19604 for as_var in BASH_ENV ENV MAIL MAILPATH
19605 do eval test x\${$as_var+set} = xset \
19606 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19619 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19622 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19623 # ----------------------------------------
19624 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19625 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19626 # script with STATUS, using 1 if that was 0.
19629 as_status=$1; test $as_status -eq 0 && as_status=1
19631 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19632 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19634 $as_echo "$as_me: error: $2" >&2
19635 as_fn_exit $as_status
19639 # as_fn_set_status STATUS
19640 # -----------------------
19641 # Set $? to STATUS, without forking.
19642 as_fn_set_status ()
19645 } # as_fn_set_status
19647 # as_fn_exit STATUS
19648 # -----------------
19649 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19653 as_fn_set_status $1
19659 # Portably unset VAR.
19662 { eval $1=; unset $1;}
19664 as_unset=as_fn_unset
19665 # as_fn_append VAR VALUE
19666 # ----------------------
19667 # Append the text in VALUE to the end of the definition contained in VAR. Take
19668 # advantage of any shell optimizations that allow amortized linear growth over
19669 # repeated appends, instead of the typical quadratic growth present in naive
19671 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19672 eval 'as_fn_append ()
19683 # as_fn_arith ARG...
19684 # ------------------
19685 # Perform arithmetic evaluation on the ARGs, and store the result in the
19686 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19687 # must be portable across $(()) and expr.
19688 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19689 eval 'as_fn_arith ()
19696 as_val=`expr "$@" || test $? -eq 1`
19701 if expr a : '\(a\)' >/dev/null 2>&1 &&
19702 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19708 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19709 as_basename=basename
19714 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19720 as_me=`$as_basename -- "$0" ||
19721 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19722 X"$0" : 'X\(//\)$' \| \
19723 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19725 sed '/^.*\/\([^/][^/]*\)\/*$/{
19739 # Avoid depending upon Character Ranges.
19740 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19741 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19742 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19743 as_cr_digits='0123456789'
19744 as_cr_alnum=$as_cr_Letters$as_cr_digits
19746 ECHO_C= ECHO_N= ECHO_T=
19747 case `echo -n x` in #(((((
19749 case `echo 'xy\c'` in
19750 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19752 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19759 rm -f conf$$ conf$$.exe conf$$.file
19760 if test -d conf$$.dir; then
19761 rm -f conf$$.dir/conf$$.file
19764 mkdir conf$$.dir 2>/dev/null
19766 if (echo >conf$$.file) 2>/dev/null; then
19767 if ln -s conf$$.file conf$$ 2>/dev/null; then
19769 # ... but there are two gotchas:
19770 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19771 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19772 # In both cases, we have to default to `cp -pR'.
19773 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19775 elif ln conf$$.file conf$$ 2>/dev/null; then
19783 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19784 rmdir conf$$.dir 2>/dev/null
19789 # Create "$as_dir" as a directory, including parents if necessary.
19794 -*) as_dir=./$as_dir;;
19796 test -d "$as_dir" || eval $as_mkdir_p || {
19800 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19801 *) as_qdir=$as_dir;;
19803 as_dirs="'$as_qdir' $as_dirs"
19804 as_dir=`$as_dirname -- "$as_dir" ||
19805 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19806 X"$as_dir" : 'X\(//\)[^/]' \| \
19807 X"$as_dir" : 'X\(//\)$' \| \
19808 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19809 $as_echo X"$as_dir" |
19810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19814 /^X\(\/\/\)[^/].*/{
19827 test -d "$as_dir" && break
19829 test -z "$as_dirs" || eval "mkdir $as_dirs"
19830 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19834 if mkdir -p . 2>/dev/null; then
19835 as_mkdir_p='mkdir -p "$as_dir"'
19837 test -d ./-p && rmdir ./-p
19842 # as_fn_executable_p FILE
19843 # -----------------------
19844 # Test if FILE is an executable regular file.
19845 as_fn_executable_p ()
19847 test -f "$1" && test -x "$1"
19848 } # as_fn_executable_p
19849 as_test_x='test -x'
19850 as_executable_p=as_fn_executable_p
19852 # Sed expression to map a string onto a valid CPP name.
19853 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19855 # Sed expression to map a string onto a valid variable name.
19856 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19860 ## ----------------------------------- ##
19861 ## Main body of $CONFIG_STATUS script. ##
19862 ## ----------------------------------- ##
19864 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19867 # Save the log message, to keep $0 and so on meaningful, and to
19868 # report actual input values of CONFIG_FILES etc. instead of their
19869 # values after options handling.
19871 This file was extended by HarfBuzz $as_me 1.3.0, which was
19872 generated by GNU Autoconf 2.69. Invocation command line was
19874 CONFIG_FILES = $CONFIG_FILES
19875 CONFIG_HEADERS = $CONFIG_HEADERS
19876 CONFIG_LINKS = $CONFIG_LINKS
19877 CONFIG_COMMANDS = $CONFIG_COMMANDS
19880 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19885 case $ac_config_files in *"
19886 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19889 case $ac_config_headers in *"
19890 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19895 # Files that config.status was made for.
19896 config_files="$ac_config_files"
19897 config_headers="$ac_config_headers"
19898 config_commands="$ac_config_commands"
19902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19904 \`$as_me' instantiates files and other configuration actions
19905 from templates according to the current configuration. Unless the files
19906 and actions are specified as TAGs, all are instantiated by default.
19908 Usage: $0 [OPTION]... [TAG]...
19910 -h, --help print this help, then exit
19911 -V, --version print version number and configuration settings, then exit
19912 --config print configuration, then exit
19913 -q, --quiet, --silent
19914 do not print progress messages
19915 -d, --debug don't remove temporary files
19916 --recheck update $as_me by reconfiguring in the same conditions
19917 --file=FILE[:TEMPLATE]
19918 instantiate the configuration file FILE
19919 --header=FILE[:TEMPLATE]
19920 instantiate the configuration header FILE
19922 Configuration files:
19925 Configuration headers:
19928 Configuration commands:
19931 Report bugs to <https://github.com/behdad/harfbuzz/issues/new>.
19932 HarfBuzz home page: <http://harfbuzz.org/>."
19935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19936 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19938 HarfBuzz config.status 1.3.0
19939 configured by $0, generated by GNU Autoconf 2.69,
19940 with options \\"\$ac_cs_config\\"
19942 Copyright (C) 2012 Free Software Foundation, Inc.
19943 This config.status script is free software; the Free Software Foundation
19944 gives unlimited permission to copy, distribute and modify it."
19951 test -n "\$AWK" || AWK=awk
19954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19955 # The default lists apply if the user does not specify any file.
19961 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19962 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19966 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19978 # Handling of the options.
19979 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19981 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19982 $as_echo "$ac_cs_version"; exit ;;
19983 --config | --confi | --conf | --con | --co | --c )
19984 $as_echo "$ac_cs_config"; exit ;;
19985 --debug | --debu | --deb | --de | --d | -d )
19987 --file | --fil | --fi | --f )
19990 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19991 '') as_fn_error $? "missing file argument" ;;
19993 as_fn_append CONFIG_FILES " '$ac_optarg'"
19994 ac_need_defaults=false;;
19995 --header | --heade | --head | --hea )
19998 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20000 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20001 ac_need_defaults=false;;
20003 # Conflict between --help and --header
20004 as_fn_error $? "ambiguous option: \`$1'
20005 Try \`$0 --help' for more information.";;
20006 --help | --hel | -h )
20007 $as_echo "$ac_cs_usage"; exit ;;
20008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20009 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20012 # This is an error.
20013 -*) as_fn_error $? "unrecognized option: \`$1'
20014 Try \`$0 --help' for more information." ;;
20016 *) as_fn_append ac_config_targets " $1"
20017 ac_need_defaults=false ;;
20023 ac_configure_extra_args=
20025 if $ac_cs_silent; then
20027 ac_configure_extra_args="$ac_configure_extra_args --silent"
20031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20032 if \$ac_cs_recheck; then
20033 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20035 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20036 CONFIG_SHELL='$SHELL'
20037 export CONFIG_SHELL
20042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20046 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20047 ## Running $as_me. ##
20053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20057 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20060 # The HP-UX ksh and POSIX shell print the target directory to stdout
20061 # if CDPATH is set.
20062 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20064 sed_quote_subst='$sed_quote_subst'
20065 double_quote_subst='$double_quote_subst'
20066 delay_variable_subst='$delay_variable_subst'
20067 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20068 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20069 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20070 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20071 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20072 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20073 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20074 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20075 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20076 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20077 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20078 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20079 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20080 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20081 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20082 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20083 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20084 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20085 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20086 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20087 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20088 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20089 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20090 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20091 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20092 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20093 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20094 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20095 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20096 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20097 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20098 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20099 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20100 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20101 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20102 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20103 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20104 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20105 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20106 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20107 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20108 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20109 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20110 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20111 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20112 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20113 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20114 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20115 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20116 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20117 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20118 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20119 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20120 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20121 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20122 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20123 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"`'
20124 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20125 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20126 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20127 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20128 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20129 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20130 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20131 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20132 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20133 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20134 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20135 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20136 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20137 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20138 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20139 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20140 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20141 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20142 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20143 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20144 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20145 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20146 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20147 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20148 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20149 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20150 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20151 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20152 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20153 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20154 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20155 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20156 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20157 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20158 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20159 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20160 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20161 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20162 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20163 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20164 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20165 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20166 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20167 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20168 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20169 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20170 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20171 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20172 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20173 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20174 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20175 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20176 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20177 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20178 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20179 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20180 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20181 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20182 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20183 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20184 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20185 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20186 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20187 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20188 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20189 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20190 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20191 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20192 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20193 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20194 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20195 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20196 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20197 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20198 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20199 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20200 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20201 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20202 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20203 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20204 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20205 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20206 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20207 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20208 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20209 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20210 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20211 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20212 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20213 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20214 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20215 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20216 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20217 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20218 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20219 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20220 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20221 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20222 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20223 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20224 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20225 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20226 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20227 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20228 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20229 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20230 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20231 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20232 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20233 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20234 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20235 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20236 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20237 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20238 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20239 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20240 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20241 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20242 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20243 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20244 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20245 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20246 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20247 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20248 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20249 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20250 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20253 LTCFLAGS='$LTCFLAGS'
20254 compiler='$compiler_DEFAULT'
20256 # A function that is used when there is no print builtin or printf.
20257 func_fallback_echo ()
20259 eval 'cat <<_LTECHO_EOF
20264 # Quote evaled strings.
20279 deplibs_check_method \
20284 sharedlib_from_linklib_cmd \
20287 archiver_list_spec \
20293 lt_cv_sys_global_symbol_pipe \
20294 lt_cv_sys_global_symbol_to_cdecl \
20295 lt_cv_sys_global_symbol_to_c_name_address \
20296 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20297 nm_file_list_spec \
20298 lt_prog_compiler_no_builtin_flag \
20299 lt_prog_compiler_pic \
20300 lt_prog_compiler_wl \
20301 lt_prog_compiler_static \
20302 lt_cv_prog_compiler_c_o \
20311 export_dynamic_flag_spec \
20312 whole_archive_flag_spec \
20313 compiler_needs_object \
20315 allow_undefined_flag \
20316 no_undefined_flag \
20317 hardcode_libdir_flag_spec \
20318 hardcode_libdir_separator \
20322 variables_saved_for_relink \
20324 library_names_spec \
20326 install_override_mode \
20330 compiler_lib_search_dirs \
20335 compiler_lib_search_path \
20339 lt_prog_compiler_no_builtin_flag_CXX \
20340 lt_prog_compiler_pic_CXX \
20341 lt_prog_compiler_wl_CXX \
20342 lt_prog_compiler_static_CXX \
20343 lt_cv_prog_compiler_c_o_CXX \
20344 export_dynamic_flag_spec_CXX \
20345 whole_archive_flag_spec_CXX \
20346 compiler_needs_object_CXX \
20348 allow_undefined_flag_CXX \
20349 no_undefined_flag_CXX \
20350 hardcode_libdir_flag_spec_CXX \
20351 hardcode_libdir_separator_CXX \
20352 exclude_expsyms_CXX \
20353 include_expsyms_CXX \
20354 file_list_spec_CXX \
20355 compiler_lib_search_dirs_CXX \
20356 predep_objects_CXX \
20357 postdep_objects_CXX \
20360 compiler_lib_search_path_CXX; do
20361 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20362 *[\\\\\\\`\\"\\\$]*)
20363 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20366 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20371 # Double-quote double-evaled strings.
20372 for var in reload_cmds \
20373 old_postinstall_cmds \
20374 old_postuninstall_cmds \
20376 extract_expsyms_cmds \
20377 old_archive_from_new_cmds \
20378 old_archive_from_expsyms_cmds \
20380 archive_expsym_cmds \
20382 module_expsym_cmds \
20383 export_symbols_cmds \
20387 postuninstall_cmds \
20389 sys_lib_search_path_spec \
20390 sys_lib_dlsearch_path_spec \
20392 old_archive_cmds_CXX \
20393 old_archive_from_new_cmds_CXX \
20394 old_archive_from_expsyms_cmds_CXX \
20396 archive_expsym_cmds_CXX \
20398 module_expsym_cmds_CXX \
20399 export_symbols_cmds_CXX \
20401 postlink_cmds_CXX; do
20402 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20403 *[\\\\\\\`\\"\\\$]*)
20404 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20407 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20412 ac_aux_dir='$ac_aux_dir'
20413 xsi_shell='$xsi_shell'
20414 lt_shell_append='$lt_shell_append'
20416 # See if we are running on zsh, and set the options which allow our
20417 # commands through without removal of \ escapes INIT.
20418 if test -n "\${ZSH_VERSION+set}" ; then
20419 setopt NO_GLOB_SUBST
20425 TIMESTAMP='$TIMESTAMP'
20436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20438 # Handling of arguments.
20439 for ac_config_target in $ac_config_targets
20441 case $ac_config_target in
20442 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20443 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20444 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20445 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20446 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20447 "src/hb-version.h") CONFIG_FILES="$CONFIG_FILES src/hb-version.h" ;;
20448 "src/hb-ucdn/Makefile") CONFIG_FILES="$CONFIG_FILES src/hb-ucdn/Makefile" ;;
20449 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
20450 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20451 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
20452 "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
20453 "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
20454 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20455 "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
20456 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
20457 "win32/config.h.win32") CONFIG_FILES="$CONFIG_FILES win32/config.h.win32" ;;
20459 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20464 # If the user did not use the arguments to specify the items to instantiate,
20465 # then the envvar interface is used. Set only those that are not.
20466 # We use the long form for the default assignment because of an extremely
20467 # bizarre bug on SunOS 4.1.3.
20468 if $ac_need_defaults; then
20469 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20470 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20471 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20474 # Have a temporary directory for convenience. Make it in the build tree
20475 # simply because there is no reason against having it here, and in addition,
20476 # creating and moving files from /tmp can sometimes cause problems.
20477 # Hook for its removal unless debugging.
20478 # Note that there is a small window in which the directory will not be cleaned:
20479 # after its creation but before its name has been assigned to `$tmp'.
20483 trap 'exit_status=$?
20484 : "${ac_tmp:=$tmp}"
20485 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20487 trap 'as_fn_exit 1' 1 2 13 15
20489 # Create a (secure) tmp directory for tmp files.
20492 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20496 tmp=./conf$$-$RANDOM
20497 (umask 077 && mkdir "$tmp")
20498 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20501 # Set up the scripts for CONFIG_FILES section.
20502 # No need to generate them if there are no CONFIG_FILES.
20503 # This happens for instance with `./config.status config.h'.
20504 if test -n "$CONFIG_FILES"; then
20507 ac_cr=`echo X | tr X '\015'`
20508 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20509 # But we know of no other shell where ac_cr would be empty at this
20510 # point, so we can use a bashism as a fallback.
20511 if test "x$ac_cr" = x; then
20512 eval ac_cr=\$\'\\r\'
20514 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20515 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20518 ac_cs_awk_cr=$ac_cr
20521 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20526 echo "cat >conf$$subs.awk <<_ACEOF" &&
20527 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20529 } >conf$$subs.sh ||
20530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20531 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20533 for ac_last_try in false false false false false :; do
20534 . ./conf$$subs.sh ||
20535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20537 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20538 if test $ac_delim_n = $ac_delim_num; then
20540 elif $ac_last_try; then
20541 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20546 rm -f conf$$subs.sh
20548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20549 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20553 s/^/S["/; s/!.*/"]=/
20563 s/\(.\{148\}\)..*/\1/
20565 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20570 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20577 s/\(.\{148\}\)..*/\1/
20579 s/["\\]/\\&/g; s/^/"/; s/$/"/
20583 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20588 ' <conf$$subs.awk | sed '
20593 ' >>$CONFIG_STATUS || ac_write_fail=1
20594 rm -f conf$$subs.awk
20595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20597 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20598 for (key in S) S_is_set[key] = 1
20604 nfields = split(line, field, "@")
20606 len = length(field[1])
20607 for (i = 2; i < nfields; i++) {
20609 keylen = length(key)
20610 if (S_is_set[key]) {
20612 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20613 len += length(value) + length(field[++i])
20624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20625 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20626 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20629 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20630 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20633 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20634 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20635 # trailing colons and then remove the whole line if VPATH becomes empty
20636 # (actually we leave an empty line to preserve line numbers).
20637 if test "x$srcdir" = x.; then
20638 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20657 fi # test -n "$CONFIG_FILES"
20659 # Set up the scripts for CONFIG_HEADERS section.
20660 # No need to generate them if there are no CONFIG_HEADERS.
20661 # This happens for instance with `./config.status Makefile'.
20662 if test -n "$CONFIG_HEADERS"; then
20663 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20667 # Transform confdefs.h into an awk script `defines.awk', embedded as
20668 # here-document in config.status, that substitutes the proper values into
20669 # config.h.in to produce config.h.
20671 # Create a delimiter string that does not exist in confdefs.h, to ease
20672 # handling of long lines.
20674 for ac_last_try in false false :; do
20675 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20676 if test -z "$ac_tt"; then
20678 elif $ac_last_try; then
20679 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20685 # For the awk script, D is an array of macro values keyed by name,
20686 # likewise P contains macro parameters if any. Preserve backslash
20687 # newline sequences.
20689 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20691 s/.\{148\}/&'"$ac_delim"'/g
20694 s/^[ ]*#[ ]*define[ ][ ]*/ /
20701 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20703 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20707 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20708 D["\1"]=" \3\\\\\\n"\\/p
20710 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20715 s/.\{148\}/&'"$ac_delim"'/g
20720 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20723 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20725 ' <confdefs.h | sed '
20726 s/'"$ac_delim"'/"\\\
20727 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20730 for (key in D) D_is_set[key] = 1
20733 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20735 split(line, arg, " ")
20736 if (arg[1] == "#") {
20740 defundef = substr(arg[1], 2)
20743 split(mac1, mac2, "(") #)
20745 prefix = substr(line, 1, index(line, defundef) - 1)
20746 if (D_is_set[macro]) {
20747 # Preserve the white space surrounding the "#".
20748 print prefix "define", macro P[macro] D[macro]
20751 # Replace #undef with comments. This is necessary, for example,
20752 # in the case of _POSIX_SOURCE, which is predefined and required
20753 # on some systems where configure will not decide to define it.
20754 if (defundef == "undef") {
20755 print "/*", prefix defundef, macro, "*/"
20763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20764 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20765 fi # test -n "$CONFIG_HEADERS"
20768 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20773 :[FHLC]) ac_mode=$ac_tag; continue;;
20775 case $ac_mode$ac_tag in
20777 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20778 :[FH]-) ac_tag=-:-;;
20779 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20796 -) ac_f="$ac_tmp/stdin";;
20797 *) # Look for the file first in the build tree, then in the source tree
20798 # (if the path is not absolute). The absolute path cannot be DOS-style,
20799 # because $ac_f cannot contain `:'.
20803 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20805 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20807 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20808 as_fn_append ac_file_inputs " '$ac_f'"
20811 # Let's still pretend it is `configure' which instantiates (i.e., don't
20812 # use $as_me), people would be surprised to read:
20813 # /* config.h. Generated by config.status. */
20814 configure_input='Generated from '`
20815 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20817 if test x"$ac_file" != x-; then
20818 configure_input="$ac_file. $configure_input"
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20820 $as_echo "$as_me: creating $ac_file" >&6;}
20822 # Neutralize special characters interpreted by sed in replacement strings.
20823 case $configure_input in #(
20824 *\&* | *\|* | *\\* )
20825 ac_sed_conf_input=`$as_echo "$configure_input" |
20826 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20827 *) ac_sed_conf_input=$configure_input;;
20831 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20837 ac_dir=`$as_dirname -- "$ac_file" ||
20838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20839 X"$ac_file" : 'X\(//\)[^/]' \| \
20840 X"$ac_file" : 'X\(//\)$' \| \
20841 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20842 $as_echo X"$ac_file" |
20843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20847 /^X\(\/\/\)[^/].*/{
20860 as_dir="$ac_dir"; as_fn_mkdir_p
20864 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20866 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20867 # A ".." for each directory in $ac_dir_suffix.
20868 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20869 case $ac_top_builddir_sub in
20870 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20871 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20874 ac_abs_top_builddir=$ac_pwd
20875 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20876 # for backward compatibility:
20877 ac_top_builddir=$ac_top_build_prefix
20880 .) # We are building in place.
20882 ac_top_srcdir=$ac_top_builddir_sub
20883 ac_abs_top_srcdir=$ac_pwd ;;
20884 [\\/]* | ?:[\\/]* ) # Absolute name.
20885 ac_srcdir=$srcdir$ac_dir_suffix;
20886 ac_top_srcdir=$srcdir
20887 ac_abs_top_srcdir=$srcdir ;;
20888 *) # Relative name.
20889 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20890 ac_top_srcdir=$ac_top_build_prefix$srcdir
20891 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20893 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20903 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20904 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20906 ac_MKDIR_P=$MKDIR_P
20908 [\\/$]* | ?:[\\/]* ) ;;
20909 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20914 # If the template does not know about datarootdir, expand it.
20915 # FIXME: This hack should be removed a few years after 2.60.
20916 ac_datarootdir_hack=; ac_datarootdir_seen=
20927 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20928 *datarootdir*) ac_datarootdir_seen=yes;;
20929 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20931 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20934 ac_datarootdir_hack='
20935 s&@datadir@&$datadir&g
20936 s&@docdir@&$docdir&g
20937 s&@infodir@&$infodir&g
20938 s&@localedir@&$localedir&g
20939 s&@mandir@&$mandir&g
20940 s&\\\${datarootdir}&$datarootdir&g' ;;
20944 # Neutralize VPATH when `$srcdir' = `.'.
20945 # Shell code in configure.ac might set extrasub.
20946 # FIXME: do we really want to maintain this feature?
20947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20948 ac_sed_extra="$ac_vpsub
20951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20954 s|@configure_input@|$ac_sed_conf_input|;t t
20955 s&@top_builddir@&$ac_top_builddir_sub&;t t
20956 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20957 s&@srcdir@&$ac_srcdir&;t t
20958 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20959 s&@top_srcdir@&$ac_top_srcdir&;t t
20960 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20961 s&@builddir@&$ac_builddir&;t t
20962 s&@abs_builddir@&$ac_abs_builddir&;t t
20963 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20964 s&@INSTALL@&$ac_INSTALL&;t t
20965 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20966 $ac_datarootdir_hack
20968 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20969 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20971 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20972 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20973 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20974 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20976 which seems to be undefined. Please make sure it is defined" >&5
20977 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20978 which seems to be undefined. Please make sure it is defined" >&2;}
20980 rm -f "$ac_tmp/stdin"
20982 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20983 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20991 if test x"$ac_file" != x-; then
20993 $as_echo "/* $configure_input */" \
20994 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20995 } >"$ac_tmp/config.h" \
20996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20997 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20998 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20999 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21002 mv "$ac_tmp/config.h" "$ac_file" \
21003 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21006 $as_echo "/* $configure_input */" \
21007 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21008 || as_fn_error $? "could not create -" "$LINENO" 5
21010 # Compute "$ac_file"'s index in $config_headers.
21013 for _am_header in $config_headers :; do
21014 case $_am_header in
21015 $_am_arg | $_am_arg:* )
21018 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21021 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21022 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21023 X"$_am_arg" : 'X\(//\)[^/]' \| \
21024 X"$_am_arg" : 'X\(//\)$' \| \
21025 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21026 $as_echo X"$_am_arg" |
21027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21031 /^X\(\/\/\)[^/].*/{
21043 s/.*/./; q'`/stamp-h$_am_stamp_count
21046 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21047 $as_echo "$as_me: executing $ac_file commands" >&6;}
21052 case $ac_file$ac_mode in
21053 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21054 # Older Autoconf quotes --file arguments for eval, but not when files
21055 # are listed without --file. Let's play safe and only enable the eval
21056 # if we detect the quoting.
21057 case $CONFIG_FILES in
21058 *\'*) eval set x "$CONFIG_FILES" ;;
21059 *) set x $CONFIG_FILES ;;
21064 # Strip MF so we end up with the name of the file.
21065 mf=`echo "$mf" | sed -e 's/:.*$//'`
21066 # Check whether this is an Automake generated Makefile or not.
21067 # We used to match only the files named 'Makefile.in', but
21068 # some people rename them; so instead we look at the file content.
21069 # Grep'ing the first line is not enough: some people post-process
21070 # each Makefile.in and add a new line on top of each file to say so.
21071 # Grep'ing the whole file is not good either: AIX grep has a line
21072 # limit of 2048, but all sed's we know have understand at least 4000.
21073 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21074 dirpart=`$as_dirname -- "$mf" ||
21075 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21076 X"$mf" : 'X\(//\)[^/]' \| \
21077 X"$mf" : 'X\(//\)$' \| \
21078 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21084 /^X\(\/\/\)[^/].*/{
21100 # Extract the definition of DEPDIR, am__include, and am__quote
21101 # from the Makefile without running 'make'.
21102 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21103 test -z "$DEPDIR" && continue
21104 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21105 test -z "$am__include" && continue
21106 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21107 # Find all dependency output files, they are included files with
21108 # $(DEPDIR) in their names. We invoke sed twice because it is the
21109 # simplest approach to changing $(DEPDIR) to its actual value in the
21111 for file in `sed -n "
21112 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21113 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21114 # Make sure the directory exists.
21115 test -f "$dirpart/$file" && continue
21116 fdir=`$as_dirname -- "$file" ||
21117 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21118 X"$file" : 'X\(//\)[^/]' \| \
21119 X"$file" : 'X\(//\)$' \| \
21120 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21121 $as_echo X"$file" |
21122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21126 /^X\(\/\/\)[^/].*/{
21139 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21140 # echo "creating $dirpart/$file"
21141 echo '# dummy' > "$dirpart/$file"
21148 # See if we are running on zsh, and set the options which allow our
21149 # commands through without removal of \ escapes.
21150 if test -n "${ZSH_VERSION+set}" ; then
21151 setopt NO_GLOB_SUBST
21154 cfgfile="${ofile}T"
21155 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21158 cat <<_LT_EOF >> "$cfgfile"
21161 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21162 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21163 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21164 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21166 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21167 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21169 # Written by Gordon Matzigkeit, 1996
21171 # This file is part of GNU Libtool.
21173 # GNU Libtool is free software; you can redistribute it and/or
21174 # modify it under the terms of the GNU General Public License as
21175 # published by the Free Software Foundation; either version 2 of
21176 # the License, or (at your option) any later version.
21178 # As a special exception to the GNU General Public License,
21179 # if you distribute this file as part of a program or library that
21180 # is built using GNU Libtool, you may include this file under the
21181 # same distribution terms that you use for the rest of that program.
21183 # GNU Libtool is distributed in the hope that it will be useful,
21184 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21185 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21186 # GNU General Public License for more details.
21188 # You should have received a copy of the GNU General Public License
21189 # along with GNU Libtool; see the file COPYING. If not, a copy
21190 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21191 # obtained by writing to the Free Software Foundation, Inc.,
21192 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21195 # The names of the tagged configurations supported by this script.
21196 available_tags="CXX "
21198 # ### BEGIN LIBTOOL CONFIG
21200 # Which release of libtool.m4 was used?
21201 macro_version=$macro_version
21202 macro_revision=$macro_revision
21204 # Whether or not to build static libraries.
21205 build_old_libs=$enable_static
21207 # Whether or not to build shared libraries.
21208 build_libtool_libs=$enable_shared
21210 # What type of objects to build.
21213 # Whether or not to optimize for fast installation.
21214 fast_install=$enable_fast_install
21216 # Shell to use when invoking shell scripts.
21219 # An echo program that protects backslashes.
21222 # The PATH separator for the build system.
21223 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21226 host_alias=$host_alias
21230 # The build system.
21231 build_alias=$build_alias
21235 # A sed program that does not truncate output.
21238 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21239 Xsed="\$SED -e 1s/^X//"
21241 # A grep program that handles long lines.
21247 # A literal string matcher.
21250 # A BSD- or MS-compatible name lister.
21253 # Whether we need soft or hard links.
21256 # What is the maximum length of a command?
21257 max_cmd_len=$max_cmd_len
21259 # Object file suffix (normally "o").
21262 # Executable file suffix (normally "").
21265 # whether the shell understands "unset".
21268 # turn spaces into newlines.
21271 # turn newlines into spaces.
21274 # convert \$build file names to \$host format.
21275 to_host_file_cmd=$lt_cv_to_host_file_cmd
21277 # convert \$build files to toolchain format.
21278 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21280 # An object symbol dumper.
21281 OBJDUMP=$lt_OBJDUMP
21283 # Method to check whether dependent libraries are shared objects.
21284 deplibs_check_method=$lt_deplibs_check_method
21286 # Command to use when deplibs_check_method = "file_magic".
21287 file_magic_cmd=$lt_file_magic_cmd
21289 # How to find potential files when deplibs_check_method = "file_magic".
21290 file_magic_glob=$lt_file_magic_glob
21292 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21293 want_nocaseglob=$lt_want_nocaseglob
21295 # DLL creation program.
21296 DLLTOOL=$lt_DLLTOOL
21298 # Command to associate shared and link libraries.
21299 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21304 # Flags to create an archive.
21305 AR_FLAGS=$lt_AR_FLAGS
21307 # How to feed a file listing to the archiver.
21308 archiver_list_spec=$lt_archiver_list_spec
21310 # A symbol stripping program.
21313 # Commands used to install an old-style archive.
21315 old_postinstall_cmds=$lt_old_postinstall_cmds
21316 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21318 # Whether to use a lock for old archive extraction.
21319 lock_old_archive_extraction=$lock_old_archive_extraction
21324 # LTCC compiler flags.
21325 LTCFLAGS=$lt_CFLAGS
21327 # Take the output of nm and produce a listing of raw symbols and C names.
21328 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21330 # Transform the output of nm in a proper C declaration.
21331 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21333 # Transform the output of nm in a C name address pair.
21334 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21336 # Transform the output of nm in a C name address pair when lib prefix is needed.
21337 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21339 # Specify filename containing input files for \$NM.
21340 nm_file_list_spec=$lt_nm_file_list_spec
21342 # The root where to search for dependent libraries,and in which our libraries should be installed.
21343 lt_sysroot=$lt_sysroot
21345 # The name of the directory that contains temporary libtool files.
21348 # Used to examine libraries when file_magic_cmd begins with "file".
21349 MAGIC_CMD=$MAGIC_CMD
21351 # Must we lock files when doing compilation?
21352 need_locks=$lt_need_locks
21355 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21357 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21358 DSYMUTIL=$lt_DSYMUTIL
21360 # Tool to change global to local symbols on Mac OS X.
21363 # Tool to manipulate fat objects and archives on Mac OS X.
21366 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21369 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21370 OTOOL64=$lt_OTOOL64
21372 # Old archive suffix (normally "a").
21375 # Shared library suffix (normally ".so").
21376 shrext_cmds=$lt_shrext_cmds
21378 # The commands to extract the exported symbol list from a shared archive.
21379 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21381 # Variables whose values should be saved in libtool wrapper scripts and
21382 # restored at link time.
21383 variables_saved_for_relink=$lt_variables_saved_for_relink
21385 # Do we need the "lib" prefix for modules?
21386 need_lib_prefix=$need_lib_prefix
21388 # Do we need a version for libraries?
21389 need_version=$need_version
21391 # Library versioning type.
21392 version_type=$version_type
21394 # Shared library runtime path variable.
21395 runpath_var=$runpath_var
21397 # Shared library path variable.
21398 shlibpath_var=$shlibpath_var
21400 # Is shlibpath searched before the hard-coded library search path?
21401 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21403 # Format of library name prefix.
21404 libname_spec=$lt_libname_spec
21406 # List of archive names. First name is the real one, the rest are links.
21407 # The last name is the one that the linker finds with -lNAME
21408 library_names_spec=$lt_library_names_spec
21410 # The coded name of the library, if different from the real name.
21411 soname_spec=$lt_soname_spec
21413 # Permission mode override for installation of shared libraries.
21414 install_override_mode=$lt_install_override_mode
21416 # Command to use after installation of a shared archive.
21417 postinstall_cmds=$lt_postinstall_cmds
21419 # Command to use after uninstallation of a shared archive.
21420 postuninstall_cmds=$lt_postuninstall_cmds
21422 # Commands used to finish a libtool library installation in a directory.
21423 finish_cmds=$lt_finish_cmds
21425 # As "finish_cmds", except a single script fragment to be evaled but
21427 finish_eval=$lt_finish_eval
21429 # Whether we should hardcode library paths into libraries.
21430 hardcode_into_libs=$hardcode_into_libs
21432 # Compile-time system search path for libraries.
21433 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21435 # Run-time system search path for libraries.
21436 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21438 # Whether dlopen is supported.
21439 dlopen_support=$enable_dlopen
21441 # Whether dlopen of programs is supported.
21442 dlopen_self=$enable_dlopen_self
21444 # Whether dlopen of statically linked programs is supported.
21445 dlopen_self_static=$enable_dlopen_self_static
21447 # Commands to strip libraries.
21448 old_striplib=$lt_old_striplib
21449 striplib=$lt_striplib
21452 # The linker used to build libraries.
21455 # How to create reloadable object files.
21456 reload_flag=$lt_reload_flag
21457 reload_cmds=$lt_reload_cmds
21459 # Commands used to build an old-style archive.
21460 old_archive_cmds=$lt_old_archive_cmds
21462 # A language specific compiler.
21465 # Is the compiler the GNU compiler?
21468 # Compiler flag to turn off builtin functions.
21469 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21471 # Additional compiler flags for building library objects.
21472 pic_flag=$lt_lt_prog_compiler_pic
21474 # How to pass a linker flag through the compiler.
21475 wl=$lt_lt_prog_compiler_wl
21477 # Compiler flag to prevent dynamic linking.
21478 link_static_flag=$lt_lt_prog_compiler_static
21480 # Does compiler simultaneously support -c and -o options?
21481 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21483 # Whether or not to add -lc for building shared libraries.
21484 build_libtool_need_lc=$archive_cmds_need_lc
21486 # Whether or not to disallow shared libs when runtime libs are static.
21487 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21489 # Compiler flag to allow reflexive dlopens.
21490 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21492 # Compiler flag to generate shared objects directly from archives.
21493 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21495 # Whether the compiler copes with passing no objects directly.
21496 compiler_needs_object=$lt_compiler_needs_object
21498 # Create an old-style archive from a shared archive.
21499 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21501 # Create a temporary old-style archive to link instead of a shared archive.
21502 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21504 # Commands used to build a shared archive.
21505 archive_cmds=$lt_archive_cmds
21506 archive_expsym_cmds=$lt_archive_expsym_cmds
21508 # Commands used to build a loadable module if different from building
21509 # a shared archive.
21510 module_cmds=$lt_module_cmds
21511 module_expsym_cmds=$lt_module_expsym_cmds
21513 # Whether we are building with GNU ld or not.
21514 with_gnu_ld=$lt_with_gnu_ld
21516 # Flag that allows shared libraries with undefined symbols to be built.
21517 allow_undefined_flag=$lt_allow_undefined_flag
21519 # Flag that enforces no undefined symbols.
21520 no_undefined_flag=$lt_no_undefined_flag
21522 # Flag to hardcode \$libdir into a binary during linking.
21523 # This must work even if \$libdir does not exist
21524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21526 # Whether we need a single "-rpath" flag with a separated argument.
21527 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21529 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21530 # DIR into the resulting binary.
21531 hardcode_direct=$hardcode_direct
21533 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21534 # DIR into the resulting binary and the resulting library dependency is
21535 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21536 # library is relocated.
21537 hardcode_direct_absolute=$hardcode_direct_absolute
21539 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21540 # into the resulting binary.
21541 hardcode_minus_L=$hardcode_minus_L
21543 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21544 # into the resulting binary.
21545 hardcode_shlibpath_var=$hardcode_shlibpath_var
21547 # Set to "yes" if building a shared library automatically hardcodes DIR
21548 # into the library and all subsequent libraries and executables linked
21550 hardcode_automatic=$hardcode_automatic
21552 # Set to yes if linker adds runtime paths of dependent libraries
21553 # to runtime path list.
21554 inherit_rpath=$inherit_rpath
21556 # Whether libtool must link a program against all its dependency libraries.
21557 link_all_deplibs=$link_all_deplibs
21559 # Set to "yes" if exported symbols are required.
21560 always_export_symbols=$always_export_symbols
21562 # The commands to list exported symbols.
21563 export_symbols_cmds=$lt_export_symbols_cmds
21565 # Symbols that should not be listed in the preloaded symbols.
21566 exclude_expsyms=$lt_exclude_expsyms
21568 # Symbols that must always be exported.
21569 include_expsyms=$lt_include_expsyms
21571 # Commands necessary for linking programs (against libraries) with templates.
21572 prelink_cmds=$lt_prelink_cmds
21574 # Commands necessary for finishing linking programs.
21575 postlink_cmds=$lt_postlink_cmds
21577 # Specify filename containing input files.
21578 file_list_spec=$lt_file_list_spec
21580 # How to hardcode a shared library path into an executable.
21581 hardcode_action=$hardcode_action
21583 # The directories searched by this compiler when creating a shared library.
21584 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21586 # Dependencies to place before and after the objects being linked to
21587 # create a shared library.
21588 predep_objects=$lt_predep_objects
21589 postdep_objects=$lt_postdep_objects
21590 predeps=$lt_predeps
21591 postdeps=$lt_postdeps
21593 # The library search path used internally by the compiler when linking
21594 # a shared library.
21595 compiler_lib_search_path=$lt_compiler_lib_search_path
21597 # ### END LIBTOOL CONFIG
21603 cat <<\_LT_EOF >> "$cfgfile"
21604 # AIX sometimes has problems with the GCC collect2 program. For some
21605 # reason, if we set the COLLECT_NAMES environment variable, the problems
21606 # vanish in a puff of smoke.
21607 if test "X${COLLECT_NAMES+set}" != Xset; then
21609 export COLLECT_NAMES
21616 ltmain="$ac_aux_dir/ltmain.sh"
21619 # We use sed instead of cat because bash on DJGPP gets confused if
21620 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21621 # text mode, it properly converts lines to CR/LF. This bash problem
21622 # is reportedly fixed, but why not run on old versions too?
21623 sed '$q' "$ltmain" >> "$cfgfile" \
21624 || (rm -f "$cfgfile"; exit 1)
21626 if test x"$xsi_shell" = xyes; then
21627 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21631 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21632 \ * ) func_dirname_result="${3}" ;;\
21634 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21635 && mv -f "$cfgfile.tmp" "$cfgfile" \
21636 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21637 test 0 -eq $? || _lt_function_replace_fail=:
21640 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21643 \ func_basename_result="${1##*/}"\
21644 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21645 && mv -f "$cfgfile.tmp" "$cfgfile" \
21646 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21647 test 0 -eq $? || _lt_function_replace_fail=:
21650 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21651 func_dirname_and_basename ()\
21654 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21655 \ * ) func_dirname_result="${3}" ;;\
21657 \ func_basename_result="${1##*/}"\
21658 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21659 && mv -f "$cfgfile.tmp" "$cfgfile" \
21660 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21661 test 0 -eq $? || _lt_function_replace_fail=:
21664 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21667 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21668 \ # positional parameters, so assign one to ordinary parameter first.\
21669 \ func_stripname_result=${3}\
21670 \ func_stripname_result=${func_stripname_result#"${1}"}\
21671 \ func_stripname_result=${func_stripname_result%"${2}"}\
21672 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21673 && mv -f "$cfgfile.tmp" "$cfgfile" \
21674 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21675 test 0 -eq $? || _lt_function_replace_fail=:
21678 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21679 func_split_long_opt ()\
21681 \ func_split_long_opt_name=${1%%=*}\
21682 \ func_split_long_opt_arg=${1#*=}\
21683 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21684 && mv -f "$cfgfile.tmp" "$cfgfile" \
21685 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21686 test 0 -eq $? || _lt_function_replace_fail=:
21689 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21690 func_split_short_opt ()\
21692 \ func_split_short_opt_arg=${1#??}\
21693 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21694 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21695 && mv -f "$cfgfile.tmp" "$cfgfile" \
21696 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21697 test 0 -eq $? || _lt_function_replace_fail=:
21700 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21704 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21705 \ *) func_lo2o_result=${1} ;;\
21707 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21708 && mv -f "$cfgfile.tmp" "$cfgfile" \
21709 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21710 test 0 -eq $? || _lt_function_replace_fail=:
21713 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21716 func_xform_result=${1%.*}.lo\
21717 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21718 && mv -f "$cfgfile.tmp" "$cfgfile" \
21719 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21720 test 0 -eq $? || _lt_function_replace_fail=:
21723 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21726 func_arith_result=$(( $* ))\
21727 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21728 && mv -f "$cfgfile.tmp" "$cfgfile" \
21729 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21730 test 0 -eq $? || _lt_function_replace_fail=:
21733 sed -e '/^func_len ()$/,/^} # func_len /c\
21736 func_len_result=${#1}\
21737 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21738 && mv -f "$cfgfile.tmp" "$cfgfile" \
21739 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21740 test 0 -eq $? || _lt_function_replace_fail=:
21744 if test x"$lt_shell_append" = xyes; then
21745 sed -e '/^func_append ()$/,/^} # func_append /c\
21748 eval "${1}+=\\${2}"\
21749 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21750 && mv -f "$cfgfile.tmp" "$cfgfile" \
21751 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21752 test 0 -eq $? || _lt_function_replace_fail=:
21755 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21756 func_append_quoted ()\
21758 \ func_quote_for_eval "${2}"\
21759 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21760 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21761 && mv -f "$cfgfile.tmp" "$cfgfile" \
21762 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21763 test 0 -eq $? || _lt_function_replace_fail=:
21766 # Save a `func_append' function call where possible by direct use of '+='
21767 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21768 && mv -f "$cfgfile.tmp" "$cfgfile" \
21769 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21770 test 0 -eq $? || _lt_function_replace_fail=:
21772 # Save a `func_append' function call even when '+=' is not available
21773 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21774 && mv -f "$cfgfile.tmp" "$cfgfile" \
21775 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21776 test 0 -eq $? || _lt_function_replace_fail=:
21779 if test x"$_lt_function_replace_fail" = x":"; then
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21781 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21785 mv -f "$cfgfile" "$ofile" ||
21786 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21790 cat <<_LT_EOF >> "$ofile"
21792 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21794 # The linker used to build libraries.
21797 # How to create reloadable object files.
21798 reload_flag=$lt_reload_flag_CXX
21799 reload_cmds=$lt_reload_cmds_CXX
21801 # Commands used to build an old-style archive.
21802 old_archive_cmds=$lt_old_archive_cmds_CXX
21804 # A language specific compiler.
21805 CC=$lt_compiler_CXX
21807 # Is the compiler the GNU compiler?
21810 # Compiler flag to turn off builtin functions.
21811 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21813 # Additional compiler flags for building library objects.
21814 pic_flag=$lt_lt_prog_compiler_pic_CXX
21816 # How to pass a linker flag through the compiler.
21817 wl=$lt_lt_prog_compiler_wl_CXX
21819 # Compiler flag to prevent dynamic linking.
21820 link_static_flag=$lt_lt_prog_compiler_static_CXX
21822 # Does compiler simultaneously support -c and -o options?
21823 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21825 # Whether or not to add -lc for building shared libraries.
21826 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21828 # Whether or not to disallow shared libs when runtime libs are static.
21829 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21831 # Compiler flag to allow reflexive dlopens.
21832 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21834 # Compiler flag to generate shared objects directly from archives.
21835 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21837 # Whether the compiler copes with passing no objects directly.
21838 compiler_needs_object=$lt_compiler_needs_object_CXX
21840 # Create an old-style archive from a shared archive.
21841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21843 # Create a temporary old-style archive to link instead of a shared archive.
21844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21846 # Commands used to build a shared archive.
21847 archive_cmds=$lt_archive_cmds_CXX
21848 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21850 # Commands used to build a loadable module if different from building
21851 # a shared archive.
21852 module_cmds=$lt_module_cmds_CXX
21853 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21855 # Whether we are building with GNU ld or not.
21856 with_gnu_ld=$lt_with_gnu_ld_CXX
21858 # Flag that allows shared libraries with undefined symbols to be built.
21859 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21861 # Flag that enforces no undefined symbols.
21862 no_undefined_flag=$lt_no_undefined_flag_CXX
21864 # Flag to hardcode \$libdir into a binary during linking.
21865 # This must work even if \$libdir does not exist
21866 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21868 # Whether we need a single "-rpath" flag with a separated argument.
21869 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21871 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21872 # DIR into the resulting binary.
21873 hardcode_direct=$hardcode_direct_CXX
21875 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21876 # DIR into the resulting binary and the resulting library dependency is
21877 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21878 # library is relocated.
21879 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21881 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21882 # into the resulting binary.
21883 hardcode_minus_L=$hardcode_minus_L_CXX
21885 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21886 # into the resulting binary.
21887 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21889 # Set to "yes" if building a shared library automatically hardcodes DIR
21890 # into the library and all subsequent libraries and executables linked
21892 hardcode_automatic=$hardcode_automatic_CXX
21894 # Set to yes if linker adds runtime paths of dependent libraries
21895 # to runtime path list.
21896 inherit_rpath=$inherit_rpath_CXX
21898 # Whether libtool must link a program against all its dependency libraries.
21899 link_all_deplibs=$link_all_deplibs_CXX
21901 # Set to "yes" if exported symbols are required.
21902 always_export_symbols=$always_export_symbols_CXX
21904 # The commands to list exported symbols.
21905 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21907 # Symbols that should not be listed in the preloaded symbols.
21908 exclude_expsyms=$lt_exclude_expsyms_CXX
21910 # Symbols that must always be exported.
21911 include_expsyms=$lt_include_expsyms_CXX
21913 # Commands necessary for linking programs (against libraries) with templates.
21914 prelink_cmds=$lt_prelink_cmds_CXX
21916 # Commands necessary for finishing linking programs.
21917 postlink_cmds=$lt_postlink_cmds_CXX
21919 # Specify filename containing input files.
21920 file_list_spec=$lt_file_list_spec_CXX
21922 # How to hardcode a shared library path into an executable.
21923 hardcode_action=$hardcode_action_CXX
21925 # The directories searched by this compiler when creating a shared library.
21926 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21928 # Dependencies to place before and after the objects being linked to
21929 # create a shared library.
21930 predep_objects=$lt_predep_objects_CXX
21931 postdep_objects=$lt_postdep_objects_CXX
21932 predeps=$lt_predeps_CXX
21933 postdeps=$lt_postdeps_CXX
21935 # The library search path used internally by the compiler when linking
21936 # a shared library.
21937 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21939 # ### END LIBTOOL TAG CONFIG: CXX
21950 ac_clean_files=$ac_clean_files_save
21952 test $ac_write_fail = 0 ||
21953 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21956 # configure is writing to config.log, and then calls config.status.
21957 # config.status does its own redirection, appending to config.log.
21958 # Unfortunately, on DOS this fails, as config.log is still kept open
21959 # by configure, so config.status won't be able to write to it; its
21960 # output is simply discarded. So we exec the FD to /dev/null,
21961 # effectively closing config.log, so it can be properly (re)opened and
21962 # appended to by config.status. When coming back to configure, we
21963 # need to make the FD available again.
21964 if test "$no_create" != yes; then
21966 ac_config_status_args=
21967 test "$silent" = yes &&
21968 ac_config_status_args="$ac_config_status_args --quiet"
21970 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21972 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21973 # would make configure fail if this is the last instruction.
21974 $ac_cs_success || as_fn_exit 1
21976 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21978 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21982 { $as_echo "$as_me:${as_lineno-$LINENO}:
21984 Build configuration:
21986 Unicode callbacks (you want at least one):
21991 Font callbacks (the more the better):
21992 FreeType: ${have_freetype}
21994 Tools used for command-line utilities:
21995 Cairo: ${have_cairo}
21996 Fontconfig: ${have_fontconfig}
21998 Additional shapers (the more the better):
21999 Graphite2: ${have_graphite2}
22001 Platform shapers (not normally needed):
22002 CoreText: ${have_coretext}
22003 Uniscribe: ${have_uniscribe}
22004 DirectWrite: ${have_directwrite}
22007 Documentation: ${have_gtk_doc}
22008 GObject bindings: ${have_gobject}
22009 Introspection: ${have_introspection}
22013 Build configuration:
22015 Unicode callbacks (you want at least one):
22020 Font callbacks (the more the better):
22021 FreeType: ${have_freetype}
22023 Tools used for command-line utilities:
22024 Cairo: ${have_cairo}
22025 Fontconfig: ${have_fontconfig}
22027 Additional shapers (the more the better):
22028 Graphite2: ${have_graphite2}
22030 Platform shapers (not normally needed):
22031 CoreText: ${have_coretext}
22032 Uniscribe: ${have_uniscribe}
22033 DirectWrite: ${have_directwrite}
22036 Documentation: ${have_gtk_doc}
22037 GObject bindings: ${have_gobject}
22038 Introspection: ${have_introspection}